import requests
url = "https://api.itick.org/indices/depths?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",
"a": [
{
"po": 1,
"p": 0,
"v": 0,
"o": 1
}
],
"b": [
{
"po": 1,
"p": 0,
"v": 0,
"o": 1
}
]
},
"DJI": {
"s": "DJI",
"a": [
{
"po": 1,
"p": 0,
"v": 0,
"o": 1
}
],
"b": [
{
"po": 1,
"p": 0,
"v": 0,
"o": 1
}
]
}
}
}