River Markets Order Books API

The Order Books API from River Markets — 2 operation(s) for order books.

Operations 2

GET /v1/orderbooks/generic-asset/{generic_asset_id} Get Generic Asset Orderbook #
GET /v1/orderbooks/{river_id} Get Orderbook #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/river-markets-order-books-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

river-markets-order-books-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: River Markets Orderbooks API
  description: '# Getting Started


    River Markets provides users with a unified prime brokerage interface for prediction markets, including

    - Liquidity aggregation

    - Order routing

    - Market and data search


    This API guide will help you get up and running quickly.'
  contact:
    name: River Markets
    url: https://rivermarkets.com/
  license:
    name: Proprietary
  version: 1.0.0
servers:
- url: https://api.rivermarkets.com
security:
- SignedRequestKeyId: []
  SignedRequestTimestamp: []
  SignedRequestSignature: []
- BearerAuth: []
tags:
- name: Order Books
paths:
  /v1/orderbooks/generic-asset/{generic_asset_id}:
    get:
      tags:
      - Order Books
      summary: Get Generic Asset Orderbook
      description: 'Get merged orderbook for a generic asset (basket).


        Fetches orderbooks for all member instruments and merges them by summing

        quantity at each price level. Touch mechanism ensures subscriptions are active.'
      operationId: get_generic_asset_orderbook_v1_orderbooks_generic_asset__generic_asset_id__get
      parameters:
      - name: generic_asset_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Generic Asset Id
      - name: levels
        in: query
        required: false
        schema:
          type: integer
          maximum: 10
          minimum: 1
          description: Number of price levels to return
          default: 10
          title: Levels
        description: Number of price levels to return
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderbookResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/orderbooks/{river_id}:
    get:
      tags:
      - Order Books
      summary: Get Orderbook
      description: Get orderbook for a river_id.
      operationId: get_orderbook_v1_orderbooks__river_id__get
      parameters:
      - name: river_id
        in: path
        required: true
        schema:
          type: integer
          title: River Id
      - name: levels
        in: query
        required: false
        schema:
          type: integer
          maximum: 10
          minimum: 1
          description: Number of price levels to return
          default: 10
          title: Levels
        description: Number of price levels to return
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderbookResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OrderbookStatus:
      type: string
      enum:
      - ok
      - pending
      - not_found
      title: OrderbookStatus
    OrderbookData:
      properties:
        river_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: River Id
        generic_asset_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Generic Asset Id
        bids:
          items:
            $ref: '#/components/schemas/PriceLevelResponse'
          type: array
          title: Bids
        asks:
          items:
            $ref: '#/components/schemas/PriceLevelResponse'
          type: array
          title: Asks
        best_bid_price:
          anyOf:
          - type: number
          - type: 'null'
          title: Best Bid Price
        best_ask_price:
          anyOf:
          - type: number
          - type: 'null'
          title: Best Ask Price
        exchange_timestamp:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Exchange Timestamp
          description: Exchange orderbook timestamp (UTC)
      type: object
      required:
      - bids
      - asks
      title: OrderbookData
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    OrderbookResponse:
      properties:
        status:
          $ref: '#/components/schemas/OrderbookStatus'
        orderbook:
          anyOf:
          - $ref: '#/components/schemas/OrderbookData'
          - type: 'null'
        message:
          anyOf:
          - type: string
          - type: 'null'
          title: Message
      type: object
      required:
      - status
      title: OrderbookResponse
    PriceLevelResponse:
      properties:
        price:
          type: number
          title: Price
        qty:
          type: number
          title: Qty
        breakdown:
          additionalProperties:
            type: number
          type: object
          title: Breakdown
      type: object
      required:
      - price
      - qty
      title: PriceLevelResponse
  securitySchemes:
    SignedRequestKeyId:
      type: apiKey
      in: header
      name: X-River-Key-Id
      description: UUID of your API key (from Settings → API Keys).
    SignedRequestTimestamp:
      type: apiKey
      in: header
      name: X-River-Timestamp
      description: Current unix seconds. Must be within 30s of server time.
    SignedRequestSignature:
      type: apiKey
      in: header
      name: X-River-Signature
      description: 'Base64 Ed25519 signature over the canonical request: METHOD\nPATH\nSORTED_QUERY\nTIMESTAMP\nSHA256(body) hex. See /api-reference/authentication for the full recipe.'
    BearerAuth:
      type: http
      scheme: bearer
      description: JWT bearer token for web client authentication.