buy
, sell
いずれかを指定します。one_direction
: 両建てなし
two_direction
: 両建てあり
netout
: ネットアウト{'id': 123456789,'order_type': 'market','quantity': '1.0','disc_quantity': '0.0','iceberg_total_quantity': '0.0','side': 'buy','filled_quantity': '1.0','price': 27.087,'created_at': 12345,'updated_at': 12346,'status': 'filled','leverage_level': 1,'source_exchange': 'QUOINE','product_id': 83,'margin_type': None,'take_profit': None,'stop_loss': None,'trading_type': 'spot','product_code': 'CASH','funding_currency': 'JPY','crypto_account_id': None,'currency_pair_code': 'XRPJPY','average_price': 0.0,'target': 'spot','order_fee': 0.0,'source_action': 'manual','unwound_trade_id': None,'trade_id': None,'client_order_id': None}
2
or 4
が指定できます。buy
, sell
いずれかを指定します。one_direction
: 両建てなし
two_direction
: 両建てあり
netout
: ネットアウト"cross"
,"isolated"
のいずれか。
指定しない場合は "cross"
になります。{'id': 123456789,'order_type': 'market','quantity': '1.0','disc_quantity': '0.0','iceberg_total_quantity': '0.0','side': 'buy','filled_quantity': '1.0','price': 27.152,'created_at': 12345,'updated_at': 12346,'status': 'filled','leverage_level': 4,'source_exchange': 'QUOINE','product_id': 83,'margin_type': 'cross','take_profit': '0.0','stop_loss': '0.0','trading_type': 'cfd','product_code': 'CASH','funding_currency': 'JPY','crypto_account_id': None,'currency_pair_code': 'XRPJPY','average_price': 0.0,'target': 'open','order_fee': 0.0,'source_action': 'manual','unwound_trade_id': None,'trade_id': '98765','client_order_id': None}
{"order": {"order_type": "limit","product_id": 5,"side": "buy","quantity": 0.1,"price": 1000000}}
{"order": {"order_type": "market","product_id": 5,"side": "buy","quantity": 0.1}}
{"order": {"order_type": "market_with_range","product_id": 5,"side": "buy","quantity": 0.1,"price_range": 1000}}
{"order": {"order_type": "stop","product_id": 5,"side": "buy","quantity": 0.1,"price": 10000}}
# トレール幅を価格で指定する場合{"order": {"order_type": "trailing_stop","product_id": 5,"side": "buy","quantity": 0.1,"trailing_stop_type": "fiat","trailing_stop_value": 10000}}# トレール幅を価格の変動割合で指定する場合"order": {"order_type": "trailing_stop","product_id": 5,"side": "buy","quantity": 0.1,"trailing_stop_type": "percentage","trailing_stop_value": 10}}
client_order_id
はAPI新規注文時にで送信できる最大36byteの文字列です。
全ての注文で一意である必要があり、取引システム等で注文を識別するために使用できます。
注文を作成する時に一意の client_order_id
を指定するとリクエストの認証に使用されるJWTからnonceパラメータを省略できます。
これによりトレーディングシステムは競合状態のリスク無しで並行して注文する事が可能です。
APIは最近使用した100個の client_order_id
のパラメーターを検証します。
その為100を超える注文を出した後に、以前使用した値を再利用した場合は予期しない動作をする場合があります。
client_order_id
の再利用にはご注意ください。