Assorted scripts and helpers for researching/analyzing crypto currencies
git clone [email protected]:nmielnik/cryptos.git
npm install
You need to get your api-key & api-secret from poloniex:
- Retrieve or generate your poloniex api keys or keys from other exchanges.
- Make sure your current IP is in the list of allowed IPs (Poloniex and other exchanges enforce this IP whitelisting)
In your root directory, create a file called api-key.js
.
Put this as the contents of the file:
module.exports = {
'poloniex': {
api_key: "<Paste your API Key Here>",
api_secret: "<Paste your API Secret Here>"
},
'cryptopia': {
api_key: "<Paste your API Key Here>",
api_secret: "<Paste your API Secret Here>"
},
'bitfinex': {
api_key: "<Paste your API Key Here>",
api_secret: "<Paste your API Secret Here>"
},
'coinbase': {
api_key: "<Paste your API Key Here>",
api_secret: "<Paste your API Secret Here>"
},
'bittrex': {
api_key: "<Paste your API Key Here>",
api_secret: "<Paste your API Secret Here>"
},
'bitstamp': {
client_id: "<Paste your Client ID Here>",
api_key: "<Paste your API Key Here>",
api_secret: "<Paste your API Secret Here>"
},
'gdax': {
api_key: "<Paste your API Key Here>",
api_secret: "<Paste your API Secret Here>",
pass_phrase: "<Paste your Pass Phrase Here>"
}
};
Save the file. (It's in the .gitignore, so you shouldn't accidently check it in).
node query.js
It should dump out something assuming you got everything configured right
OR
Run the shitty trading bot. Make sure that trade-rules.js is properly configured
npm start