add (authorized)
Places an order on behalf of a client. Only for masters
POST authorized/add
Method works similar to the api/add
with two additional fields:
• clientId: The ID of the client for whom the order is placed. • liquidation: Optional boolean flag to indicate if the trade is a liquidation (default is false).
Please note, that authorized QS orders are not available yet. QS-related fields will be ignored.
{
"instrument": "BTC-USD",
"clientOrderId": 123456789,
"price": 999900000000,
"size": 10000000,
"side": "bid",
"type": "limitIOC",
"clientId": 5,
"liquidation": true
}
{
"id": 1245,
"remainingSize": 8000000,
"clientOrderId": 123456789,
"cancelReason": 2,
"deals": [
{
"counterpartyId": 42,
"id": 23,
"price": 999900000000,
"size": 2000000,
"volume": 19998000000,
"delta": 0
}
]
}
{
"error": 2
}
Last updated