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": 6827.42,
"o": 6886.85,
"h": 6899.85,
"l": 6801.79,
"t": 1765573268000,
"v": 3086000000,
"tu": 21106572620000,
"ch": -73.59,
"chp": -1.07,
"ts": 0
},
"DJI": {
"s": "DJI",
"ld": 48458.06,
"o": 48714.75,
"h": 48886.86,
"l": 48334.1,
"t": 1765574400000,
"v": 992800000,
"tu": 48155853266000,
"ch": -245.96,
"chp": -0.51,
"ts": 0
}
}
}