mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 16:28:06 +00:00
2.5 KiB
2.5 KiB
Tickers
Request
{% tabs %}
{% tab title="Get pairs" %} GET [ARCHIVE_V2_ENDPOINT]/tickers?market={spot|perp}&edge={true|false}
{% endtab %}
{% endtabs %}
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| market | string | No | Indicates the corresponding market to fetch trading tickers info for. Allowed values are: spotand perp. When no market param is provided, it returns all available tickers. |
| edge | bool | No | Whether to retrieve volume metrics for all chains. When turned off, it only returns metrics for the current chain. Defaults to true. |
Response
{% hint style="info" %}
Note: the response is a map of ticker_id -> ticker info object.
{% endhint %}
{
"BTC-PERP_USDT0": {
"product_id": 1,
"ticker_id": "BTC-PERP_USDT0",
"base_currency": "BTC",
"quote_currency": "USDT0",
"last_price": 25728.0,
"base_volume": 552.048,
"quote_volume": 14238632.207250029,
"price_change_percent_24h": -0.6348599635253989
}
}
Response Fields
| Field Name | Type | Nullable | Description |
|---|---|---|---|
| product_id | u32 | No | Unique identifier for the product. |
| ticker_id | string | No | Identifier of a ticker with delimiter to separate base/target. |
| base_currency | string | No | Symbol of the base asset. |
| quote_currency | string | No | Symbol of the target asset. |
| last_price | decimal | No | Last transacted price of base currency based on given quote currency. |
| base_volume | decimal | No | 24-hours trading volume for the pair (unit in base) |
| quote_volume | decimal | No | 24-hours trading volume for the pair (unit in quote/target) |
| price_change_percent_24h | decimal | No | 24-hours % price change of market pair |