Skip to main content
POST
/
v1
/
complex-orders
Create Complex Order
curl --request POST \
  --url https://api.rivermarkets.com/v1/complex-orders \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "subaccount_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "river_id": 123,
  "custom_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "conditional_order_params": {
    "conditional_order_type": "TP",
    "trigger_order": {
      "order_type": "LIMIT",
      "qty": 123,
      "buy_flag": true,
      "price": 0.5,
      "stop_order_price": 0.5
    },
    "stop_order_price": 0.5,
    "parent_river_order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "parent_complex_order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}
'
{
  "complex_order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

x-api-key
string
header
required

API key for programmatic access. Generate one at app.rivermarkets.com under Settings → API Keys.

Body

application/json

Request body for creating a complex order (conditional order).

subaccount_id
string<uuid>
required

Subaccount to create the order under

river_id
integer | null

Instrument ID. Mutually exclusive with custom_asset_id.

custom_asset_id
string<uuid> | null

Custom asset basket ID. Mutually exclusive with river_id.

conditional_order_params
ConditionalOrderCreate · object

Conditional order parameters

Response

Successful Response

Schema for a complex order response (unified across all complex order types).

complex_order_id
string<uuid>
required

Unique complex order identifier