# Coins.ph Exchange API
> Live spot market data from Coins.ph (Coins Pro), the Philippines' leading crypto exchange, served straight from its public order books — no key on the data, nothing cached, nothing stored. Look up any market for its last price, best bid/ask and spread, 24h open/high/low, 24h change and base/quote volume; rank every market for a quote currency (Philippine peso PHP, USDT or USDC) by 24h quote volume; list the tradable pairs with their base, quote and status; or pull live order-book depth with the running spread. Markets are addressed as BTCPHP or BTC_PHP. This is the Coins.ph venue specifically — a distinct Philippine-peso price feed, ideal for PHP price discovery and Southeast-Asia-market arbitrage, separate from the USD/USDT-quoted exchange APIs in the catalogue.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/coinsph-api/..."
```

## Pricing
- **Free** (Free) — 23,500 calls/Mo, 3 req/s
- **Starter** ($9/Mo) — 302,000 calls/Mo, 10 req/s
- **Growth** ($26/Mo) — 1,330,000 calls/Mo, 25 req/s
- **Scale** ($61/Mo) — 4,480,000 calls/Mo, 50 req/s

## Endpoints

### Ticker

#### `GET /v1/ticker` — Ticker for one market

**Parameters:**
- `market` (query, optional, string) — Market as BTC_PHP or BTCPHP Example: `BTC_PHP`
- `symbol` (query, optional, string) — Base asset (with quote=) Example: `ETH`
- `quote` (query, optional, string) — Quote asset Example: `PHP`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/coinsph-api/v1/ticker?market=BTC_PHP&symbol=ETH&quote=PHP"
```

### Tickers

#### `GET /v1/tickers` — All markets for a quote ranked by 24h quote volume

**Parameters:**
- `quote` (query, optional, string) — Quote asset Example: `PHP`
- `limit` (query, optional, string) — Max results (1-400) Example: `50`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/coinsph-api/v1/tickers?quote=PHP&limit=50"
```

### Markets

#### `GET /v1/markets` — Tradable pairs with base/quote and status

**Parameters:**
- `quote` (query, optional, string) — Filter by quote asset Example: `PHP`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/coinsph-api/v1/markets?quote=PHP"
```

### Book

#### `GET /v1/book` — Live order-book depth with running spread

**Parameters:**
- `market` (query, optional, string) — Market as BTC_PHP Example: `BTC_PHP`
- `limit` (query, optional, string) — Depth per side (1-100) Example: `20`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/coinsph-api/v1/book?market=BTC_PHP&limit=20"
```

### Meta

#### `GET /v1/meta` — Service metadata

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/coinsph-api/v1/meta"
```


---
Marketplace page: https://www.oanor.com/api/coinsph-api
OpenAPI spec: https://www.oanor.com/api/coinsph-api/openapi.json
