2025-12-19 09:46:11 +08:00
|
|
|
import requests
|
2025-10-31 11:33:34 +08:00
|
|
|
|
2025-12-19 09:46:11 +08:00
|
|
|
headers = {
|
|
|
|
|
'accept': 'application/json, text/plain, */*',
|
|
|
|
|
'accept-language': 'zh-CN,zh;q=0.9',
|
|
|
|
|
'cache-control': 'no-cache',
|
|
|
|
|
'origin': 'https://www.websea.com',
|
|
|
|
|
'pragma': 'no-cache',
|
|
|
|
|
'priority': 'u=1, i',
|
|
|
|
|
'referer': 'https://www.websea.com/',
|
|
|
|
|
'sec-ch-ua': '"Not;A=Brand";v="99", "Google Chrome";v="139", "Chromium";v="139"',
|
|
|
|
|
'sec-ch-ua-mobile': '?0',
|
|
|
|
|
'sec-ch-ua-platform': '"Windows"',
|
|
|
|
|
'sec-fetch-dest': 'empty',
|
|
|
|
|
'sec-fetch-mode': 'cors',
|
|
|
|
|
'sec-fetch-site': 'same-site',
|
|
|
|
|
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36',
|
|
|
|
|
}
|
2025-12-11 11:05:02 +08:00
|
|
|
|
2025-12-19 09:46:11 +08:00
|
|
|
params = {
|
|
|
|
|
'symbol': 'ETH-USDT',
|
|
|
|
|
'period': '30min',
|
|
|
|
|
'start': '1763480074',
|
|
|
|
|
'end': '1766072134',
|
|
|
|
|
}
|
2025-12-11 11:05:02 +08:00
|
|
|
|
2025-12-19 09:46:11 +08:00
|
|
|
response = requests.get('https://capi.websea.com/webApi/market/getKline', params=params, headers=headers)
|
|
|
|
|
|
|
|
|
|
print(response.json())
|