coinapi-sdk icon indicating copy to clipboard operation
coinapi-sdk copied to clipboard

Wrong format of time_start parameter in Java

Open mauravan opened this issue 2 years ago • 1 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)

mauravan avatar May 06 '22 17:05 mauravan

No more than 7 are accepteble, can you make a pr?

Sent from my iPhone

On 6 May 2022, at 19:41, Roman Meier @.***> wrote:

 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)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

Svisstack avatar May 06 '22 18:05 Svisstack