import requests
url = "https://api.itick.org/indices/ticks?region=GB&codes=SPX,DJI"
headers = {
"accept": "application/json"
"token": "Your Token"
}
response = requests.get(url, headers=headers)
print(response.text)
{
"code": 0,
"msg": null,
"data": {
"SPX": {
"s": "SPX",
"ld": 6338.25,
"t": 1754581081000,
"v": 1000000
},
"DJI": {
"s": "DJI",
"ld": 43874.46,
"t": 1754581081000,
"v": 100000
}
}
}