我怎样才能在ccxt下一个binance期货的市场订单? 与ccxt的binance期货交易已经实现
https://github.com/ccxt/ccxt/pull/5907
在这篇文章中,他们建议使用以下代码行:
^{pr2}$上面这一行是用JavaScript编写的。python中的等价行是什么样子的? 像这样我得到一个错误:
binance_futures = ccxt.binance({ 'option': { defaultMarket: 'futures' } })
NameError: name 'defaultMarket' is not defined
在^{周围加上引号:
正确答案是
'defaultType'
(而不是defaultMarket
)必须用引号括起来,但值必须是'future'
(不是'futures'
)相关问题 更多 >
编程相关推荐