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

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

Author: lijingxfdj, Created: 2023-06-04 16:45:14, Updated:

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交易所得统一账户?请问如何修改? //账户里面是有资金的,但是无法获得


More

lijingxfdj 搞定了,留个脚印给别人:Log("account.totalAvailableBalance:",account.Info.result.list[0].totalAvailableBalance)

发明者量化-小小梦 交易所合约分币本位、U本位合约,虽然都有永续合约。但是是币本位或者U本位是根据交易对区分的,可以看下这个系列文章: https://www.fmz.com/digest-topic/6857