Skip to main content
POST
/
order-requests
/
batch
Create an order request (Coming soon)
curl --request POST \
  --url https://sandbox.api.btdx.io/order-requests/batch \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '
{
  "requests": [
    {
      "walletId": "<string>",
      "marketId": "<string>",
      "outcomeId": "<string>",
      "price": 123,
      "stake": 123,
      "keepWhenInPlay": true,
      "reference": "<string>",
      "commissionRateId": "<string>"
    }
  ]
}
'
{
  "_meta": {
    "_count": 123,
    "_page": {
      "_pageNumber": 123,
      "_pageSize": 123,
      "_totalElements": 123,
      "_totalPages": 123
    }
  },
  "ids": [
    {
      "errorCode": "<string>",
      "errorMessage": "<string>"
    }
  ]
}

Headers

authorization
string
required

Header with the accessToken for the current session

Body

application/json
requests
object[]
required

list of individual order requests

Required array length: 1 - 50 elements

Response

OK

_meta
object
ids
object[]

Order operation error