import requests
url = "https://api.itick.org/stock/klines?region=HK&codes=700,9988&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": {
"700": [
{
"tu": 56119888070.5,
"c": 534.5,
"t": 1741239000000,
"v": 104799385,
"h": 536,
"l": 534.5,
"o": 535
}
],
"9988": [
{
"tu": 75404622753.1,
"c": 140.1,
"t": 1741239000000,
"v": 538602171,
"h": 140.3,
"l": 139.8,
"o": 139.9
}
]
}
}