coinapi / coinapi-sdk

SDKs for CoinAPI

Home Page:https://docs.coinapi.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong format of time_start parameter in Java

mauravan opened this issue · comments

Doing a call with the Java SDK i get this Error:

Caused by: java.lang.RuntimeException: the response code for url is an ERROR code:
	url = /v1/ohlcv/COINBASE_SPOT_BTC_USD/history?period_id=3YRS&time_start=2019-05-06T17:06:29.688072100Z
	response code = 400
	response body error = Wrong format of time_start parameter

I guess the problem is the Z and precision added from the toString() from the Instant class. The docs do not specify this as acceptable: https://docs.coinapi.io/?java#time

(There are 9 positions of millis but only 7 are documented)