Historical prices can be requested via the GET /chart/v3/charts endpoint (Chart v1 has been retired and returns 404). Query the endpoint and provide at least a Uic, AssetType and Horizon:
GET /chart/v3/charts?AssetType=FxSpot&Horizon=1&Uic=21
Here we select 1-minute bars (Horizon = 1 minute) for the Forex pair EURUSD (Uic = 21). This will return an array of price samples:
{
"Data": [
{
"CloseAsk": 1.3475,
"CloseBid": 1.3473,
"HighAsk": 1.4003,
"HighBid": 1.4001,
"LowAsk": 1.2804,
"LowBid": 1.2802,
"OpenAsk": 1.3478,
"OpenBid": 1.3476,
"Time": "2015-02-01T11:45:00Z"
},
...
{
"CloseAsk": 1.3475,
"CloseBid": 1.3473,
"HighAsk": 1.4003,
"HighBid": 1.4001,
"LowAsk": 1.2804,
"LowBid": 1.2802,
"OpenAsk": 1.3478,
"OpenBid": 1.3476,
"Time": "2015-02-01T11:46:00Z"
}
]
}
Intraday (minute-based) chart data is available for the last 6 months. Daily data is not affected, and the maximum of 1,200 samples per request is unchanged.
More Resources