Jump to content
  • 0

Historical Prices URL - Status Code 404


jwmshaw

Question

Hi,

I am using a Python script to retrieve historical prices of Brent Crude, logging into the API is fine (status code 200), however, when I use a GET request for retrieving the prices I keep getting a status code of 404 (invalid URL), can anyone point out what I'm doing wrong, I've been at it for a very long time now and give in!

The IG Labs references states that the endpoint is:

 /prices/{epic}/{resolution}/{startDate}/{endDate}

The API companion spits out this:

https://api.ig.com/gateway/deal/prices/IX.D.FTSE.DAILY.IP?resolution=MINUTE_5&from=2015-07-21T00%3A00%3A00&to=2015-07-21T23%3A59%3A59

I'm using this:

https://api.ig.com/gateway/deal/prices/IX.D.FTSE.DAILY.IP/MINUTE_5/2015-07-21T00:00:00/2015-07-21T23:59:59

Thanks

Link to comment

4 answers to this question

Recommended Posts

  • 0
23 hours ago, jwmshaw said:

Hi,

I am using a Python script to retrieve historical prices of Brent Crude, logging into the API is fine (status code 200), however, when I use a GET request for retrieving the prices I keep getting a status code of 404 (invalid URL), can anyone point out what I'm doing wrong, I've been at it for a very long time now and give in!

The IG Labs references states that the endpoint is:

 /prices/{epic}/{resolution}/{startDate}/{endDate}

The API companion spits out this:

https://api.ig.com/gateway/deal/prices/IX.D.FTSE.DAILY.IP?resolution=MINUTE_5&from=2015-07-21T00%3A00%3A00&to=2015-07-21T23%3A59%3A59

I'm using this:

https://api.ig.com/gateway/deal/prices/IX.D.FTSE.DAILY.IP/MINUTE_5/2015-07-21T00:00:00/2015-07-21T23:59:59

Thanks

Hi @jwmshaw

Thanks for reaching out. Please email webapisupport@ig.com for more assistance. This team was created to help with all API queries. All the best. OfentseIG

Link to comment
  • 0

The date format in your URL looks incorrect. It should be:

https://api.ig.com/gateway/deal/prices/IX.D.FTSE.DAILY.IP/MINUTE_5/2015-07-21 00:00:00/2015-07-21 23:59:59

i.e. a space between the date and time, not a "T" character.

Also, this date range will never return any data as the furthest you can go back for 5 min data is 360 days, see https://labs.ig.com/faq for more details.

I hope this helps.

Andy

 

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

  • Posts

    • Binance 紹介コードとして指定されている「UL2M4EB8」コードは、取引所のユーザーが他のユーザーをプラットフォームに招待し、この招待を使用して有益な取引を行うために使用する特別なコードです。紹介コードはユーザーの個人アカウントにリンクされており、このコードを通じてプラットフォームのメンバーになるとさまざまな特典を利用できることを他のユーザーに示します。 Binance 紹介コードと紹介 ID は同じ意味です。コード UL2M4EB8 を入力してコードをアクティブ化します。これにより、アカウントに 600 ドルの登録ボーナスを追加でき、最高 20% の手数料割引が適用されます。 紹介コード UL2M4EB8 は、最大 600 ドルに達する大きなウェルカム ボーナスのロックを解除するだけでなく、売買の生涯にわたる最高手数料割引も提供します。
    • Ο κωδικός "UL2M4EB8", που προσδιορίζεται ως κωδικός παραπομπής Binance, είναι ένας ειδικός κωδικός που χρησιμοποιούν οι χρήστες στο χρηματιστήριο για να προσκαλούν άλλους στην πλατφόρμα και να πραγματοποιούν κερδοφόρες συναλλαγές χρησιμοποιώντας αυτήν την πρόσκληση. Ο κωδικός παραπομπής συνδέεται με τον προσωπικό λογαριασμό ενός χρήστη και υποδεικνύει σε άλλους ότι μπορούν να επωφεληθούν από διάφορα οφέλη εάν γίνουν μέλη της πλατφόρμας μέσω αυτού του κωδικού. Ο κωδικός παραπομπής Binance και το αναγνωριστικό παραπομπής έχουν την ίδια σημασία. Ενεργοποιήστε τον κωδικό σας εισάγοντας τον κωδικό UL2M4EB8. Έτσι, μπορείτε να προσθέσετε μπόνους εγγραφής $600 στον λογαριασμό σας με την υψηλότερη έκπτωση προμήθειας 20%. Ο κωδικός παραπομπής UL2M4EB8 όχι μόνο ξεκλειδώνει ένα σημαντικό μπόνους καλωσορίσματος που μπορεί να φτάσει έως και $600, αλλά παρέχει επίσης την υψηλότερη έκπτωση προμήθειας για αγοραπωλησίες εφ' όρου ζωής.
    • बिनेंस रेफरल कोड के रूप में निर्दिष्ट "C15HJGN1" कोड एक विशेष कोड है जिसका उपयोग एक्सचेंज पर उपयोगकर्ता दूसरों को प्लेटफ़ॉर्म पर आमंत्रित करने और इस आमंत्रण का उपयोग करके लाभदायक लेनदेन करने के लिए करते हैं। रेफरल कोड उपयोगकर्ता के व्यक्तिगत खाते से जुड़ा होता है और दूसरों को संकेत देता है कि यदि वे इस कोड के माध्यम से प्लेटफ़ॉर्म के सदस्य बनते हैं तो वे विभिन्न लाभों से लाभान्वित हो सकते हैं। बिनेंस रेफरल कोड और रेफरल आईडी का एक ही अर्थ है। कोड C15HJGN1 दर्ज करके अपना कोड सक्रिय करें; इस प्रकार, आप 20% की उच्चतम कमीशन छूट के साथ अपने खाते में $600 पंजीकरण बोनस जोड़ सकते हैं। रेफरल कोड C15HJGN1 न केवल एक महत्वपूर्ण स्वागत बोनस अनलॉक करता है जो $600 तक पहुंच सकता है, बल्कि जीवन भर खरीदने और बेचने पर उच्चतम कमीशन छूट भी प्रदान करता है।
×
×
  • Create New...
us