如何在 ccxt 中为币安期货下市价单?使用 ccxt 进行币安期货交易已经实施
https://github.com/ccxt/ccxt/pull/5907
Run Code Online (Sandbox Code Playgroud)
在这篇文章中,他们建议使用这行代码:
let binance_futures = new ccxt.binance({ options: { defaultMarket: 'futures' } })
Run Code Online (Sandbox Code Playgroud)
上面这行是用 JavaScript 编写的。python 中的等效行会是什么样子?像这样我得到一个错误:
binance_futures = ccxt.binance({ 'option': { defaultMarket: 'futures' } })
NameError: name 'defaultMarket' is not defined
Run Code Online (Sandbox Code Playgroud)