> ## 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.

# Trading capabilities

> Returns the supported trading chains, supported protocols on each chain, and the native token identifier accepted for swaps.

```bash theme={null}
curl "https://staging-api.struct.to/v1/trading/capabilities?fields=short" \
  -H "X-API-Key: YOUR_API_KEY"
```

```json Response (Long) theme={null}
[
  {
    "chain_id": 4663,
    "chain_family": "evm",
    "chain_name": "Robinhood",
    "protocols": [
      "PonsV2",
      "UniswapV3",
      "UniswapV4"
    ],
    "native_token": {
      "token_id": "0x0000000000000000000000000000000000000000",
      "symbol": "ETH",
      "name": "Ether",
      "decimals": 18,
      "description": "Use the zero address for native ETH"
    }
  }
]
```

```jsonc Response (Short) theme={null}
[
  {
    "ci": 4663,
    "cf": "evm",
    "cn": "Robinhood",
    "pr": [
      "PonsV2",
      "UniswapV3",
      "UniswapV4"
    ],
    "nt": {
      "id": "0x0000000000000000000000000000000000000000",
      "s": "ETH",
      "n": "Ether",
      "d": 18,
      "ds": "Use the zero address for native ETH"
    }
  }
]
```


## OpenAPI

````yaml onchain-openapi.json GET /trading/capabilities
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:
  /trading/capabilities:
    get:
      tags:
        - DEX Trading
      summary: Trading capabilities
      description: >-
        Returns the supported trading chains, supported protocols on each chain,
        and the native token identifier accepted for swaps.
      operationId: get_dex_trading_capabilities
      parameters:
        - 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: Trading capabilities
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TradingChainCapabilities'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    - chain_id: 4663
                      chain_family: evm
                      chain_name: Robinhood
                      protocols:
                        - PonsV2
                        - UniswapV3
                        - UniswapV4
                      native_token:
                        token_id: '0x0000000000000000000000000000000000000000'
                        symbol: ETH
                        name: Ether
                        decimals: 18
                        description: Use the zero address for native ETH
                short:
                  summary: Response (Short)
                  value:
                    - ci: 4663
                      cf: evm
                      cn: Robinhood
                      pr:
                        - PonsV2
                        - UniswapV3
                        - UniswapV4
                      nt:
                        id: '0x0000000000000000000000000000000000000000'
                        s: ETH
                        'n': Ether
                        d: 18
                        ds: Use the zero address for native ETH
components:
  schemas:
    TradingChainCapabilities:
      type: object
      required:
        - chain_id
        - chain_family
        - chain_name
        - protocols
        - native_token
      properties:
        chain_id:
          type: integer
          format: int64
        chain_family:
          $ref: '#/components/schemas/TradingChainFamily'
        chain_name:
          type: string
        protocols:
          type: array
          items:
            type: string
        native_token:
          $ref: '#/components/schemas/NativeTokenIdentifier'
    TradingChainFamily:
      type: string
      enum:
        - evm
        - solana
    NativeTokenIdentifier:
      type: object
      required:
        - token_id
        - symbol
        - name
        - decimals
        - description
      properties:
        token_id:
          type: string
        symbol:
          type: string
        name:
          type: string
        decimals:
          type: integer
          format: int32
          minimum: 0
        description:
          type: string
  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.