Sumber dimuat naik... memuat...

Masalah mendapatkan maklumat akaun

Penulis:Pergilah., Dicipta: 2021-11-07 14:59:43, Dikemas kini:

OKEX analog mempunyai simpanan Perdagangan BTCUSD yang jelas dan kekal

全仓
买入

Tempoh urus niaga kuantiti harga jumlah urus niaga arah kecairan yuran

2021-11-06
13:45:19

1.0001 BTC	61,496.6 USD	1.0001 BTC	吃单	-0.00050002 BTC

Kod var position = exchange.GetPosition (dalam bahasa Inggeris) Log ((position.length,position.length)) if ((position.length > 0) { Log ((Amount:, position[0].Amount, FrozenAmount:, position[0].FrozenAmount, Price:, position[0].Price, Profit: , position[0].Profit, Type: , position[0].Type, ContractType: , position[0].ContractType) {C:$0000FF} ------------------- Menampilkan maklumat sebagai 2021-11-07 14:56:50 Maklumat position.length 0 2021-11-07 14:56:50 Maklumat {instrument:ETH-USD-SWAP,InstrumentID:ETH-USD-SWAP} Kontrak penubuhan: swap 2021-11-07 14:56:50 Maklumat yang ditambah bursa untuk bursa niaga hadapan: Futures_OKCoin 2021-11-07 14:56:50 Maklumat Bursa semasa: Futures_OKCoin

Apa yang menyebabkan data tidak dapat dibaca? API telah menambah maklumat API analog


Lebih lanjut

Pencipta Kuantiti - Impian KecilSelain itu, pegangan anda adalah BTC, tetapi pegangan yang anda baca sekarang adalah ETH, dan pasti akan kembali sebagai `` [] ` `.

Pencipta Kuantiti - Impian KecilAdakah anda menggunakan ``exchange.IO (("simulate", true) `` untuk menukar cakera analog?

Pergilah.Terima kasih. Saya baca mesej anda.

Pencipta Kuantiti - Impian KecilAdakah semua objek pertukaran anda telah menukar piringan analog? Semak sendiri, dengan teliti.

Pergilah./upload/asset/23ca3f81151f6e07e79d3.jpg /upload/asset/23bf3ecd55cf97042c92f.jpg /upload/asset/23c46a7af1a3ef0ab85c7.jpg Kodnya seperti ini. Log (("exchanges[0].GetTicker()", exchanges[0].GetTicker()) Log (("exchanges[1].GetTicker("), exchanges[1].GetTicker()) Log (("exchanges[0]. GetPosition (()", exchanges[0].GetPosition (()) Log (("exchanges[1]. GetPosition("), exchanges[1]. GetPosition (()) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ GetPosition ((() [{"Info":{"deltaBS":"","margin":"","availPos":"","cTime":"1636376761683","liqPx":"","mmr":"0.00116299320592","posCcy":"","thetaBS":"","thetaPA":"","vegaPA":"","instruction:":":"ETH-USDId-SWAP","interest":"0","liab":"","mgnRatio":":"21842.219147614658","deltaPA":"","imr:":":":"0.001445118911677","Valopt:":"Sposide:":":"net","clever"":":"ETHammaBS","Id",""clast""""""posed""""posed""""posed""""posed""""posed""""notional""Undertrade:"""thetaPA":"""thetaPA""""""""posed""VegaPA""""""""""instruction:":":":"thetaBS":":"""thetaPA""""posed --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Ini adalah satu daripada dua perkara yang Ini adalah mesej yang dikembalikan Sila tanyakan: 1) Mengapa kotak 1 kosong dalam dokumen log? 2) Maklumat yang dikembalikan juga tidak mempunyai maklumat pembukaan gudang apa?

Pergilah./upload/asset/23ca3f81151f6e07e79d3.jpg /upload/asset/23bf3ecd55cf97042c92f.jpg /upload/asset/23c46a7af1a3ef0ab85c7.jpg Kodnya seperti ini. Log (("exchanges[0].GetTicker()", exchanges[0].GetTicker()) Log (("exchanges[1].GetTicker("), exchanges[1].GetTicker()) Log (("exchanges[0]. GetPosition (()", exchanges[0].GetPosition (()) Log (("exchanges[1]. GetPosition("), exchanges[1]. GetPosition (()) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ GetPosition ((() [{"Info":{"deltaBS":"","margin":"","availPos":"","cTime":"1636376761683","liqPx":"","mmr":"0.00116299320592","posCcy":"","thetaBS":"","thetaPA":"","vegaPA":"","instruction:":":"ETH-USDId-SWAP","interest":"0","liab":"","mgnRatio":":"21842.219147614658","deltaPA":"","imr:":":":"0.001445118911677","Valopt:":"Sposide:":":"net","clever"":":"ETHammaBS","Id",""clast""""""posed""""posed""""posed""""posed""""posed""""notional""Undertrade:"""thetaPA":"""thetaPA""""""""posed""VegaPA""""""""""instruction:":":":"thetaBS":":"""thetaPA""""posed --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Ini adalah satu daripada dua perkara yang Ini adalah mesej yang dikembalikan

Pencipta Kuantiti - Impian KecilJika objek pertukaran pertama anda dalam skrin skrin tidak ditetapkan sebagai ETH, maka untuk mendapatkan pegangan ETH, anda pasti tidak akan mendapat pegangan BTC, anda perlu mengakses objek pertukaran kedua, menggunakan exchanges[1] dan tidak menggunakan exchange. Lihat arahan mengenai pertukaran dan pertukaran dalam dokumentasi API.

Pergilah./upload/asset/23ca3f81151f6e07e79d3.jpg Jika saya boleh menetapkannya di sini, saya rasa itulah sebabnya saya menetapkan akaun saya.

Pencipta Kuantiti - Impian KecilDengan mengambil perhatian kepada perdagangan yang ditetapkan semasa menambahkan objek bursa secara langsung, anda juga boleh menukar pasangan dagangan dalam kod dasar, menggunakan exchange. SetCurrency (XXX_YYY) setup untuk menetapkan semula kod kontrak. Lihat panduan baru: https://www.fmz.com/digest-topic/6857 Untuk mengetahui konsep dan fungsi asas ini.

Pergilah.Saya ingin bertanya, adakah ini adalah tetapan kod atau tetapan OE?

Pencipta Kuantiti - Impian KecilPeriksa sama ada pasangan transaksi ditetapkan dengan salah.

Pergilah.var Ct ='swap' // Jenis kontrak untuk kontrak kekal Lihat dokumentasi API fungsi utama (() { // Hapus log, jika tidak diperlukan, boleh dipadamkan LogReset ((1) // Tetapkan ketepatan bilangan kecil harga 2 bit dan ketepatan bilangan kecil satu unit di bawah jenis 3 bit exchange.SetPrecision (QuotePrecision, BasePrecision) // Tetapkan sebagai simulan exchange.IO (("simulate", true) Pergilah. Log (("Bertukar semasa:", exchange.GetName (()))) Log (("Strategi dimulakan") var eType = 0 var eName = exchange.GetName (dalam bahasa Inggeris) var patt = /Futures_/ if (patt.test ((eName)) { Log (("Bertukar yang ditambahkan untuk bursa niaga hadapan:", eName, "#FF0000") eType = 1 if (Ct == "") { throw "Ct kontrak ditetapkan sebagai kosong" } else { Log ((exchange.SetContractType ((Ct), "menetapkan kontrak:", Ct, "#FF0000") {C:$0000FF} } else { Log (("Tambah Bursa untuk Bursa Saham:", eName, "#32CD32") {C:$0000FF} var lastMsg = "" var position = exchange.GetPosition (dalam bahasa Inggeris) Log (("position.length", position.length) if (position.length > 0) { Log (("Amount:", position[0].Amount, "FrozenAmount:", position[0].FrozenAmount, "Price:", position[0].Price, "Profit:", position[0].Profit, "Type:", position[0].Type, "ContractType:", position[0].ContractType) {C:$0000FF} Saya telah menambahkan BTC pada masa persediaan cakera tetapi saya tidak tahu mengapa log keluar adalah ETH. Strategi: Kod ujian kuki (Dibenarkan pada 2021-11-07 23:07:18) Tarikh: Dicipta pada 2021-11-06 13:43:16 Terbaru bermula pada 2021-11-08 12:41:18 Dihentikan pada 2021-11-08 12:41:25 Status: Siklus K-Line 3 minit, dihentikan Dihoskan di 546412: 8.218.123.197 - linux/amd64 (VPS-12054), ID: 394619 Simulasi niaga hadapan OKEX / Simulasi niaga hadapan ETOKEX / BTC

Pergilah.Bertukar.