资源加载中... loading...

ok合约无法下单,提示余额不足,但账户有足够的余额,这是什么问题呀

Author: 丁挽歌, Created: 2021-08-12 00:20:45, Updated:

Buy(3228.32, 1): map[code:1 data:[map[clOrdId:9e7f8f03cd7548BCbbcAF0CCBAC95304 ordId: sCode:51119 sMsg:Order placement failed due to insufficient balance. tag:]] msg:]


More

husthaixiao okex 默认交易对为BTC_USD,设置合约为当周,合约为币本位合约,所以你需要在代码里面设置交易对为你自己需要的,比如 exchange.IO("currency", "ETC_USDT") ,然后把合约类型设置为永续合约exchange.SetContractType("swap"),最后可以交易成功

小草 ok合约是张,确定没有弄错币本位和U本位