Trades

Returns price candles for a tokenized stock, oldest first.

  • Intervals: 1h, 2h, 4h, 6h and 12h candles cover the last 30 days. 1d and 1w candles cover the full history.
  • Weeks start on Monday at 00:00 UTC.

This endpoint is public: no API key is needed, and each IP address can make up to 60 requests a minute.

get/trades/candles

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    none required

Query parameters

market, string required

The tokenized stock's ticker, such as NVDA. This is the id of a spot market from List Markets.

interval, '1h' | '2h' | '4h' | '6h' | '12h' | '1d' | '1w' required

How much time each candle covers.

from, string date-time required

Return candles that start at or after this time, as an ISO 8601 timestamp.

to, string date-time

Return candles that start before this time, as an ISO 8601 timestamp. Defaults to now.

first, integer

Number of results to return from the start of the range.

after, string

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

last, integer

Number of results to return from the end of the range.

before, string

Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Response

candles listed

object required
data, Candle[] required
page_info, object required

Example response

{
  "data": [
    {
      "close": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "high": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "low": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "open": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "started_at": "2026-01-01T12:00:00.000Z",
      "volume": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      }
    }
  ],
  "page_info": {
    "start_cursor": "MQ"
  }
}

Changes