Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong format of time_start parameter in Java #132

Open
mauravan opened this issue May 6, 2022 · 1 comment
Open

Wrong format of time_start parameter in Java #132

mauravan opened this issue May 6, 2022 · 1 comment

Comments

@mauravan
Copy link

mauravan commented May 6, 2022

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)

@Svisstack
Copy link
Contributor

Svisstack commented May 6, 2022 via email

mauravan pushed a commit to mauravan/coinapi-sdk that referenced this issue May 6, 2022
…ant for the java sdk because instant.now() might have higher precision the 7 on jdk > 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants