Self Trading
Creates a new self-trading order
POST
https://api.ajaib.co.id/coin/internal/v1/order/self-trading
Functionality: Creates a new "self-trading" order. Only available for use via (internal market maker) exchange client.
Authentication: Required
Request Body
Name
Type
Mandatory
Description
price
decimal
Price of order. Mandatory for order type LIMIT
quantity
decimal
Quantity of order. Mandatory for order type LIMIT
Request Body Sample
{
"symbol": "BTC_USDT",
"price": 27074.16,
"quantity": 0.0001
}
Response Body
Name
Type
Description
buy_order_id
long
Unique identifier generated by Ajaib exchange for orders submitted successfully
sell_order_id
long
Unique identifier generated by Ajaib exchange for orders submitted successfully
{
"buy_order_id": 12345678,
"sell_order_id": 12345679
}
Last updated