5
Follow
5
Followers
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交易所得统一账户?请问如何修改?
//账户里面是有资金的,但是无法获得
Related Recommendations
Inventor Quant Workflow FAQ (Continuously Updated)Financial Magic Zone Global KOL RecruitmentFAQ Summary (Updating...)PINE Language Introductory Tutorial of FMZ QuantPrimary Tutorial of Strategy Writing with FMZ Quant Trading Platform (Must Read)Getting Started with FMZ Quant Trading Platform (Must Read)MyLanguage DocFMZ PINE Script DocNotes & Explanation of Futures Reverse Doubling Algorithm StrategySolutions to Obtaining Docker Http Request Message
Comment
All comments (2)
搞定了,留个脚印给别人:Log("account.totalAvailableBalance:",account.Info.result.list[0].totalAvailableBalance)
3 years ago
交易所合约分币本位、U本位合约,虽然都有永续合约。但是是币本位或者U本位是根据交易对区分的,可以看下这个系列文章:
https://www.fmz.com/digest-topic/6857
3 years ago
- 1
