poloniex-api-java icon indicating copy to clipboard operation
poloniex-api-java copied to clipboard

returnTradeHistory error parsing date

Open KEEPEE opened this issue 3 years ago • 2 comments

When I try call returnTradeHistory there was issue with parsing date. Java exceotion: java.time.format.DateTimeParseException: Text '2021-10-23 19:32:05.000000' could not be parsed, unparsed text found at index 19

Calss PoloniexExchangeService line: 264 tradeHistory = mapper.mapTradeHistory(tradeHistoryData);

KEEPEE avatar Dec 19 '21 15:12 KEEPEE

It looks like Poloniex changed their trade history date time format from yyyy-MM-dd HH:mm:ss to yyyy-MM-dd HH:mm:ss.n. The problem is this change is not universal, but seemingly only for the trade history date.

I'll have a fix shortly.

TheCookieLab avatar Dec 19 '21 15:12 TheCookieLab

@KEEPEE can you pull down branch defect/38/returnTradeHistory-error-parsing-date and see if it resolves your issue?

TheCookieLab avatar Dec 19 '21 16:12 TheCookieLab