# Prices

> Read the USD price of each chain's native asset and of the quote tokens launches trade against.

One endpoint returns every price the app needs to value balances: the native asset of each chain, and the quote tokens (stablecoins and other quote assets) grouped by chain.

All prices are integers in **micro-USD**: `1000002` means $1.000002. Divide by `1000000` to get dollars. The web app polls this endpoint every 15 seconds for the bottom-bar tickers and every USD conversion.

Base URL: `https://api-mig.proxima.tools`

## Endpoints

- `GET /get-prices`: Retrieve prices

### Retrieve prices

`GET /get-prices`

Returns native asset prices per chain and quote token prices per chain, in micro-USD. (Bearer JWT)

- Token: Upgraded session token, bound to a license.
- Read-only tokens: allowed.
- Retry: Safe to retry.

Top-level keys are chain IDs; the current backend sends all seven below, read from its price cache. `quotes` maps each chain ID to an object keyed by token mint (Solana) or contract address (EVM).

#### Returns 200 OK

- `sol` (integer): SOL price in micro-USD.
- `eth` (integer): Ethereum native asset price in micro-USD.
- `bsc` (integer): BNB Chain native asset price in micro-USD.
- `base` (integer): Base native asset price in micro-USD.
- `robinhood` (integer): Robinhood Chain native asset price in micro-USD.
- `arc` (integer): Arc native asset price in micro-USD. Arc's native asset is a dollar stablecoin, served at its peg (`1000000`).
- `xlayer` (integer): X Layer native asset price in micro-USD.
- `quotes` (object): Quote token prices: `{ [chain_id]: { [mint_or_address]: micro_usd } }`. A quote the backend cannot value is absent rather than `0`. The chain's own native asset is never listed here.

#### Example request

```bash
curl "https://api-mig.proxima.tools/get-prices" \
  -H "Authorization: Bearer $PROXIMA_JWT"
```

#### Example response

```json
{
  "sol": 168420000,
  "eth": 3912550000,
  "bsc": 1094120000,
  "base": 3912550000,
  "robinhood": 3912550000,
  "arc": 1000000,
  "xlayer": 171230000,
  "quotes": {
    "sol": {
      "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v": 1000002
    },
    "bsc": {
      "0xffe463433bfe884b7dc37be8fc7b86b75c7a1215": 999870
    },
    "base": {},
    "eth": {},
    "robinhood": {},
    "arc": {},
    "xlayer": {}
  }
}
```
