RivoMarkets Get Market API

The get-market API from RivoMarkets — 1 operation(s) for get-market.

GitHub OpenAPI

Operations 1

GET /v2/markets/{ref} Get Market #

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/rivo-markets:rivo-markets-get-market-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

rivo-markets-get-market-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rivo Get Market API
  version: '2'
  description: 'Prediction market data from Kalshi, Polymarket, Polymarket US and Gemini: whale trades, traders and their records, markets, backtests, and paper bots. Every route but the preview needs an API key from an active subscription.'
servers:
- url: https://api.rivo.markets
security:
- bearer: []
tags:
- name: get-market
paths:
  /v2/markets/{ref}:
    get:
      operationId: reference_get_market
      summary: Get Market
      description: 'Reads one market with every outcome''s price, bid and ask. On request it adds the order book, the whales, the price history and the newest whale trades. Docs: https://rivo.markets/docs/reference/get-market'
      tags:
      - get-market
      parameters:
      - name: ref
        in: path
        required: true
        description: The market's `ref`. You can take it from any row that names the market.
        schema:
          type: string
      - name: include
        in: query
        required: false
        description: 'The extra sections to add: `book`, `whales`, `call`, `history` or `trades`. Separate them with commas, or repeat the key. Each row of `trades` and each trader in `whales` counts toward your account''s 5,000 trades a day.'
        schema:
          type: string
      - name: range
        in: query
        required: false
        description: 'The period that `include=history` covers: `1h`, `1d` or `7d`.'
        schema:
          type: string
      responses:
        '200':
          description: 'Success: `{ success: true, data }`.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      data:
                        type: object
                        properties:
                          ref:
                            type: string
                            description: The market's ref. You can pass it to any `market` filter or to Get Market (https://rivo.markets/docs/reference/get-market). On a market of several outcomes, it names the whole event.
                          contract:
                            type: string
                            description: The ref of the exact contract. It is the same as `ref` on a market with one contract. On a market of several outcomes, such as a game with a moneyline and a spread, it tells the contracts apart. Pass it to Place Paper Order (https://rivo.markets/docs/reference/place-paper-order) or a market bot.
                          venueId:
                            type: string
                            description: 'The venue''s own id for that exact contract, so you can find it on the venue without parsing a ref: the ticker on Kalshi and Gemini (such as `KXETH15M-26OCT271715-15`), the market slug on Polymarket. It is `null` exactly when `contract` is.'
                          title:
                            type: string
                            description: The market's title, as the venue writes it.
                          venue:
                            type: string
                            description: 'The venue that lists the market: one of `kalshi`, `polymarket`, `polymarket_us` or `gemini`.'
                          category:
                            type: string
                            description: 'The market''s category: one of `sports`, `politics`, `crypto`, `finance`, `culture`. It is `null` when Rivo has not classified the market.'
                          kind:
                            type: string
                            description: The kind of market, such as `nfl` or `bitcoin`. It is `null` when Rivo has not classified the market yet.
                          status:
                            type: string
                            description: 'The market''s status: `open`, `closed`, `settled` or `void`. `closed` means trading has stopped but no result is in yet.'
                          result:
                            type: string
                            description: The name of the outcome that won. It is `null` until the market settles, and when it is void.
                          settledAt:
                            type: string
                            description: When the market settled, in ISO 8601 UTC.
                          rule:
                            type: string
                            description: How the venue settles the market, in the venue's own words.
                          opensAt:
                            type: string
                            description: When the contract opened for trading, as an ISO 8601 time. It is `null` when the venue does not say, and on most markets of several outcomes.
                          closesAt:
                            type: string
                            description: When the contract stops trading, as an ISO 8601 time. On a repeating market such as a 15-minute crypto window, check it before you place an order. It is `null` when the venue does not say.
                          outcomes:
                            type: array
                            items:
                              type: object
                              properties:
                                ref:
                                  type: string
                                  description: The contract this side trades on. Pass it as `market` to a paper order or a market bot.
                                venueId:
                                  type: string
                                  description: The venue's own id for that contract, such as the Kalshi ticker.
                                contract:
                                  type: string
                                  description: The contract's own title. On a market with several contracts, it tells you which contract this side belongs to.
                                name:
                                  type: string
                                  description: The side's name, the same name trades, whales and positions use. On Polymarket it is the outcome's own name. On every other venue it is `Yes` or `No`. Pass it as `outcome` to a paper order.
                                label:
                                  type: string
                                  description: What the venue calls the side, such as `Milwaukee` or `Not Milwaukee`. Every route that takes an `outcome` accepts the label too.
                                price:
                                  type: number
                                  description: The side's price now, from 0 to 1.
                                bid:
                                  type: number
                                  description: The best bid, from 0 to 1. It is `null` when the venue has no book.
                                ask:
                                  type: number
                                  description: The best ask, from 0 to 1. It is `null` when the venue has no book.
                            description: Both sides of each contract in the market.
                          otherVenues:
                            type: array
                            items:
                              type: object
                              properties:
                                venue:
                                  type: string
                                  description: The other venue that lists this outcome.
                                ref:
                                  type: string
                                  description: The contract on that venue.
                            description: The same outcome on other venues. Rivo pairs only some markets across venues, and this list is empty for every other market.
                          book:
                            type: array
                            items:
                              type: object
                              properties:
                                outcome:
                                  type: string
                                  description: The side this entry is about.
                                bids:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      price:
                                        type: number
                                        description: The price at this level, from 0 to 1.
                                      size:
                                        type: number
                                        description: The number of contracts offered at this price.
                                  description: The bids, with the best first.
                                asks:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      price:
                                        type: number
                                        description: The price at this level, from 0 to 1.
                                      size:
                                        type: number
                                        description: The number of contracts offered at this price.
                                  description: The asks, with the best first.
                            description: The order book, when you ask for `include=book`. Each side lists its best price first.
                          whales:
                            type: object
                            properties:
                              sides:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    outcome:
                                      type: string
                                      description: The side this entry is about.
                                    usd:
                                      type: number
                                      description: The dollars whales spent buying this side.
                                    trades:
                                      type: integer
                                      description: The number of whale buys on this side.
                                description: The whale buys on each side.
                              traders:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    ref:
                                      type: string
                                      description: The trader's ref. You can pass it to any `trader` filter or to Get Trader (https://rivo.markets/docs/reference/get-trader).
                                    name:
                                      type: string
                                      description: The trader's public name, or `null` when they have none. The API never returns a wallet address as a name.
                                    winRate:
                                      type: number
                                      description: The share of their settled bets the trader won, from 0 to 1. It covers the kind of market this row is about, or their whole record when Rivo has none for that kind. It is `null` until they have 10 settled bets.
                                    profit:
                                      type: number
                                      description: The trader's profit in USD, over the same bets as `winRate`.
                                    settled:
                                      type: integer
                                      description: The number of settled bets behind `winRate` and `profit`.
                                    outcome:
                                      type: string
                                      description: The side this whale bought.
                                    boughtUsd:
                                      type: number
                                      description: The dollars this whale spent buying.
                                    soldUsd:
                                      type: number
                                      description: The dollars this whale received from selling.
                                    entryPrice:
                                      type: number
                                      description: The average price this whale paid.
                                    exitPrice:
                                      type: number
                                      description: The average price this whale sold at.
                                    status:
                                      type: string
                                      description: 'Whether the whale still holds: `holding`, `reduced` or `exited`.'
                                    lastTradeAt:
                                      type: string
                                      description: When this whale last traded this market, in ISO 8601 UTC.
                                description: One row for each named whale on each side, with the biggest buyers first.
                            description: The whales, when you ask for `include=whales`. It covers the last 30 days on a single contract and the last 24 hours on a market with several contracts.
                          call:
                            type: object
                            properties:
                              outcome:
                                type: string
                                description: The side with the most money and the strongest records behind it.
                              action:
                                type: string
                                description: 'What the call suggests: `buy` or `watch`.'
                              headline:
                                type: string
                                description: The call, in one line.
                              detail:
                                type: string
                                description: One sentence that explains the call.
                              price:
                                type: number
                                description: The side's price now, from 0 to 1.
                              maxPrice:
                                type: number
                                description: The highest price worth paying, when a measured record supports one.
                              reasons:
                                type: array
                                items:
                                  type: string
                                description: Up to four reasons behind the call.
                            description: The call, when you ask for `include=call`.
                          history:
                            type: object
                            properties:
                              range:
                                type: string
                                description: 'The period the history covers: `1h`, `1d` or `7d`.'
                              prices:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    time:
                                      type: string
                                      description: The time of this point, in ISO 8601 UTC.
                                    price:
                                      type: number
                                      description: The Yes price at this point.
                                    volume:
                                      type: number
                                      description: The dollars traded in this interval.
                                description: The data points, oldest first.
                              series:
                                type: object
                                properties:
                                  windows:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        opensAt:
                                          type: string
                                          description: When the window opened, in ISO 8601 UTC.
                                        closesAt:
                                          type: string
                                          description: When the window closed, in ISO 8601 UTC.
                                        result:
                                          type: string
                                          description: 'The side that won the window: `yes` or `no`.'
                                    description: The last 15 windows, with the newest first.
                                  yesWon:
                                    type: integer
                                    description: The number of windows that Yes won.
                                  noWon:
                                    type: integer
                                    description: The number of windows that No won.
                                description: The past windows. Only repeating markets have them.
                            description: The price history, when you ask for `include=history`.
                          trades:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  description: The trade's id. It never changes, so the same trade has the same id in every listing and on the stream.
                                time:
                                  type: string
                                  description: When the trade happened on the venue, in ISO 8601 UTC.
                                market:
                                  type: object
                                  properties:
                                    ref:
                                      type: string
                                      description: The market's ref. You can pass it to any `market` filter or to Get Market (https://rivo.markets/docs/reference/get-market). On a market of several outcomes, it names the whole event.
                                    contract:
                                      type: string
                                      description: The ref of the exact contract. It is the same as `ref` on a market with one contract. On a market of several outcomes, such as a game with a moneyline and a spread, it tells the contracts apart. Pass it to Place Paper Order (https://rivo.markets/docs/reference/place-paper-order) or a market bot.
                                    venueId:
                                      type: string
                                      description: 'The venue''s own id for that exact contract, so you can find it on the venue without parsing a ref: the ticker on Kalshi and Gemini (such as `KXETH15M-26OCT271715-15`), the market slug on Polymarket. It is `null` exactly when `contract` is.'
                                    title:
                                      type: string
                                      description: The market's title, as the venue writes it.
                                    venue:
                                      type: string
                                      description: 'The venue that lists the market: one of `kalshi`, `polymarket`, `polymarket_us` or `gemini`.'
                                    category:
                                      type: string
                                      description: 'The market''s category: one of `sports`, `politics`, `crypto`, `finance`, `culture`. It is `null` when Rivo has not classified the market.'
                                    kind:
                                      type: string
                                      description: The kind of market, such as `nfl` or `bitcoin`. It is `null` when Rivo has not classified the market yet.
                                  description: The market this row is about.
                                outcome:
                                  type: string
                                  description: The side the trader bought or sold, by its `name`. On Polymarket it is the outcome's own name, such as `Lakers`. On every other venue it is `Yes` or `No`.
                                action:
                                  type: string
                                  description: 'Whether the trader bought or sold: `buy` or `sell`.'
                                entry:
                                  type: string
                                  description: 'What the trade did to the trader''s position: `open`, `add`, `flip`, `trim` or `close`. It is `null` when the venue does not say.'
                                price:
                                  type: number
                                  description: The price paid for each contract, from 0 to 1.
                                usd:
                                  type: number
                                  description: The dollars traded.
                                contracts:
                                  type: number
                                  description: The number of contracts traded.
                                trader:
                                  type: object
                                  properties:
                                    ref:
                                      type: string
                                      description: The trader's ref. You can pass it to any `trader` filter or to Get Trader (https://rivo.markets/docs/reference/get-trader).
                                    name:
                                      type: string
                                      description: The trader's public name, or `null` when they have none. The API never returns a wallet address as a name.
                                    winRate:
                                      type: number
                                      description: The share of their settled bets the trader won, from 0 to 1. It covers the kind of market this row is about, or their whole record when Rivo has none for that kind. It is `null` until they have 10 settled bets.
                                    profit:
                                      type: number
                                      description: The trader's profit in USD, over the same bets as `winRate`.
                                    settled:
                                      type: integer
                                      description: The number of settled bets behind `winRate` and `profit`.
                                  description: The trader who made the trade, with their record in this kind of market, or their whole record when Rivo has none for that kind. Only `kalshi` or `polymarket` name their traders. On every other venue this is `null`.
                                agreement:
                                  type: object
                                  properties:
                                    sameSide:
                                      type: object
                                      properties:
                                        trades:
                                          type: integer
                                          description: The number of whale trades.
                                        usd:
                                          type: number
                                          description: The dollars those trades spent.
                                      description: Trades that bought the same side.
                                    otherSide:
                                      type: object
                                      properties:
                                        trades:
                                          type: integer
                                          description: The number of whale trades.
                                        usd:
                                          type: number
                                          description: The dollars those trades spent.
                                      description: Trades that bought the other side.
                                  description: The other whale trades on this market in the 24 hours before this one.
                                result:
                                  type: string
                                  description: The trade's result. It is `open` until the market settles, then `win`, `loss` or `void`.
                                profit:
                                  type: number
                                  description: What the trade made in USD, if held to settlement at the price paid. It is `null` while the market is open.
                            description: The newest 40 whale buys, when you ask for `include=trades`.
                        description: The market you asked for.
              example:
                data:
                  ref: a2Fsc2hpOm1hcmtldDpLWE1MQkdBTUUtMjZPQ1QxNDIwMDBNSUxMQUQtTUlM
                  contract: a2Fsc2hpOm1hcmtldDpLWE1MQkdBTUUtMjZPQ1QxNDIwMDBNSUxMQUQtTUlM
                  venueId: KXMLBGAME-26OCT142000MILLAD-MIL
                  title: Milwaukee wins
                  venue: kalshi
                  category: sports
                  kind: mlb
                  status: open
                  result: null
                  settledAt: null
                  rule: If Milwaukee wins the Milwaukee vs Los Angeles D professional baseball game originally scheduled for Oct 14, 2026, then the market resolves to Yes.
                  opensAt: '2026-10-12T14:00:00.000Z'
                  closesAt: '2026-10-15T03:00:00.000Z'
                  outcomes:
                  - ref: a2Fsc2hpOm1hcmtldDpLWE1MQkdBTUUtMjZPQ1QxNDIwMDBNSUxMQUQtTUlM
                    venueId: KXMLBGAME-26OCT142000MILLAD-MIL
                    contract: Milwaukee wins
                    name: 'Yes'
                    label: Milwaukee
                    price: 0.87
                    bid: 0.86
                    ask: 0.87
                  - ref: a2Fsc2hpOm1hcmtldDpLWE1MQkdBTUUtMjZPQ1QxNDIwMDBNSUxMQUQtTUlM
                    venueId: KXMLBGAME-26OCT142000MILLAD-MIL
                    contract: Milwaukee wins
                    name: 'No'
                    label: Not Milwaukee
                    price: 0.13
                    bid: 0.13
                    ask: 0.14
                  otherVenues: []
                  book:
                  - outcome: 'Yes'
                    bids:
                    - price: 0.86
                      size: 194965.3
                    - price: 0.85
                      size: 262306.1
                    asks:
                    - price: 0.87
                      size: 163419.21
                    - price: 0.88
                      size: 111676.84
                  - outcome: 'No'
                    bids:
                    - price: 0.13
                      size: 163419.21
                    - price: 0.12
                      size: 111676.84
                    asks:
                    - price: 0.14
                      size: 194965.3
                    - price: 0.15
                      size: 262306.1
                  whales:
                    sides:
                    - outcome: 'Yes'
                      usd: 77068.91
                      trades: 28
                    traders:
                    - ref: kalshi:pentasir
                      name: pentasir
                      winRate: 0.7791
                      profit: 10958.34
                      settled: 163
                      outcome: 'Yes'
                      boughtUsd: 9835.02
                      soldUsd: 0
                      entryPrice: 0.39
                      exitPrice: null
                      status: holding
                      lastTradeAt: '2026-10-14T22:49:09.451Z'
                  call: null
                  history:
                    range: 1d
                    prices:
                    - time: '2026-10-14T03:00:00.000Z'
                      price: 0.38
                      volume: 8804.29
                    - time: '2026-10-14T04:00:00.000Z'
                      price: 0.39
                      volume: 25974.21
                    series: null
                  trades:
                  - id: 1ce3724a-941e-5b4a-8e84-f2e50ae89bb8
                    time: '2026-10-15T02:24:53.011Z'
                    market:
                      ref: a2Fsc2hpOm1hcmtldDpLWE1MQkdBTUUtMjZPQ1QxNDIwMDBNSUxMQUQtTUlM
                      contract: a2Fsc2hpOm1hcmtldDpLWE1MQkdBTUUtMjZPQ1QxNDIwMDBNSUxMQUQtTUlM
                      venueId: KXMLBGAME-26OCT142000MILLAD-MIL
                      title: Milwaukee wins
                      venue: kalshi
                      category: sports
                      kind: mlb
                    outcome: 'Yes'
                    action: buy
                    entry: null
                    price: 0.88
                    usd: 7933.36
                    contracts: 9015.18
                    trader:
                      ref: kalshi:scottramirez
                      name: scottramirez
                      winRate: 0.8269
                      profit: 5122.43
                      settled: 52
                    agreement:
                      sameSide:
                        trades: 37
                        usd: 95502.12
                      otherSide:
                        trades: 0
                        usd: 0
                    result: open
                    profit: null
        default:
          description: 'An error: `{ success: false, error, code }`. See https://rivo.markets/docs/errors'
      x-scope: read
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key (rivo_live_...) from Settings, Developers.
externalDocs:
  url: https://rivo.markets/docs
  description: Rivo API docs