-
Notifications
You must be signed in to change notification settings - Fork 2k
Bitfinex Credentials not working #545
Comments
where did you put these credentials? |
In the config file. |
config file: |
where is it located? and how is it called? |
it is located in the main zenbot folder. I call it through the command line as follows: zenbot trade bitfinex.OMG-BTC --config conf22.js --strategy rsi --reset_profit Do I need to move the config file elsewhere? It works for Gdax. |
/home/user/zenbot/conf22.js |
is the structure of your custom config correct? |
Yes. The same config works for GDax. It's just not working for bitfinex. I'm assuming it is something with the websockets. I just couldn't figure it out. |
paste your config here (!!! WITHOUT KEYS!!!). I'll try. |
var c = module.exports = {} // mongo configuration // default selector. only used if omitting [selector] argument from a command. // Exchange API keys: // to enable GDAX trading, enter your API credentials: // to enable Poloniex trading, enter your API credentials: // to enable Kraken trading, enter your API credentials: // to enable Bittrex trading, enter your API credentials: // to enable Bitfinex trading, enter your API credentials: // to enable Bitfinex trading, enter your API credentials: // to enable QuadrigaCX tranding, enter your API credentials: // this is the manual secret key entered by editing the API access // replace with the client id used at login, as a string, not number // to enable BTC-e trading, enter your API credentials: // Optional stop-order triggers: // sell if price drops below this % of bought price (0 to disable) // Order execution rules: // avoid trading at a slippage above this pct // Misc options: // default # days for backfill and sim commands //xmpp configs c.xmppon=0 // 0 xmpp disabled; 1 xmpp enabled (credentials should be correct) if (c.xmppon) { c.xmpp = require('simple-xmpp'); c.xmpp.connect({ c.xmppto="[email protected]" //xmpp alert to friend |
I manually set c.bitfinex.key and c.bitfinex.secret in bitfinex's exchange.js. That has fixed my issue. exchange.js for bitfinex is not grabbing the data from the config. Looks like a bug |
@DeviaVir This looks like a valid bug. Dont think the question label should be set here. |
@elikjwilliams Sorry, but it's your bug! Your command: Correct command: Find only one difference! Thanks. |
I get the same error. This is my command:
API Key & Secret are redacted, the error is with the correct ones. If placing them directly in
This is my config
|
It has the same behaviour if using gdax also. If I copy conf-bitfinex.js over conf.js and run the command without --conf it works. My impression is that the custom config gets overwritten. |
I have created an api key. I gave it read and write with all the parameters except withdraw and I still am getting this error.
/home/user/zenbot/extensions/exchanges/bitfinex/exchange.js:202
throw new Error('please configure your Bitfinex credentials in ' + path.resolve(__dirname, 'conf.js'))
^
Error: please configure your Bitfinex credentials in /home/user/zenbot/extensions/exchanges/bitfinex/conf.js
at wsClient (/home/user/zenbot/extensions/exchanges/bitfinex/exchange.js:202:15)
at Object.getBalance (/home/user/zenbot/extensions/exchanges/bitfinex/exchange.js:321:25)
at Object.syncBalance (/home/user/zenbot/lib/engine.js:177:18)
at Object. (/home/user/zenbot/commands/trade.js:223:24)
at Immediate._onImmediate (/home/user/zenbot/node_modules/sosa/api.js:15:12)
at runCallback (timers.js:781:20)
at tryOnImmediate (timers.js:743:5)
at processImmediate [as _immediateCallback] (timers.js:714:5)
Any help here?
The text was updated successfully, but these errors were encountered: