---
title: "Mini ticker"
description: "Get a mini ticker for one instrument (mark, index, last and mid price, best bid and ask)."
---

Please do not use this to repeatedly poll for data -- a websocket subscription is much more performant, and useful.

| | |
|---|---|
| SDK | `client.mini_ticker(...)` |
| HTTP | `POST https://market-data.<domain>/full/v1/mini`, or `/lite/v1/mini` for [lite names](../../guides/environments.md#encoding-full-or-lite) (the SDKs' default) |
| WebSocket | method `v1/mini` on `wss://market-data.<domain>/ws/full`, or `/ws/lite` for lite names |
| Auth | None (public) |
| Retries | Read: the SDKs retry retryable errors ([rules](../../guides/errors-and-retries.md)) |
| Contract id | `ticker.mini_ticker` (`RPCMiniTickerV1`) |

## Request

Body type `ApiMiniTickerRequest`. Fields the server fills are left out.

- `instrument` · lite `i` · string (instrument name) · required — The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).

## Response

Body type `ApiMiniTickerResponse` (the same object is the JSON-RPC `result` over WebSocket).

- `result` · lite `r` · object MiniTicker · required — The mini ticker matching the request asset
- `result.event_time` · lite `et` · string (int64 unix ns) · optional — Time at which the event was emitted in unix nanoseconds
- `result.instrument` · lite `i` · string (instrument name) · optional — The instrument name, e.g. `BTC_USDT_Perp` (perpetual), `BTC_USDT_SFP` (stable funding perp) or `BTC_USDT_SpotSwap` (spot swap).
- `result.mark_price` · lite `mp` · string · optional — The mark price of the instrument. Decimal string, e.g. "65000.5"; up to 9 decimals.
- `result.index_price` · lite `ip` · string · optional — The index price of the instrument. Decimal string, e.g. "65000.5"; up to 9 decimals.
- `result.last_price` · lite `lp` · string · optional — The last traded price of the instrument (also close price). Decimal string, e.g. "65000.5"; up to 9 decimals.
- `result.last_size` · lite `ls` · string · optional — The number of assets traded in the last trade. Decimal string, e.g. "0.01"; up to the instrument's base_decimals.
- `result.mid_price` · lite `mp1` · string · optional — The mid price of the instrument. Decimal string, e.g. "65000.5"; up to 9 decimals.
- `result.best_bid_price` · lite `bb` · string · optional — The best bid price of the instrument. Decimal string, e.g. "65000.5"; up to 9 decimals.
- `result.best_bid_size` · lite `bb1` · string · optional — The number of assets offered on the best bid price of the instrument. Decimal string, e.g. "0.01"; up to the instrument's base_decimals.
- `result.best_ask_price` · lite `ba` · string · optional — The best ask price of the instrument. Decimal string, e.g. "65000.5"; up to 9 decimals.
- `result.best_ask_size` · lite `ba1` · string · optional — The number of assets offered on the best ask price of the instrument. Decimal string, e.g. "0.01"; up to the instrument's base_decimals.

## Errors

Errors come back as `{"code", "message", "status"}` (lite `{"c", "m", "s"}`) with the HTTP status. Codes this call can return, as code, name (HTTP status) ([all error codes](../errors.md)):

`1002` InternalServer (500) · `1003` InvalidRequest (400) · `1004` NotFound (404) · `1006` RateLimit (429, retryable) · `7725` SfpEndpointNotSupported (403)

## Example

```python
from grvt import Grvt

with Grvt(env="testnet") as client:
    resp = client.mini_ticker(
        instrument="BTC_USDT_Perp",
    )
    print(resp)
```

Raw HTTP (set `GRVT_DOMAIN`, see [Environments](../../guides/environments.md)):

With full field names:

```sh
curl -sS "https://market-data.$GRVT_DOMAIN/full/v1/mini" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "instrument": "BTC_USDT_Perp"
}
EOF
```

With lite field names:

```sh
curl -sS "https://market-data.$GRVT_DOMAIN/lite/v1/mini" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "i": "BTC_USDT_Perp"
}
EOF
```
