OKEX Simulator
Simulierte Positionsinformationen

ETH auf der Festplatte konfiguriert
Der Code sagt, dass die Simulationsscheibe so eingestellt ist.
// als Simulationslager eingestellt
exchanges[0].IO("simulate", true)
// als Dauervertrag eingestellt
exchanges[0].SetContractType("swap")
// Lesen Sie aktuelle Informationen
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 ((("Ein dauerhafter Vertrag für 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 (ohne Positionen)
}
var account = exchange.GetAccount()
"Bilanz", account.Balance, "FrozenBalance:", account.FrozenBalance, "Stocks:", "Bilanz:", "Bilanz:", "Bilanz:", "Bilanz:", "Bilanz:", "Bilanz:", "Bilanz:", "Bilanz:", "Bilanz:", "Bilanz:",
account.Stocks, "FrozenStocks:", account.FrozenStocks)

Das Ergebnis ist, dass ich die Nachricht nicht lesen kann. ▽ ▽ ▽ Ich habe immer mit Binance gearbeitet, aber ich habe nie mit OK gearbeitet.
- 1


