# Oracle Prices

> Oracle API endpoints for oracle information.

# Oracle Prices

Oracle API endpoints for oracle information.

Use this page for public price and token reads. For workflow guidance across the GMX API, Oracle API, GraphQL, and SDK surfaces, start with the [API integration guide](../integration-guide.md).

## Ping

Use the ping endpoint to check whether the oracle API is healthy. The endpoint verifies database connectivity and returns a JSON response.

| Network   | URL                                      |
| --------- | ---------------------------------------- |
| Arbitrum  | <CopyUrl url="https://arbitrum-api.gmxinfra.io/ping" />  |
| Avalanche | <CopyUrl url="https://avalanche-api.gmxinfra.io/ping" /> |

**Success response** (`200 OK`):

```json
{ "ok": true }
```

**Error response** (`500 Internal Server Error`):

```json
{ "errors": ["db is unavailable"] }
```

## Tickers

The tickers endpoint returns the latest price data for all supported tokens. Use this endpoint for real-time price display in your application.

| Network   | URL                                                |
| --------- | -------------------------------------------------- |
| Arbitrum  | <CopyUrl url="https://arbitrum-api.gmxinfra.io/prices/tickers" />  |
| Avalanche | <CopyUrl url="https://avalanche-api.gmxinfra.io/prices/tickers" /> |

**Response** — an array of ticker objects:

```json
[
  {
    "tokenAddress": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
    "tokenSymbol": "ETH",
    "minPrice": "1799910000000000",
    "maxPrice": "1800090000000000",
    "updatedAt": 1708956120000,
    "timestamp": 1708956120
  }
]
```

Prices are strings in the contract price format. Divide by `10^(30 - tokenDecimals)` to get the USD price. For example, ETH has 18 decimals, so a `minPrice` of `1799910000000000` is $1,799.91. `updatedAt` is in milliseconds and `timestamp` is in seconds.

GLV ticker symbols are network-specific, for example `GLV [ETH-USDC]`. Use the `/tokens` endpoint to get the exact GLV symbol and address for the network before requesting ticker or candle data. For GM and GLV integration guidance across Chainlink feeds, API data, and Reader calls, see [Getting GM and GLV token prices](../gm-glv-prices.md).

## Signed prices

The signed prices endpoint returns the latest oracle-signed price data for each supported token. Include these signed prices in your transaction payloads when interacting with GMX contracts on-chain.

| Network   | URL                                                      |
| --------- | -------------------------------------------------------- |
| Arbitrum  | <CopyUrl url="https://arbitrum-api.gmxinfra.io/signed_prices/latest" />  |
| Avalanche | <CopyUrl url="https://avalanche-api.gmxinfra.io/signed_prices/latest" /> |

**Response** (one ETH entry on Arbitrum, with `blob` shortened):

```json
{
  "signedPrices": [
    {
      "id": "12928563915",
      "minBlockNumber": null,
      "minBlockHash": null,
      "oracleDecimals": null,
      "tokenSymbol": "ETH",
      "tokenAddress": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
      "minPrice": null,
      "maxPrice": null,
      "signer": null,
      "signature": null,
      "signatureWithoutBlockHash": null,
      "createdAt": "2026-11-26T11:13:17.435Z",
      "minBlockTimestamp": 1795691596,
      "oracleKeeperKey": "realtimeFeed",
      "maxBlockTimestamp": 1795691596,
      "maxBlockNumber": null,
      "maxBlockHash": null,
      "maxPriceFull": "1694293052704779",
      "minPriceFull": "1694204161168350",
      "oracleKeeperRecordId": null,
      "oracleKeeperFetchType": "ws",
      "oracleType": "realtimeFeed2",
      "blob": "0x00094bae...",
      "isValid": true,
      "invalidReason": null,
      "marketStatus": 2,
      "feedVersion": "v3",
      "stalenessSeconds": null
    }
  ]
}
```

`blob` is the signed Chainlink Data Streams report for the token. `minPriceFull` and `maxPriceFull` are the bid and the ask of that report in the contract price format. Divide them by `10^(30 - tokenDecimals)`, as for the tickers: the `minPriceFull` above is $1,694.20. `minBlockTimestamp` and `maxBlockTimestamp` hold the report time in seconds. The older `minPrice`, `maxPrice`, `oracleDecimals`, `signer`, and `signature` fields and the block number and hash fields are `null` for these entries.

## Candlesticks

The candlesticks endpoint returns OHLC price data for a given token and time period. Candles are returned in descending order (most recent first).

| Network   | Base URL                                           |
| --------- | -------------------------------------------------- |
| Arbitrum  | <CopyUrl url="https://arbitrum-api.gmxinfra.io/prices/candles" />  |
| Avalanche | <CopyUrl url="https://avalanche-api.gmxinfra.io/prices/candles" /> |

**Required query parameters:**

- `tokenSymbol` — the token symbol, for example `ETH` or `BTC`
- `period` — one of `1m`, `5m`, `15m`, `1h`, `4h`, or `1d`

**Optional query parameters:**

- `limit` — maximum number of candles to return. Defaults to `1000`. Minimum: `1`. Maximum: `10000`.

**Example request:**

```bash
GET https://arbitrum-api.gmxinfra.io/prices/candles?tokenSymbol=ETH&period=1d&limit=2
```

**Response:**

```json
{
  "period": "1d",
  "candles": [
    [1701388800, 2150.25, 2180.5, 2145.0, 2175.3],
    [1701302400, 2120.1, 2155.0, 2110.0, 2150.25]
  ]
}
```

Each candle is an array of five values in this order:

1. `timestamp` — Unix timestamp (seconds) of the candle period start
2. `open` — opening price
3. `high` — highest price during the period
4. `low` — lowest price during the period
5. `close` — closing price

## Tokens

The tokens endpoint returns a list of all tokens supported by the oracle on a given network.

| Network   | URL                                        |
| --------- | ------------------------------------------ |
| Arbitrum  | <CopyUrl url="https://arbitrum-api.gmxinfra.io/tokens" />  |
| Avalanche | <CopyUrl url="https://avalanche-api.gmxinfra.io/tokens" /> |

## Operational notes

- `/prices/tickers`, `/signed_prices/latest`, and `/prices/candles` use a `10` second route timeout in the current oracle-keeper implementation.
- `/prices/tickers` uses a short in-process cache of `0.3` seconds in the current implementation.
- `/signed_prices/latest` is cached for `1` second in the current implementation.
- `/prices/candles` is cached for `15` seconds for `1m` and `5m` periods, and `60` seconds for larger periods.
- `/tokens` returns the configured token list for the network. If you need richer token data with current prices, use the GMX API or SDK v2, which read from `/tokens/info`.
- If you need retries or fallback behavior, implement that in your app. These docs do not publish a public SLA.
