BitZ契約関連の概要
-
取引所に関する記事:
https://help.bitz.top/article/100001693
https://help.bit-z.com/cn/article/100002220 -
APIのドキュメント:
https://apidoc.bitz.cm/cn/
戦略の例
インタフェース使用に関する要約
-
テストアカウントの資産データ
/* 测试账户资产数据 { Info:map[ status:200 msg: data:map[ time:1.571122558e+09 estimate_BTC:0.01323647 estimate_USD:110.00 estimate_CNY:778.35 balances:[ map[ coin:BTC balance:0.00000000 positionMargin:0.00000000 unrlzPnl:0.00000000 estimate_BTC:0.00000000 estimate_USD:0.00 orderMargin:0.00000000 total:0.00000000 estimate_CNY:0.00 ] map[ unrlzPnl:0.00000000 estimate_CNY:0.00 estimate_USD:0.00 coin:ETH balance:0.00000000 positionMargin:0.00000000 orderMargin:0.00000000 total:0.00000000 estimate_BTC:0.00000000 ] map[unrlzPnl:0.00000000 total:0.00000000 estimate_CNY:0.00 coin:LTC balance:0.00000000 orderMargin:0.00000000 positionMargin:0.00000000 estimate_BTC:0.00000000 estimate_USD:0.00] map[coin:EOS orderMargin:0.00000000 estimate_CNY:0.00 balance:0.00000000 positionMargin:0.00000000 unrlzPnl:0.00000000 total:0.00000000 estimate_BTC:0.00000000 estimate_USD:0.00] map[balance:110.00000000 positionMargin:0.00000000 estimate_USD:110.00 estimate_CNY:778.35 coin:USDT orderMargin:0.00000000 unrlzPnl:0.00000000 total:110.00000000 estimate_BTC:0.01323647] map[unrlzPnl:0.00000000 estimate_CNY:0.00 orderMargin:0.00000000 total:0.00000000 estimate_BTC:0.00000000 estimate_USD:0.00 coin:BZ balance:0.00000000 positionMargin:0.00000000] ] ] time:1.571122558e+09 microtime:0.81880700 1571122558 source:api ] Stocks:0 FrozenStocks:0 Balance:0 FrozenBalance:0} */ -
インターフェース内のパラメータは,数値型である契約IDを伝送する必要があります.特定の契約のマッピング,契約の詳細を取得するために,最初に取引所のインターフェースにアクセスする必要があります.
-
契約は正向契約と逆向契約に分けられ,清算と計価は異なる.
-
通貨本位契約は通貨で決済する逆契約である (USDT以外の決済)
-
テストでは,ある種のレバレッジを保有している状態で,他のレバレッジ値で注文を出すことはできません.
map[status:-200 msg:Leverage error data: time:1.571130679e+09 microtime:0.37469600 1571130679 source:api] -
ポジションを保有する際に,平仓,もしレバレッジ値が同じでない場合は平仓できない,誤差:
map[status:-200 msg:Leverage error data: time:1.571366118e+09 microtime:0.74409100 1571366118 source:api] -
持仓がない場合,APIが持仓インターフェースにアクセスしたときに返される原始情報は:
{map[status:200 msg: data:[] time:1.571366357e+09 microtime:0.23304400 1571366357 source:api]} -
注文時に全仓分を入れ,全仓分を入れます.
-
ポジションを保有する時,下平ポジション方向の注文,ポジションを超えない時,口座には保証金が控えられない.平平ポジションを上回る部分には,口座の資金が保証金として控えられる.
- 1
