Type/to search
0
Follow
1
Followers
Continúe solicitando ayuda para obtener información de la cuenta
Help
Created 2021-11-10 22:42:42  
 3
 1346

Disco de simulación de OKEX

Información sobre las posiciones en suspensión
img

ETH configurado en el disco duro

img

El código que se muestra a continuación también establece que el disco de simulación

// Configuración para el almacén simulado
exchanges[0].IO("simulate", true)
// Configuración de contrato para toda la vida
exchanges[0].SetContractType("swap")
// Leer el estado actual de las cosas
var ticker0 = exchanges[0].GetTicker()
Log("High:", ticker0.High, "Low:", ticker0.Low, "Sell:", ticker0.Sell, "Buy:", ticker0.Buy, "Last:", ticker0.Last, "Volume:", ticker0.Volume)
var position0 = exchanges[0].GetPosition()
if (position0.length > 0) {
Log (contrato de permanencia de las exchanges)[0] Amount:", position0[0].Amount, "FrozenAmount:", position0[0].FrozenAmount, "Price:",position0[0].Price, "Profit:", position0[0].Profit, "Type:", position0[0].Type,
"ContractType:", position0[0].ContractType)
} else {
Log ("La posición está vacía")
}
var account = exchange.GetAccount()
Log "Información de la cuenta, Balance:", account.Balance, "FrozenBalance:", account.FrozenBalance, "Stocks:"
account.Stocks, "FrozenStocks:", account.FrozenStocks)

img
El resultado es que no se puede leer la información. . . . . . . . . . . . . . .

Related Recommendations
Comment
All comments (3)

    谢谢哈

    5 years ago

    先弄明白币本位合约,U本位合约。平台的入门帖子看下。
    https://www.fmz.com/digest-topic/6857

    5 years ago

    ETH-USD 是币本位合约,设置为ETH_USDT交易对

    5 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)