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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Crypto Market Data

> Real-time and historical cryptocurrency market data for autonomous agents — prices, coin details, charts, OHLC candles, token lookup by contract address, market-cap screening, exchange tickers, categories, trending searches, and crypto news.

[View on GitHub →](https://github.com/AIsa-team/agent-skills/tree/main/financial/crypto-market-data)

**Complete crypto market data for autonomous agents.** One `AISA_API_KEY` unlocks CoinGecko — prices, charts, OHLC candles, on-chain token lookup, exchange tickers, trending coins, and news. Everything an agent needs to research, screen, and track the crypto market.

## Install

```bash npx skills theme={null}
npx skills add AIsa-team/agent-skills --skill crypto-market-data
```

```bash AIsa CLI theme={null}
npm install -g @aisa-one/cli
aisa skills install crypto-market-data
```

Start a new agent session after installing so the skill loads.

## What can agents do with it?

> [card] Price tracking
>
> "Get current BTC and ETH prices in USD and EUR with 24-hour change."

> [card] Historical charts
>
> "Pull bitcoin's 30-day price chart in USD for my dashboard."

> [card] OHLC candles
>
> "Return the last 7 days of OHLC candles for ethereum."

> [card] On-chain token lookup
>
> "Identify the ERC-20 at address 0xA0b8…eB48 and pull its price."

> [card] Market-cap screening
>
> "Show me the top 25 coins by market cap, ordered descending."

> [card] Exchange research
>
> "List Binance tickers ordered by trust score."

## Core capabilities

* **Simple prices** — current prices across fiat and crypto currencies, with optional market-cap / 24h-volume / 24h-change includes
* **Coin data** — full coin profile, lists, historical snapshots, market charts, OHLC candles, tickers
* **Contract-based lookup** — resolve a token by contract address on a supported platform (Ethereum, BSC, Polygon, etc.) and pull its price or full profile
* **Markets & screening** — coins by market cap with flexible ordering and pagination
* **Categories** — category lists and per-category market leaderboards (DeFi, AI, L1s, etc.)
* **Exchanges** — exchange lists, detailed data, trading pairs, ID mappings
* **Trending & news** — trending search queries and current crypto news (CoinGecko news is upstream plan-gated)

## Quick start

```bash theme={null}
export AISA_API_KEY="your-key"
```

### Simple prices

```bash theme={null}
# Current prices with 24h change
python3 scripts/coingecko_client.py simple price \
  --ids bitcoin,ethereum --vs usd,eur --include-24hr-change

# Or direct curl
curl "https://api.aisa.one/apis/v1/coingecko/simple/price?ids=bitcoin,ethereum&vs_currencies=usd,eur&include_24hr_change=true" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

### Market-cap screening

```bash theme={null}
python3 scripts/coingecko_client.py coins markets \
  --vs usd --order market_cap_desc --per-page 25
```

### Historical chart

```bash theme={null}
python3 scripts/coingecko_client.py coins chart --id bitcoin --vs usd --days 30
```

### OHLC candles

```bash theme={null}
python3 scripts/coingecko_client.py coins ohlc --id bitcoin --vs usd --days 7
```

### Token lookup by contract address

```bash theme={null}
python3 scripts/coingecko_client.py coins contract \
  --platform ethereum \
  --address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
```

### Exchange tickers

```bash theme={null}
python3 scripts/coingecko_client.py exchanges tickers \
  --id binance --order trust_score_desc
```

## When to use it

* Cryptocurrency price tracking and portfolio analysis
* Token identification via on-chain contract addresses
* Market-cap screening and category breakdowns
* Exchange-level research (trust scores, trading pairs, tickers)
* Current and historical crypto data for reports and dashboards

## When not to use it

* Traditional equities data — use [MarketPulse](https://aisa.one/docs/agent-skills/marketpulse.md) instead
* Prediction-market order-book depth — use [Prediction Market Data](https://aisa.one/docs/agent-skills/prediction-market-data.md)
* On-chain wallet operations (balance lookups, transaction traces) — different specialized tools

## Requirements

* Python 3, `curl`, POSIX shell
* `AISA_API_KEY` ([sign up at aisa.one](https://aisa.one))
* Compatible with agentskills.io-standard harnesses

## Endpoint reference

| Endpoint | Method | Purpose |
| - | - | - |
| `/coingecko/simple/price` | GET | [Simple price](https://aisa.one/docs/api-reference/coingecko/get_coingecko-simple-price.md) |
| `/coingecko/simple/supported_vs_currencies` | GET | [Supported currencies](https://aisa.one/docs/api-reference/coingecko/get_coingecko-simple-supported-vs-currencies.md) |
| `/coingecko/simple/token_price/{id}` | GET | [Coin price by token address](https://aisa.one/docs/api-reference/coingecko/get_coingecko-simple-token-price-id.md) |
| `/coingecko/coins/list` | GET | [Coins list](https://aisa.one/docs/api-reference/coingecko/get_coingecko-coins-list.md) |
| `/coingecko/coins/markets` | GET | [Coins markets](https://aisa.one/docs/api-reference/coingecko/get_coingecko-coins-markets.md) |
| `/coingecko/coins/{id}` | GET | [Coin data by id](https://aisa.one/docs/api-reference/coingecko/get_coingecko-coins-id.md) |
| `/coingecko/coins/{id}/history` | GET | [Coin historical data](https://aisa.one/docs/api-reference/coingecko/get_coingecko-coins-id-history.md) |
| `/coingecko/coins/{id}/market_chart` | GET | [Coin historical chart](https://aisa.one/docs/api-reference/coingecko/get_coingecko-coins-id-market-chart.md) |
| `/coingecko/coins/{id}/market_chart/range` | GET | [Coin market chart range](https://aisa.one/docs/api-reference/coingecko/get_coingecko-coins-id-market-chart-range.md) |
| `/coingecko/coins/{id}/ohlc` | GET | [Coin OHLC](https://aisa.one/docs/api-reference/coingecko/get_coingecko-coins-id-ohlc.md) |
| `/coingecko/coins/{id}/tickers` | GET | [Coin tickers](https://aisa.one/docs/api-reference/coingecko/get_coingecko-coins-id-tickers.md) |
| `/coingecko/coins/{id}/contract/{contract_address}` | GET | [Coin data by token address](https://aisa.one/docs/api-reference/coingecko/get_coingecko-coins-id-contract-contract-address.md) |
| `/coingecko/coins/{id}/contract/{contract_address}/market_chart` | GET | [Historical chart by contract](https://aisa.one/docs/api-reference/coingecko/get_coingecko-coins-id-contract-contract-address-market-chart.md) |
| `/coingecko/coins/{id}/contract/{contract_address}/market_chart/range` | GET | [Historical chart range by contract](https://aisa.one/docs/api-reference/coingecko/get_coingecko-coins-id-contract-contract-address-market-chart-range.md) |
| `/coingecko/coins/categories/list` | GET | [Categories list](https://aisa.one/docs/api-reference/coingecko/get_coingecko-coins-categories-list.md) |
| `/coingecko/coins/categories` | GET | [Categories with market data](https://aisa.one/docs/api-reference/coingecko/get_coingecko-coins-categories.md) |
| `/coingecko/exchanges` | GET | [Exchanges list](https://aisa.one/docs/api-reference/coingecko/get_coingecko-exchanges.md) |
| `/coingecko/exchanges/list` | GET | [Exchange id map](https://aisa.one/docs/api-reference/coingecko/get_coingecko-exchanges-list.md) |
| `/coingecko/exchanges/{id}` | GET | [Exchange data by id](https://aisa.one/docs/api-reference/coingecko/get_coingecko-exchanges-id.md) |
| `/coingecko/exchanges/{id}/tickers` | GET | [Exchange tickers](https://aisa.one/docs/api-reference/coingecko/get_coingecko-exchanges-id-tickers.md) |
| `/coingecko/search/trending` | GET | [Trending search](https://aisa.one/docs/api-reference/coingecko/get_coingecko-search-trending.md) |
| `/coingecko/news` | GET | [Crypto news](https://aisa.one/docs/api-reference/coingecko/get_coingecko-news) |

## Get started

1. Sign up at [aisa.one](https://aisa.one) and create an API key in the console.
2. Set it in your shell: `export AISA_API_KEY="your-key"`.
3. Install the skill with one of the commands under [Install](#install), then start a new agent session.

## Related

> [card] [CoinGecko API reference](https://aisa.one/docs/api-reference/coingecko/get_coingecko-simple-price.md)
>
> Every endpoint this skill wraps, with interactive playgrounds.

> [card] [MarketPulse](https://aisa.one/docs/agent-skills/marketpulse.md)
>
> Equities counterpart — stocks, financials, filings, macro.

> [card] [Prediction Market Data](https://aisa.one/docs/agent-skills/prediction-market-data.md)
>
> Polymarket and Kalshi for event-probability data.


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