4
关注
3
关注者

关于bybit交易所得账户信息获得问题

创建于: 2023-06-04 16:45:14, 更新于:
comments   2
hits   571

function main() { //初始化交易所 exchange.SetContractType(“swap”) //获取账户信息 var account = exchange.GetAccount() Log(“账户信息,Balance:”, account.Balance, “FrozenBalance:”, account.FrozenBalance, “Stocks:”, account.Stocks, “FrozenStocks:”, account.FrozenStocks) } //打印出来的是:账户信息,Balance: 0 FrozenBalance: 0 Stocks: 0 FrozenStocks: 0 //以上代码无法访问bybit交易所得统一账户?请问如何修改? //账户里面是有资金的,但是无法获得

更多内容
全部留言
avatar of lijingxfdj
lijingxfdj
搞定了,留个脚印给别人:Log("account.totalAvailableBalance:",account.Info.result.list[0].totalAvailableBalance)
2023-06-04 17:29:22
avatar of 发明者量化-小小梦
发明者量化-小小梦
交易所合约分币本位、U本位合约,虽然都有永续合约。但是是币本位或者U本位是根据交易对区分的,可以看下这个系列文章: https://www.fmz.com/digest-topic/6857
2023-06-05 22:39:06