YoBit "getTradeHistory" is always empty?
See original GitHub issueHas anyone using YoBit ever seen any results from “getTradeHistory”? If so, what params are you passing? It’s always empty for me. I’ve tried a number of variants.
Note that the code below is working for Bittrex, HitBTC, Poloniex, Livecoin, Bleutrade, and Cryptopia.
` try { List<UserTrade> trades = yobitExchange.getUserTrades(currencyPair, new Date(0), new Date()); if (trades.isEmpty()) { logger.info(exchangeName + “->getUserTrades FAILED (No UserTrades found)”); } else { logger.info(exchangeName + “->getUserTrades PASSED”); } } catch (Throwable x) { logger.error(exchangeName + “->getUserTrades FAILED”, x); }
where…
public List<UserTrade> getUserTrades(CurrencyPair currencyPair, Date start, Date end) throws IOException { TradeHistoryParamsCurrencyPairTimeSpan params = new TradeHistoryParamsCurrencyPairTimeSpan(currencyPair, start, end); return tradeService.getTradeHistory(params).getUserTrades(); }
`
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
Unfortunately each exchange works differently and at the moment you need to check the exchange specific implementation to see what parameters the exchange uses. We don’t have a good solution for this yet.
For Yobit, the following works:
Then increase the value for
since
to get the next batch of trades.@lucarosellini - no, the workaround didn’t work for me. I’m not sure why. I’ve given up on YoBit for now.