Skip to content

Wrong format of time_start parameter in Java #132

Description

@mauravan

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions