Batch New Orders

Create multiple new orders from a single request

POST https://api.ajaib.co.id/coin/internal/v1/order/batch

Functionality: Creates a list of new orders belonging to the exchange client's trading account.

This endpoint's purpose is to allow exchange clients to submit a batch of several instructions i.e. create orders towards the exchange at one go.

A successful response returned simply means the exchange has received (order) instructions to act upon. However, it is no guarantee all (order) instructions have been processed successfully.

Authentication: Required

Request Body

Name
Type
Mandatory
Description

symbol

string

Symbol of trading pair. Refer to this

orders

Order

List of new orders

Request Body Object > Order

Name
Type
Mandatory
Description

side

string

Side of order book. Refer to this

type

string

Type of order. Refer to this

price

decimal

Price of order. Mandatory for order type LIMIT & LIMIT MAKER

quantity

decimal

Quantity of order. Mandatory for order type LIMIT & LIMIT MAKER

Request Body Sample

{
    "symbol": "BTC_USDT",
    "orders": [
        {
            "side": "BUY",
            "type": "LIMIT",
            "price": 1.99,
            "quantity": 95.24
        }, 
        {
            "side": "BUY",
            "type": "LIMIT",
            "price": 1.98,
            "quantity": 154.24
        },
        {
            "side": "BUY",
            "type": "LIMIT",
            "price": 1.97,
            "quantity": 254.24
        }
    ]
}

Response Body

Name
Type
Description

order_id

long

Unique identifier generated by Ajaib exchange for orders submitted successfully

status

Order

Status of order. Refer to this

[
    {
        "order_id": 123,
        "status": "NEW"
    },
    {
        "order_id": 456,
        "status": "NEW"
    },
    {
        "order_id": 789,
        "status": "NEW"
    }
]

Last updated