Skip to main content
DELETE
/
nbx
/
v2
/
emm
/
orders
/
batch
cURL Example
curl -X POST "localhost:80/nbx/v2/emm/orders/batch" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '[
    {"outcomeId": "6bee554c-d5ee-4ada-b283-112746883542", "price": 0.35, "qty": 100, "currency": "COIN", "tif": "GTC"},
    {"outcomeId": "8d18ea33-2953-469f-a5c9-d407d333529d", "price": 0.25, "qty": 200, "currency": "COIN","tif": "GTC"},
    {"outcomeId": "b130bfbf-ea68-4b37-9fec-e911ebaf36d9", "price": 0.15, "qty": 300, "currency": "COIN",  "tif": "GTC"}
]'
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174002",
    "outcomeId": "123e4567-e89b-12d3-a456-426614174000",
    "marketId": "123e4567-e89b-12d3-a456-426614174003",
    "price": 0.125,
    "qty": 4200,
    "originalQty": 4200,
    "currency": "COIN",
    "timestamp": "2023-10-05T12:00:00Z",
    "status": "FILLED",
    "flags": "ABC12345"
  }
]

Body

application/json

The server-generated UUID of the order to be cancelled

Response

Cancellation requests sent to the queue.

id
string

The unique identifier of the order

Example:

"123e4567-e89b-12d3-a456-426614174002"

outcomeId
string

The ID of the outcome associated with this order

Example:

"123e4567-e89b-12d3-a456-426614174000"

marketId
string

The ID of the market associated with this order

Example:

"123e4567-e89b-12d3-a456-426614174003"

price
number

The limit price at which the order is placed

Example:

0.125

qty
number

The remaining quantity of the order, denominated in Minimum Currency Units

Example:

4200

originalQty
number

The original quantity of the order, denominated in Minimum Currency Units

Example:

4200

currency
string

The currency in which the order is denominated

Example:

"COIN"

timestamp
string

The timestamp when the order was placed

Example:

"2023-10-05T12:00:00Z"

status
string

The current status of the order

Example:

"FILLED"

flags
string

The trader-specified metadata associated with the order

Example:

"ABC12345"