(GetLastTrades) Data retrieval failure

Issue #185 resolved
Ben Rossi created an issue

While troubleshooting a problem with the reporting tool, Kiara and I discovered a new issue that appears when NuGetLastTrades.jar is run. This error occurs in most cases. When the timestamp '1423419174' was passed in for Kiara's user, it worked, but when '1422900774', '1420913574', or no value was passed, it results in the error.

Feb 09, 2015 1:14:32 PM com.nubits.nubot.launch.NuLastTrades main
INFO: Launching NuLastTrades on excoin
Exception in thread "main" java.lang.NumberFormatException: empty String
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1020)
    at java.lang.Double.parseDouble(Double.java:540)
    at com.nubits.nubot.trading.wrappers.ExcoinWrapper.parseTrade(ExcoinWrapper.java:531)
    at com.nubits.nubot.trading.wrappers.ExcoinWrapper.getLastTradesImpl(ExcoinWrapper.java:482)
    at com.nubits.nubot.trading.wrappers.ExcoinWrapper.getLastTrades(ExcoinWrapper.java:461)
    at com.nubits.nubot.launch.NuLastTrades.execute(NuLastTrades.java:155)
    at com.nubits.nubot.launch.NuLastTrades.main(NuLastTrades.java:70)

Comments (8)

  1. Ben Rossi reporter
    • edited description

    Remove the second condition because it was unrelated. I'll address the max record return of 750 in another ticket.

  2. Desrever Nu

    Error is on Exco.in side

    while retrieving the list of last trades, at some point I received an object with empty fields

  3. Log in to comment