import requests
url = "https://api.itick.org/forex/klines?region=GB&codes=EURUSD,GBPUSD&kType=2&limit=5"
headers = {
"accept": "application/json"
"token": "Your Token"
}
response = requests.get(url, headers=headers)
print(response.text)
{
"code": 0,
"msg": null,
"data": {
"EURUSD": [
{
"tu": 1108.4808,
"c": 1.08058,
"t": 1741239000000,
"v": 1026,
"h": 1.08064,
"l": 1.08016,
"o": 1.08023
}
],
"GBPUSD": [
{
"tu": 1131.40863,
"c": 1.29028,
"t": 1741239000000,
"v": 877,
"h": 1.29031,
"l": 1.28982,
"o": 1.28986
}
]
}
}