Skip to main content
POST
/
api
/
v1
/
order
/
place-batch
Batch Place Orders
curl --request POST \
  --url https://api.ekiden.fi/api/v1/order/place-batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "request": [
    {
      "close_on_trigger": true,
      "margin_mode": "Cross",
      "order_type": "Limit",
      "post_only": true,
      "price": "<string>",
      "qty": "<string>",
      "reduce_only": true,
      "side": "Sell",
      "sub_account_address": "<string>",
      "symbol": "BTCUSDC",
      "time_in_force": "GTC",
      "expire_time": "1672531200000",
      "order_link_id": "<unknown>",
      "slippage_tolerance": "<unknown>",
      "smp_group": 1,
      "smp_type": "<unknown>",
      "tpsl": "<unknown>",
      "trigger": "<unknown>"
    }
  ]
}
'
{
  "exit_info": [
    {
      "Error": {
        "code": 1,
        "msg": "<string>"
      }
    }
  ],
  "result": [
    {
      "order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "order_link_id": "<unknown>"
    }
  ],
  "time": "1672531200000"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Batch place order request. TODO: Maximum 20 orders per request TODO: Rate limiting (10 reqs per sec, 20 * 10 = 200 orders in one sec)

request
object[]
required

Response

200 - application/json

Orders placed

Response of batch place orders.

exit_info
object[]
required

Information about the exit status of each order in the batch.

result
object[]
required
time
string<date-time>
required
Example:

"1672531200000"