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

# Coin Price by Token Address

> Price lookup by on-chain contract address when you have a token address and no CoinGecko id.

Price lookup keyed by on-chain contract address rather than CoinGecko id. `id` is the asset platform, `contract_addresses` a comma-separated list of token addresses, `vs_currencies` the quote currency. Returns a map keyed by lowercase contract address whose field names are built from the quote currency — `usd`, plus `usd_market_cap`, `usd_24h_vol`, `usd_24h_change` and `last_updated_at` when the matching `include_market_cap`, `include_24hr_vol`, `include_24hr_change` and `include_last_updated_at` flags are set. Use it when you hold an address and no id. For the token's full profile use [`get_coingecko_token_data`](/docs/api-reference/coingecko/get_coingecko-coins-id-contract-contract-address); if you already have the CoinGecko id use [`get_coingecko_simple_price`](/docs/api-reference/coingecko/get_coingecko-simple-price).


## OpenAPI

````yaml openapi/coingecko.json GET /coingecko/simple/token_price/{id}
openapi: 3.0.3
info:
  title: CoinGecko API
  version: 1.0.0
  description: >-
    CoinGecko crypto market data routed through the AIsa gateway. Covers coin
    metadata, live and historical prices, OHLC, exchanges, tickers, categories,
    and trending search. Proxies the public CoinGecko v3 API at
    `https://api.coingecko.com/api/v3/`.
servers:
  - url: https://api.aisa.one/apis/v1
security:
  - BearerAuth: []
paths:
  /coingecko/simple/token_price/{id}:
    get:
      summary: Coin Price by Token Address
      description: >-
        Price lookup keyed by on-chain contract address rather than CoinGecko
        id. `id` is the asset platform, `contract_addresses` a comma-separated
        list of token addresses, `vs_currencies` the quote currency. Returns a
        map keyed by lowercase contract address whose field names are built from
        the quote currency — `usd`, plus `usd_market_cap`, `usd_24h_vol`,
        `usd_24h_change` and `last_updated_at` when the matching
        `include_market_cap`, `include_24hr_vol`, `include_24hr_change` and
        `include_last_updated_at` flags are set. Use it when you hold an address
        and no id. For the token's full profile use `get_coingecko_token_data`;
        if you already have the CoinGecko id use `get_coingecko_simple_price`.
      operationId: get_coingecko_simple_token_price_id
      parameters:
        - name: id
          in: path
          required: true
          description: >-
            Platform ID (e.g., `ethereum`, `binance-smart-chain`,
            `polygon-pos`).
          schema:
            type: string
          example: ethereum
        - name: contract_addresses
          in: query
          required: true
          description: Comma-separated contract addresses.
          schema:
            type: string
          example: '0xdAC17F958D2ee523a2206206994597C13D831ec7'
        - name: vs_currencies
          in: query
          required: true
          description: Comma-separated target currencies.
          schema:
            type: string
          example: usd
        - name: include_market_cap
          in: query
          schema:
            type: boolean
        - name: include_24hr_vol
          in: query
          schema:
            type: boolean
        - name: include_24hr_change
          in: query
          schema:
            type: boolean
        - name: include_last_updated_at
          in: query
          schema:
            type: boolean
        - name: precision
          in: query
          schema:
            type: string
          description: >-
            `full` or a value from `0` to `18` to specify decimal places for
            currency price values.
          example: '2'
      responses:
        '200':
          description: Map keyed by contract address.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CoinGeckoSimplePriceMap'
components:
  schemas:
    CoinGeckoSimplePriceMap:
      type: object
      additionalProperties:
        type: object
        additionalProperties: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: AISA API Key

````