Skip to main content
POST
/
v1
/
custom-assets
Create Custom Asset
curl --request POST \
  --url https://api.rivermarkets.com/v1/custom-assets \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "subaccount_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "river_ids": [
    123
  ]
}
'
{
  "custom_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "subaccount_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "members": [
    {
      "river_id": 123,
      "exchange_value": 123,
      "exchange_name": "<string>",
      "tick_size_price": 123,
      "tick_size_qty": 123,
      "minimum_order_size": 123,
      "neg_risk": true,
      "name": "<string>",
      "status": "active",
      "ticker": "<string>",
      "token_id_yes": "<string>",
      "token_id_no": "<string>",
      "slug": "<string>",
      "expiration_datetime": "2023-11-07T05:31:56Z",
      "neg_risk_id": "<string>",
      "condition_id": "<string>",
      "description": "<string>",
      "category": "Other",
      "rank": 123
    }
  ],
  "inserted_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "description": "<string>"
}

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 schema for creating a new custom asset.

subaccount_id
string<uuid>
required
name
string
required
Maximum string length: 255
description
string | null
river_ids
integer[] | null

Response

Successful Response

Response schema for a custom asset with its members (detail view).

custom_asset_id
string<uuid>
required
subaccount_id
string<uuid>
required
name
string
required
members
MarketSearchResult · object[]
required
inserted_at
string<date-time>
required

Creation timestamp (UTC)

updated_at
string<date-time>
required

Last update timestamp (UTC)

description
string | null