注文情報
注文情報の取得
GET
https://api.liquid.com/orders
過去の注文や未約定の注文を取得出来ます。 一定期間経過した情報は取得が出来なくなります。 その際は取引レポートをご利用ください。
Query Parameters
{
'id': 123456789,
'order_type': 'market',
'quantity': '1.0',
'disc_quantity': '0.0',
'iceberg_total_quantity': '0.0',
'side': 'buy',
'filled_quantity': '1.0',
'price': 30.993,
'created_at': 12345,
'updated_at': 12345,
'status': 'filled',
'leverage_level': 4,
'source_exchange': None,
'product_id': 83,
'margin_type': 'isolated',
'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': 30.993,
'target': 'open',
'order_fee': '0.0',
'source_action': 'netout_open',
'unwound_trade_id': None,
'trade_id': 87350963,
'client_order_id': None,
'settings': None,
'trailing_stop_type': None,
'trailing_stop_value': None,
'executions': [
{
'id': 12345,
'quantity': '1.0',
'price': '30.993',
'taker_side': 'buy',
'created_at': 12345,
'my_side': 'buy'
}
],
'stop_triggered_time': None
}
未約定注文の編集
PUT
https://api.liquid.com/orders/{id}
まだ約定していない注文の編集が出来ます。
Path Parameters
Request Body
{
'id': 12345,
'order_type': 'limit',
'quantity': '3.0',
'disc_quantity': '0.0',
'iceberg_total_quantity': '0.0',
'side': 'buy',
'filled_quantity': '0.0',
'price': 120.0,
'created_at': 12345,
'updated_at': 12345,
'status': 'live',
'leverage_level': 1,
'source_exchange': 'QUOINE',
'product_id': 5,
'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': 'BTCJPY',
'average_price': 0.0,
'target': 'spot',
'order_fee': 0.0,
'source_action': 'manual',
'unwound_trade_id': None,
'trade_id': None,
'client_order_id': None
}
SL, TPの編集
PUT
https://api.liquid.com/{id}/update_tpsl
まだ約定してない注文にTP(決済指値), SL(決済逆指値)の設定や更新が出来ます。
Path Parameters
Request Body
{
"id": 12345,
"order_type": "limit",
"margin_type": null,
"quantity": "0.02",
"disc_quantity": "0.0",
"iceberg_total_quantity": "0.0",
"side": "sell",
"filled_quantity": "0.0",
"price": "520.0",
"created_at": 12345,
"updated_at": 12345,
"status": "live",
"leverage_level": 4,
"source_exchange": "QUOINE",
"product_id": 1,
"product_code": "CASH",
"funding_currency": "USD",
"currency_pair_code": "BTCUSD",
"take_profit": "500.0",
"stop_loss": "550.0",
"client_order_id": null
}
最終更新