Jump to content
The Twitter Feeds are now back on the Platform ×
  • 0

Java API: getPricesByDateRange



I can connect via the rest API and successfully execute various calls such as


which return successfully (so I know that i have successfully authenticated). However the following fails with 400 Bad Request:

  restApi.getPricesByDateRangeV2(authenticationContext.getConversationContext(), "2021-01-21", "IX.D.FTSE.CFD.IP", "DAY", "2021-01-19");

...note these parameters do return data if I check using the API Companion, so any suggestions appreciated.

Many thanks.

Link to comment

1 answer to this question

Recommended Posts

  • 0

FWIW the V3 call works. So I don't know whether I was using V2 incorrectly, or it's just not supported.

For reference here's a working example:

restApi.getPricesV3(authenticationContext.getConversationContext(), "1", "4", "200", "IX.D.FTSE.CFD.IP", "2021-01-19", "2021-01-21", "DAY");

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...