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

# Price

> SOL/USD reference price used by the history service

## `solPrice`

Returns the SOL/USD price the history service currently uses when computing `solAmountUsd` / `avgPriceUsd` fields on trades. Refreshed every few seconds by the internal price worker.

### Arguments

None.

### Return type

```graphql theme={null}
type SolPrice {
  solPrice: Float!
  hasValidPrice: Boolean!   # false if price worker hasn't produced a reading yet
  lastUpdated: String!      # ISO-8601
}
```

### Example

```graphql theme={null}
query { solPrice { solPrice hasValidPrice lastUpdated } }
```

```bash theme={null}
curl -X POST https://api.raze.bot/api/sol/graphql \
  -H "Content-Type: application/json" \
  -H "x-api-key: sk_your_key_here" \
  -d '{"query":"query { solPrice { solPrice hasValidPrice lastUpdated } }"}'
```
