Browse Source

更新 'get_trades.py'

master
tzquant_zq 8 months ago
parent
commit
5198456bee
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      get_trades.py

+ 13
- 1
get_trades.py View File

@ -16,4 +16,16 @@ query_param = f"platform={platform}&symbol={symbol_other}&from_id={from_id}&star
response = requests.request( response = requests.request(
"GET", host_list[count % 2] + url + "?" + query_param, headers=headers, timeout=10 "GET", host_list[count % 2] + url + "?" + query_param, headers=headers, timeout=10
) )
response.json()
response.json()
# [
# {
# "a": 26129, // 归集成交ID
# "p": "0.01633102", // 成交价
# "q": "4.70443515", // 成交量
# "f": 27781, // 被归集的首个成交ID
# "l": 27781, // 被归集的末个成交ID
# "T": 1498793709153, // 成交时间
# "m": true, // 是否为主动卖出单
# }
# ]

Loading…
Cancel
Save