-
Notifications
You must be signed in to change notification settings - Fork 2k
Bittrex balances are inverted #277
Comments
Noticed the same thing, but it's "just" a cosmetic thing. Buy/sell/trade should still be doing the right things. Hence why I haven't been too interested in trying to fix it. It's definitely a bug, though. |
thanks for the feedback @DeviaVir |
much appreciated @Netziro! |
@DeviaVir Under my point of view, exchange.joinProduct should return an object with currency and asset clearly defined and maybe move the init of the exchange selector in a stand alone library that will take care about normalizing the selector, initiating the exchange object which will parse asset and currency from a local function that can be adapted and customized as needed within the exchange object scope. Basically you end up creating a Selector library that works as an abstract or router towards exchanges objects. Even better, would be to actually specify asset, currency and exchange as arguments, so the subsystem will always have clear configurations which will be then interpreted/combined by exchanges as needed. It would mean a major change. There is always the quick and dirty solution, fixing the output cosmetic but perhaps making the code cosmetic a little uglier. What's your thought? |
@DeviaVir - "Noticed the same thing, but it's "just" a cosmetic thing. Buy/sell/trade should still be doing the right things. Hence why I haven't been too interested in trying to fix it. It's definitely a bug, though." Yes, although if the bot is thinking it has the loads of BTC and attempts to put down tiny sell orders of the asset (using the figure in BTC rather than the sum of asset) the exchange often comes back with an error stating it cant be less than 50k satoshi per order placement. I did have a look into editing this one but JS is not the language i write in, help needed from you guys for sure 😃 |
I believe that what is @CreativeBacon is mentioning is what i keep seeing ... i keep seeing this 50k satoshi msg. [https://github.com//issues/280#issuecomment-308235224] |
exactly, which seems to only be occuring as the balances are swapped and its trying to trade a crazy small amount of crypto 👍 |
I have the same mistake, |
Im now getting this output (note that order is placed alright on bittrex):
|
I'm getting the same thing plus Zenbot is buying high and selling low, so losing money. Can we just multiply everything times -1? |
2017-07-28 07:03:00 0.00276750 BTC-ANS +0.0% 213 64 ++ 0.0328 0.0119 buy 0.02664 BTC 0.01 ANS -0.8% -1.8% 2.61299928 BTC at 0.00275000 ANS This are my negative earnings from the transaction history from Bittrex
|
The bot also buys high and attempt to sell low in Poloniex. Candle data is inverted, show green text when stock is at sale on red in web graph. |
I think its looking at the minimum coin amount in the bittrex products file. |
I'm confused - is this causing a problem with the calculation of the strategy or not? Early comments above claim it's "just cosmetic" but other comments are claiming it might lead to miscalculations of amounts to trade. If it's miscalculating amount to trade - does that mean it could be miscalculating the strategy in other ways? My run on bittrex.btc-eth also crashed due to #472. Are these connected at all? Is it sensible to keep running this before it's fixed? |
Wouldn't it be possible to make the bot flip the viewable currency and asset tickers exclusively for Bittrex? |
I think I fixed this issue. Do those changes: Also on update products.sh: When finished execute the "update-products.sh" script and everything should work fine then. |
Thanks vea45! |
Hi @DeviaVir , it is still happening with me. I always loss balances.
my command likes this: [ "trade", "--trend_ema=15", "--period=5m"]. |
Cosmetic or not, people are only as good as the data they action on. |
Hi guys
Testing Zenbot, both live trade and paper mode, i noticed that balances are inverted.
I am trading on bittrex.BTC-ETH and it tells me that i have 1 BTC and 0 ETH, while in reality i have 1 ETH and 0 BTC.
@DeviaVir is also mentioning it here
https://github.com/carlos8f/zenbot/blob/master/extensions/exchanges/bittrex/exchange.js#L122
Tried to fix it in update-products.sh and exchange.js, but it doesn't help, as there are calls from engine.js that should also be adapted.
Any suggestions?
The text was updated successfully, but these errors were encountered: