Jump to content
  • 0

API historic prices web request - what is the correct format of StartDate / EndDate?




I'm following API reference and I'm stuck on requests for getting historic prices.
According to ref sheet I should send a GET req to following uri:
v1: /prices/{epic}/{resolution}?startdate={startdate}&enddate={enddate}
v2: /prices/{epic}/{resolution}/{startDate}/{endDate}
v3: /prices/{epic}

However all of them gives me 404 response.
(my framework works ok when I define resolution and number of points in /prices/{epic}/{resolution}/{numPoints} request => uri:

in the description of startDate/endDate we can see: 

startDate (String) Start date (yyyy-MM-dd HH:mm:ss)

But uri https://demo-api.ig.com/gateway/deal/prices/SA.D.AMD.DAILY.IP/MINUTE/2022-11-16 15:00:00/2022-11-16 15:03:00

doesn't work,
I've tried many orher formatting including proper UTF-8 encoding of all the special characters but this end up with 400 response...

So my question is: how should the correct url look like for historic prices in a given period of time?



Link to comment

3 answers to this question

Recommended Posts

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
  • image.png

  • Posts

    • Sometime one way to avoid touching one's PF is to participate in these kind of event to earn some passive income and perharps use some the proceeds to invest more. I am not quite friendly with bot but will refer it to friend with a trading community where i also get signals. I will appreciate you also share the link to the announcement for more details
    • Despite the fact that i have my reservation on some meme coin; i feel attention could tilting towards BNB chain meme coins. HODL was bullish yesterday upon launch and i may also look into CATA for some market analysis and possible entry cos missing out on most of the Solana chain meme can not repeat itself again haha.
    • I still beleive Pepe is still a strong competitor for shib and after Doge they should be among the few meme coin to hodl but would appreciate your analysis on HODL a new meme coin on BNB chain that has hugely pumped yesterday on Pancakeswap and Bitget. Its mainnet launch and initial listing was also yesterday.
  • Create New...