天择量化公共接口文档
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
514 B

import requests
def get_sort_symbols_info(platform):
url = "http://43.133.213.20:8001/api/v1/get_sort_symbols/platform"
payload = {"platform": platform, "settle": settle}
response = requests.post(url, json=payload, timeout=5)
if response.status_code == 200:
return response.json()
else:
print(f"Error: {response.status_code}, {response.json()}")
return None
# 示例参数
platform = "gate"
# 发送请求
CoinInfo = get_sort_symbols_info(platform)
print(CoinInfo)