import requests
url = "https://api.itick.org/indices/quotes?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": 6339.46,
"o": 6356.45,
"h": 6361.74,
"l": 6335.84,
"t": 1754581027000,
"v": 3628006356.45,
"tu": 23034242880000,
"ts": 0
},
"DJI": {
"s": "DJI",
"ld": 43872.75,
"o": 44075.48,
"h": 44076.1,
"l": 43855.44,
"t": 1754581027000,
"v": 1153444075.48,
"tu": 50670823978000,
"ts": 0
}
}
}