# Market Ticker

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/market-ticker:
    get:
      summary: Market Ticker
      deprecated: false
      description: >-
        The market ticker provides information about the current state of a
        market and summary statistics on activity within the last 24 hours.
        Volume, low, high and price change are calculated over a rolling 24-hour
        window of trades. If a market has had no trades in the last 24 hours,
        its statistics and `last_price` are `0`. Only markets in state `ACTIVE`,
        `POST_ONLY` or `SUSPENDED` are included. Ticker data is cached and may
        be up to a minute old. Futures markets additionally return
        `open_interest`, `open_interest_usd`, `mark_price`, `funding_rate` and
        `next_funding_payment`.
      tags:
        - One Trading Public REST API/Public
        - public
      parameters:
        - name: type
          in: query
          description: Filters the tickers by market type. Case-sensitive.
          required: false
          schema:
            type: string
            enum:
              - SPOT
              - DATED_FUTURE
              - EQUITY_FUTURE
              - EQUITY_INDEX_FUTURE
              - PERP
            x-apidog-enum:
              - value: SPOT
                name: ''
                description: ''
              - value: DATED_FUTURE
                name: ''
                description: ''
              - value: EQUITY_FUTURE
                name: ''
                description: ''
              - value: EQUITY_INDEX_FUTURE
                name: ''
                description: ''
              - value: PERP
                name: ''
                description: ''
      responses:
        '200':
          x-apidog-name: OK
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MarketTicker'
              examples:
                '1':
                  summary: Success Example
                  value:
                    base_volume: '0.90000'
                    high: '100000.00'
                    highest_bid: '99950.00'
                    instrument_code: BTC_USDC
                    last_price: '100000.00'
                    low: '99000.00'
                    lowest_ask: '100050.00'
                    price_change_percentage: '1.01'
                    price_change: '1000.00'
                    quote_volume: '89550.00'
                    sequence: 1731326923439826000
                    state: ACTIVE
                    type: SPOT
                    global_volume: '41234567890.12'
                '2':
                  summary: Success Example
                  value:
                    base_volume: '1.20000'
                    high: '101000.00'
                    highest_bid: '100010.00'
                    instrument_code: BTC_USD_P
                    last_price: '100020.00'
                    low: '99500.00'
                    lowest_ask: '100030.00'
                    price_change_percentage: '0.52'
                    price_change: '520.00'
                    quote_volume: '120024.00'
                    sequence: 1731326923439826000
                    state: ACTIVE
                    type: DATED_FUTURE
                    global_volume: '41234567890.12'
                    open_interest: '3.50000'
                    open_interest_usd: '350070.00'
                    mark_price: '100015.00'
                    funding_rate: '0.0001'
                    next_funding_payment: '2024-11-11T16:00:00.000Z'
                '3':
                  summary: Success Example
                  value:
                    base_volume: '0'
                    high: '0'
                    highest_bid: '0'
                    instrument_code: ETH_USDC
                    last_price: '0'
                    low: '0'
                    lowest_ask: '0'
                    price_change_percentage: '0'
                    price_change: '0'
                    quote_volume: '0'
                    sequence: 0
                    state: ACTIVE
                    type: SPOT
                    global_volume: '0'
          headers: {}
        '400':
          x-apidog-name: Bad Request
          description: Invalid `type` value.
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: INVALID_TYPE
          headers: {}
        '500':
          x-apidog-name: Server Error
          description: Unexpected server error. `error` is a human-readable message.
          content:
            application/json:
              schema: *ref_0
              example:
                error: Server error.
          headers: {}
      security: []
      x-apidog-folder: One Trading Public REST API/Public
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/349694/apis/api-3612086-run
components:
  schemas:
    MarketTicker:
      type: object
      properties:
        base_volume:
          type: string
          description: Traded volume in the base asset over the last 24 hours.
        high:
          type: string
          description: Highest trade price over the last 24 hours.
        highest_bid:
          type: string
          description: Best bid price. `0` when unavailable.
        instrument_code:
          type: string
          description: The instrument code.
        last_price:
          type: string
          description: >-
            Price of the most recent trade. `0` if there have been no trades in
            the last 24 hours.
        low:
          type: string
          description: Lowest trade price over the last 24 hours.
        lowest_ask:
          type: string
          description: Best ask price. `0` when unavailable.
        price_change_percentage:
          type: string
          description: >-
            Percentage change between the first trade in the 24-hour window and
            the last price.
        price_change:
          type: string
          description: >-
            Absolute change between the first trade in the 24-hour window and
            the last price.
        quote_volume:
          type: string
          description: Traded volume in the quote asset over the last 24 hours.
        sequence:
          type: integer
          description: >-
            Nanosecond timestamp of the order-book snapshot used for
            `highest_bid`/`lowest_ask`; `0` when no snapshot is available or the
            market has had no trades in the last 24 hours. The value exceeds
            2^53, so JSON parsers that use IEEE-754 doubles will lose precision
            in the last digits.
        state:
          type: string
          description: >-
            Market state. Only `ACTIVE`, `POST_ONLY` and `SUSPENDED` markets
            appear in the ticker.
          enum:
            - ACTIVE
            - POST_ONLY
            - SUSPENDED
          x-apidog-enum:
            - value: ACTIVE
              name: ''
              description: ''
            - value: POST_ONLY
              name: ''
              description: ''
            - value: SUSPENDED
              name: ''
              description: ''
        type:
          type: string
          description: Market type.
          enum:
            - SPOT
            - PERP
            - EQUITY_FUTURE
            - EQUITY_INDEX_FUTURE
            - DATED_FUTURE
          x-apidog-enum:
            - value: SPOT
              name: ''
              description: ''
            - value: PERP
              name: ''
              description: ''
            - value: EQUITY_FUTURE
              name: ''
              description: ''
            - value: EQUITY_INDEX_FUTURE
              name: ''
              description: ''
            - value: DATED_FUTURE
              name: ''
              description: ''
        global_volume:
          type: string
          description: >-
            Global 24-hour trading volume of the base asset across all venues
            (from CoinGecko). `0` when unavailable.
        open_interest:
          type: string
          description: Futures only. Open interest in the base asset.
        open_interest_usd:
          type: string
          description: Futures only. Open interest converted to USD.
        mark_price:
          type: string
          description: Futures only. Current mark price; `null` when unavailable.
          nullable: true
        funding_rate:
          type: string
          description: Futures only. Current funding rate; `null` when unavailable.
          nullable: true
        next_funding_payment:
          type: string
          format: date-time
          description: Futures only. Time of the next funding payment; `null` when unknown.
          nullable: true
      required:
        - base_volume
        - high
        - highest_bid
        - instrument_code
        - last_price
        - low
        - lowest_ask
        - price_change_percentage
        - price_change
        - quote_volume
        - sequence
        - state
        - type
        - global_volume
      x-apidog-orders:
        - base_volume
        - high
        - highest_bid
        - instrument_code
        - last_price
        - low
        - lowest_ask
        - price_change_percentage
        - price_change
        - quote_volume
        - sequence
        - state
        - type
        - global_volume
        - open_interest
        - open_interest_usd
        - mark_price
        - funding_rate
        - next_funding_payment
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
    ErrorResponse:
      type: object
      description: >-
        Error body. `error` is a machine-readable code (e.g.
        `INVALID_INSTRUMENT_CODE`) on most endpoints; a few older endpoints
        return a human-readable message in `error` instead and omit
        `error_message`.
      properties:
        error:
          type: string
          description: Error code (or, on older endpoints, a human-readable message).
        error_message:
          type: string
          description: >-
            Human-readable detail. Present on endpoints that return an error
            code in `error`.
      required:
        - error
      x-apidog-orders:
        - error
        - error_message
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
  securitySchemes:
    bearerAuth:
      type: bearer
      scheme: bearer
      description: >-
        API key issued to the account holder, sent as `Authorization: Bearer
        <token>`. The key must hold the `SUBACCOUNT_TRANSFER` scope.
    bearer:
      type: bearer
      scheme: bearer
servers:
  - url: https://api.onetrading.com/fast
    description: Production Env
security: []

```