> ## Documentation Index
> Fetch the complete documentation index at: https://docs.decibel.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# Get spot asset contexts

> 24h stats (volume, high/low, last price, prev-day price) plus the live
book mid for every registered spot market. The spot counterpart of
`/asset_contexts`; perp-only concepts (funding, open interest, mark and
oracle prices) are deliberately absent. 24h change = (last_price -
prev_day_price) / prev_day_price, derived client-side; `prev_day_price`
is null for markets that never traded before the 24h boundary.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/spot/asset_contexts
openapi: 3.1.0
info:
  title: Decibel Trading API
  description: >-
    RESTful API for Decibel. Provides read-only endpoints for market data,
    trading operations, positions, and analytics.
  contact:
    name: Decibel Team
    url: https://decibel.trade/
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://api.mainnet.aptoslabs.com/decibel
    description: Mainnet
  - url: https://api.testnet.aptoslabs.com/decibel
    description: Testnet
security:
  - bearerAuth: []
tags:
  - name: Market Data
    description: Market information and real-time data endpoints
  - name: User
    description: User information and account management
  - name: Account
    description: Account-specific endpoints and data
  - name: Trades
    description: Trading operations and history
  - name: Positions
    description: User position management
  - name: Orders
    description: Order management and history
  - name: TWAP
    description: Time-weighted average price orders
  - name: Bulk Orders
    description: Bulk order management
  - name: Vaults
    description: Vault operations and management
  - name: Analytics
    description: Analytics and performance metrics
  - name: Points
    description: Points-related account metrics
  - name: Trading Points
    description: Trading points endpoints
  - name: Trading Hz
    description: Trading Hz endpoints
  - name: Tier
    description: Tier information endpoints
  - name: Streaks
    description: User streak tracking endpoints
  - name: Predeposit Rewards
    description: Season 0 predeposit USDC rewards
  - name: Referrals
    description: Referral code management and tracking
  - name: Affiliates
    description: Affiliate code and earnings endpoints
  - name: Campaigns
    description: On-chain reward campaign endpoints
paths:
  /api/v1/spot/asset_contexts:
    get:
      tags:
        - Market Data
      summary: Get spot asset contexts
      description: |-
        24h stats (volume, high/low, last price, prev-day price) plus the live
        book mid for every registered spot market. The spot counterpart of
        `/asset_contexts`; perp-only concepts (funding, open interest, mark and
        oracle prices) are deliberately absent. 24h change = (last_price -
        prev_day_price) / prev_day_price, derived client-side; `prev_day_price`
        is null for markets that never traded before the 24h boundary.
      operationId: handle_spot_asset_contexts
      responses:
        '200':
          description: Spot asset contexts
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SpotAssetContextDto'
        '500':
          description: Database error
components:
  schemas:
    SpotAssetContextDto:
      type: object
      description: |-
        24h stats + current price snapshot for one spot market — the spot
        counterpart of [`crate::asset_context::AssetContextDto`], with a
        subset-shaped schema: shared-core price/volume fields plus spot extras
        (asset addresses, decimals); no perp fields (funding/OI/mark do not
        exist for spot), no null-because-inapplicable.
      required:
        - market_addr
        - name
        - ticker_id
        - base_asset_addr
        - quote_asset_addr
        - base_decimals
        - quote_decimals
        - volume_24h_base
        - volume_24h_quote
        - timestamp_unix_ms
      properties:
        base_asset_addr:
          type: string
          description: Fungible-asset metadata addresses ("contract addresses").
        base_decimals:
          type: integer
          format: int32
          minimum: 0
        high_24h:
          type:
            - number
            - 'null'
          format: double
        last_price:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Most recent fill price in the last 24h; null if no trade in the
            window.
        low_24h:
          type:
            - number
            - 'null'
          format: double
        market_addr:
          type: string
          example: 0xmarket123...
        mid:
          type:
            - number
            - 'null'
          format: double
          description: |-
            (best_bid + best_ask) / 2 from the live book; null unless both sides
            have resting liquidity.
        name:
          type: string
          description: Canonical market name, e.g. "APT/USDC".
        prev_day_price:
          type:
            - number
            - 'null'
          format: double
          description: |-
            Price of the last trade at or before now-24h (bounded 7d lookback);
            null for markets that never traded before the boundary. 24h change =
            (last_price - prev_day_price) / prev_day_price, client-derived.
        quote_asset_addr:
          type: string
        quote_decimals:
          type: integer
          format: int32
          minimum: 0
        ticker_id:
          type: string
          description: >-
            Hyphenated ticker form, e.g. "APT-USDC" (same shape as perp
            ticker_ids).
        timestamp_unix_ms:
          type: integer
          format: int64
          description: Server timestamp the snapshot was computed at (unix ms).
        volume_24h_base:
          type: number
          format: double
          description: Base units traded in the last 24h, human-readable.
        volume_24h_quote:
          type: number
          format: double
          description: Quote units traded in the last 24h, human-readable.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token from Geomi. See
        [Authentication](/api-reference/rest/authentication) for setup
        instructions.

````