Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Per Currency Conf with custom DB entry #1467

Open
carpionetwork opened this issue Mar 5, 2018 · 9 comments
Open

Per Currency Conf with custom DB entry #1467

carpionetwork opened this issue Mar 5, 2018 · 9 comments

Comments

@carpionetwork
Copy link

System information

  • Have I written custom code (as opposed to using zenbot vanilla): False
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): CentOS 7
  • Zenbot version (commit ref, or version): unstable
  • Zenbot branch: unstable
  • NodeJS version: 8.3
  • Python version (when using a python script): n/a
  • Exact command to reproduce (include everything): Detailed below
  • Did I make any changes to conf-sample.js?: False

Describe the problem

I have created conf files for each of the three coins (BTC, ETH and LTC) (btc_conf.js, eth_conf.js and ltc_conf.js). Within each I changed the mongodb entry from zenbot4 to (For BTC (btcbot), For ETH (ethbot) and For LTC (ltcbot)).

Is it better to keep one mongodb zenbot4 that houses all three of the coins or is creating a per coin database fine?

The reason I am asking this is because I am seeing a random issue where the buy or sell signal will print but neither continues to bought or sold. Even though at that moment a buy or sell would have been good. I have sufficient funds for each coin as well as USD for either transaction.

Thank you!

@kareha
Copy link

kareha commented Mar 5, 2018

Which exchange?
If Bitfinex: Have you ever traded the currency before?
I had the same behavior. See here: #695 (comment) and fixed it on my own (works now).

It doesn't matter if you split up the db collections by asset, you can keep all trades in one.

@carpionetwork
Copy link
Author

Gdax ... have not tried any other exchange. The bot has traded successfully before but recently it is stuck at printing the buy / sell signals.

As a test I switched to the bollinger strategy to see if there is a buy/sell signal issue with just the trend_ema strategy. Sidenote: I am using the latest unstable code.

Thanks for the link.

I'll let you know how it goes with the new strategy after it has had time to settle in for a few hours.

@defkev
Copy link
Contributor

defkev commented Mar 6, 2018

buy or sell signal will print but neither continues to bought or sold

This simply means the bot didn't execute the signal, enable debugging (L key) to see why.

The order is buy - buying - bought and sell - selling - sold

@Haehnchen
Copy link
Contributor

i can still confirm the buy / sell signal issue on gdax #1423. buy / sell is placed by the bot and marked as sucessfull by the bot and in console output, but in detail the order timeouted. as mentioned in the issues the error handling of this cases is missing by the gdax exchange implemention.

@fdk0
Copy link

fdk0 commented Mar 6, 2018

What I noticed is that when it cancel the order issues a bought at invalid date in gdax and on bittrex it issues a completed bought or selled message with the correct amount and date but it actually did not complete the order. this is in live mode..

@fdk0
Copy link

fdk0 commented Mar 6, 2018

running --debug in live mode with the same configuration that I was using before and triple checked if the IP is correct on gdax api authentication settings I get this error:
websocket connection to ETH-EUR opened
websocket error: { type: 'error',
message: 'Sorry, you could not be authenticated: Unauthorized',
reason: 'IP does not match IP whitelist' } restarting websocket connection

As I said the IP whitelisted is correct and the API is correct, and to be sure I create a new one and tested again in 2 different machines and I got the same error.. this may be the reason of the problem with placing / removing order in gdax?

Also I don't get the error before #1335

@carpionetwork
Copy link
Author

carpionetwork commented Mar 6, 2018 via email

@fdk0
Copy link

fdk0 commented Mar 6, 2018

Yes Gdax has an optional whitelist IP option.

@carpionetwork
Copy link
Author

carpionetwork commented Mar 7, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants