Type/to search
5
Follow
5
Followers
Về vấn đề lấy thông tin tài khoản từ sàn giao dịch bybit
Help
Created 2023-06-04 16:45:14  
 2
 1186

function main() {
// Initialize Exchange
exchange.SetContractType("swap")
// Nhận thông tin tài khoản
var account = exchange.GetAccount()
Log (("tài liệu tài khoản, Balance:", account.Balance, "FrozenBalance:", account.FrozenBalance, "Stocks:",
account.Stocks, "FrozenStocks:", account.FrozenStocks)
}
// In là: thông tin tài khoản, Balance: 0 Frozen
// Mã trên không thể truy cập vào tài khoản thống nhất của giao dịch bybit? Làm thế nào để sửa đổi?
// Có tiền trong tài khoản nhưng không thể truy cập

Related Recommendations
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
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)