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

# Advanced token price metrics

> Returns price and volume metrics for a pool by timeframe: buy and sell counts and USD volume, all-time high, fees in the chain's native currency, latest USD price, market cap, and bonding-curve progress. Each timeframe includes `price_historical_usd` and `price_change_percentage`.

```bash theme={null}
curl "https://staging-api.struct.to/v1/token/market/price-advanced?chain=robinhood&chain_id=4663&pool_id=0xEd50bDeeA8aDC232f159486192a4157281D722ff&token_address=0x39dBED3a2bd333467115dE45665cC57F813C4571&fields=short" \
  -H "X-API-Key: YOUR_API_KEY"
```

```json Response (Long) theme={null}
{
  "metrics": {
    "5m": {
      "market_cap_usd_ath": 1265510619.22,
      "price_usd_ath": 1.2655106192,
      "price_historical_usd": 0.0912,
      "price_change_percentage": 4.2,
      "buy_volume_usd": 18420.55,
      "sell_volume_usd": 12110.4,
      "total_volume_usd": 30530.95,
      "net_volume_usd": 6310.15,
      "buys": 90,
      "sells": 71,
      "txns": 161,
      "total_fees_native": 0.024,
      "total_bot_fees_native": 0.008,
      "total_priority_fees_native": 0.014,
      "total_tip_amount_native": 0.002
    },
    "1h": {
      "market_cap_usd_ath": 1265510619.22,
      "price_usd_ath": 1.2655106192,
      "price_historical_usd": 0.0912,
      "price_change_percentage": 4.2,
      "buy_volume_usd": 18420.55,
      "sell_volume_usd": 12110.4,
      "total_volume_usd": 30530.95,
      "net_volume_usd": 6310.15,
      "buys": 90,
      "sells": 71,
      "txns": 161,
      "total_fees_native": 0.024,
      "total_bot_fees_native": 0.008,
      "total_priority_fees_native": 0.014,
      "total_tip_amount_native": 0.002
    },
    "6h": {
      "market_cap_usd_ath": 1265510619.22,
      "price_usd_ath": 1.2655106192,
      "price_historical_usd": 0.0912,
      "price_change_percentage": 4.2,
      "buy_volume_usd": 18420.55,
      "sell_volume_usd": 12110.4,
      "total_volume_usd": 30530.95,
      "net_volume_usd": 6310.15,
      "buys": 90,
      "sells": 71,
      "txns": 161,
      "total_fees_native": 0.024,
      "total_bot_fees_native": 0.008,
      "total_priority_fees_native": 0.014,
      "total_tip_amount_native": 0.002
    },
    "24h": {
      "market_cap_usd_ath": 1265510619.22,
      "price_usd_ath": 1.2655106192,
      "price_historical_usd": 0.0912,
      "price_change_percentage": 4.2,
      "buy_volume_usd": 18420.55,
      "sell_volume_usd": 12110.4,
      "total_volume_usd": 30530.95,
      "net_volume_usd": 6310.15,
      "buys": 90,
      "sells": 71,
      "txns": 161,
      "total_fees_native": 0.024,
      "total_bot_fees_native": 0.008,
      "total_priority_fees_native": 0.014,
      "total_tip_amount_native": 0.002
    }
  },
  "market_cap_usd": 96648686.19,
  "price_usd": 0.09664868619,
  "liquidity_fdv_usd": 2319220.17,
  "bonding_curve_percentage": 100
}
```

```jsonc Response (Short) theme={null}
{
  "mx": {
    "5m": {
      "mca": 1265510619.22,
      "pua": 1.2655106192,
      "ph": 0.0912,
      "pc": 4.2,
      "bv": 18420.55,
      "sv": 12110.4,
      "tv": 30530.95,
      "nv": 6310.15,
      "b": 90,
      "s": 71,
      "t": 161,
      "tf": 0.024,
      "bf": 0.008,
      "pf": 0.014,
      "tip": 0.002
    },
    "1h": {
      "mca": 1265510619.22,
      "pua": 1.2655106192,
      "ph": 0.0912,
      "pc": 4.2,
      "bv": 18420.55,
      "sv": 12110.4,
      "tv": 30530.95,
      "nv": 6310.15,
      "b": 90,
      "s": 71,
      "t": 161,
      "tf": 0.024,
      "bf": 0.008,
      "pf": 0.014,
      "tip": 0.002
    },
    "6h": {
      "mca": 1265510619.22,
      "pua": 1.2655106192,
      "ph": 0.0912,
      "pc": 4.2,
      "bv": 18420.55,
      "sv": 12110.4,
      "tv": 30530.95,
      "nv": 6310.15,
      "b": 90,
      "s": 71,
      "t": 161,
      "tf": 0.024,
      "bf": 0.008,
      "pf": 0.014,
      "tip": 0.002
    },
    "24h": {
      "mca": 1265510619.22,
      "pua": 1.2655106192,
      "ph": 0.0912,
      "pc": 4.2,
      "bv": 18420.55,
      "sv": 12110.4,
      "tv": 30530.95,
      "nv": 6310.15,
      "b": 90,
      "s": 71,
      "t": 161,
      "tf": 0.024,
      "bf": 0.008,
      "pf": 0.014,
      "tip": 0.002
    }
  },
  "mc": 96648686.19,
  "pu": 0.09664868619,
  "lq": 2319220.17,
  "bc": 100
}
```


## OpenAPI

````yaml onchain-openapi.json GET /token/market/price-advanced
openapi: 3.1.0
info:
  title: Struct On-chain API
  description: >-
    RESTful API for token market data, discovery, holders, audits, and trader
    analytics across supported chains. Pass `fields=short` or header
    `x-field-names: short` for abbreviated keys. HTTP defaults to `long`. Token
    candlesticks, token trades and wallet batch trades also support
    `fields=array` for typed positional rows.
  version: 1.0.0
servers:
  - url: https://staging-api.struct.to/v1
    description: Staging
security:
  - ApiKey: []
paths:
  /token/market/price-advanced:
    get:
      tags:
        - Token / Market
      summary: Advanced token price metrics
      description: >-
        Returns price and volume metrics for a pool by timeframe: buy and sell
        counts and USD volume, all-time high, fees in the chain's native
        currency, latest USD price, market cap, and bonding-curve progress. Each
        timeframe includes `price_historical_usd` and `price_change_percentage`.
      operationId: get_token_price_advanced
      parameters:
        - name: chain
          in: query
          description: Chain name. Required unless `chain_id` is provided.
          required: false
          schema:
            type: string
          example: robinhood
        - name: chain_id
          in: query
          description: Chain id. Required unless `chain` is provided. Use `-1` for Solana.
          required: false
          schema:
            type: integer
            format: int64
          example: 4663
        - name: pool_id
          in: query
          description: Pool address (required).
          required: true
          schema:
            type: string
          example: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
        - name: token_address
          in: query
          description: >-
            Base token for prices, market cap and buy/sell metrics. Defaults to
            the pool’s preferred token.
          required: false
          schema:
            type: string
          example: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
        - name: timeframes
          in: query
          description: >-
            Comma-separated timeframes (1-6 of: 1m, 5m, 30m, 1h, 6h, 24h).
            Default: 5m,1h,6h,24h.
          required: false
          schema:
            type: string
        - name: x-field-names
          in: header
          required: false
          description: >-
            Select long (full) or short (abbreviated) field names. HTTP defaults
            to `long`. Takes precedence over `fields`. See [Response
            Format](/api-reference/response-format#long-and-short-field-names).
          schema:
            type: string
            enum:
              - long
              - short
            default: long
          example: short
        - name: fields
          in: query
          required: false
          description: >-
            Same as `x-field-names`. Use `long` or `short`. HTTP defaults to
            `long`. Ignored when the header is set. `field_names` is accepted as
            an alias.
          schema:
            type: string
            enum:
              - long
              - short
            default: long
          example: short
      responses:
        '200':
          description: Advanced price metrics
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdvancedPriceResponse'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    metrics:
                      5m:
                        market_cap_usd_ath: 1265510619.22
                        price_usd_ath: 1.2655106192
                        price_historical_usd: 0.0912
                        price_change_percentage: 4.2
                        buy_volume_usd: 18420.55
                        sell_volume_usd: 12110.4
                        total_volume_usd: 30530.95
                        net_volume_usd: 6310.15
                        buys: 90
                        sells: 71
                        txns: 161
                        total_fees_native: 0.024
                        total_bot_fees_native: 0.008
                        total_priority_fees_native: 0.014
                        total_tip_amount_native: 0.002
                      1h:
                        market_cap_usd_ath: 1265510619.22
                        price_usd_ath: 1.2655106192
                        price_historical_usd: 0.0912
                        price_change_percentage: 4.2
                        buy_volume_usd: 18420.55
                        sell_volume_usd: 12110.4
                        total_volume_usd: 30530.95
                        net_volume_usd: 6310.15
                        buys: 90
                        sells: 71
                        txns: 161
                        total_fees_native: 0.024
                        total_bot_fees_native: 0.008
                        total_priority_fees_native: 0.014
                        total_tip_amount_native: 0.002
                      6h:
                        market_cap_usd_ath: 1265510619.22
                        price_usd_ath: 1.2655106192
                        price_historical_usd: 0.0912
                        price_change_percentage: 4.2
                        buy_volume_usd: 18420.55
                        sell_volume_usd: 12110.4
                        total_volume_usd: 30530.95
                        net_volume_usd: 6310.15
                        buys: 90
                        sells: 71
                        txns: 161
                        total_fees_native: 0.024
                        total_bot_fees_native: 0.008
                        total_priority_fees_native: 0.014
                        total_tip_amount_native: 0.002
                      24h:
                        market_cap_usd_ath: 1265510619.22
                        price_usd_ath: 1.2655106192
                        price_historical_usd: 0.0912
                        price_change_percentage: 4.2
                        buy_volume_usd: 18420.55
                        sell_volume_usd: 12110.4
                        total_volume_usd: 30530.95
                        net_volume_usd: 6310.15
                        buys: 90
                        sells: 71
                        txns: 161
                        total_fees_native: 0.024
                        total_bot_fees_native: 0.008
                        total_priority_fees_native: 0.014
                        total_tip_amount_native: 0.002
                    market_cap_usd: 96648686.19
                    price_usd: 0.09664868619
                    liquidity_fdv_usd: 2319220.17
                    bonding_curve_percentage: 100
                short:
                  summary: Response (Short)
                  value:
                    mx:
                      5m:
                        mca: 1265510619.22
                        pua: 1.2655106192
                        ph: 0.0912
                        pc: 4.2
                        bv: 18420.55
                        sv: 12110.4
                        tv: 30530.95
                        nv: 6310.15
                        b: 90
                        s: 71
                        t: 161
                        tf: 0.024
                        bf: 0.008
                        pf: 0.014
                        tip: 0.002
                      1h:
                        mca: 1265510619.22
                        pua: 1.2655106192
                        ph: 0.0912
                        pc: 4.2
                        bv: 18420.55
                        sv: 12110.4
                        tv: 30530.95
                        nv: 6310.15
                        b: 90
                        s: 71
                        t: 161
                        tf: 0.024
                        bf: 0.008
                        pf: 0.014
                        tip: 0.002
                      6h:
                        mca: 1265510619.22
                        pua: 1.2655106192
                        ph: 0.0912
                        pc: 4.2
                        bv: 18420.55
                        sv: 12110.4
                        tv: 30530.95
                        nv: 6310.15
                        b: 90
                        s: 71
                        t: 161
                        tf: 0.024
                        bf: 0.008
                        pf: 0.014
                        tip: 0.002
                      24h:
                        mca: 1265510619.22
                        pua: 1.2655106192
                        ph: 0.0912
                        pc: 4.2
                        bv: 18420.55
                        sv: 12110.4
                        tv: 30530.95
                        nv: 6310.15
                        b: 90
                        s: 71
                        t: 161
                        tf: 0.024
                        bf: 0.008
                        pf: 0.014
                        tip: 0.002
                    mc: 96648686.19
                    pu: 0.09664868619
                    lq: 2319220.17
                    bc: 100
        '400':
          description: >-
            Validation error — missing/invalid `pool_id`, invalid
            `token_address`, or invalid/too-many `timeframes`.
components:
  schemas:
    AdvancedPriceResponse:
      type: object
      required:
        - metrics
      properties:
        metrics:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/TimeFramePriceMetrics'
          propertyNames:
            type: string
        market_cap_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        price_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        liquidity_fdv_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        bonding_curve_percentage:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
    TimeFramePriceMetrics:
      type: object
      required:
        - buys
        - sells
      properties:
        market_cap_usd_ath:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        price_usd_ath:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        price_historical_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        price_change_percentage:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        buy_volume_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        sell_volume_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        total_volume_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        net_volume_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        buys:
          type: integer
          format: int32
          minimum: 0
        sells:
          type: integer
          format: int32
          minimum: 0
        txns:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
        total_fees_native:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
              description: Total fees paid in the chain's native currency.
        total_bot_fees_native:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
              description: Bot fees paid in the chain's native currency.
        total_priority_fees_native:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
              description: Transaction fees paid in the chain's native currency.
        total_tip_amount_native:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
              description: Tips paid in the chain's native currency.
    Decimal:
      type: number
      format: double
      description: Floating-point number serialized as JSON number.
      examples:
        - 4.108801574e-7
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: Secret API key (`sk_*`) or JWT public key (`pk_jwt_*`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.