Jump to content
  • 1

Historical price search error in API companion


Aidan49284

Question

Hi all,

On the API companion, I'm able to get the one minute prices, covering a one day period, but cannot extend this to one month.  Request details below.  Any ideas what could be the issue here?


Headers:
Content-Type = application/json; charset=UTF-8
Accept = application/json; charset=UTF-8
X-IG-API-KEY = <my live API key>
Version = 3
Authorization = Bearer <access key>
IG-ACCOUNT-ID = <my spread betting account ID>

URL:
https://api.ig.com/gateway/deal/prices/CS.D.EURUSD.MINI.IP?resolution=MINUTE&from=2022-06-16T00%3A00%3A00&to=2022-06-17T00%3A00%3A00

Response:
HTTP 200
status: success

Change the URL to:
https://api.ig.com/gateway/deal/prices/CS.D.EURUSD.MINI.IP?resolution=MINUTE&from=2022-05-16T00%3A00%3A00&to=2022-06-17T00%3A00%3A00

Keeping everything else the same.

Response:
HTTP 400
status: error
{
    "errorCode": "error.price-history.io-error"
}

Link to comment

3 answers to this question

Recommended Posts

  • 0
On 25/06/2022 at 15:04, AidanMcCullough said:

Hi all,

On the API companion, I'm able to get the one minute prices, covering a one day period, but cannot extend this to one month.  Request details below.  Any ideas what could be the issue here?


Headers:
Content-Type = application/json; charset=UTF-8
Accept = application/json; charset=UTF-8
X-IG-API-KEY = <my live API key>
Version = 3
Authorization = Bearer <access key>
IG-ACCOUNT-ID = <my spread betting account ID>

URL:
https://api.ig.com/gateway/deal/prices/CS.D.EURUSD.MINI.IP?resolution=MINUTE&from=2022-06-16T00%3A00%3A00&to=2022-06-17T00%3A00%3A00

Response:
HTTP 200
status: success

Change the URL to:
https://api.ig.com/gateway/deal/prices/CS.D.EURUSD.MINI.IP?resolution=MINUTE&from=2022-05-16T00%3A00%3A00&to=2022-06-17T00%3A00%3A00

Keeping everything else the same.

Response:
HTTP 400
status: error
{
    "errorCode": "error.price-history.io-error"
}

Hi @AidanMcCullough @magneticlin

Thanks for reaching out. 

Please send an email to webapisupport@ig.com for more assistance. This team is available for API support only. All the best, OfentseIG

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

    • I've always found the idea of combining Web3 and real estate intriguing. Now, with Parcl Protocol from Parcl Labs, that curiosity is becoming tangible. This platform offers a new approach to investing in real estate prices from cities like Miami Beach and New York, using current price data. What makes Parcl unique is its emphasis on decentralized real estate trading. It enables the buying and selling of real estate assets anytime, anywhere, through a decentralized exchange.If you are holding PRCL their native token you can  participate in governing the Protocol. Plus, there are perks like Perpetual Network Incentives, offering extra benefits to users. The numbers tell an impressive story: Parcl Protocol is a notable DeFi app in the Solana ecosystem, with over $180M+ locked in. In a short span, it has facilitated trades of over 2.1M square feet of real estate exposure, equivalent to 1,400+ properties.The total traded volume? A significant $940M+.with tokens listing on exchanges like Bitget, the platform's reach and potential only continue to grow, Could Parcl be a game-changer in real estate? (Edited)
    • Calling all crypto traders! Gear up for an epic month of rewards with Bitget’s April Trading: Chase the 1 BTC Halving Treasure campaign. Uncover hidden riches across three exciting activities.   Ready to embark on your treasure hunt? Start trading here:https://www.bitget.com/register Campaign Period: Throughout April (specific dates may apply for each activity, see details on Bitget website) Don’t miss out on this chance to win big with Bitget’s April Trading campaign
    • Parcl Labs' decentralized perpetuals exchange, Parcl (PRCL), has carved a unique niche in the DeFi space. Focused on real estate synthetics, Parcl allows users to gain exposure to the price movements of real-world cities like Miami Beach and New York through cutting-edge, real-time price feeds. This innovative approach has propelled Parcl to the top spot in terms of Total Value Locked (TVL) within the Solana ecosystem, exceeding a staggering $180 million. Parcl's success is further demonstrated by the impressive activity on its V3 exchange. Within a few short months, users have facilitated the trading of over 2.1 million square feet of notional real estate exposure, equivalent to over 1,400 physical properties. The total notional volume traded on V3 to date surpasses a remarkable $940 million. Additionally, the PRCL token itself is listed on the Bitget exchange, providing further accessibility and potential for the project.
×
×
  • Create New...
us