question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

YoBit "getTradeHistory" is always empty?

See original GitHub issue

Has 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:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
npomfretcommented, Dec 2, 2017

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:

                TradeHistoryParamsAll params = new TradeHistoryParamsAll();
                params.setCurrencyPair(currencyPair);
                params.setStartTime(since);
                params.setEndTime(now);

Then increase the value for since to get the next batch of trades.

0reactions
digitalchaoticscommented, Jan 4, 2018

@lucarosellini - no, the workaround didn’t work for me. I’m not sure why. I’ve given up on YoBit for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQ - YoBit.Net
Yobit.net is a trading platform for a wide range of cryptocurrencies similar to Bitcoin. Account at Yobit.net website is completely legal and cryptocurrency ......
Read more >
Contacts - YoBit.Net
For reporting coin Update/Issue/Fork - click here. Your E-mail. Message type. Select... Money deposit, Money withdrawal, Trade / Balance, Inform about error ...
Read more >
Get 4700 Fast USD / daily - Ethereum (ETH) Exchange
Buy and sell Ethereum (ETH) on YoBit Exchange!
Read more >
Coins Info - YoBit.Net
DOGE-USDT. T0.09045398, + 0.2% ; ETH-USDC. 1320.4086822, + 4% ; DOGE-ETH. E0.00006893, - 3.4% ; BTC, $18390.51, + 2.9% ...
Read more >
Get 4700 Fast USD - YoBit.Net
ETH-RUR. R87892.57, + 3% ; ETH, R87448.07, + 3.1% ; FUSD-BTC. 0.00000000, 0% ; USDT, $1.04, - 0.2% ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found