Browse Source

update

master
tzquant_zq 8 months ago
parent
commit
1356dd8db4
1 changed files with 5 additions and 6 deletions
  1. +5
    -6
      GetSortSymbols.py

+ 5
- 6
GetSortSymbols.py View File

@ -1,8 +1,8 @@
import requests import requests
def GetCoinInfo(coin, settle):
url = "http://43.133.213.20:8001/api/v1/get_sort_symbols/"
payload = {"coin": coin, "settle": settle}
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) response = requests.post(url, json=payload, timeout=5)
@ -14,9 +14,8 @@ def GetCoinInfo(coin, settle):
# 示例参数 # 示例参数
coin = "BTC"
settle = "USDT"
platform = "gate"
# 发送请求 # 发送请求
CoinInfo = GetCoinInfo(coin, settle)
CoinInfo = get_sort_symbols_info(platform)
print(CoinInfo) print(CoinInfo)

Loading…
Cancel
Save