0
Follow
1
Followers
og("当前交易所为", exchanges[0].GetName() )
Log("交易货币对=", new_symbol)
Log("开仓杠杆=", Leverage)
exchanges[0].SetContractType("swap") #设置合约类型
exchanges[0].SetCurrency(new_symbol)#设置货币对
exchanges[0].SetMarginLevel(Leverage)#设置杠杆
account = exchanges[0].GetAccount()
Log(account.Balance)
Log(account["Balance"])
Log(account["FrozenBalance"])
Log(account["FrozenStocks"])
Log(account["Stocks"])
Log出来的都是0 使用position就可以显示持仓。。。我想求当前账户可用金额 应该这么求呢?
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
