# Quick Start

### Check API Health

bash

```bash
curl https://flashapi.trade/health
```

json

```json
{
  "status": "ok",
  "accounts": {
    "perpetuals": 1,
    "pools": 1,
    "custodies": 7,
    "markets": 11,
    "positions": 542,
    "orders": 128
  }
}
```

***

### Get Current Prices

bash

```bash
curl https://flashapi.trade/prices
```

json

```json
{
  "SOL": {
    "price": "14852000000",
    "exponent": "-8",
    "price_ui": "148.52",
    "timestamp_us": "1707900000000000"
  },
  "BTC": {
    "price": "6500000000000",
    "exponent": "-8",
    "price_ui": "65000.00",
    "timestamp_us": "1707900000000000"
  }
}
```

Use `price_ui` for human-readable values. See [Data Formats & Precision](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-api/data-formats-and-precision) for details on the raw price format.

***

### Get Positions for a Wallet

bash

```bash
curl "https://flashapi.trade/positions/owner/{WALLET_PUBKEY}?includePnlInLeverageDisplay=true"
```

Returns enriched position data with PnL, leverage, and liquidation prices. See [Endpoints Overview](https://docs.flash.trade/flash-trade/flash-trade-protocol/build-on-flash/flash-trade-api/endpoints-overview) for the full response shape.
