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

# Endpoint Caching

> Caching durations for GM Backend API endpoints.

This page outlines caching durations for various GM Backend API endpoints, establishing performance parameters while balancing freshness requirements.

## Markets

**Endpoints:** [Get Market Data for All Supported Assets](/api-reference/assets/get-market-data-for-all-supported-assets) | [Get Market Data for an Asset](/api-reference/assets/get-market-data-for-an-asset)

* **Cache Duration:** 1 minute
* Market data is relatively static. A 1-minute cache strikes a balance between performance and freshness.

## OHLC

**Endpoint:** [Get OHLC Data for an Asset](/api-reference/assets/get-ohlc-open-high-low-close-data-for-an-asset)

* **Cache Duration:** 30 seconds
* **Data Delay:** Underlying OHLC data may itself be delayed by up to 1 minute
* **Effective Lag:** Up to 1 minute 30 seconds behind real-time
* This design reduces load while ensuring users have access to consistent, batched candlestick data.

## Latest Prices

**Endpoints:** [Get Current Prices for All Supported Assets](/api-reference/assets/get-current-prices-for-all-supported-assets) | [Get Current Price for an Asset](/api-reference/assets/get-current-price-for-an-asset) | [Get Enhanced Prices for All Supported Assets](/api-reference/assets/get-enhanced-prices-for-all-supported-assets)

* **Cache Duration:** 1 second
* Price queries are the most latency-sensitive. The cache is kept minimal to support near-real-time pricing while still providing performance benefits.

## Trading Limits

**Endpoint:** [Get Trading Limits](/api-reference/limits/get-trading-limits)

* **Cache Duration:** None
* These values are critical for risk management and must always reflect the latest state.

## Session Limits

**Endpoint:** [Get Session Limits](/api-reference/limits/get-session-limits)

* **Cache Duration:** 1 minute
* Session limits are relatively static, so a 1-minute cache strikes a balance between performance and freshness.

## All Metadata

**Endpoint:** [Get Metadata for All Supported Assets](/api-reference/assets/get-metadata-for-all-supported-assets)

* **Cache Duration:** 5 minutes
* Metadata is relatively static, so a 5-minute cache strikes a balance between performance and freshness.

## Shares Multiplier

**Endpoint:** [Get Shares Multiplier History for an Asset](/api-reference/assets/get-shares-multiplier-history-for-an-asset)

* **Cache Duration:** 1 second
* Shares multipliers change infrequently, but a 1-second cache supports near-real-time discovery of the shares multiplier change while still providing performance benefits.

## Default Behavior

Unless otherwise specified, all GET endpoints default to:

* **Cache Duration:** 1 minute
* This ensures consistency across the API and reduces the need for endpoint-specific caching rules.
