curl --request GET \
--url 'https://api.fastforex.io/fx/ohlc/time-series?api_key='import requests
url = "https://api.fastforex.io/fx/ohlc/time-series?api_key="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.fastforex.io/fx/ohlc/time-series?api_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fastforex.io/fx/ohlc/time-series?api_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fastforex.io/fx/ohlc/time-series?api_key="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fastforex.io/fx/ohlc/time-series?api_key=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fastforex.io/fx/ohlc/time-series?api_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"pair": "EURUSD",
"interval": "P1D",
"limit": 3,
"dtmfmt": "ISO",
"end": "2026-11-04T00:00:00Z",
"tzOffset": "+00:00",
"size": 1,
"results": [
{
"dtm": "2026-11-04T00:00:00Z",
"o": 1.12065,
"h": 1.12731,
"l": 1.11967,
"c": 1.12348
},
{
"dtm": "2026-11-03T00:00:00Z",
"o": 1.11916,
"h": 1.12092,
"l": 1.11731,
"c": 1.12065
},
{
"dtm": "2026-11-02T00:00:00Z",
"o": 1.11852,
"h": 1.12372,
"l": 1.11522,
"c": 1.11916
}
],
"ms": 8
}FX OHLC Time-Series
Fetch a set of OHLC time-series data points for a given FX trading pair and interval. Values are based on the BID price. Supports a range of datetime formats and timezone offsets. Datetime format in the response will try to match your request - unless specified explicitly.
curl --request GET \
--url 'https://api.fastforex.io/fx/ohlc/time-series?api_key='import requests
url = "https://api.fastforex.io/fx/ohlc/time-series?api_key="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.fastforex.io/fx/ohlc/time-series?api_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fastforex.io/fx/ohlc/time-series?api_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fastforex.io/fx/ohlc/time-series?api_key="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fastforex.io/fx/ohlc/time-series?api_key=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fastforex.io/fx/ohlc/time-series?api_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"pair": "EURUSD",
"interval": "P1D",
"limit": 3,
"dtmfmt": "ISO",
"end": "2026-11-04T00:00:00Z",
"tzOffset": "+00:00",
"size": 1,
"results": [
{
"dtm": "2026-11-04T00:00:00Z",
"o": 1.12065,
"h": 1.12731,
"l": 1.11967,
"c": 1.12348
},
{
"dtm": "2026-11-03T00:00:00Z",
"o": 1.11916,
"h": 1.12092,
"l": 1.11731,
"c": 1.12065
},
{
"dtm": "2026-11-02T00:00:00Z",
"o": 1.11852,
"h": 1.12372,
"l": 1.11522,
"c": 1.11916
}
],
"ms": 8
}Query Parameters
Time-series start. Supported formats: YYYY-MM-DD (UTC). YYYY-MM-DD HH:MM:SS (UTC), ISO8601 with timezone offset. Timestamp in milliseconds. Supply this or end. A datetime value. If no timezone offset supplied, UTC/GMT is assumed. If only a date is supplied, time is assumed to be 00:00:00 UTC.
[0-9]{4}-[0-9]{2}-[0-9]{2}Time-series end. Supported formats: YYYY-MM-DD (UTC). YYYY-MM-DD HH:MM:SS (UTC), ISO8601 with timezone offset. Timestamp in milliseconds. Supply this or start. A datetime value. If no timezone offset supplied, UTC/GMT is assumed. If only a date is supplied, time is assumed to be 00:00:00 UTC.
[0-9]{4}-[0-9]{2}-[0-9]{2}ISO8601 duration, such as P1D (daily). Defaults to P1D. Options are P1D, PT1H, PT1M. ISO8601 Duration. https://en.wikipedia.org/wiki/ISO_8601#Durations
Response
Success