Skip to content

Latest commit

 

History

History

try-binance

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

binance

  • 交易所 http/ws api 验证

usage

  • 设置 api-key 到 .env 文件, 参见根目录的 .env.local
BINANCE_API_KEY="your_binance_api_key"
BINANCE_SECRET_KEY="your_binance_secret_key"
BINANCE_TESTNET=
  • 运行(下面的运行脚本, 会自动安装依赖包):
# cd repo-root-dir/
# then, run:
task quant:bn:r -- ws/run02_spot_agg_trade.py

# ws + futures
task quant:bn:r -- ws/run03_futures_agg_trade.py


# restapi + spot
task quant:bn:r -- rest/run01_spot.py

# restapi + futures
task quant:bn:r -- rest/run02_futures.py

币安合约

python sdk

data

reference