# Loris Tools — Complete Developer & Trading Documentation

> Auto-generated full Markdown bundle of every Loris Tools documentation page. Always in sync with https://loris.tools/docs.

Base API URL: https://api.loris.tools
MCP Server (Streamable HTTP, read-only): https://mcp.loris.tools/mcp
Authentication: send an X-Api-Key header (free tier includes live BTC & ETH across all 43+ venues; Dev/Pro/Team unlock all 3,900+ symbols and historical data).
Pricing & API keys: https://loris.tools/pricing
Compact index: https://loris.tools/llms.txt
Total documents: 102

## Usage Policy (No Scraping)

Scraping, crawling, or automated extraction of data from loris.tools web pages or internal endpoints — including via AI agents, LLMs, headless browsers, or harvesting/reusing browser session cookies or tokens — is strictly prohibited by our Terms of Service (https://loris.tools/terms). Use the official authenticated Data API (https://api.loris.tools with X-Api-Key) or the official MCP server (https://mcp.loris.tools/mcp).

## Table of Contents

1. [Loris Trade Overview](https://loris.tools/docs/trade) — https://loris.tools/docs/md/trade
2. [Deposits & Transfers](https://loris.tools/docs/trade/deposits-and-transfers) — https://loris.tools/docs/md/trade/deposits-and-transfers
3. [Venues & Markets](https://loris.tools/docs/trade/venues-and-markets) — https://loris.tools/docs/md/trade/venues-and-markets
4. [Order Types & Execution](https://loris.tools/docs/trade/order-types) — https://loris.tools/docs/md/trade/order-types
5. [Fees, Cashback & Security](https://loris.tools/docs/trade/fees-and-security) — https://loris.tools/docs/md/trade/fees-and-security
6. [Quickstart](https://loris.tools/docs) — https://loris.tools/docs/md
7. [Authentication](https://loris.tools/docs/authentication) — https://loris.tools/docs/md/authentication
8. [Pricing & plans](https://loris.tools/docs/pricing) — https://loris.tools/docs/md/pricing
9. [Rate limits](https://loris.tools/docs/rate-limits) — https://loris.tools/docs/md/rate-limits
10. [Errors](https://loris.tools/docs/errors) — https://loris.tools/docs/md/errors
11. [Funding arb backtest](https://loris.tools/docs/guides/funding-arb-backtest) — https://loris.tools/docs/md/guides/funding-arb-backtest
12. [API Reference](https://loris.tools/docs/api) — https://loris.tools/docs/md/api
13. [API Changelog](https://loris.tools/docs/api/changelog) — https://loris.tools/docs/md/api/changelog
14. [Funding](https://loris.tools/docs/api/funding) — https://loris.tools/docs/md/api/funding
15. [Funding Rates](https://loris.tools/docs/api/funding/funding) — https://loris.tools/docs/md/api/funding/funding
16. [Funding Metadata](https://loris.tools/docs/api/funding/metadata) — https://loris.tools/docs/md/api/funding/metadata
17. [Historical Funding](https://loris.tools/docs/api/funding/historical) — https://loris.tools/docs/md/api/funding/historical
18. [Settlement Funding](https://loris.tools/docs/api/funding/settlement) — https://loris.tools/docs/md/api/funding/settlement
19. [Historical by Exchange](https://loris.tools/docs/api/funding/historical-by-exchange) — https://loris.tools/docs/md/api/funding/historical-by-exchange
20. [Exchange Snapshots (All)](https://loris.tools/docs/api/funding/exchange-snapshots-all) — https://loris.tools/docs/md/api/funding/exchange-snapshots-all
21. [Funding Symbols](https://loris.tools/docs/api/funding/symbols) — https://loris.tools/docs/md/api/funding/symbols
22. [Open Interest](https://loris.tools/docs/api/open-interest) — https://loris.tools/docs/md/api/open-interest
23. [OI Symbols](https://loris.tools/docs/api/open-interest/symbols) — https://loris.tools/docs/md/api/open-interest/symbols
24. [Exchange OI Totals](https://loris.tools/docs/api/open-interest/exchange-totals) — https://loris.tools/docs/md/api/open-interest/exchange-totals
25. [Symbol OI Timeseries](https://loris.tools/docs/api/open-interest/coin) — https://loris.tools/docs/md/api/open-interest/coin
26. [Exchanges Summary](https://loris.tools/docs/api/open-interest/exchanges-summary) — https://loris.tools/docs/md/api/open-interest/exchanges-summary
27. [Exchange Symbols](https://loris.tools/docs/api/open-interest/exchange-symbols) — https://loris.tools/docs/md/api/open-interest/exchange-symbols
28. [Top Symbols Timeseries](https://loris.tools/docs/api/open-interest/exchange-top-symbols-timeseries) — https://loris.tools/docs/md/api/open-interest/exchange-top-symbols-timeseries
29. [OI Metadata](https://loris.tools/docs/api/open-interest/metadata) — https://loris.tools/docs/md/api/open-interest/metadata
30. [Order Book Depth](https://loris.tools/docs/api/orderbook) — https://loris.tools/docs/md/api/orderbook
31. [Live Depth Snapshot](https://loris.tools/docs/api/orderbook/live) — https://loris.tools/docs/md/api/orderbook/live
32. [Historical Impact Series](https://loris.tools/docs/api/orderbook/history) — https://loris.tools/docs/md/api/orderbook/history
33. [Price Impact](https://loris.tools/docs/api/orderbook/impact) — https://loris.tools/docs/md/api/orderbook/impact
34. [Raw Book Snapshot](https://loris.tools/docs/api/orderbook/book) — https://loris.tools/docs/md/api/orderbook/book
35. [Depth Band History](https://loris.tools/docs/api/orderbook/depth-history) — https://loris.tools/docs/md/api/orderbook/depth-history
36. [Volume](https://loris.tools/docs/api/volume) — https://loris.tools/docs/md/api/volume
37. [Volume Symbols](https://loris.tools/docs/api/volume/symbols) — https://loris.tools/docs/md/api/volume/symbols
38. [Exchange Volume Totals](https://loris.tools/docs/api/volume/exchange-totals) — https://loris.tools/docs/md/api/volume/exchange-totals
39. [Symbol Volume Timeseries](https://loris.tools/docs/api/volume/coin) — https://loris.tools/docs/md/api/volume/coin
40. [Exchanges Summary](https://loris.tools/docs/api/volume/exchanges-summary) — https://loris.tools/docs/md/api/volume/exchanges-summary
41. [Exchange Symbols](https://loris.tools/docs/api/volume/exchange-symbols) — https://loris.tools/docs/md/api/volume/exchange-symbols
42. [Top Symbols Timeseries](https://loris.tools/docs/api/volume/exchange-top-symbols-timeseries) — https://loris.tools/docs/md/api/volume/exchange-top-symbols-timeseries
43. [Volume Metadata](https://loris.tools/docs/api/volume/metadata) — https://loris.tools/docs/md/api/volume/metadata
44. [Liquidations](https://loris.tools/docs/api/liquidations) — https://loris.tools/docs/md/api/liquidations
45. [Liquidation Events](https://loris.tools/docs/api/liquidations/events) — https://loris.tools/docs/md/api/liquidations/events
46. [Liquidation Aggregates](https://loris.tools/docs/api/liquidations/aggregates) — https://loris.tools/docs/md/api/liquidations/aggregates
47. [Filter Counts](https://loris.tools/docs/api/liquidations/filter-counts) — https://loris.tools/docs/md/api/liquidations/filter-counts
48. [Liquidation History](https://loris.tools/docs/api/liquidations/history) — https://loris.tools/docs/md/api/liquidations/history
49. [Liquidation Bubbles](https://loris.tools/docs/api/liquidations/bubbles) — https://loris.tools/docs/md/api/liquidations/bubbles
50. [Estimated Liquidation Heatmap](https://loris.tools/docs/api/liquidations/heatmap) — https://loris.tools/docs/md/api/liquidations/heatmap
51. [Markets](https://loris.tools/docs/api/markets) — https://loris.tools/docs/md/api/markets
52. [Movers](https://loris.tools/docs/api/markets/movers) — https://loris.tools/docs/md/api/markets/movers
53. [Liquidation Movers](https://loris.tools/docs/api/markets/liquidation-movers) — https://loris.tools/docs/md/api/markets/liquidation-movers
54. [Funding Leaders](https://loris.tools/docs/api/markets/funding-leaders) — https://loris.tools/docs/md/api/markets/funding-leaders
55. [Distribution](https://loris.tools/docs/api/markets/distribution) — https://loris.tools/docs/md/api/markets/distribution
56. [Price Buckets](https://loris.tools/docs/api/markets/price-buckets) — https://loris.tools/docs/md/api/markets/price-buckets
57. [Price Movers](https://loris.tools/docs/api/markets/price-movers) — https://loris.tools/docs/md/api/markets/price-movers
58. [Exchange Distribution](https://loris.tools/docs/api/markets/exchange-distribution) — https://loris.tools/docs/md/api/markets/exchange-distribution
59. [Exchanges](https://loris.tools/docs/api/markets/exchanges) — https://loris.tools/docs/md/api/markets/exchanges
60. [Exchanges (All)](https://loris.tools/docs/api/markets/exchanges-all) — https://loris.tools/docs/md/api/markets/exchanges-all
61. [Exchange Symbols](https://loris.tools/docs/api/markets/exchange-symbols) — https://loris.tools/docs/md/api/markets/exchange-symbols
62. [Exchange Stats](https://loris.tools/docs/api/markets/exchange-stats) — https://loris.tools/docs/md/api/markets/exchange-stats
63. [Exchange Timeseries](https://loris.tools/docs/api/markets/exchange-timeseries) — https://loris.tools/docs/md/api/markets/exchange-timeseries
64. [Symbols](https://loris.tools/docs/api/markets/symbols) — https://loris.tools/docs/md/api/markets/symbols
65. [Symbol Timeseries](https://loris.tools/docs/api/markets/symbol-timeseries) — https://loris.tools/docs/md/api/markets/symbol-timeseries
66. [Symbol Distribution](https://loris.tools/docs/api/markets/symbol-distribution) — https://loris.tools/docs/md/api/markets/symbol-distribution
67. [Symbol Exchanges](https://loris.tools/docs/api/markets/symbol-exchanges) — https://loris.tools/docs/md/api/markets/symbol-exchanges
68. [Symbol Stats](https://loris.tools/docs/api/markets/symbol-stats) — https://loris.tools/docs/md/api/markets/symbol-stats
69. [Options](https://loris.tools/docs/api/options) — https://loris.tools/docs/md/api/options
70. [Options Snapshot](https://loris.tools/docs/api/options/snapshot) — https://loris.tools/docs/md/api/options/snapshot
71. [Options Overview History](https://loris.tools/docs/api/options/overview-history) — https://loris.tools/docs/md/api/options/overview-history
72. [ATM History](https://loris.tools/docs/api/options/atm-history) — https://loris.tools/docs/md/api/options/atm-history
73. [Options Metrics](https://loris.tools/docs/api/options/metrics) — https://loris.tools/docs/md/api/options/metrics
74. [Surface History](https://loris.tools/docs/api/options/surface-history) — https://loris.tools/docs/md/api/options/surface-history
75. [Metrics](https://loris.tools/docs/api/metrics) — https://loris.tools/docs/md/api/metrics
76. [Volume/OI Ratio](https://loris.tools/docs/api/metrics/volume-oi-ratio) — https://loris.tools/docs/md/api/metrics/volume-oi-ratio
77. [Charts](https://loris.tools/docs/api/charts) — https://loris.tools/docs/md/api/charts
78. [RWA](https://loris.tools/docs/api/rwa) — https://loris.tools/docs/md/api/rwa
79. [RWA Market Hours](https://loris.tools/docs/api/rwa/market-hours) — https://loris.tools/docs/md/api/rwa/market-hours
80. [Aggregates Timeseries](https://loris.tools/docs/api/rwa/aggregates-timeseries) — https://loris.tools/docs/md/api/rwa/aggregates-timeseries
81. [Exchanges Snapshot](https://loris.tools/docs/api/rwa/exchanges-snapshot) — https://loris.tools/docs/md/api/rwa/exchanges-snapshot
82. [HIP-3 Analytics](https://loris.tools/docs/api/hip3-analytics) — https://loris.tools/docs/md/api/hip3-analytics
83. [Dashboard](https://loris.tools/docs/api/hip3-analytics/dashboard) — https://loris.tools/docs/md/api/hip3-analytics/dashboard
84. [DEX Detail](https://loris.tools/docs/api/hip3-analytics/dex-detail) — https://loris.tools/docs/md/api/hip3-analytics/dex-detail
85. [Leaderboard](https://loris.tools/docs/api/hip3-analytics/leaderboard) — https://loris.tools/docs/md/api/hip3-analytics/leaderboard
86. [Symbol Timeseries](https://loris.tools/docs/api/hip3-analytics/symbol-timeseries) — https://loris.tools/docs/md/api/hip3-analytics/symbol-timeseries
87. [Candles](https://loris.tools/docs/api/hip3-analytics/candles) — https://loris.tools/docs/md/api/hip3-analytics/candles
88. [OI Trends (Total)](https://loris.tools/docs/api/hip3-analytics/oi-trends-total) — https://loris.tools/docs/md/api/hip3-analytics/oi-trends-total
89. [OI Trends (DEX)](https://loris.tools/docs/api/hip3-analytics/oi-trends-dex) — https://loris.tools/docs/md/api/hip3-analytics/oi-trends-dex
90. [By DEX](https://loris.tools/docs/api/hip3-analytics/by-dex) — https://loris.tools/docs/md/api/hip3-analytics/by-dex
91. [By Symbol](https://loris.tools/docs/api/hip3-analytics/by-symbol) — https://loris.tools/docs/md/api/hip3-analytics/by-symbol
92. [DEX Symbol Breakdown](https://loris.tools/docs/api/hip3-analytics/dex-breakdown) — https://loris.tools/docs/md/api/hip3-analytics/dex-breakdown
93. [HIP-4 Analytics](https://loris.tools/docs/api/hip4-analytics) — https://loris.tools/docs/md/api/hip4-analytics
94. [HIP-4 Analytics API Reference](https://loris.tools/docs/api/hip4-analytics/dashboard) — https://loris.tools/docs/md/api/hip4-analytics/dashboard
95. [Trader Leaderboard](https://loris.tools/docs/api/hip4-analytics/leaderboard) — https://loris.tools/docs/md/api/hip4-analytics/leaderboard
96. [Outcome Metadata](https://loris.tools/docs/api/hip4-analytics/outcome-meta) — https://loris.tools/docs/md/api/hip4-analytics/outcome-meta
97. [Outcome Detail](https://loris.tools/docs/api/hip4-analytics/outcome-detail) — https://loris.tools/docs/md/api/hip4-analytics/outcome-detail
98. [EOD OI](https://loris.tools/docs/api/hip4-analytics/oi-eod) — https://loris.tools/docs/md/api/hip4-analytics/oi-eod
99. [Priority Fees](https://loris.tools/docs/api/priority-fees) — https://loris.tools/docs/md/api/priority-fees
100. [Priority Fees Dashboard API](https://loris.tools/docs/api/priority-fees/dashboard) — https://loris.tools/docs/md/api/priority-fees/dashboard
101. [Priority Fee Slots](https://loris.tools/docs/api/priority-fees/slots) — https://loris.tools/docs/md/api/priority-fees/slots
102. [Priority Fee Winners](https://loris.tools/docs/api/priority-fees/winners) — https://loris.tools/docs/md/api/priority-fees/winners

---

<!-- Source: https://loris.tools/docs/trade | Raw: https://loris.tools/docs/md/trade -->

# Loris Trade Overview

Loris Trade (`/trade`) is a self-custodial, multi-venue derivatives execution terminal built on Hyperliquid, HIP-3 builder DEXes, HIP-4 outcome markets, Extended, Lighter, and major centralized exchanges. Execute directional trades, delta-neutral funding rate spreads, TWAPs, Limit Chase orders, laddered scales, and copy trades from one workspace.

## How Self-Custody Works

Loris Tools never holds or custodies your funds.

- **Hyperliquid & HIP-3 / HIP-4:** Connect your EVM wallet (MetaMask, Rabby, WalletConnect, etc.), approve a dedicated Hyperliquid API agent wallet (signing-only, no withdrawal permissions), and approve the Hyperliquid builder fee. Your funds stay in your own Hyperliquid account at all times.
- **Extended & Lighter:** Authenticate via non-custodial agent / API wallet setup with zero withdrawal access.
- **Centralized Exchanges (Binance, Bybit, OKX, Gate.io, KuCoin):** Connect trade-only API keys with withdrawals disabled.

## Quickstart: First Trade in 2 Minutes

1. **Sign in** at [loris.tools/trade](https://loris.tools/trade) with email or Google, then link your EVM wallet.
2. **Approve Hyperliquid trading:** Open the **Exchange Accounts** widget (or submit your first order) to sign the Hyperliquid agent approval and builder fee approval (`0.05%` max cap). Both are gasless EIP-712 signatures.
3. **Fund your account:** Click **Deposit** in the top bar or order ticket to bridge USDC from Arbitrum (official bridge, 0% fee) or swap/bridge from Base, Ethereum, Optimism, Polygon, or HyperEVM via Relay.
4. **Pick a market & execute:** Choose **Single Venue** for directional orders or **Pair / Cross-Venue** to run synchronized long/short funding arbitrage or basis trades across two exchanges.

## Workspace & Pro Layouts

`/trade` runs on the customizable Pro docking workspace. You can drag, resize, and stack panels — charts, dual order books, order ticket, positions, balances, open orders, fills, TWAP management, funding spreads, and copy trading — and save custom layouts.

## Next Steps

- [Deposits & Transfers](/docs/trade/deposits-and-transfers) — Bridge USDC directly or cross-chain, and move margin between Spot, Perps, and HIP-3.
- [Venues & Markets](/docs/trade/venues-and-markets) — Supported exchanges, HIP-3 DEXes, HIP-4 outcomes, and spot markets.
- [Order Types & Execution](/docs/trade/order-types) — Market, Limit, TWAP, Limit Chase, Scale ladders, Cross-Venue spreads, and Copy Trade.
- [Fees, Cashback & Security](/docs/trade/fees-and-security) — Builder fee schedule, volume cashback tiers, Pro unlocks, and fee revocation.

---

<!-- Source: https://loris.tools/docs/trade/deposits-and-transfers | Raw: https://loris.tools/docs/md/trade/deposits-and-transfers -->

# Deposits & Transfers

Fund your Hyperliquid account directly from the Loris Trade top bar, the Order Ticket, or the Balances widget — either from your connected EVM wallet or via a one-time cross-chain deposit address.

## Depositing to Hyperliquid

Click **Deposit** in the `/trade` top bar (next to your live equity balance) or at the bottom of the Hyperliquid Order Ticket.

### 1. Arbitrum USDC (Official Hyperliquid Bridge)

- **Route:** Direct ERC-20 transfer to the official Hyperliquid Bridge2 contract on Arbitrum (`0x2Df1c51E09aECF9cacB7bc98cB1742757f163dF7`).
- **Fee:** `$0.00` protocol fee (standard Arbitrum gas only).
- **Minimum:** `10 USDC`.
- **Arrival time:** ~1–2 minutes.
- **How:** Select **From Wallet** → Network **Arbitrum** → Asset **USDC**, enter an amount, and confirm in your wallet. Loris automatically prompts a switch to Arbitrum One (`42161`) if needed.

### 2. Cross-Chain & Multi-Token Deposits (Relay)

Don't hold USDC on Arbitrum? Select any supported network and asset to bridge and auto-convert straight into Hyperliquid Perps USDC in a single flow powered by [Relay](https://relay.link):

- **Supported Networks:** Arbitrum, Base, Ethereum, Optimism, Polygon, HyperEVM.
- **Supported Assets:** USDC, ETH, USDT, HYPE (HyperEVM), USDT0 (HyperEVM).
- **Typical Fee & Speed:** Usually `<$0.05` relayer fee and `~5–30 seconds` on L2s.
- **From Wallet mode:** Quotes live output, switches your wallet to the origin chain, signs approval (if ERC-20) and bridge deposit, and tracks settlement in real time.

### 3. Deposit Address (From CEX or Another Wallet)

Use the **Deposit Address** tab when withdrawing from Coinbase, Binance, Kraken, or a hardware wallet:

1. Choose the source network, token, and exact amount to send.
2. Click **Generate Deposit Address** to create a one-time Relay routing address bound to your Hyperliquid wallet.
3. Send the exact amount on the selected network. The modal polls live status (`Waiting for transfer` → `Bridging` → `Deposited`) and refreshes your balances automatically.

> Warning: Only send the exact selected asset on the selected network. Sending a different token or network to a deposit address may result in permanent loss.

## Internal Transfers & Account Modes

Open **Transfer** from the topbar Funds dropdown or the Balances widget to move margin inside Hyperliquid with zero gas:

- **Spot ↔ Perps:** Move USDC between your Hyperliquid Spot and Perps wallets.
- **Spot ↔ HIP-3 DEXes:** Allocate collateral to builder-deployed HIP-3 perpetual DEXes.
- **Unified Account / Portfolio Margin:** If you have Hyperliquid Unified Account enabled, Spot and Perps collateral share unified purchasing power automatically.
- **Stablecoin Swaps:** Swap between USDC and HIP-3 quote collateral (`USDH`, `USDe`, `USDT0`) directly from the Balances widget.

## Withdrawing from Hyperliquid

Because Loris Trade is strictly non-custodial and API agent wallets do not have withdrawal permissions, withdrawals back to Arbitrum are signed directly on [app.hyperliquid.xyz](https://app.hyperliquid.xyz) using your main wallet.

---

<!-- Source: https://loris.tools/docs/trade/venues-and-markets | Raw: https://loris.tools/docs/md/trade/venues-and-markets -->

# Venues & Markets

Loris Trade connects on-chain perpetual DEXes, builder-deployed markets, and centralized futures exchanges into a single execution workspace.

## Supported Execution Venues

| Venue | Type | Auth Method | Markets |
| --- | --- | --- | --- |
| **Hyperliquid** | On-chain L1 DEX | Wallet + gasless API Agent | Crypto Perps, Spot |
| **HIP-3 DEXes** | Hyperliquid builder DEXes | Same Hyperliquid wallet + Agent | Equities, indices, FX, commodities, alt perps |
| **HIP-4** | Hyperliquid outcome markets | Same Hyperliquid wallet + Agent | Binary / prediction outcomes |
| **Extended** | Starknet Perp DEX | Non-custodial agent setup | Crypto Perps |
| **Lighter** | ZK Perp DEX | Non-custodial agent setup | Crypto Perps |
| **Binance** | CEX | Trade-only API key | USDT-M / Multi-Asset Perps |
| **Bybit** | CEX | Trade-only API key | Linear Perps |
| **OKX** | CEX | Trade-only API key | Perpetual Swaps |
| **Gate.io** | CEX | Trade-only API key | Perpetual Futures |
| **KuCoin** | CEX | Trade-only API key | Perpetual Futures |

## Hyperliquid Ecosystem

Hyperliquid is the primary venue on Loris Trade and supports the deepest feature set:

- **Core Perps & Spot:** Full order book execution, cross/isolated leverage, subaccount switching, and unified account support.
- **HIP-3 Builder DEXes:** Permissionless builder-deployed perpetual markets (e.g., Trade.xyz, Kinetiq/km, Cash, Flx, Hyna, Vntl, etc.) covering TradFi equities, commodities, indices, and niche crypto pairs. Loris automatically enriches HIP-3 collateral and handles DEX-prefixed symbols.
- **HIP-4 Outcomes:** Trade live Hyperliquid outcome legs alongside dedicated analytics and order books.

## Adding CEX Accounts

1. Generate an API key on your exchange with **Futures / Derivatives Trading** enabled and **Withdrawals strictly disabled**.
2. Open the **Exchange Accounts** widget in `/trade` (or `/pro`) and enter your key & secret.
3. Keys are encrypted before transit and used exclusively to route orders you submit and display your live positions and balances.

## Watch-Only Mode

You can inspect any public Hyperliquid wallet's positions, open orders, balances, and equity history without connecting a signer by using the **Watch** button in the navbar or visiting `/trade?watch=0x...`. Order submission and deposits are disabled while in watch-only mode.

---

<!-- Source: https://loris.tools/docs/trade/order-types | Raw: https://loris.tools/docs/md/trade/order-types -->

# Order Types & Execution

Loris Trade supports both single-venue directional execution and synchronized multi-venue pair trading.

## Single-Venue Order Types

- **Market:** Executes immediately across the order book with a configurable max slippage guard.
- **Limit:** Places a resting or immediate order with Time-in-Force controls (**GTC**, **IOC**, **Post-Only / ALO**) and optional **Reduce-Only**.
- **TWAP (Time-Weighted Average Price):** Splits a large order into evenly spaced child slices over a chosen duration to minimize price impact on thinner books (especially useful on HIP-3 and mid-cap perps). Manage, pause, or cancel active TWAPs from the **TWAP Management** widget.
- **Limit Chase:** Dynamically pegs a Post-Only limit order to the best bid or best ask (BBO) with an optional tick/bps offset and max chase price limit, capturing maker rebates while staying at the front of the queue. Monitor and cancel active chases directly above the order form or in the Orders widget.
- **Scale (Ladder):** Distributes multiple limit orders across a price range using **Flat**, **Ascending**, or **Descending** size weighting.
- **TP / SL Brackets & Auto-Close:** Attach Take Profit and Stop Loss triggers at order entry, or configure automated position exit rules.

## Pair & Cross-Venue Execution

Switch the Order Ticket to **Pair / Multi** mode to execute two legs simultaneously — long one venue, short another:

- **Funding Rate Arbitrage:** Long the lower-funding (or negative-funding) venue and short the higher-funding venue with matched notional exposure. Pair live spreads from the **Funding Arbs** widget directly into the dual order ticket with one click.
- **Dual Order Books:** Inspect live depth, top-of-book spreads, and estimated slippage on both venues side by side before submitting.
- **Hedge Ratio & Max Cost Guard:** Customize long/short ratio (defaults to 1:1 delta neutral) and set a maximum entry spread / cost threshold so orders won't fill at unfavorable basis.
- **Multi TWAP:** Slice both legs together over time so neither leg builds unintended directional drift while scaling into or out of a large arb position.

## Copy Trading

Visit [/copy-trade](https://loris.tools/copy-trade) (or add the **Copy Trading** widget in Pro) to discover top-ranked Hyperliquid traders by PnL, win rate, and copy score, and mirror their Hyperliquid executions automatically with custom sizing, leverage caps, and stop limits.

---

<!-- Source: https://loris.tools/docs/trade/fees-and-security | Raw: https://loris.tools/docs/md/trade/fees-and-security -->

# Fees, Cashback & Security

Loris Trade charges a small Hyperliquid builder fee on executed fills and returns a share of it through volume-based cashback tiers and automatic LT Pro unlocks.

## Hyperliquid Builder Fees

| Execution Type | Base Builder Fee | Max Approval Cap |
| --- | --- | --- |
| **Manual & Algo Trading** (Market, Limit, TWAP, Limit Chase, Scale, Pair) | `1.5 bps` (`0.015%`) | `0.05%` |
| **Copy Trading** | `4.5 bps` (`0.045%`) | `0.05%` |

- Builder fees apply on top of Hyperliquid's native maker/taker exchange fees.
- Centralized exchanges (Binance, Bybit, OKX, Gate.io, KuCoin) do not charge a Loris builder fee.
- Approving the `0.05%` cap once on Hyperliquid covers both manual and copy trading without repeated wallet popups.

## Trader Cashback Tiers

Your cashback tier is calculated from your rolling **30-day Loris trading volume** (track your progress at [/referrals](https://loris.tools/referrals)):

| Tier | 30d Volume | Cashback | Effective Manual Fee | Effective Copy Fee |
| --- | --- | --- | --- | --- |
| **Bronze** | `$0+` | `5%` | `1.425 bps` | `4.275 bps` |
| **Silver** | `$250,000+` | `10%` | `1.350 bps` | `4.050 bps` |
| **Gold** | `$1,000,000+` | `15%` | `1.275 bps` | `3.825 bps` |
| **Platinum** | `$5,000,000+` | `20%` | `1.200 bps` | `3.600 bps` |
| **Obsidian** | `$25,000,000+` | `22.5%` | `1.163 bps` | `3.488 bps` |

## Volume-Unlocked LT Pro Access

Active traders unlock paid LT Pro workspace tiers automatically at no subscription cost:

- **`$250,000` 30d volume** → Unlocks **LT Pro Plus**
- **`$1,500,000` 30d volume** → Unlocks **LT Pro Max** (unlimited multi-chart grids, custom widgets)

## Security & Revoking Permissions

- **Non-Custodial by Design:** Hyperliquid API agents can only sign trading actions — they cannot transfer or withdraw funds from your wallet.
- **Revoke Builder Fees Anytime:** You can inspect or revoke Loris Tools (or any other builder's) Hyperliquid builder fee approval at any time at [/revoke-builder-fees](https://loris.tools/revoke-builder-fees).
- **CEX API Key Hygiene:** Always disable withdrawal permissions on exchange API keys and rotate keys periodically.

---

<!-- Source: https://loris.tools/docs | Raw: https://loris.tools/docs/md -->

# Quickstart

> ⚠️ **Do not rely on this API for production trading systems.**

Get your first Loris Tools API response in under 60 seconds.

The Loris Tools API gives you crypto derivatives data — funding rates, open interest, order book depth, liquidations, and market snapshots — across 43 venues, including 32 DEXes. It's the same data that powers [loris.tools](/).

## For LLMs & AI Agents

- **Complete docs (single Markdown file):** `https://loris.tools/llms-full.txt`
- **Compact docs index:** `https://loris.tools/llms.txt`
- **Raw Markdown per page:** `https://loris.tools/docs/md/<slug>`
- **Live MCP Server (Streamable HTTP):** `https://mcp.loris.tools/mcp` (`claude mcp add --transport http loris https://mcp.loris.tools/mcp`)

---

## Get an API key

Sign up at [loris.tools](/), go to [/account/api-keys](/account/api-keys), and click **Create key**. The free tier works without a credit card and gives you live BTC and ETH data across all 43 venues.

## Make your first call

Pass your key in the `X-Api-Key` header:

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/funding
```

## Response

You'll get a JSON object with funding rates keyed exchange-first, then symbol. On the free tier only `BTC` and `ETH` are returned. All values are 8-hour-normalized basis points (bps) — divide by 10,000 to get the raw decimal rate.

```json
{
    "symbols": ["BTC", "ETH"],
    "funding_rates": {
        "binance": { "BTC": 1.23, "ETH": -0.45 },
        "bybit": { "BTC": 1.19, "ETH": -0.41 },
        "hyperliquid": { "BTC": 0.87, "ETH": -0.38 }
    },
    "funding_rates_raw": {
        "binance": { "BTC": "0.00000123" }
    },
    "funding_intervals": {
        "binance": { "BTC": 8 },
        "hyperliquid": { "BTC": 1 }
    },
    "oi_rankings": { "BTC": 1, "ETH": 2 },
    "timestamp": "2026-06-08 06:00:00"
}
```

`funding_intervals` is the venue's native settlement interval in hours. Rates are already normalized to 8h equivalents regardless.

## Historical data and backtesting

For time-series charts use [GET /funding/historical](/docs/api/funding/historical).

> **Backtesting and P&L:** For P&L attribution and funding-rate backtests, use [GET /funding/settlement](/docs/api/funding/settlement) — not historical. Settlement returns one data point per scheduled event using the final observed rate before the boundary and the venue's interval.

## What's next

-   [Settlement data](/docs/api/funding/settlement) — Per-settlement funding events for accurate backtests and P&L attribution.
-   [Authentication](/docs/authentication) — Header format, key management, and security best practices.
-   [Rate limits](/docs/rate-limits) — Per-tier quotas and how to handle 429s gracefully.

---

<!-- Source: https://loris.tools/docs/authentication | Raw: https://loris.tools/docs/md/authentication -->

# Authentication

All API requests are authenticated with an API key. You pass it in a header — no OAuth, no tokens, no sessions.

---

## The header

Include `X-Api-Key` in every request:

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/funding
```

Keys look like `lk_live_...`. There's no test-mode key in this product — the free tier is your sandbox.

## Getting a key

1. Sign up at [loris.tools](/).
2. Go to [/account/api-keys](/account/api-keys).
3. Click **Create key**, give it a name, and copy the value immediately — it's only shown once.

## Free tier

On the free tier, endpoints that return per-symbol data return only **BTC** and **ETH**. Same URL, same response shape, fewer rows. To access all 3,900+ symbols and 43 venues, upgrade to Dev or higher. See [pricing](/pricing) for plan details.

Free tier also excludes catalog and discovery endpoints (metadata, symbol lists) and historical data. Live funding rates for BTC and ETH are always available.

## Multiple keys

You can create up to 10 active keys per account from [/account/api-keys](/account/api-keys) and revoke any of them at any time. Rate limits are **per user**, not per key — a user with 3 keys shares the same quota across all three. Use separate keys for separate services or environments so you can rotate them independently.

## Security

- **Never expose a key client-side.** API calls should go through your backend or a server-side function. A key in JavaScript that ships to the browser is effectively public.
- **Rotate immediately if leaked.** Go to /account/api-keys, revoke the compromised key, and create a new one. Old keys become invalid the moment you revoke them.
- Store keys in environment variables, not source code. Tools like `.env` files (excluded from version control) or your platform's secret manager are the right place.

## Error states

A missing or invalid key returns `401`. A valid key that doesn't have access to a given endpoint or symbol returns `403` with a `required_tier` field in the body. See [Errors](/docs/errors) for the full status code reference.

---

<!-- Source: https://loris.tools/docs/pricing | Raw: https://loris.tools/docs/md/pricing -->

# Pricing & plans

Four tiers — Free, Dev, Pro, Team. Pick the one that matches what you're building. Paid tiers can be billed monthly or annually; annual plans are charged as a full year up front and include 12 months of access for the price of 10.

---

| Tier | Monthly | Annual | What you get |
|------|---------|--------|-------------|
| **Free** | $0 | $0 | Live funding rates for BTC and ETH across all 43 venues. Good for exploring the API or building a lightweight tool. |
| **Dev** | $79/mo | $790/yr | All symbols, all venues, full endpoint breadth, and 30 days of historical lookback, including settlement funding, order book depth, and options history. The right starting point for production integrations. |
| **Pro** | $199/mo | $1,990/yr | Full historical lookback since September 2025, advanced analytics (liquidation bubbles, RWA, HIP-3 candles), and higher rate limits. |
| **Team** | $499/mo | $4,990/yr | Everything in Pro plus S3 bulk export (coming soon), a commercial license, 99% uptime SLA, invoice billing, and dedicated support. |

The full comparison table with all feature details, limits, and subscribe buttons is at [loris.tools/pricing](/pricing).

---

<!-- Source: https://loris.tools/docs/rate-limits | Raw: https://loris.tools/docs/md/rate-limits -->

# Rate limits

Requests are metered per user, not per key. If you have three API keys under one account, they all draw from the same quota.

---

## Limits by tier

| Endpoint type | Free | Dev | Pro | Team |
|---------------|------|-----|-----|------|
| Live endpoints | 30/min | 60/min | 120/min | 120/min |
| Historical endpoints | — | 30/min | 100/min | 100/min |
| Bulk / export endpoints | — | — | — | Unrestricted |

Limits are shared within each endpoint category, rather than assigned separately to every path. All [priority-fee endpoints](/docs/api/priority-fees) use the live limits for every range, including `all`. These limits may be adjusted based on observed traffic patterns.

## What a 429 looks like

When you exceed your quota, the API returns HTTP `429 Too Many Requests` with a JSON body:

```json
{
  "error": "Rate limit exceeded",
  "message": "Too many requests. Please slow down.",
  "retry_after": 10,
  "docs": "https://loris.tools/docs/rate-limits"
}
```

## Rate-limit headers

429 responses include three headers:

| Header | Value |
|--------|-------|
| `X-RateLimit-Limit` | Your tier's request limit per one-minute window for this endpoint category |
| `X-RateLimit-Remaining` | `0` (you're over limit) |
| `Retry-After` | Number of seconds to wait before retrying |

These headers are only present on 429 responses. Successful requests do not include a remaining-count header.

## Handling 429s

Honor `Retry-After` and use exponential backoff with jitter. Wait at least the returned number of seconds before retrying. A simple approach in Python:

```python
import time, random, httpx

def fetch_with_backoff(url, headers, retries=5):
    delay = 1.0
    for attempt in range(retries):
        resp = httpx.get(url, headers=headers)
        if resp.status_code != 429:
            return resp
        retry_after = float(resp.headers.get("Retry-After", "0"))
        wait = max(delay, retry_after)
        jitter = random.uniform(0, wait * 0.1)
        time.sleep(wait + jitter)
        delay = min(delay * 2, 60)  # cap at 60s
    raise RuntimeError("Rate limit retries exhausted")
```

If you're consistently hitting limits, consider caching responses locally or upgrading your plan. See [pricing](/pricing) for higher-limit tiers.

---

<!-- Source: https://loris.tools/docs/errors | Raw: https://loris.tools/docs/md/errors -->

# Errors

All errors return JSON with an `error` field. Some errors include additional fields like `required_tier`.

---

## 200 OK

The request succeeded. Response body is JSON with the requested data.

## 400 Bad Request

Your request had invalid parameters — a missing required field, an out-of-range value, or an unknown query param. Fix the request and retry.

```json
{ "error": "invalid parameter: 'days' must be a positive integer" }
```

## 401 Unauthorized

The `X-Api-Key` header was missing or the key is invalid (revoked, malformed, or doesn't exist). Check that you're sending the header correctly and the key is still active.

```json
{ "error": "Missing or invalid API key.", "docs": "https://loris.tools/docs/authentication" }
```

## 403 Forbidden

Your key is valid but your tier doesn't have access to this endpoint, symbol, or historical lookback. The response includes a `required_tier` field so you know what to upgrade to.

```json
{ "error": "Your API key does not have access to this endpoint.", "required_tier": "dev", "docs": "https://loris.tools/docs/pricing" }
```

## 429 Too Many Requests

You've exceeded your per-minute rate limit. The response includes `X-RateLimit-Limit`, `X-RateLimit-Remaining: 0`, and `Retry-After: 1` headers. Back off and retry. See [Rate limits](/docs/rate-limits) for per-tier quotas and a backoff example.

```json
{ "error": "Rate limit exceeded", "message": "Too many requests. Please slow down.", "retry_after": 1 }
```

## 500 Internal Server Error

Something went wrong on our end. The response body is intentionally terse — no internal details are surfaced. If this persists, reach out.

```json
{ "error": "internal error" }
```

## 503 Service Unavailable

An upstream data source is temporarily unavailable. This is rare and usually resolves within seconds. Retry with backoff. For historical funding endpoints, available history starts in September 2025, so requests before that date may return no data rather than older history.

```json
{ "error": "upstream unavailable" }
```

---

## A note on 403 vs 404

The API uses `403` when a resource exists but your tier can't access it. It uses `404` when the resource genuinely doesn't exist — unknown symbol, missing data row, malformed path. If you're seeing 403 on a symbol you expect to exist, check your tier and the `required_tier` field in the response.

---

<!-- Source: https://loris.tools/docs/guides/funding-arb-backtest | Raw: https://loris.tools/docs/md/guides/funding-arb-backtest -->

# Funding arb backtest

A walkthrough for backtesting a delta-neutral funding rate arbitrage strategy using the Settlement endpoint. The recipe below fetches per-settlement events for two venues, computes the spread at each tick, and nets out the realized carry over any date range — in about 30 lines of Python.

---

## Why the Settlement endpoint, not Historical

[GET /funding/historical](/docs/api/funding/historical) aggregates rates into fixed-size buckets (4-hour beyond 7 days). Using it for P&L attribution inflates or deflates carry by up to 5× when a venue settles every 1 hour or every 8 hours — the bucket size doesn't match the settlement interval.

[GET /funding/settlement](/docs/api/funding/settlement) returns one row per scheduled settlement event, using the final observed normalized rate before the boundary with `intervalMinutes` baked in. Converting to raw decimal is unambiguous:

```python
# y is in bps_8h.  intervalMinutes tells you the actual settlement period.
raw_rate = row["y"] / 10_000                           # bps → decimal
period_rate = raw_rate * (row["intervalMinutes"] / 480) # 8h-normalize → period
```

## Prerequisites

Python 3.9+, `requests`. A Dev-tier API key or higher (settlement data is available from Dev with a 30-day lookback; Pro unlocks full historical lookback).

```bash
pip install requests
```

## Full backtest

Fetches BTC settlement rates for Binance and Hyperliquid over 30 days, aligns by timestamp, and prints daily spread and cumulative carry.

```python
import requests
from collections import defaultdict

API_KEY = "lk_live_your_key_here"
BASE    = "https://api.loris.tools"

def fetch_settlement(symbol, exchanges, start, end):
    r = requests.get(
        f"{BASE}/funding/settlement",
        headers={"X-Api-Key": API_KEY},
        params={"symbol": symbol, "exchanges": ",".join(exchanges),
                "start": start, "end": end},
        timeout=30,
    )
    r.raise_for_status()
    return r.json()["series"]   # { exchange: [{t, y, intervalMinutes}] }

def period_pnl(row):
    """Convert one settlement event to realized carry (decimal, per-period)."""
    raw_rate = row["y"] / 10_000
    return raw_rate * (row["intervalMinutes"] / 480)

# ── fetch ──────────────────────────────────────────────────────────────────
series = fetch_settlement(
    symbol    = "BTC",
    exchanges = ["binance", "hyperliquid"],
    start     = "2026-05-01T00:00:00Z",
    end       = "2026-05-31T23:59:59Z",
)

# ── align by timestamp ─────────────────────────────────────────────────────
by_ts = defaultdict(dict)
for exchange, rows in series.items():
    for row in rows:
        by_ts[row["t"]][exchange] = period_pnl(row)

# ── compute spread ─────────────────────────────────────────────────────────
# Long Hyperliquid (collect funding), short Binance (pay funding).
# Net carry = HL_rate - BNB_rate at each coincident tick.
cumulative = 0.0
for ts in sorted(by_ts):
    tick = by_ts[ts]
    if "binance" not in tick or "hyperliquid" not in tick:
        continue                        # skip ticks where only one venue settled
    spread = tick["hyperliquid"] - tick["binance"]
    cumulative += spread
    print(f"{ts}  spread={spread:+.6f}  cumulative={cumulative:+.6f}")

print(f"\nTotal carry over period: {cumulative:+.4%}")
```

## Notes

-   Binance settles every 8 hours; Hyperliquid every 1 hour. The ticks won't always coincide — the inner `continue` skips those. For a full accounting, align programmatically by bucketing to the longer interval.
-   `y` is in **bps, 8h-normalized**. Divide by 10,000 for the decimal rate, then re-scale by `intervalMinutes / 480` to get the per-period carry.
-   This does not model execution costs, borrow, or margin. Add those before drawing conclusions about live profitability.

## Related

-   [Settlement Funding](/docs/api/funding/settlement) — Per-settlement-event rates with intervalMinutes. The source for this recipe.
-   [Historical Funding](/docs/api/funding/historical) — Downsampled time series for charting and trend analysis.

---

<!-- Source: https://loris.tools/docs/api | Raw: https://loris.tools/docs/md/api -->

# API Reference

The Loris Tools API gives you crypto derivatives data across 43 venues. All endpoints accept `GET` requests with an `X-Api-Key` header. Responses are JSON. Errors follow the shape documented in [Errors](/docs/errors).

For material endpoint updates, migration windows, and recommended client changes, see the [API changelog](/docs/api/changelog).

---

## API groups

- [Charts](/docs/api/charts) — Dashboard ticker strip and macro market stats: ETH gas, total OI, 24h volume, BTC implied volatility.
- [Funding](/docs/api/funding) — Funding rates, historical funding, settlement-aligned data, and exchange snapshots across 43 venues.
- [HIP-3 Analytics](/docs/api/hip3-analytics) — Hyperliquid HIP-3 builder DEX analytics: dashboards, leaderboards, candles, OI trends, and symbol breakdowns.
- [HIP-4 Analytics](/docs/api/hip4-analytics) — Hyperliquid HIP-4 prediction market analytics: deployer-aware dashboards, trader rankings, outcome metadata, detail views, and EOD OI.
- [Liquidations](/docs/api/liquidations) — Live liquidation events, rolling range aggregates, historical buckets, and anomaly detection.
- [Markets](/docs/api/markets) — Cross-market snapshots, price movers, per-symbol detail, per-exchange drill-down, and bulk exports.
- [Metrics](/docs/api/metrics) — Derived metrics built on top of raw data — starting with the volume-to-OI ratio.
- [Open Interest](/docs/api/open-interest) — OI snapshots, symbol-level timeseries, exchange leaderboards, and symbol rankings.
- [Options](/docs/api/options) — BTC, ETH, HYPE, SOL, ZEC, XRP, DOGE, and BNB options surface data across supported exchanges, overview OI/volume trends, ATM implied volatility history, per-expiry metrics, and full surface snapshots.
- [Order Book Depth](/docs/api/orderbook) — Live and historical depth snapshots with slippage and price-impact metrics across supported depth venues.
- [Priority Fees](/docs/api/priority-fees) — Hyperliquid read priority fees, payer shares, slot auctions, and exact winner price history.
- [RWA](/docs/api/rwa) — Real-world asset classification aggregates — timeseries and exchange snapshots filtered by asset class.
- [Volume](/docs/api/volume) — Trading volume across exchanges and symbols — symbol-level series, leaderboards, and sparklines.

---

<!-- Source: https://loris.tools/docs/api/changelog | Raw: https://loris.tools/docs/md/api/changelog -->

# API Changelog

Material API changes are listed here in reverse chronological order. Use this page to track endpoint updates, migration windows, and recommended client changes.

## November 6, 2026 - Priority fee rate limits applied

Priority fee endpoints now use the standard live-request limits for each API plan.

### What changed

- `GET /priority-fees/dashboard`, `GET /priority-fees/slots`, and `GET /priority-fees/winners` use the live quota for every range: Free 30/min, Dev 60/min, Pro 120/min, and Team 120/min.
- Requests share the account's live-request allowance with other live endpoints and across all API keys. The quota is not a separate allowance for each endpoint.
- Requests over the limit return `429` with `Retry-After` indicating how many seconds to wait.

### Recommended action

Include priority fee calls in your account's live-request budget. On a `429`, wait for the `Retry-After` duration before retrying. See [Rate limits](/docs/rate-limits).

## August 31, 2026 - Volume and OI range presets added

Historical volume and open interest endpoints now accept preset `range` values alongside custom `start` and `end` windows.

### What changed

-   `GET /oi/exchange-totals`, `GET /volume/exchange-totals`, and `GET /volume-oi-ratio` now accept preset `range` values for common lookbacks.
-   `GET /oi/{symbol}/timeseries` and `GET /volume/{symbol}/timeseries` now accept the same preset `range` model.
-   Custom `start` and `end` windows remain supported for exact historical queries. Do not combine them with `range`.

### Recommended action

No client migration is required. Existing `start` and `end` queries can continue unchanged; use `range` for common lookbacks and `start`/`end` for exact custom windows.

## August 21, 2026 - Historical market data lookback tiers aligned

Historical market data endpoints now use a consistent lookback model: Dev receives a rolling 30-day historical window, while Pro and Team receive full available history where the endpoint supports historical queries.

### What changed

-   `GET /orderbook/book` and `GET /orderbook/depth-history` are now Dev-tier endpoints. Dev point-in-time/depth history requests are clamped to 30 days; Pro and Team retain full available history.
-   `GET /options/surface-history` is now available to Dev with a 30-day clamp, and `/options/atm-history` plus `/options/surface-history` no longer apply a 90-day hard cap to Pro or Team requests.
-   `GET /liquidations/history` now accepts custom `start` and `end` windows. Dev is clamped to 30 days; Pro and Team can query full available history.
-   `GET /oi/exchange-top-symbols-timeseries`, `GET /volume/exchange-top-symbols-timeseries`, and `GET /markets/exchanges/{exchange}/timeseries` now accept custom `start` and `end` windows for full-lookback Pro/Team queries.

### Recommended action

No client migration is required. Dev clients can retry previously Pro-only historical order book and options surface calls; Pro and Team clients should use custom `start` and `end` windows when querying beyond preset ranges.

## August 11, 2026 - Markets snapshot freshness improved

Markets snapshot endpoints now expose fresher price and current funding fields while preserving existing response shapes.

### What changed

-   `GET /markets/symbols`, `/markets/price-movers`, `/markets/price-buckets`, `/markets/funding-leaders`, `/markets/exchanges/{exchange}/symbols`, `/markets/exchanges/all`, `/markets/{symbol}/exchanges`, and `/markets/{symbol}/stats` now surface refreshed price and current funding fields on the live market snapshot cadence, generally about once per minute.
-   Rolling aggregate fields such as 24h volume, OI, 24h liquidations, and funding averages remain on the slower aggregate cadence, typically about 10 minutes.
-   Public response shapes, endpoint paths, authentication tiers, and field names did not change.

### Recommended action

No client migration is required. Clients that poll market snapshot endpoints can use the response `timestamp` and should avoid assuming every numeric field has the same source refresh cadence.

## July 21, 2026 - Settlement boundary matching corrected

Settlement funding now uses the final recorded rate before each funding boundary.

### What changed

- `GET /funding/settlement` now returns the correct settled rate at each funding boundary, including on hourly venues such as Hotstuff.

### Recommended action

No client change is required. Re-fetch affected settlement history if it was previously used for funding P&L or backtesting.

## July 18, 2026 - Options symbols expanded

Options endpoints now support additional listed symbols on venues where live public option instruments are available.

### What changed

-   Added SOL options on Deribit, Binance, Bybit, and Derive.
-   Added XRP options on Deribit, Binance, Bybit, and Derive.
-   Added DOGE options on Binance and Bybit.
-   Added BNB options on Binance.
-   Added ZEC options on Derive.
-   Unsupported exchange/symbol pairs still return `400` instead of falling back to another venue.

### Recommended action

Use the venue-specific symbol matrix when calling `/options/snapshot`, `/options/atm-history`, `/options/metrics`, and `/options/surface-history`: BTC/ETH are available on all supported options venues; HYPE is Deribit/Derive; SOL/XRP are Deribit/Binance/Bybit/Derive; DOGE is Binance/Bybit; BNB is Binance; ZEC is Derive.

## July 9, 2026 - RWA market hours endpoint added

The RWA API now includes Pro-tier UTC market-hours data for TradFi and RWA-linked venues.

### What changed

-   Added `GET /rwa/market-hours`.
-   The endpoint returns UTC session intervals, current tradable status, next tradable session, upcoming holidays, and exchange metadata.
-   Exchange filters accept ids, short names, or MICs such as `krx`, `KRX`, and `XKRX`.
-   Sessions include `is_tradable` so clients can distinguish active trading from halts or auction/pre-open phases.

### Recommended action

Use `/rwa/market-hours` to align RWA and TradFi-linked workflows with venue schedules. For live execution gates, use product-level calendars for venues with product-specific hours such as CME and SHFE.

## June 29, 2026 - HIP-3 liquidation metrics and symbol timeseries updated

HIP-3 analytics now includes liquidation values alongside counts, with broader symbol history support.

### What changed

-   Added `liquidation_value_usd` wherever HIP-3 liquidation metrics are returned, alongside `liquidation_count`.
-   HIP-3 liquidation count and value now count only the liquidated user fill, preventing counterparty fills from doubling the metric.
-   `GET /hip3-analytics/timeseries/symbol` now returns daily buckets for `range=all` instead of a single `date: "all"` aggregate point.
-   Symbol timeseries requests now support additional `dex_name` and `symbol` combinations.

### Affected endpoints

-   `/hip3-analytics/dashboard`
-   `/hip3-analytics/dex-detail`
-   `/hip3-analytics/by-dex`
-   `/hip3-analytics/by-symbol`
-   `/hip3-analytics/timeseries/symbol`
-   `/hip3-analytics/timeseries/dex-breakdown`

### Recommended action

Use `liquidation_value_usd` for liquidation notional displays and `liquidation_count` for fill counts. If your client special-cased `range=all` symbol timeseries as a single aggregate row, update it to handle normal dated buckets.

## June 28, 2026 - Options overview history added

The options API now includes an aggregate overview history endpoint for time-series dashboard widgets.

### What changed

-   Added `GET /options/overview-history`.
-   The endpoint returns hourly USD-notional open interest and rolling 24h volume by `exchange` and `symbol`.

### Recommended action

Use `/options/overview-history?range=90d` when building cross-venue options trend views. Treat `notional_volume_24h_usd` as a rolling 24h value at each hour, not hourly volume.

## June 27, 2026 - Options venues and symbols expanded

Options endpoints now support Derive for BTC, ETH, and HYPE options, with HYPE available on Deribit and Derive.

### What changed

-   `/options/snapshot`, `/options/atm-history`, `/options/metrics`, and `/options/surface-history` accept `exchange=derive` for `symbol=BTC`, `symbol=ETH`, and `symbol=HYPE`.
-   The same options endpoints accept `symbol=HYPE` with `exchange=deribit` or `exchange=derive`.
-   Unsupported exchange/symbol pairs return `400` instead of falling back to another venue.

### Recommended action

Use `exchange=derive` for Derive BTC/ETH/HYPE data. Use `symbol=HYPE&exchange=deribit` or `symbol=HYPE&exchange=derive` for HYPE options.

## June 25, 2026 - Options exchange parameter expanded

Options endpoints now require selecting a venue with `exchange`.

### What changed

-   `/options/snapshot`, `/options/atm-history`, `/options/metrics`, and `/options/surface-history` require `exchange=deribit|binance|bybit|okx|derive`.
-   `/options/snapshot` returns current data for the selected exchange and symbol.
-   `/options/atm-history`, `/options/metrics`, and `/options/surface-history` return historical data for the selected exchange.
-   `/options/atm-history` responses now include the selected `exchange`.

### Recommended action

Update options clients to pass `exchange` explicitly. Use `exchange=deribit` to keep requesting Deribit data.

## June 21, 2026 - Time query parameters standardized

Canonical time selector params were added to HIP-3, HIP-4, builder analytics, liquidation aggregates, and options history endpoints.

### What changed

-   Use `range` for rolling lookbacks.
-   Use `start` and `end` for absolute custom windows.
-   This migration does not rename `interval`, `window_days`, or liquidation-event `since`.

### Affected endpoints

-   `/hip3-analytics/dashboard`, `/hip3-analytics/dex-detail`, `/hip3-analytics/by-dex`, `/hip3-analytics/by-symbol`, `/hip3-analytics/timeseries/symbol`, `/hip3-analytics/timeseries/dex-breakdown`, `/hip3-analytics/leaderboard`, `/hip3-analytics/oi-trends/total`, and `/hip3-analytics/oi-trends/dex` now accept `range`.
-   `/hip3-analytics/candles` now accepts ISO `start` and `end` in addition to legacy millisecond params.
-   `/hip4-analytics/dashboard` and `/hip4-analytics/outcome/{outcome_id}` now accept `range`.
-   `/hip4-analytics/oi-eod` now accepts `start`.
-   `/builder-analytics/dashboard` now accepts `range`.
-   `/liquidations/aggregates` now accepts `range`; allowed values remain `1h`, `4h`, `12h`, and `24h`.
-   `/options/atm-history` and `/options/surface-history` now accept `Nd` ranges from `1d` through `90d`.

### Compatibility

Legacy params remain accepted until July 21, 2026:

-   `period` -> `range`
-   `days` -> `range`
-   `start_time` -> `start`
-   `end_time` -> `end`
-   `min_day` -> `start`

Legacy requests include `Deprecation`, `Sunset`, `Link`, and `Warning` headers.

HIP-3, HIP-4, builder analytics, and liquidation aggregate responses keep `period` while also returning `range`.

Options ATM history and surface history responses keep `days` while also returning `range`.

### Recommended action

Update clients to send canonical params now. Existing legacy calls continue to work during the compatibility window, but should not be used for new integrations.

## June 21, 2026 - Canonical symbol timeseries paths added

Canonical symbol timeseries paths were added for Open Interest and Volume.

### Added

-   `GET /oi/{symbol}/timeseries`
-   `GET /volume/{symbol}/timeseries`

### Compatibility

Legacy paths remain accepted until July 21, 2026:

-   `GET /oi/coin?coin={symbol}`
-   `GET /volume/coin?coin={symbol}`

Legacy path responses include `Deprecation` and `Sunset` headers plus a `Link` header with the canonical successor path.

### Response updates

-   OI and Volume symbol timeseries responses return `timestamp` values as UTC ISO strings ending in `Z`.
-   OI symbol timeseries, Volume symbol timeseries, OI exchange totals, Volume exchange totals, and Volume/OI Ratio responses now include `unit`, `resolution`, and `notices` metadata.
-   Funding historical and settlement series points now return both the legacy `t` field and the canonical `timestamp` field.

### Recommended action

Use the canonical symbol timeseries paths and `start` / `end` params for new integrations.

## June 21, 2026 - Funding history availability notices updated

Funding history responses now include the history start date when data is unavailable.

### What changed

- The `notices` field on empty historical funding responses and empty or unavailable settlement responses states that history starts in September 2025.

---

<!-- Source: https://loris.tools/docs/api/funding | Raw: https://loris.tools/docs/md/api/funding -->

# Funding

Live normalized funding rates across 43 venues, with historical time series, settlement-aligned snapshots, and per-exchange views. Use these endpoints to monitor cross-venue carry and build funding rate tooling.

> **Historical vs settlement:** [GET /funding/historical](/docs/api/funding/historical) is for charting and visualization — downsampled buckets, not settlement-accurate. For backtesting and P&L attribution, use [GET /funding/settlement](/docs/api/funding/settlement).

---

## Endpoints

| Method | Path                                                                        | Tier | Summary                                                                                                          |
| ------ | --------------------------------------------------------------------------- | ---- | ---------------------------------------------------------------------------------------------------------------- |
| GET    | [/funding](/docs/api/funding/funding)                                       | Free | Current 8-hour-normalized funding rates across all exchanges, with OI rankings and per-symbol funding intervals. |
| GET    | [/funding/metadata](/docs/api/funding/metadata)                             | Dev  | Lightweight catalog of available symbols and exchange names.                                                     |
| GET    | [/funding/historical](/docs/api/funding/historical)                         | Dev  | Funding rate time series for one symbol across one or more exchanges, with adaptive downsampling.                |
| GET    | [/funding/settlement](/docs/api/funding/settlement)                         | Dev  | Final observed rates before each exchange's scheduled funding ticks — settlement-aligned PnL attribution.        |
| GET    | [/funding/historical-by-exchange](/docs/api/funding/historical-by-exchange) | Dev  | Per-exchange snapshot or short-window time series for all symbols on a single venue.                             |
| GET    | [/funding/exchange-snapshots/all](/docs/api/funding/exchange-snapshots-all) | Dev  | Bulk fetch of current snapshot payloads for all supported exchanges in one request.                              |
| GET    | [/funding/symbols](/docs/api/funding/symbols)                               | Dev  | Ranked list of symbols tracked for funding, sorted by exchange coverage count.                                   |

---

<!-- Source: https://loris.tools/docs/api/funding/funding | Raw: https://loris.tools/docs/md/api/funding/funding -->

# Funding Rates

**Tier:** Free

`GET /funding`

Returns current normalized funding rates across all exchanges, alongside exchange metadata, OI rankings, and per-symbol funding intervals. All rates are 8-hour-normalized basis points, making cross-venue comparison straightforward regardless of each exchange's native settlement period. Use this endpoint as the primary feed for live funding dashboards, spread monitors, or any workflow that needs a full market snapshot in a single call.

---

## Authentication

Available on all tiers. Free tier returns BTC and ETH only; all other symbols are server-side filtered. Dev and above receive all symbols across all 43 venues.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `nocache` | string | No | Set to `1` to bypass the 60-second local Redis cache and fetch the latest data directly. |

## Tier behavior

**Free:** BTC and ETH only. All other symbols are filtered from the response server-side. All venues are included for those two symbols.

**Dev:** Full access — all symbols across all 43 venues.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/funding
```

## Example response

```json
{
  "symbols": ["BTC", "ETH", "SOL", "..."],
  "exchanges": {
    "exchange_names": [
      { "name": "binance", "display": "Binance", "interval": 8 },
      { "name": "bybit", "display": "Bybit", "interval": 8 }
    ],
    "exchanges": ["binance", "bybit", "..."]
  },
  "funding_rates": {
    "binance": { "BTC": 1.23, "ETH": -0.45, "SOL": 2.10 },
    "bybit": { "BTC": 1.19, "ETH": -0.41 }
  },
  "funding_rates_raw": {
    "binance": { "BTC": "0.00001000" }
  },
  "funding_intervals": {
    "binance": { "BTC": 8 }
  },
  "oi_rankings": { "BTC": 1, "ETH": 2, "SOL": 3 },
  "default_oi_rank": "500+",
  "timestamp": "2026-06-08 06:00:00"
}
```

## Related

- [Historical Funding](/docs/api/funding/historical)
- [Funding Symbols](/docs/api/funding/symbols)
- [Funding Metadata](/docs/api/funding/metadata)

---

<!-- Source: https://loris.tools/docs/api/funding/metadata | Raw: https://loris.tools/docs/md/api/funding/metadata -->

# Funding Metadata

**Tier:** Dev

`GET /funding/metadata`

Lightweight catalog endpoint — returns the full list of available symbols and exchange names without any rate values. Use it to populate dropdowns, drive dynamic routing, or seed your own exchange and symbol registry without pulling the full rate payload.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

## Parameters

This endpoint takes no parameters.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/funding/metadata
```

## Example response

```json
{
  "symbols": ["BTC", "ETH", "SOL", "DOGE", "..."],
  "exchanges": {
    "exchange_names": [
      { "name": "binance", "display": "Binance", "interval": 8 },
      { "name": "bybit", "display": "Bybit", "interval": 8 },
      { "name": "okx", "display": "OKX", "interval": 8 }
    ],
    "exchanges": ["binance", "bybit", "okx", "..."]
  },
  "timestamp": "2026-06-08 06:00:00"
}
```

## Errors

- `403` — Free tier does not have access to this endpoint.

## Related

- [Funding Rates](/docs/api/funding/funding)
- [Funding Symbols](/docs/api/funding/symbols)

---

<!-- Source: https://loris.tools/docs/api/funding/historical | Raw: https://loris.tools/docs/md/api/funding/historical -->

# Historical Funding

**Tier:** Dev

`GET /funding/historical`

Historical funding rate time series for one symbol across one or more exchanges. Adaptive downsampling based on the requested range: raw resolution for under 24 hours, hourly buckets for under 7 days, and 4-hour buckets beyond that. Use this endpoint for charting funding rate trends and venue comparisons over time — not for P&L or backtesting. Rate limited to 2 requests per second.

> **For PnL and backtesting**, use [/funding/settlement](/docs/api/funding/settlement) instead. The 4-hour-bucketed historical data will inflate P&L attribution if you sum spreads naively.

---

## Authentication

Requires Dev tier or higher. Dev: rolling 30-day window ending now — start and end dates are floored server-side so data older than 30 days from the current time is not returned; a notice is included when clamped. Pro: full historical lookback since September 2025.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `symbol` | string | Yes | Base symbol, e.g. BTC or ETH. |
| `start` | string (ISO 8601) | No | Start of range. Defaults to end minus 7 days. |
| `end` | string (ISO 8601) | No | End of range. Defaults to current UTC time. |
| `exchanges` | string | No | Comma-separated exchange slugs (e.g. binance,bybit), or `all`. Defaults to all exchanges. |
| `resolution` | string | No | Explicit chart resolution: `raw`, `1m`, `3m`, `5m`, `15m`, `30m`, `1h`, `2h`, `4h`, `8h`, `12h`, or `1d`. Omit it to preserve adaptive behavior. |

## Tier behavior

**Dev:** Rolling 30-day window ending now. Dates before that floor are raised; end dates in the future are set to now. The response includes a `notices` field when clamped.

**Pro:** Full historical lookback since September 2025. No clamp.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/funding/historical?symbol=BTC&start=2026-06-01T00:00:00Z&exchanges=binance,bybit"
```

## Example response

```json
{
  "symbol": "BTC",
  "unit": "bps_8h",
  "resolution": "4h",
  "series": {
    "binance": [
      { "timestamp": "2026-06-01T00:00:00Z", "t": "2026-06-01T00:00:00Z", "y": 1.24 },
      { "timestamp": "2026-06-01T04:00:00Z", "t": "2026-06-01T04:00:00Z", "y": 1.18 },
      { "timestamp": "2026-06-01T08:00:00Z", "t": "2026-06-01T08:00:00Z", "y": 0.95 }
    ],
    "bybit": [
      { "timestamp": "2026-06-01T00:00:00Z", "t": "2026-06-01T00:00:00Z", "y": 1.20 },
      { "timestamp": "2026-06-01T04:00:00Z", "t": "2026-06-01T04:00:00Z", "y": 1.15 }
    ]
  },
  "notices": []
}
```

## Errors

- `400` — Missing required parameter `symbol`, invalid date format, or unrecognized exchange slug.
- `403` — Dev: requested date range falls entirely outside the rolling 30-day window and cannot be clamped. Upgrade to Pro for full depth since September 2025.

## Related

- [Settlement Funding (for backtests)](/docs/api/funding/settlement)
- [Funding Rates](/docs/api/funding/funding)
- [Historical by Exchange](/docs/api/funding/historical-by-exchange)

---

<!-- Source: https://loris.tools/docs/api/funding/settlement | Raw: https://loris.tools/docs/md/api/funding/settlement -->

# Settlement Funding

**Tier:** Dev

`GET /funding/settlement`

Settlement-aligned funding rates, snapped to each exchange's funding settlement intervals — for example 8-hour ticks on Binance, or 1-hour ticks on select DEXes. Each event uses the final observed normalized rate before the boundary, preventing the next period's rate from leaking into the completed settlement. Use it when funding timing matters, such as delta-neutral carry trades or cross-venue funding arbitrage.

> **Settlement vs Historical:** [GET /funding/historical](/docs/api/funding/historical) returns downsampled buckets for charting. Use this endpoint when you need settlement-aligned observations for P&L attribution or backtesting. Rates are derived from Loris snapshots rather than an exchange account ledger.

---

## Authentication

Requires Dev tier or higher. Dev tier: rolling 30-day window ending now — start and end dates are floored server-side; a notice is included when clamped. Pro and Team: full historical lookback since September 2025.

## Parameters

| Name        | Type              | Required | Description                                                                                                                                |
| ----------- | ----------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `symbol`    | string            | Yes      | Base symbol, e.g. BTC.                                                                                                                     |
| `start`     | string (ISO 8601) | No       | Start of range. Defaults to end minus 7 days.                                                                                              |
| `end`       | string (ISO 8601) | No       | End of range. Defaults to current UTC time.                                                                                                |
| `exchanges` | string            | No       | Comma-separated exchange slugs. Omitting or passing `all` returns empty series for most exchanges — specify your target venues explicitly. |

## Tier behavior

**Dev:** Rolling 30-day window ending now. Dates before that floor are raised; end dates in the future are set to now. The response includes a `notices` field when clamped.

**Pro:** Full historical lookback since September 2025. No clamp.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/funding/settlement?symbol=BTC&exchanges=binance,bybit&start=2026-06-01T00:00:00Z"
```

## Example response

```json
{
    "symbol": "BTC",
    "unit": "bps_8h",
    "resolution": "settlement",
    "series": {
        "binance": [
            {
                "timestamp": "2026-06-01T00:00:00Z",
                "t": "2026-06-01T00:00:00Z",
                "y": 1.24,
                "intervalMinutes": 480
            },
            {
                "timestamp": "2026-06-01T08:00:00Z",
                "t": "2026-06-01T08:00:00Z",
                "y": 1.18,
                "intervalMinutes": 480
            },
            {
                "timestamp": "2026-06-01T16:00:00Z",
                "t": "2026-06-01T16:00:00Z",
                "y": 0.95,
                "intervalMinutes": 480
            }
        ],
        "bybit": [
            {
                "timestamp": "2026-06-01T00:00:00Z",
                "t": "2026-06-01T00:00:00Z",
                "y": 1.2,
                "intervalMinutes": 480
            },
            {
                "timestamp": "2026-06-01T08:00:00Z",
                "t": "2026-06-01T08:00:00Z",
                "y": 1.15,
                "intervalMinutes": 480
            }
        ]
    },
    "notices": []
}
```

## Errors

-   `400` — Missing required parameter `symbol`, invalid date format, or unrecognized exchange slug.
-   `403` — Your tier does not have access. Upgrade to Dev or higher.
-   `503` — Settlement funding data is temporarily unavailable. Retry with backoff. Historical funding data is available from September 2025 onward; requests before that date may return no data.

## Related

-   [Historical Funding (charting only)](/docs/api/funding/historical)
-   [Historical by Exchange](/docs/api/funding/historical-by-exchange)

---

<!-- Source: https://loris.tools/docs/api/funding/historical-by-exchange | Raw: https://loris.tools/docs/md/api/funding/historical-by-exchange -->

# Historical by Exchange

**Tier:** Dev

`GET /funding/historical-by-exchange`

Per-exchange funding data in two modes: snapshot returns current Redis rates for all symbols on the exchange; recent returns up to 6 hours of ClickHouse time series. Snapshot mode is near-instant from Redis. Recent mode is useful for charting short-term rate movement on a single venue without pulling the full multi-exchange historical endpoint.

---

## Authentication

Requires Dev tier or higher. Dev: snapshot mode only — passing `mode=recent` returns 403. Pro: both snapshot and recent mode, with up to 6 hours of history.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchange` | string | Yes | Lowercase exchange slug, e.g. `binance`. |
| `mode` | string | No | `snapshot` (default) or `recent`. |
| `start` | string (ISO 8601) | No | For recent mode only. Defaults to 3 hours ago. Maximum range is 6 hours. |
| `end` | string (ISO 8601) | No | For recent mode only. Defaults to now. |

## Tier behavior

**Dev:** Snapshot mode only. Passing `mode=recent` returns 403.

**Pro:** Snapshot and recent mode. Up to a 6-hour window on recent.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/funding/historical-by-exchange?exchange=binance&mode=snapshot"
```

## Example response

```json
{
  "exchange": "binance",
  "symbols": ["BTC", "ETH", "SOL", "DOGE"],
  "mode": "snapshot",
  "current_rates": {
    "BTC": 1.23,
    "ETH": -0.45,
    "SOL": 2.10
  },
  "data": [],
  "notices": []
}
```

## Errors

- `400` — Unknown exchange slug, or recent mode with a range exceeding 6 hours.
- `403` — Dev tier attempting recent mode. Upgrade to the Pro tier.

## Related

- [Historical Funding](/docs/api/funding/historical)

---

<!-- Source: https://loris.tools/docs/api/funding/exchange-snapshots-all | Raw: https://loris.tools/docs/md/api/funding/exchange-snapshots-all -->

# Exchange Snapshots (All)

**Tier:** Dev

`GET /funding/exchange-snapshots/all`

Bulk fetch of current funding rate snapshots for all 43 supported exchanges in a single response. Equivalent to calling `/funding/historical-by-exchange?mode=snapshot` for each exchange individually, but batched into one request. Useful for one-shot universe scans and reducing round-trip overhead versus many parallel per-exchange calls.

---

## Authentication

Requires Dev tier or higher.

## Parameters

This endpoint takes no parameters.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/funding/exchange-snapshots/all"
```

## Example response

```json
{
  "exchanges": {
    "binance": {
      "exchange": "binance",
      "symbols": ["BTC", "ETH", "SOL"],
      "mode": "snapshot",
      "current_rates": {
        "BTC": 0.00005,
        "ETH": 0.00012,
        "SOL": -0.00003
      },
      "data": [],
      "notices": []
    },
    "bybit": {
      "exchange": "bybit",
      "symbols": ["BTC", "ETH"],
      "mode": "snapshot",
      "current_rates": {
        "BTC": 0.00006,
        "ETH": 0.00011
      },
      "data": [],
      "notices": []
    }
  }
}
```

## Errors

- `403` — Your tier does not have access. Upgrade to Dev.

## Related

- [Historical by Exchange](/docs/api/funding/historical-by-exchange)
- [Funding](/docs/api/funding)

---

<!-- Source: https://loris.tools/docs/api/funding/symbols | Raw: https://loris.tools/docs/md/api/funding/symbols -->

# Funding Symbols

**Tier:** Dev

`GET /funding/symbols`

Ranked list of symbols tracked for funding rates, sorted by exchange coverage count. Only symbols with at least one active exchange reporting a rate with non-zero OI or volume are included. Use it to discover which coins have the broadest multi-venue funding coverage, or to prioritize which symbols to monitor in a cross-venue carry strategy.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

## Parameters

This endpoint takes no parameters.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/funding/symbols
```

## Example response

```json
{
  "timestamp": "2026-06-08 06:00:00",
  "symbols": [
    { "symbol": "BTC", "exchange_count": 38 },
    { "symbol": "ETH", "exchange_count": 37 },
    { "symbol": "SOL", "exchange_count": 30 },
    { "symbol": "DOGE", "exchange_count": 25 }
  ]
}
```

## Errors

- `403` — Free tier does not have access. Upgrade to Dev.

## Related

- [Funding Rates](/docs/api/funding/funding)
- [Funding Metadata](/docs/api/funding/metadata)
- [OI Symbols](/docs/api/open-interest/symbols)

---

<!-- Source: https://loris.tools/docs/api/open-interest | Raw: https://loris.tools/docs/md/api/open-interest -->

# Open Interest

Query OI snapshots, symbol-level timeseries, and exchange leaderboards across 40+ tracked venues, with per-exchange symbol breakdowns and a ranked symbol list sorted by total OI USD. Historical lookback ranges from 30 days on Dev to full available lookback on Pro for the symbol and exchange-total timeseries, with hourly or daily granularity depending on the selected window.

---

## Endpoints

| Method | Path | Tier | Summary |
|--------|------|------|---------|
| GET | [/oi/symbols](/docs/api/open-interest/symbols) | Dev | Ranked symbol leaderboard by total open interest USD with 24h change and exchange coverage. |
| GET | [/oi/exchange-totals](/docs/api/open-interest/exchange-totals) | Dev | Aggregated open interest per exchange over a date range, in USD or contracts. |
| GET | [/oi/{symbol}/timeseries](/docs/api/open-interest/coin) | Free | OI timeseries for all exchanges on a base symbol. |
| GET | [/oi/exchanges-summary](/docs/api/open-interest/exchanges-summary) | Dev | Exchange OI leaderboard with 24h/7d changes, sparklines, and market share. |
| GET | [/oi/exchange-symbols](/docs/api/open-interest/exchange-symbols) | Dev | All symbols on one exchange with OI USD, share of exchange, and changes. |
| GET | [/oi/exchange-top-symbols-timeseries](/docs/api/open-interest/exchange-top-symbols-timeseries) | Dev | Daily OI timeseries for top N symbols on one exchange — wide format for stacked charts. |
| GET | [/oi/metadata](/docs/api/open-interest/metadata) | Dev | Available exchanges and symbols from recent OI data — catalog for routing and discovery. |

---

<!-- Source: https://loris.tools/docs/api/open-interest/symbols | Raw: https://loris.tools/docs/md/api/open-interest/symbols -->

# OI Symbols

**Tier:** Dev

`GET /oi/symbols`

Ranked leaderboard of all symbols tracked for open interest, sorted by total OI USD. Each entry includes 24h change percentage, exchange coverage count, share of total market OI, and optional asset classification fields. Use it to discover which coins dominate OI, track dominance shifts, or filter down to a watchlist.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

## Parameters

This endpoint takes no parameters.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/oi/symbols
```

## Example response

```json
{
  "timestamp": "2026-06-08 06:00:00",
  "symbols": [
    {
      "rank": 1,
      "symbol": "BTC",
      "oi_usd": 38400000000,
      "oi_24h_change_pct": 2.4,
      "exchange_count": 38,
      "share_of_total": 0.412,
      "asset_class": "crypto",
      "asset_group": "layer1",
      "asset_subgroup": "bitcoin"
    },
    {
      "rank": 2,
      "symbol": "ETH",
      "oi_usd": 14200000000,
      "oi_24h_change_pct": -1.2,
      "exchange_count": 36,
      "share_of_total": 0.152
    }
  ]
}
```

## Errors

- `403` — Free tier does not have access. Upgrade to Dev.

## Related

- [Symbol OI Timeseries](/docs/api/open-interest/coin)
- [Exchanges Summary](/docs/api/open-interest/exchanges-summary)
- [Volume Symbols](/docs/api/volume/symbols)

---

<!-- Source: https://loris.tools/docs/api/open-interest/exchange-totals | Raw: https://loris.tools/docs/md/api/open-interest/exchange-totals -->

# Exchange OI Totals

**Tier:** Dev

`GET /oi/exchange-totals`

Aggregated open interest totals per exchange over a configurable date range, with optional unit conversion to contracts. Returns hourly buckets for ranges under 24 hours, daily otherwise. Use it to chart OI growth trends across venues, compare relative positioning between exchanges, or detect unusual OI accumulation.

---

## Authentication

Requires Dev tier or higher. Dev: maximum 30 days. Pro: unlimited lookback. Requests beyond your tier's limit are clamped; a notice is included in the response.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | Preset lookback: `4h`, `12h`, `1d`, `3d`, `7d`, `14d`, `30d`, `90d`, or `all`. Defaults to `7d`. Do not combine with `start`/`end`. |
| `start` | string (ISO 8601) | No | Custom range start. Date-only strings are accepted. `start_date` is accepted as a legacy alias. |
| `end` | string (ISO 8601) | No | Custom range end. Date-only strings are accepted. Defaults to now when `start` is provided. `end_date` is accepted as a legacy alias. |
| `exchanges` | string | No | Comma-separated exchange slugs, or `all`. Defaults to all. |
| `unit` | string | No | `usd` (default) or `coins`. |

## Tier behavior

**Dev:** Maximum 30 days lookback. Requests beyond this are clamped; the response includes a notice.

**Pro:** Unlimited historical lookback.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/oi/exchange-totals?range=30d&exchanges=binance,bybit"
```

## Example response

```json
{
  "data": [
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "exchange": "binance",
      "total_open_interest_usd": 18200000000,
      "symbol_count": 312
    },
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "exchange": "bybit",
      "total_open_interest_usd": 9400000000,
      "symbol_count": 287
    }
  ],
  "notices": [],
  "unit": "usd",
  "range": "30d",
  "resolution": "1d"
}
```

## Errors

- `400` — Invalid range, invalid date format, mixed `range` plus `start`/`end`, or unknown exchange slug.

## Related

- [Exchanges Summary](/docs/api/open-interest/exchanges-summary)
- [Symbol OI Timeseries](/docs/api/open-interest/coin)

---

<!-- Source: https://loris.tools/docs/api/open-interest/coin | Raw: https://loris.tools/docs/md/api/open-interest/coin -->

# Symbol OI Timeseries

**Tier:** Free

`GET /oi/{symbol}/timeseries`

OI timeseries for all exchanges reporting a given base symbol, aggregated per venue. Returns a chronological series of clean hourly buckets for windows up to 7 days, and daily buckets for longer windows, showing how each exchange's OI on that symbol has moved over the selected window. Use it to build per-symbol OI charts, analyze cross-exchange divergences, or spot positioning shifts before price moves.

> Legacy compatibility: `GET /oi/coin?coin=BTC` remains available during the migration window and is scheduled for removal after July 21, 2026. New integrations should use `/oi/{symbol}/timeseries`.

---

## Authentication

Available on all tiers. Free tier: BTC and ETH only — requests for other symbols return 403. Dev: all symbols, 30-day max lookback. Pro: all symbols, full available historical lookback.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `symbol` | string | Yes | Base symbol in the path, for example `BTC` or `ETH`. |
| `range` | string | No | Preset lookback: `4h`, `12h`, `1d`, `3d`, `7d`, `14d`, `30d`, `90d`, or `all`. Defaults to `7d`. Do not combine with `start`/`end`. |
| `start` | string (ISO 8601) | No | Custom range start. Date-only strings are accepted. `start_date` is accepted as a legacy alias. |
| `end` | string (ISO 8601) | No | Custom range end. Date-only strings are accepted. Defaults to now when `start` is provided. `end_date` is accepted as a legacy alias. |
| `unit` | string | No | `usd` (default) or `coins`. |
| `exchanges` | string | No | Comma-separated exchange slugs. Required when requesting an explicit resolution. |
| `resolution` | string | No | Set to `1h` for observation-time hourly chart data. Omit it to preserve adaptive hourly/daily behavior. |

## Tier behavior

**Free:** BTC and ETH only. Requests for any other symbol return 403 with `required_tier: dev`.

**Dev:** All symbols. Maximum 30-day lookback. Requests beyond this are clamped with a notice.

**Pro:** All symbols. Full available historical lookback.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/oi/ETH/timeseries?start=2026-06-01&end=2026-06-15"
```

## Example response

```json
{
  "data": [
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "exchange": "binance",
      "open_interest_usd": 5800000000
    },
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "exchange": "bybit",
      "open_interest_usd": 2100000000
    },
    {
      "timestamp": "2026-06-02T00:00:00Z",
      "exchange": "binance",
      "open_interest_usd": 5950000000
    }
  ],
  "notices": [],
  "coin": "ETH",
  "unit": "usd",
  "range": "custom",
  "resolution": "1d"
}
```

## Errors

- `403` — Free tier requesting a symbol other than BTC or ETH. Upgrade to Dev.

## Related

- [OI Symbols](/docs/api/open-interest/symbols)
- [Exchange OI Totals](/docs/api/open-interest/exchange-totals)
- [Symbol Volume Timeseries](/docs/api/volume/coin)

---

<!-- Source: https://loris.tools/docs/api/open-interest/exchanges-summary | Raw: https://loris.tools/docs/md/api/open-interest/exchanges-summary -->

# Exchanges Summary

**Tier:** Dev

`GET /oi/exchanges-summary`

Exchange-level OI leaderboard with 24h and 7d changes, a 7-day OI sparkline for each venue, and market share percentage. Returns a ranked table of every tracked exchange with key OI metrics. Use it to build an exchange hub, track venue dominance over time, or find which exchanges are gaining or losing OI share.

---

## Authentication

Requires Dev tier or higher.

## Parameters

This endpoint takes no parameters.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/oi/exchanges-summary
```

## Example response

```json
{
  "exchanges": [
    {
      "exchange": "binance",
      "total_oi_usd": 18200000000,
      "symbol_count": 312,
      "top_symbol": "BTC",
      "change_24h": 2.1,
      "change_7d": 5.4,
      "sparkline_7d": [17200000000, 17500000000, 17800000000, 18000000000, 18100000000, 18150000000, 18200000000],
      "market_share": 0.195
    },
    {
      "exchange": "bybit",
      "total_oi_usd": 9400000000,
      "symbol_count": 287,
      "top_symbol": "BTC",
      "change_24h": 1.8,
      "change_7d": 4.2,
      "sparkline_7d": [8800000000, 9000000000, 9100000000, 9200000000, 9250000000, 9350000000, 9400000000],
      "market_share": 0.101
    }
  ],
  "total": 2,
  "total_market_oi": 93200000000
}
```

## Related

- [Exchange Symbols](/docs/api/open-interest/exchange-symbols)
- [Exchange OI Totals](/docs/api/open-interest/exchange-totals)

---

<!-- Source: https://loris.tools/docs/api/open-interest/exchange-symbols | Raw: https://loris.tools/docs/md/api/open-interest/exchange-symbols -->

# Exchange Symbols

**Tier:** Dev

`GET /oi/exchange-symbols`

All symbols tracked for one exchange with their OI USD, percentage share of that exchange's total OI, and 24h/7d changes with sparklines. Use it to build a per-exchange symbol breakdown table, find which coins are driving OI on a given venue, or power the exchange detail pages of an OI tracker.

---

## Authentication

Requires Dev tier or higher.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchange` | string | Yes | Lowercase exchange slug, e.g. `binance`. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/oi/exchange-symbols?exchange=binance"
```

## Example response

```json
{
  "exchange": "binance",
  "symbols": [
    {
      "symbol": "BTC",
      "oi_usd": 7200000000,
      "percent_of_exchange": 0.396,
      "change_24h": 2.1,
      "change_7d": 5.4,
      "sparkline_7d": [6800000000, 6900000000, 7000000000, 7050000000, 7100000000, 7150000000, 7200000000]
    },
    {
      "symbol": "ETH",
      "oi_usd": 3100000000,
      "percent_of_exchange": 0.170,
      "change_24h": -1.2,
      "change_7d": 2.8,
      "sparkline_7d": [2950000000, 3000000000, 3020000000, 3050000000, 3080000000, 3090000000, 3100000000]
    }
  ],
  "total": 312,
  "total_exchange_oi": 18200000000
}
```

## Errors

- `400` — Missing required parameter `exchange`.

## Related

- [Exchanges Summary](/docs/api/open-interest/exchanges-summary)
- [Top Symbols Timeseries](/docs/api/open-interest/exchange-top-symbols-timeseries)

---

<!-- Source: https://loris.tools/docs/api/open-interest/exchange-top-symbols-timeseries | Raw: https://loris.tools/docs/md/api/open-interest/exchange-top-symbols-timeseries -->

# Top Symbols Timeseries

**Tier:** Dev

`GET /oi/exchange-top-symbols-timeseries`

Open interest USD snapshots for the top N symbols on one exchange, returned in wide format where each row is a timestamp and each column is a symbol. One-day and custom windows of up to 24 hours use hourly snapshots; longer windows use daily snapshots. Each bucket uses the latest OI observation, not OI summed over time.

---

## Authentication

Requires Dev tier or higher. Dev: 30-day max range. Pro and Team: full stored history through custom `start`/`end` windows. Requests beyond your tier's limit are clamped.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchange` | string | Yes | Lowercase exchange slug, e.g. `binance`. |
| `limit` | integer | No | Maximum individual symbols, from 1 to 20. Defaults to 20; higher values are clamped to 20. |
| `range` | string | No | `1d`, `7d`, `30d`, `90d`, or `all`. Defaults to `7d`. Cannot be combined with `start`/`end`. |
| `others_threshold` | integer | No | Combined long-tail percentage, from 1 to 100. With `10`, rank normalized coins across the requested window and group roughly the smallest 10% combined into `Others`. The individual-symbol limit can increase this share. `Others` is an additional column, and each row retains the full total. Without this parameter, return only the top symbols by recent OI. |
| `start` | string (ISO 8601) | No | Custom window start. Must be provided with `end`. Dev is clamped to the rolling 30-day lookback. |
| `end` | string (ISO 8601) | No | Custom window end. Must be after `start`. |

## Tier behavior

**Dev:** 30-day maximum. Requests for `90d` or `all` are clamped to `30d` with a notice.

**Pro/Team:** Full stored historical lookback through custom `start`/`end` windows.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/oi/exchange-top-symbols-timeseries?exchange=binance&range=7d&limit=5"
```

## Example response

```json
{
  "timeseries": [
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "BTC": 7200000000,
      "ETH": 3100000000,
      "SOL": 980000000,
      "DOGE": 420000000,
      "XRP": 380000000
    },
    {
      "timestamp": "2026-06-02T00:00:00Z",
      "BTC": 7350000000,
      "ETH": 3080000000,
      "SOL": 1010000000,
      "DOGE": 415000000,
      "XRP": 392000000
    }
  ],
  "symbols": ["BTC", "ETH", "SOL", "DOGE", "XRP"]
}
```

## Errors

- `400` — Missing required parameter `exchange`, invalid `limit`/`others_threshold` or `start`/`end`, or `range` combined with `start`/`end`.

## Related

- [Exchange Symbols](/docs/api/open-interest/exchange-symbols)
- [Exchange OI Totals](/docs/api/open-interest/exchange-totals)

---

<!-- Source: https://loris.tools/docs/api/open-interest/metadata | Raw: https://loris.tools/docs/md/api/open-interest/metadata -->

# OI Metadata

**Tier:** Dev

`GET /oi/metadata`

Catalog of available exchanges and symbols derived from recent OI data. Returns exchange names with their symbol counts and the full symbol list. Designed for build-time use — generating static routes, populating sitemaps, and driving navigation without pulling full OI payloads.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403). The Loris website calls this endpoint server-side for static generation and sitemap building.

## Parameters

This endpoint takes no parameters.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/oi/metadata
```

## Example response

```json
{
  "exchanges": {
    "exchange_names": [
      { "name": "binance", "symbol_count": 312 },
      { "name": "bybit", "symbol_count": 287 },
      { "name": "okx", "symbol_count": 241 }
    ]
  },
  "symbols": {
    "symbol_names": ["BTC", "ETH", "SOL", "DOGE", "XRP", "..."]
  }
}
```

## Errors

- `403` — Free tier does not have access. Upgrade to Dev.

## Related

- [OI Symbols](/docs/api/open-interest/symbols)
- [Funding Metadata](/docs/api/funding/metadata)
- [Volume Metadata](/docs/api/volume/metadata)

---

<!-- Source: https://loris.tools/docs/api/orderbook | Raw: https://loris.tools/docs/md/api/orderbook -->

# Order Book Depth

Query periodic order book snapshots and slippage or impact metrics from supported live depth collectors, including Binance, Bybit, OKX, Hyperliquid, Lighter, Coinbase, Kalshi, and Extended. The API exposes latest-book summaries, historical precomputed impact series, point-in-time impact checks, depth-band history, and raw stored book levels.

Base precomputed impact tiers include USD notionals `1000`, `5000`, `25000`, and `100000` on both `buy` and `sell`; active symbols may expose larger stored tiers when present. Dev keys receive rolling 30-day historical lookback for history and point-in-time impact. Pro and Team keys receive full stored history.

---

## Endpoints

| Method | Path | Tier | Summary |
|--------|------|------|---------|
| GET | [/orderbook/live](/docs/api/orderbook/live) | Dev | Latest snapshots from the last 10 minutes for one or more exchanges, with top-of-book fields and precomputed impact tiers. |
| GET | [/orderbook/history](/docs/api/orderbook/history) | Dev | Windowed timeseries for one exchange, one symbol, and one side using the precomputed impact tiers stored with each snapshot. |
| GET | [/orderbook/impact](/docs/api/orderbook/impact) | Dev | Compute live impact for a requested USD size, or evaluate the nearest stored snapshot around a timestamp within your tier's lookback. |
| GET | [/orderbook/book](/docs/api/orderbook/book) | Dev | Return stored bid and ask levels for the latest or nearest point-in-time snapshot, with configurable depth up to full stored levels. |
| GET | [/orderbook/depth-history](/docs/api/orderbook/depth-history) | Dev | Historical bid and ask liquidity within a configurable basis-point band around mid. |

---

<!-- Source: https://loris.tools/docs/api/orderbook/live | Raw: https://loris.tools/docs/md/api/orderbook/live -->

# Live Depth Snapshot

**Tier:** Dev

`GET /orderbook/live`

Returns the latest order book depth snapshot for each requested exchange and symbol, limited to snapshots ingested in the last 10 minutes. Each result includes top-of-book prices, spread, taker fee, an insufficient-depth flag, and the precomputed impact tiers stored with the snapshot. Raw bid and ask arrays are not returned by this endpoint.

Each `impact` entry is one precomputed USD notional on a `buy` or `sell` walk. `filled` is false when the stored book could not satisfy the full notional. `insufficient_depth` means the source snapshot or collector marked the stored book as thin for depth calculations.

Responses include `symbol` as the stored exchange symbol for the snapshot and `canonical_symbol` as the normalized base identity for matching the same market across venues.

---

## Authentication

Requires Dev tier or higher. This endpoint is categorized as live for rate limiting: Dev receives 60 requests per minute, Pro and Team receive 120 requests per minute.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchange` | string | Yes | Comma-separated exchange slugs. Supported depth venues include `binance`, `bybit`, `okx`, `hyperliquid`, `lighter`, `coinbase`, `kalshi`, and `extended`. |
| `symbol` | string | No | Comma-separated canonical or venue-native symbols. Symbols are normalized to uppercase unless they use a HIP-3 prefix such as `xyz:BTC`. |

## Tier behavior

**Dev:** Access to latest snapshots only. Uses the live rate-limit bucket.

**Pro:** Same response shape with the Pro live rate-limit bucket.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/orderbook/live?exchange=binance,hyperliquid&symbol=BTC,ETH"
```

## Example response

```json
{
  "results": [
    {
      "exchange": "binance",
      "symbol": "BTCUSDT",
      "canonical_symbol": "BTC",
      "ts": "2026-07-30T12:00:00.123Z",
      "best_bid": 67249.5,
      "best_ask": 67250.0,
      "mid": 67249.75,
      "spread_bps": 0.0743,
      "taker_fee_bps": 5.0,
      "insufficient_depth": false,
      "impact": [
        {
          "side": "buy",
          "notional": 1000.0,
          "slippage_bps": 0.01,
          "total_bps": 5.01,
          "levels": 1,
          "filled": true
        },
        {
          "side": "sell",
          "notional": 1000.0,
          "slippage_bps": 0.02,
          "total_bps": 5.02,
          "levels": 1,
          "filled": true
        }
      ]
    }
  ]
}
```

## Errors

- `400` - Missing `exchange` parameter.
- `500` - ClickHouse is unavailable or the live query failed.

## Related

- [Price Impact](/docs/api/orderbook/impact)
- [Raw Book Snapshot](/docs/api/orderbook/book)

---

<!-- Source: https://loris.tools/docs/api/orderbook/history | Raw: https://loris.tools/docs/md/api/orderbook/history -->

# Historical Impact Series

**Tier:** Dev

`GET /orderbook/history`

Returns a windowed timeseries of precomputed order book impact metrics for one exchange, one symbol, and one side. The endpoint reads the impact arrays stored on each snapshot, so it returns the available USD tiers rather than walking raw book levels at request time.

The response groups points by stored notional tier. Use `notional` to select one exact tier, or omit it to return all tiers present in the selected snapshots. Base stored tiers include `1000`, `5000`, `25000`, and `100000`; active symbols may expose larger tiers when present.

Responses include `symbol` as the requested symbol and `canonical_symbol` as the normalized base identity for matching the same market across venues.

---

## Authentication

Requires Dev tier or higher. Dev keys receive a rolling 30-day historical lookback with clamp notices when needed. Pro and Team receive full stored history. This endpoint is categorized as historical for rate limiting: Dev receives 30 requests per minute, Pro and Team receive 100 requests per minute.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchange` | string | Yes | Single exchange slug. Supported depth venues include `binance`, `bybit`, `okx`, `hyperliquid`, `lighter`, `coinbase`, `kalshi`, and `extended`. |
| `symbol` | string | Yes | Single canonical or venue-native symbol. Symbols are normalized to uppercase unless they use a HIP-3 prefix such as `xyz:BTC`. |
| `side` | string | Yes | `buy` or `sell`. |
| `start` | string (ISO 8601) | Yes | Start timestamp for the requested window. |
| `end` | string (ISO 8601) | Yes | End timestamp for the requested window. Must be after `start`. |
| `resolution` | string | No | `native`, `1m`, `5m`, `15m`, `30m`, `1h`, `4h`, or `1d`. Defaults to `1m`. `native` is treated as `1m`. |
| `notional` | number | No | Positive USD notional to filter to one stored tier. |

## Tier behavior

**Dev:** Rolling 30-day historical lookback for a single exchange, symbol, and side. Older `start`/`end` values are clamped and returned with `notices`.

**Pro:** Full stored history for a single exchange, symbol, and side. No date clamp.

**Team:** Same endpoint behavior and historical rate-limit bucket as Pro.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/orderbook/history?exchange=binance&symbol=BTC&side=buy&start=2026-07-30T00:00:00Z&end=2026-07-30T01:00:00Z&resolution=5m&notional=25000"
```

## Example response

```json
{
  "exchange": "binance",
  "symbol": "BTC",
  "canonical_symbol": "BTC",
  "side": "buy",
  "start": "2026-07-30T00:00:00.000Z",
  "end": "2026-07-30T01:00:00.000Z",
  "resolution": "5m",
  "tiers": [25000.0],
  "series": [
    {
      "notional": 25000.0,
      "points": [
        {
          "ts": "2026-07-30T00:00:00.123Z",
          "slippage_bps": 0.42,
          "fee_bps": 5.0,
          "total_bps": 5.42,
          "levels": 3,
          "filled": true,
          "mid": 67249.75,
          "spread_bps": 0.0743,
          "insufficient_depth": false
        }
      ]
    }
  ]
}
```

## Errors

- `400` - Missing required parameter, invalid `side`, invalid timestamp, unsupported `resolution`, `end` before `start`, or non-positive `notional`.
- `500` - ClickHouse is unavailable or the history query failed.

## Related

- [Live Depth Snapshot](/docs/api/orderbook/live)
- [Price Impact](/docs/api/orderbook/impact)

---

<!-- Source: https://loris.tools/docs/api/orderbook/impact | Raw: https://loris.tools/docs/md/api/orderbook/impact -->

# Price Impact

**Tier:** Dev

`GET /orderbook/impact`

Returns impact for a requested USD size on the latest snapshot, or on the nearest stored snapshot around a timestamp when `at` is provided. If the requested size exactly matches a stored precomputed tier, the endpoint returns that metric. Otherwise it walks the stored raw book levels for the selected snapshot.

For precomputed tiers, `vwap` is reconstructed from stored slippage and `mid`. For on-demand raw walks, `vwap` is null only when no levels could be filled. `filled` is false when the stored book did not satisfy the full requested size. `insufficient_depth` is true when the snapshot was already marked thin or the requested size was not fully filled. `precomputed` tells you whether the response used a stored impact tier.

Responses include `symbol` as the stored exchange symbol for the snapshot and `canonical_symbol` as the normalized base identity for matching the same market across venues.

---

## Authentication

Requires Dev tier or higher. Dev keys can query live impact and point-in-time impact within the rolling 30-day historical lookback. Pro and Team can query the full stored history. Live requests use the live rate-limit bucket; requests with `at` use the historical bucket.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchange` | string | Yes | Single exchange slug. Supported depth venues include `binance`, `bybit`, `okx`, `hyperliquid`, `lighter`, `coinbase`, `kalshi`, and `extended`. |
| `symbol` | string | Yes | Single canonical or venue-native symbol. Symbols are normalized to uppercase unless they use a HIP-3 prefix such as `xyz:BTC`. |
| `side` | string | Yes | `buy` or `sell`. |
| `size` | number | Yes | Positive USD notional to evaluate. Exact matches to stored active tiers use precomputed metrics. |
| `at` | string (ISO 8601) | No | Timestamp for point-in-time impact. The nearest stored snapshot before or after this timestamp is used. Dev is limited to rolling 30 days; Pro and Team receive full stored history. |

## Tier behavior

**Dev:** Latest snapshot impact plus rolling 30-day point-in-time impact. Older `at` values are clamped and returned with `notices`.

**Pro:** Latest impact plus point-in-time impact across full stored history.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/orderbook/impact?exchange=binance&symbol=BTC&side=buy&size=25000"
```

## Example response

```json
{
  "exchange": "binance",
  "symbol": "BTCUSDT",
  "canonical_symbol": "BTC",
  "side": "buy",
  "size": 25000.0,
  "at": null,
  "ts_snapshot": "2026-07-30T12:00:00.123Z",
  "mid": 67249.75,
  "vwap": 67252.5745,
  "slippage_bps": 0.42,
  "fee_bps": 5.0,
  "total_bps": 5.42,
  "levels_consumed": 3,
  "filled": true,
  "insufficient_depth": false,
  "precomputed": true
}
```

## Errors

- `400` - Missing required parameter, invalid `side`, invalid timestamp, or non-positive `size`.
- `404` - No snapshot found for the requested exchange and symbol.
- `500` - ClickHouse is unavailable or the impact query failed.

## Related

- [Live Depth Snapshot](/docs/api/orderbook/live)
- [Historical Impact Series](/docs/api/orderbook/history)

---

<!-- Source: https://loris.tools/docs/api/orderbook/book | Raw: https://loris.tools/docs/md/api/orderbook/book -->

# Raw Book Snapshot

**Tier:** Dev

`GET /orderbook/book`

Returns stored bid and ask levels for the latest snapshot, or the nearest stored snapshot around a timestamp when `at` is provided. This endpoint exposes raw book arrays in addition to the top-of-book and depth metadata returned by the snapshot query.

`depth` defaults to `100`. Numeric values are clamped to `500`. Use `depth=full` or `depth=0` to return all stored bid and ask levels for the selected snapshot.

Responses include `symbol` as the stored exchange symbol for the snapshot and `canonical_symbol` as the normalized base identity for matching the same market across venues.

---

## Authentication

Requires Dev tier or higher. Latest snapshots are available to Dev; point-in-time `at` lookups are limited to the rolling 30-day Dev lookback. Pro and Team receive full stored history. This endpoint is categorized as historical for rate limiting: Dev receives 30 requests per minute, while Pro and Team receive 100 requests per minute.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchange` | string | Yes | Single exchange slug. Supported depth venues include `binance`, `bybit`, `okx`, `hyperliquid`, `lighter`, `coinbase`, `kalshi`, and `extended`. |
| `symbol` | string | Yes | Single canonical or venue-native symbol. Symbols are normalized to uppercase unless they use a HIP-3 prefix such as `xyz:BTC`. |
| `at` | string (ISO 8601) | No | Timestamp for point-in-time book lookup. The nearest stored snapshot before or after this timestamp is used. |
| `depth` | integer|string | No | Number of bid and ask levels to return. Defaults to `100`, clamps at `500`. Use `full` or `0` for all stored levels. |

## Tier behavior

**Dev:** Access to latest raw stored book levels and point-in-time lookups within the rolling 30-day lookback.

**Pro/Team:** Full stored historical lookback.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/orderbook/book?exchange=binance&symbol=BTC&depth=5"
```

## Example response

```json
{
  "exchange": "binance",
  "symbol": "BTCUSDT",
  "canonical_symbol": "BTC",
  "at": null,
  "ts": "2026-07-30T12:00:00.123Z",
  "mid": 67249.75,
  "best_bid": 67249.5,
  "best_ask": 67250.0,
  "spread_bps": 0.0743,
  "taker_fee_bps": 5.0,
  "insufficient_depth": false,
  "seq_id": 123456789,
  "depth": 5,
  "bids": [
    [67249.5, 0.42],
    [67249.0, 1.15]
  ],
  "asks": [
    [67250.0, 0.38],
    [67250.5, 0.91]
  ]
}
```

## Errors

- `400` - Missing required parameter, multiple values where a single value is required, invalid timestamp, or invalid `depth`.
- `404` - No snapshot found for the requested exchange and symbol.
- `500` - ClickHouse is unavailable or the book query failed.

## Related

- [Live Depth Snapshot](/docs/api/orderbook/live)
- [Price Impact](/docs/api/orderbook/impact)

---

<!-- Source: https://loris.tools/docs/api/orderbook/depth-history | Raw: https://loris.tools/docs/md/api/orderbook/depth-history -->

# Depth Band History

**Tier:** Dev

`GET /orderbook/depth-history`

Returns a historical timeseries of cumulative resting bid and ask liquidity within a configurable basis-point band around each sampled snapshot's mid price. The endpoint samples one stored snapshot per requested resolution bucket, then sums bid and ask depth both in base-size units and USD notional.

Responses include `symbol` as the requested symbol and `canonical_symbol` as the normalized base identity for matching the same market across venues.

---

## Authentication

Requires Dev tier or higher. Dev receives a rolling 30-day lookback; Pro and Team receive full stored history. This endpoint is categorized as historical for rate limiting: Dev receives 30 requests per minute, while Pro and Team receive 100 requests per minute.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchange` | string | Yes | Single exchange slug. Supported depth venues include `binance`, `bybit`, `okx`, `hyperliquid`, `lighter`, `coinbase`, `kalshi`, and `extended`. |
| `symbol` | string | Yes | Single canonical or venue-native symbol. Symbols are normalized to uppercase unless they use a HIP-3 prefix such as `xyz:BTC`. |
| `start` | string (ISO 8601) | Yes | Start timestamp for the requested window. |
| `end` | string (ISO 8601) | Yes | End timestamp for the requested window. Must be after `start`. |
| `resolution` | string | No | `native`, `1m`, `5m`, `15m`, `30m`, `1h`, `4h`, or `1d`. Defaults to `1m`. `native` is treated as `1m`. |
| `band_bps` | number | No | Basis-point distance from mid to include on each side. Defaults to `500`, minimum `1`, maximum `5000`. |

## Tier behavior

**Dev:** Rolling 30-day historical lookback for one exchange and symbol.

**Pro/Team:** Full stored historical lookback for one exchange and symbol.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/orderbook/depth-history?exchange=binance&symbol=BTC&start=2026-07-30T00:00:00Z&end=2026-07-30T01:00:00Z&resolution=5m&band_bps=500"
```

## Example response

```json
{
  "exchange": "binance",
  "symbol": "BTC",
  "canonical_symbol": "BTC",
  "start": "2026-07-30T00:00:00.000Z",
  "end": "2026-07-30T01:00:00.000Z",
  "resolution": "5m",
  "band_bps": 500.0,
  "points": [
    {
      "ts": "2026-07-30T00:00:00.123Z",
      "mid": 67249.75,
      "bid_depth_size": 13758.4,
      "ask_depth_size": 10787.1,
      "bid_depth_usd": 125000.5,
      "ask_depth_usd": 98000.25
    }
  ]
}
```

## Errors

- `400` - Missing required parameter, invalid timestamp, unsupported `resolution`, `end` before `start`, or invalid `band_bps`.
- `500` - ClickHouse is unavailable or the depth history query failed.

## Related

- [Live Depth Snapshot](/docs/api/orderbook/live)
- [Raw Book Snapshot](/docs/api/orderbook/book)
- [Historical Impact Series](/docs/api/orderbook/history)

---

<!-- Source: https://loris.tools/docs/api/volume | Raw: https://loris.tools/docs/md/api/volume -->

# Volume

Access trading volume data across 40+ exchanges and 3,900+ symbols — from ranked symbol leaderboards and exchange-level aggregations to per-symbol timeseries and per-exchange symbol breakdowns.

---

## Endpoints

| Method | Path | Tier | Summary |
|--------|------|------|---------|
| GET | [/volume/symbols](/docs/api/volume/symbols) | Dev | Ranked 24h volume symbol leaderboard with exchange coverage and change metrics. |
| GET | [/volume/exchange-totals](/docs/api/volume/exchange-totals) | Dev | Aggregated volume per exchange over a date range, with optional symbol exclusions. |
| GET | [/volume/{symbol}/timeseries](/docs/api/volume/coin) | Free | Volume timeseries for all exchanges on a base symbol. |
| GET | [/volume/exchanges-summary](/docs/api/volume/exchanges-summary) | Dev | Exchange volume leaderboard with 24h/7d changes, sparklines, and market share. |
| GET | [/volume/exchange-symbols](/docs/api/volume/exchange-symbols) | Dev | Per-exchange symbol volume breakdown with price change sparkline. |
| GET | [/volume/exchange-top-symbols-timeseries](/docs/api/volume/exchange-top-symbols-timeseries) | Dev | Daily volume timeseries for top N symbols on one exchange — wide format for stacked charts. |
| GET | [/volume/metadata](/docs/api/volume/metadata) | Dev | Available exchanges and symbols from recent volume data — catalog for routing and discovery. |

---

<!-- Source: https://loris.tools/docs/api/volume/symbols | Raw: https://loris.tools/docs/md/api/volume/symbols -->

# Volume Symbols

**Tier:** Dev

`GET /volume/symbols`

Ranked leaderboard of all symbols tracked for 24h trading volume, sorted by total USD volume. Each entry includes 24h change percentage, exchange coverage count, and share of total market volume. Use it to find which coins are seeing the heaviest trading activity, spot momentum shifts, or seed a volume-sorted watchlist.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

## Parameters

This endpoint takes no parameters.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/volume/symbols
```

## Example response

```json
{
  "timestamp": "2026-06-08 06:00:00",
  "symbols": [
    {
      "rank": 1,
      "symbol": "BTC",
      "volume_24h_usd": 28400000000,
      "volume_24h_change_pct": 12.4,
      "exchange_count": 38,
      "share_of_total": 0.221
    },
    {
      "rank": 2,
      "symbol": "ETH",
      "volume_24h_usd": 14200000000,
      "volume_24h_change_pct": 8.7,
      "exchange_count": 36,
      "share_of_total": 0.110
    },
    {
      "rank": 3,
      "symbol": "SOL",
      "volume_24h_usd": 7800000000,
      "volume_24h_change_pct": 21.3,
      "exchange_count": 30,
      "share_of_total": 0.061
    }
  ]
}
```

## Errors

- `403` — Free tier does not have access. Upgrade to Dev.

## Related

- [Symbol Volume Timeseries](/docs/api/volume/coin)
- [Exchanges Summary](/docs/api/volume/exchanges-summary)
- [OI Symbols](/docs/api/open-interest/symbols)

---

<!-- Source: https://loris.tools/docs/api/volume/exchange-totals | Raw: https://loris.tools/docs/md/api/volume/exchange-totals -->

# Exchange Volume Totals

**Tier:** Dev

`GET /volume/exchange-totals`

Aggregated trading volume totals per exchange over a configurable date range. Returns hourly buckets for ranges under 24 hours, daily otherwise. Supports excluding specific symbols from the totals — useful if you want to strip perpetual-only volume or focus on spot trading.

---

## Authentication

Requires Dev tier or higher. Dev: maximum 30 days. Pro: unlimited lookback. Requests beyond your tier's limit are clamped; a notice is included in the response.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | Preset lookback: `4h`, `12h`, `1d`, `3d`, `7d`, `14d`, `30d`, `90d`, or `all`. Defaults to `7d`. Do not combine with `start`/`end`. |
| `start` | string / ISO 8601 | No | Custom range start. Date-only strings are accepted. `start_date` is accepted as a legacy alias. |
| `end` | string / ISO 8601 | No | Custom range end. Date-only strings are accepted. Defaults to now when `start` is provided. `end_date` is accepted as a legacy alias. |
| `exchanges` | string | No | Comma-separated exchange slugs, or `all`. Defaults to all. |
| `exclude_symbols` | string | No | Comma-separated base symbols to exclude from the volume totals. |

## Tier behavior

**Dev:** Maximum 30 days lookback. Requests beyond this are clamped; the response includes a notice.

**Pro:** Unlimited historical lookback.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/volume/exchange-totals?range=30d&exchanges=binance,bybit"
```

## Example response

```json
{
  "data": [
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "exchange": "binance",
      "total_volume_usd": 42800000000,
      "symbol_count": 312
    },
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "exchange": "bybit",
      "total_volume_usd": 18900000000,
      "symbol_count": 287
    }
  ],
  "notices": [],
  "unit": "usd",
  "range": "30d",
  "resolution": "1d"
}
```

## Errors

- `400` — Invalid range, invalid date format, mixed `range` plus `start`/`end`, or unknown exchange slug.

## Related

- [Exchanges Summary](/docs/api/volume/exchanges-summary)
- [Symbol Volume Timeseries](/docs/api/volume/coin)
- [Exchange OI Totals](/docs/api/open-interest/exchange-totals)

---

<!-- Source: https://loris.tools/docs/api/volume/coin | Raw: https://loris.tools/docs/md/api/volume/coin -->

# Symbol Volume Timeseries

**Tier:** Free

`GET /volume/{symbol}/timeseries`

Volume timeseries for all exchanges reporting a given base symbol, aggregated per venue. Returns clean hourly buckets for windows up to 7 days, and daily buckets for longer windows. Use it to build per-symbol volume charts, compare exchange activity on a given token, or correlate volume spikes with price and OI movements.

> Legacy compatibility: `GET /volume/coin?coin=BTC` remains available during the migration window and is scheduled for removal after July 21, 2026. New integrations should use `/volume/{symbol}/timeseries`.

---

## Authentication

Available on all tiers. Free tier: BTC and ETH only — requests for other symbols return 403. Dev: all symbols, 30-day max lookback. Pro: all symbols, full available historical lookback.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `symbol` | string | Yes | Base symbol in the path, for example `BTC` or `ETH`. |
| `range` | string | No | Preset lookback: `4h`, `12h`, `1d`, `3d`, `7d`, `14d`, `30d`, `90d`, or `all`. Defaults to `7d`. Do not combine with `start`/`end`. |
| `start` | string / ISO 8601 | No | Custom range start. Date-only strings are accepted. `start_date` is accepted as a legacy alias. |
| `end` | string / ISO 8601 | No | Custom range end. Date-only strings are accepted. Defaults to now when `start` is provided. `end_date` is accepted as a legacy alias. |

## Tier behavior

**Free:** BTC and ETH only. Requests for any other symbol return 403 with `required_tier: dev`.

**Dev:** All symbols. Maximum 30-day lookback. Requests beyond this are clamped with a notice.

**Pro:** All symbols. Full available historical lookback.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/volume/ETH/timeseries?start=2026-06-01&end=2026-06-15"
```

## Example response

```json
{
  "data": [
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "exchange": "binance",
      "volume_usd": 5800000000
    },
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "exchange": "bybit",
      "volume_usd": 2100000000
    },
    {
      "timestamp": "2026-06-02T00:00:00Z",
      "exchange": "binance",
      "volume_usd": 6200000000
    }
  ],
  "notices": [],
  "coin": "ETH",
  "unit": "usd",
  "range": "custom",
  "resolution": "1d"
}
```

## Errors

- `403` — Free tier requesting a symbol other than BTC or ETH. Upgrade to Dev.

## Related

- [Volume Symbols](/docs/api/volume/symbols)
- [Symbol OI Timeseries](/docs/api/open-interest/coin)
- [Volume/OI Ratio](/docs/api/metrics/volume-oi-ratio)

---

<!-- Source: https://loris.tools/docs/api/volume/exchanges-summary | Raw: https://loris.tools/docs/md/api/volume/exchanges-summary -->

# Exchanges Summary

**Tier:** Dev

`GET /volume/exchanges-summary`

Exchange volume leaderboard with 24h and 7d changes, a 7-day sparkline per venue, and market share percentage. Returns a ranked table of every tracked exchange's 24h volume and trend. Use it to build an exchange hub page, track which venues are growing or losing activity, or identify the highest-volume exchanges for a particular time period.

---

## Authentication

Requires Dev tier or higher.

## Parameters

This endpoint takes no parameters.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/volume/exchanges-summary
```

## Example response

```json
{
  "exchanges": [
    {
      "exchange": "binance",
      "total_volume_24h_usd": 42800000000,
      "symbol_count": 312,
      "top_symbol": "BTC",
      "change_24h": 12.4,
      "change_7d": 8.2,
      "sparkline_7d": [38000000000, 39000000000, 40000000000, 41000000000, 41500000000, 42000000000, 42800000000],
      "market_share": 0.333
    },
    {
      "exchange": "bybit",
      "total_volume_24h_usd": 18900000000,
      "symbol_count": 287,
      "top_symbol": "BTC",
      "change_24h": 9.8,
      "change_7d": 6.1,
      "sparkline_7d": [16000000000, 16800000000, 17200000000, 17800000000, 18000000000, 18400000000, 18900000000],
      "market_share": 0.147
    }
  ],
  "total": 43,
  "total_market_volume": 128500000000
}
```

## Related

- [Exchange Symbols](/docs/api/volume/exchange-symbols)
- [Exchange Volume Totals](/docs/api/volume/exchange-totals)

---

<!-- Source: https://loris.tools/docs/api/volume/exchange-symbols | Raw: https://loris.tools/docs/md/api/volume/exchange-symbols -->

# Exchange Symbols

**Tier:** Dev

`GET /volume/exchange-symbols`

Per-exchange symbol volume breakdown — every symbol on one exchange with its 24h USD volume, percentage share of that exchange's total, 24h/7d changes, a 7-day volume sparkline, and the 24h price change. Use it to build the per-exchange symbol table page of a volume tracker, spot which coins are most active on a given venue, or find unusual volume concentration.

---

## Authentication

Requires Dev tier or higher.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchange` | string | Yes | Lowercase exchange slug, e.g. `binance`. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/volume/exchange-symbols?exchange=binance"
```

## Example response

```json
{
  "exchange": "binance",
  "symbols": [
    {
      "symbol": "BTC",
      "volume_usd": 12800000000,
      "percent_of_exchange": 0.299,
      "change_24h": 14.2,
      "change_7d": 9.8,
      "sparkline_7d": [9800000000, 10200000000, 10800000000, 11200000000, 11800000000, 12200000000, 12800000000],
      "price_change_24h": 3.2
    },
    {
      "symbol": "ETH",
      "volume_usd": 5600000000,
      "percent_of_exchange": 0.131,
      "change_24h": 8.7,
      "change_7d": 5.4,
      "sparkline_7d": [4800000000, 5000000000, 5100000000, 5200000000, 5300000000, 5450000000, 5600000000],
      "price_change_24h": 2.1
    }
  ],
  "total": 312,
  "total_exchange_volume": 42800000000
}
```

## Errors

- `400` — Missing required parameter `exchange`.

## Related

- [Exchanges Summary](/docs/api/volume/exchanges-summary)
- [Top Symbols Timeseries](/docs/api/volume/exchange-top-symbols-timeseries)

---

<!-- Source: https://loris.tools/docs/api/volume/exchange-top-symbols-timeseries | Raw: https://loris.tools/docs/md/api/volume/exchange-top-symbols-timeseries -->

# Top Symbols Timeseries

**Tier:** Dev

`GET /volume/exchange-top-symbols-timeseries`

Volume USD snapshots for the top N symbols on one exchange, in wide format where each row is a timestamp and each column is a symbol. One-day and custom windows of up to 24 hours use hourly snapshots; longer windows use daily snapshots. Values are rolling 24-hour volume snapshots, not volume summed over each bucket.

---

## Authentication

Requires Dev tier or higher. Dev: 30-day max range. Pro and Team: full stored history through custom `start`/`end` windows.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchange` | string | Yes | Lowercase exchange slug, e.g. `binance`. |
| `limit` | integer | No | Maximum individual symbols, from 1 to 20. Defaults to 20; higher values are clamped to 20. |
| `range` | string | No | `1d`, `7d`, `30d`, `90d`, or `all`. Defaults to `7d`. Cannot be combined with `start`/`end`. |
| `others_threshold` | integer | No | Combined long-tail percentage, from 1 to 100. With `10`, rank normalized coins across the requested window and group roughly the smallest 10% combined into `Others`. The individual-symbol limit can increase this share. `Others` is an additional column, and each row retains the full total. Without this parameter, return only the top symbols by recent volume. |
| `start` | string (ISO 8601) | No | Custom window start. Must be provided with `end`. Dev is clamped to the rolling 30-day lookback. |
| `end` | string (ISO 8601) | No | Custom window end. Must be after `start`. |

## Tier behavior

**Dev:** 30-day maximum. Requests for `90d` or `all` are clamped to `30d` with a notice.

**Pro/Team:** Full stored historical lookback through custom `start`/`end` windows.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/volume/exchange-top-symbols-timeseries?exchange=binance&range=7d&limit=5"
```

## Example response

```json
{
  "timeseries": [
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "BTC": 11200000000,
      "ETH": 4800000000,
      "SOL": 2100000000,
      "DOGE": 980000000,
      "XRP": 720000000
    },
    {
      "timestamp": "2026-06-02T00:00:00Z",
      "BTC": 12000000000,
      "ETH": 5100000000,
      "SOL": 2400000000,
      "DOGE": 1050000000,
      "XRP": 780000000
    }
  ],
  "symbols": ["BTC", "ETH", "SOL", "DOGE", "XRP"]
}
```

## Errors

- `400` — Missing required parameter `exchange`, invalid `start`/`end`, or `range` combined with `start`/`end`.

## Related

- [Exchange Symbols](/docs/api/volume/exchange-symbols)
- [Exchange Volume Totals](/docs/api/volume/exchange-totals)

---

<!-- Source: https://loris.tools/docs/api/volume/metadata | Raw: https://loris.tools/docs/md/api/volume/metadata -->

# Volume Metadata

**Tier:** Dev

`GET /volume/metadata`

Catalog of available exchanges and symbols derived from recent volume data, including exchange display names and funding intervals. Designed for build-time use — generating static routes, populating sitemaps, and seeding navigation dropdowns without pulling full volume payloads.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403). The Loris website calls this endpoint server-side for static generation and sitemap building.

## Parameters

This endpoint takes no parameters.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/volume/metadata
```

## Example response

```json
{
  "symbols": ["BTC", "ETH", "SOL", "DOGE", "XRP", "..."],
  "exchanges": {
    "exchange_names": [
      { "name": "binance", "display": "Binance", "interval": 8 },
      { "name": "bybit", "display": "Bybit", "interval": 8 },
      { "name": "okx", "display": "OKX", "interval": 8 }
    ],
    "exchanges": ["binance", "bybit", "okx", "..."]
  },
  "timestamp": "2026-06-08 06:00:00"
}
```

## Errors

- `403` — Free tier does not have access. Upgrade to Dev.

## Related

- [Volume Symbols](/docs/api/volume/symbols)
- [OI Metadata](/docs/api/open-interest/metadata)
- [Funding Metadata](/docs/api/funding/metadata)

---

<!-- Source: https://loris.tools/docs/api/liquidations | Raw: https://loris.tools/docs/md/api/liquidations -->

# Liquidations

Access live liquidation events and rolling range aggregates across 40+ exchanges, with filtering by symbol, exchange, and USD size. Historical buckets by date and exchange let you chart deleveraging trends over time, while anomaly detection surfaces symbols and venues with outsized liquidation spikes relative to their baseline.

---

## Endpoints

| Method | Path | Tier | Summary |
|--------|------|------|---------|
| GET | [/liquidations/events](/docs/api/liquidations/events) | Dev | Recent liquidation events with filtering by exchange, symbol, and minimum USD size. |
| GET | [/liquidations/aggregates](/docs/api/liquidations/aggregates) | Dev | Period totals (long/short USD) grouped by symbol, exchange, or pair. |
| GET | [/liquidations/filter-counts](/docs/api/liquidations/filter-counts) | Dev | Event counts per (symbol, exchange) pair for the last 24 hours — drives filter UIs. |
| GET | [/liquidations/history](/docs/api/liquidations/history) | Dev | Daily long/short USD buckets per exchange. Dev gets 30 days; Pro gets full stored history. |
| GET | [/liquidations/bubbles](/docs/api/liquidations/bubbles) | Pro | Anomaly detection: symbols and exchanges with outsized recent liquidation activity versus baseline. |
| GET | [/liquidations/heatmap](/docs/api/liquidations/heatmap) | Dev | Hourly inferred exposure history under assumed leverage, method liq-heatmap-v1; not a price prediction. |

---

<!-- Source: https://loris.tools/docs/api/liquidations/events | Raw: https://loris.tools/docs/md/api/liquidations/events -->

# Liquidation Events

**Tier:** Dev

`GET /liquidations/events`

Returns recent liquidation events across all tracked exchanges, with optional filtering by exchange, symbol, USD minimum, and time cursor. Events are consolidated by (exchange, order_id) when multiple fills map to the same order. Useful for building live liquidation feeds via polling, alerting on large events, or studying cascading liquidation patterns.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `since` | string | No | Unix timestamp in milliseconds. Bypasses the snapshot and queries ClickHouse directly for events after this time. |
| `limit` | integer | No | Maximum number of events to return. |
| `min_usd` | float | No | Minimum USD value filter (snapshot path only). |
| `exchange` | string | No | Comma-separated lowercase exchange slugs. |
| `symbol` | string | No | Comma-separated base symbols, e.g. `BTC,ETH`. Mutually exclusive with `exclude_symbol`. |
| `exclude_symbol` | string | No | Comma-separated symbols to exclude. Mutually exclusive with `symbol`. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/liquidations/events?symbol=BTC,ETH&min_usd=100000"
```

## Example response

```json
{
  "events": [
    {
      "timestamp": "2026-06-08T05:55:12Z",
      "exchange": "binance",
      "symbol": "BTC",
      "side": "long",
      "price": 71200.00,
      "avg_price": 71195.50,
      "quantity": 2.5,
      "filled_quantity": 2.5,
      "usd_value": 177988.75,
      "status": "filled",
      "oid": "abc123",
      "fill_count": 1
    },
    {
      "timestamp": "2026-06-08T05:54:43Z",
      "exchange": "bybit",
      "symbol": "ETH",
      "side": "long",
      "price": 3820.00,
      "avg_price": 3819.20,
      "quantity": 50.0,
      "filled_quantity": 50.0,
      "usd_value": 190960.00,
      "status": "filled",
      "oid": "def456",
      "fill_count": 1
    }
  ],
  "count": 2
}
```

## Errors

- `400` — Both `symbol` and `exclude_symbol` provided (mutually exclusive).

## Related

- [Liquidation Aggregates](/docs/api/liquidations/aggregates)
- [Liquidation History](/docs/api/liquidations/history)
- [Liquidation Bubbles](/docs/api/liquidations/bubbles)

---

<!-- Source: https://loris.tools/docs/api/liquidations/aggregates | Raw: https://loris.tools/docs/md/api/liquidations/aggregates -->

# Liquidation Aggregates

**Tier:** Dev

`GET /liquidations/aggregates`

Aggregated liquidation totals and per-group breakdowns over a rolling time window. Returns total long/short liquidated USD, event counts, and a ranked list of the biggest contributors. Use it to gauge overall market stress, compare which exchanges or symbols are seeing the most forced liquidations, or feed a summary dashboard.

Snapshots refresh on a one-minute cadence. `as_of` is the rolling window's end time; `latest_event_at` is the newest matching raw event, or `null` when none match. Totals use completed one-minute buckets, so the current minute can appear in the live feed before it is included in totals.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | `1h`, `4h`, `12h`, or `24h`. Defaults to `24h`. Legacy `period` is accepted until July 21, 2026. |
| `group_by` | string | No | `symbol`, `exchange`, or `symbol_exchange`. Defaults to `symbol`. |
| `exchange` | string | No | Comma-separated exchange filter. |
| `symbol` | string | No | Comma-separated symbol filter. |
| `exclude_symbol` | string | No | Comma-separated symbols to exclude. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/liquidations/aggregates?range=24h&group_by=symbol"
```

## Example response

```json
{
  "range": "24h",
  "period": "24h",
  "group_by": "symbol",
  "as_of": "2026-11-30T15:00:00Z",
  "latest_event_at": "2026-11-30T14:59:58Z",
  "totals": {
    "long_count": 18420,
    "short_count": 9310,
    "long_usd": 423000000,
    "short_usd": 198000000,
    "total_count": 27730,
    "total_usd": 621000000
  },
  "groups": [
    {
      "name": "BTC",
      "long_count": 4200,
      "short_count": 2100,
      "long_usd": 145000000,
      "short_usd": 62000000,
      "total_count": 6300,
      "total_usd": 207000000
    },
    {
      "name": "ETH",
      "long_count": 3800,
      "short_count": 1900,
      "long_usd": 98000000,
      "short_usd": 41000000,
      "total_count": 5700,
      "total_usd": 139000000
    }
  ],
  "largest": {
    "exchange": "bybit",
    "symbol": "BTCUSDT",
    "side": "long",
    "usd_value": 1200000,
    "timestamp": "2026-11-30T14:45:00Z"
  }
}
```

## Errors

- `400` — Invalid range value. Accepted: `1h`, `4h`, `12h`, `24h`.
- `503` — A shared snapshot is refreshing. Retry after the `Retry-After` interval.

## Related

- [Liquidation Events](/docs/api/liquidations/events)
- [Liquidation History](/docs/api/liquidations/history)

---

<!-- Source: https://loris.tools/docs/api/liquidations/filter-counts | Raw: https://loris.tools/docs/md/api/liquidations/filter-counts -->

# Filter Counts

**Tier:** Dev

`GET /liquidations/filter-counts`

Returns the count of liquidation events per (symbol, exchange) pair recorded in the last 24 hours. Designed to populate filter UI controls — knowing which pairs have activity before showing them in a dropdown avoids presenting empty options to users.

---

## Authentication

Requires Dev tier or higher.

## Parameters

This endpoint takes no parameters.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/liquidations/filter-counts
```

## Example response

```json
{
  "pairs": [
    { "symbol": "BTC", "exchange": "binance", "count": 3420 },
    { "symbol": "ETH", "exchange": "binance", "count": 2890 },
    { "symbol": "BTC", "exchange": "bybit", "count": 2100 },
    { "symbol": "SOL", "exchange": "okx", "count": 840 }
  ]
}
```

## Related

- [Liquidation Events](/docs/api/liquidations/events)
- [Liquidation Aggregates](/docs/api/liquidations/aggregates)

---

<!-- Source: https://loris.tools/docs/api/liquidations/history | Raw: https://loris.tools/docs/md/api/liquidations/history -->

# Liquidation History

**Tier:** Dev

`GET /liquidations/history`

Historical liquidation long/short USD totals bucketed by date and exchange. Returns a chronological series of daily (or hourly, for the 1d range) liquidation volumes broken down per venue. Use it to chart long-term liquidation trends, identify historically heavy deleveraging days, or correlate liquidation spikes with price movements.

---

## Authentication

Requires Dev tier or higher. Dev: maximum 30 days. Pro and Team: full stored history. Requests exceeding your tier's limit are clamped and a notice is included in the response.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | `1d`, `7d`, `30d`, or `90d`. Defaults to `30d`. `1d` uses hourly buckets; others use daily buckets. Cannot be combined with `start`/`end`. |
| `start` | string (ISO 8601) | No | Custom window start. Must be provided with `end`. Dev is clamped to the rolling 30-day lookback. |
| `end` | string (ISO 8601) | No | Custom window end. Must be after `start`. |

## Tier behavior

**Dev:** Maximum 30 days. Requests for `90d` or older custom windows are clamped to the rolling 30-day lookback; a notice is included in the response.

**Pro/Team:** Full stored historical lookback.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/liquidations/history?range=7d"
```

## Example response

```json
{
  "unit": "usd",
  "resolution": "1d",
  "data": [
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "date": "2026-06-01T00:00:00Z",
      "exchanges": {
        "binance": { "long_usd": 145000000, "short_usd": 62000000 },
        "bybit": { "long_usd": 87000000, "short_usd": 31000000 }
      }
    },
    {
      "timestamp": "2026-06-02T00:00:00Z",
      "date": "2026-06-02T00:00:00Z",
      "exchanges": {
        "binance": { "long_usd": 98000000, "short_usd": 44000000 },
        "bybit": { "long_usd": 72000000, "short_usd": 28000000 }
      }
    }
  ],
  "notices": []
}
```

## Errors

- `400` — Invalid range value, invalid `start`/`end`, or `range` combined with `start`/`end`.

## Related

- [Liquidation Bubbles](/docs/api/liquidations/bubbles)
- [Liquidation Aggregates](/docs/api/liquidations/aggregates)

---

<!-- Source: https://loris.tools/docs/api/liquidations/bubbles | Raw: https://loris.tools/docs/md/api/liquidations/bubbles -->

# Liquidation Bubbles

**Tier:** Pro

`GET /liquidations/bubbles`

Anomaly detection for liquidation activity. Compares each symbol×exchange pair's recent liquidation USD against a baseline period and surfaces entries with the highest anomaly ratio — the biggest spikes relative to what's normal for that pair. Use it to find where forced selling is unusually concentrated before it shows up in price.

---

## Authentication

Requires Pro tier or higher. Free and Dev tiers do not have access (returns 403).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | `7d`, `30d`, or `90d`. Defaults to `7d`. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/liquidations/bubbles?range=7d"
```

## Example response

```json
{
  "data": [
    {
      "symbol": "BTC",
      "exchanges": {
        "binance": {
          "recent_long_usd": 320000000,
          "recent_short_usd": 140000000,
          "baseline_long_usd": 95000000,
          "baseline_short_usd": 42000000
        }
      },
      "anomaly_ratio": 3.37
    },
    {
      "symbol": "ETH",
      "exchanges": {
        "bybit": {
          "recent_long_usd": 87000000,
          "recent_short_usd": 38000000,
          "baseline_long_usd": 42000000,
          "baseline_short_usd": 18000000
        }
      },
      "anomaly_ratio": 2.07
    }
  ]
}
```

## Errors

- `403` — Your tier does not have access. Upgrade to Pro.

## Related

- [Liquidation History](/docs/api/liquidations/history)
- [Liquidation Aggregates](/docs/api/liquidations/aggregates)

---

<!-- Source: https://loris.tools/docs/api/liquidations/heatmap | Raw: https://loris.tools/docs/md/api/liquidations/heatmap -->

# Estimated Liquidation Heatmap

**Tier:** Dev · `GET /liquidations/heatmap`

Time-anchored **estimated liquidation exposure**, shared with the Pro chart. Estimated
exposure under assumed leverage, not a price prediction or observed positions.

## Parameters

| Name | Required | Description |
|------|----------|-------------|
| `exchange` | Yes | Venue slug with an implemented candle adapter and usable OI history. |
| `symbol` | Yes | Base/native perpetual symbol, e.g. BTC or BTCUSDT. One instrument, no aggregation. |
| `start` | Yes | ISO 8601 UTC, rounded up to an hour. Inclusive snapshot timestamp. |
| `end` | Yes | ISO 8601 UTC, capped at now and minute precision. Exclusive. A live partial column holds the latest completed-hour score. |
| `grouping_bps` | No | Absolute logarithmic grid: 25 (default), 50 or 100 bps. |
| `interval` | No | `1h` (default): hourly snapshots. `4h`, `12h`, `1d`: UTC-aligned means of the same hourly snapshots. |

Dev keys have the existing rolling 30-day tier clamp with notices. Pro/Team can
request older ranges where inputs exist. Each request computes at most **720 hourly
scores**, 2,000 cells per hourly score and 200,000 cells before aggregation. An oversized range
retains its latest 720 hours and sets `truncated: true`. A cell cap stops the
response at the last complete column, updates `end`, and sets `truncated`.
The chart adapts its display history: up to 1h charts show 72h of hourly scores;
2–4h charts show 14d in 4h means; intraday charts above 4h show 30d in 12h means;
daily charts show 90d in daily means; weekly charts show 180d in daily means.
Longer views page in bounded two-week requests, subject to history access and
input availability. Workspace entitlements remain separate from API tiers.

## Concurrent rebuilds

Cached responses remain available without taking a rebuild slot. Cold requests
share a server-side limit across API processes and hosts: by default, one rebuild
globally and one per API account. Identical requests share the same rebuild;
additional callers do not start duplicate calculations or wait inside API workers.

When a rebuild is already running or capacity is occupied, the endpoint returns
`429` with `code: "heatmap_busy"`, `retry_after: 5` and `Retry-After: 5`. Retry after
that delay; a completed result is returned from its existing cache. These responses
use `Cache-Control: no-store`. The chart limits every timeframe to two in-flight
browser requests and retries this busy response with backoff up to 30 seconds
and a bounded three-minute budget,
retaining previously loaded timestamped data.

If shared coordination is unavailable or a running rebuild loses its lease, the
endpoint returns `503` with `code: "heatmap_unavailable"` and a short retry delay.
It does not start uncoordinated calculations. Successful data, cache identities,
model inputs and history limits are unchanged. Admission limits reduce duplicate
work and protect other API requests; they do not make one cold calculation faster.

## Frozen model: liq-heatmap-v1

Each snapshot at t uses exactly 168 completed hourly candles ending at t. Each
close is an equal entry cohort. Prefer mark candles; otherwise use trade candles
and identify `price_source`. There is no fallback estimator or assertion of
validation on every available market.

Equal 5x/10x/20x/50x components, assumed MMR 0.005, half OI per side:

- Long trigger: `entry * (1 - 1/leverage) / (1 - 0.005)`.
- Short trigger: `entry * (1 + 1/leverage) / (1 + 0.005)`.

Remove hypothetical cohorts crossed by subsequent completed-hour lows/highs or
snapshot price. Exclude the entry candle's own wick. Normalize survivors per
side/leverage, smooth 400 relative 25-bps bins with Gaussian sigma=1 reflect,
then conservatively rebin by overlap onto the absolute price grid.

OI is available at stored timestamp +1h with backward tolerance 3h. Require
usable OI throughout the 168h window. Contract multipliers convert raw amounts
to base; unknown/inverse units are unavailable. **USD scale = base OI × snapshot
close**, excluding Binance's combined COIN-M stored USD total. This intentionally
differs from research's stored-USD scale; normalized frozen scores are unchanged.
No longer lookback, fitted weights or research sensitivity enters this endpoint.

## Time and lifecycle

For `interval=1h`, `columns[].time` is the score's information cutoff. Its display interval is
`[time, time+1h)`, clipped by response end and actual chart candle intervals.
No viewport anchoring or extension into empty future space. Historical crossed
segments stay at their original timestamps.

`cells[].lifecycle` partitions each cell's exact USD total by `active`, `crossed`
and `aged_out`. `at`/`at_end` bound terminal times of contributing cohorts in
that status; they are equal for a single terminal hour and null for active.
A cell can contain several cohort lifetimes; it has no invented single status.
`ending_usd` is the portion terminating by this column's end; the renderer fades
aged-out endings. Crossings are known at the crossing candle's **completed-hour
boundary**, not an invented intra-hour execution time. Expiry is entry +168h.

Lifecycle labels use later completed candles **only through `status_as_of`**
(up to the completed requested end or the last possible expiry). If a cell cap shortens the returned range, `lifecycle_as_of` retains that original observation cutoff. They are retrospective
inspection metadata, never inputs to the historical exposure score. Active
means un-crossed/un-expired as of that cutoff. Adjacent paginated responses can
have different status cutoffs; read the per-column value.

## Coarser display intervals

`interval=4h|12h|1d` keeps the frozen hourly model and 168h input window.
For each absolute price bin, `long_usd` and `short_usd` are the arithmetic means
of its hourly USD values within the display period, **never sums**. This shows
historical concentration across more candles without multiplying outstanding
exposure by the number of hours. A missing bin in a valid hourly score contributes
zero; any missing hourly score makes its entire display period unavailable.

The response identifies `aggregation: "mean"` and the requested `interval_seconds`.
Each column adds `end_time`, `sample_count`, `aggregation: "mean"` and `as_of`.
`time` is the UTC period start; `as_of` identifies its latest included hourly
score. These are retrospective display summaries, not predictions available
at the period start. A partial current period averages only included hours and
ends at the requested/completed-hour boundary, with no future extension.
`reference_price` is the latest included price; `oi_usd` is the mean hourly OI USD.
Coarse columns return empty lifecycle arrays; hourly terminal attribution is not
assigned an invented single status to an averaged bin. The chart labels values
as averages in its inspection line and hover tooltip.

## Example

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/liquidations/heatmap?exchange=binance&symbol=BTC&start=2026-10-20T00:00:00Z&end=2026-10-21T00:00:00Z&grouping_bps=25"
```

```json
{
  "exchange": "binance", "symbol": "BTC", "source_symbol": "BTCUSDT",
  "model_version": "liq-heatmap-v1", "method": "estimated", "scenario": "base",
  "start": "2026-10-20T00:00:00Z", "end": "2026-10-21T00:00:00Z",
  "as_of": "2026-10-20T23:00:00Z", "price_source": "mark",
  "lookback_hours": 168, "grouping_bps": 25, "interval_seconds": 3600,
  "status": "ok", "message": null,
  "columns": [{
    "time": "2026-10-20T23:00:00Z", "status_as_of": "2026-10-21T00:00:00Z",
    "reference_price": 80000, "oi_usd": 1000000000,
    "cells": [{"price_low": 76000, "price_high": 76190,
      "long_usd": 12000000, "short_usd": 0,
      "lifecycle": [{"status": "active", "at": null, "at_end": null,
        "long_usd": 12000000, "short_usd": 0, "ending_usd": 0}]}]
  }],
  "input_freshness": {"latest_price_candle_time": "2026-10-21T00:00:00Z",
    "oi_source_timestamp": "2026-10-20T21:30:00Z",
    "oi_available_at": "2026-10-20T22:30:00Z", "oi_age_seconds": 1800},
  "gaps": [], "truncated": false, "notices": []
}
```

Illustrative values; actual response includes leverage levels/weights, MMR,
OI scale/source identity and lifecycle cutoff. Missing ranges have `columns: []`
and an explicit availability status. Individual unusable OI hours are listed in
`gaps`. Missing price warm-up makes the range unavailable. No missing input is
silently converted into zero exposure. Freshness is stored observation time;
historical collector receipt time cannot be proven from this table.

Complete live-edge responses ending on a UTC hour cache until the next UTC hour.
Partial-hour live requests and responses with missing inputs cache for 60 seconds.
Completed candles, complete historical responses, and reusable hourly
scores for coarse views cache for up to 365 days. Hourly lifecycle labels are
stored only in the full range response, using that response's observation cutoff.
Gzip is supported.
All positive bins remain available to rendering and hover. Continuous colour and
opacity emphasize concentrated peaks while retaining quieter exposure. Colours
saturate at the loaded history’s 98th-percentile cell USD value, labelled ≥ that
amount on the legend, without clipping tooltip values. Coarse views apply this
scale to mean USD values and label them as averages.

## Errors

- `400`: missing/invalid range, symbol, exchange or grouping.
- `401`/`403`: authentication/tier restriction.
- `500`: temporary input service failure; sanitized message.

[Observed events](/docs/api/liquidations/events) · [Observed history](/docs/api/liquidations/history)

---

<!-- Source: https://loris.tools/docs/api/markets | Raw: https://loris.tools/docs/md/api/markets -->

# Markets

The Markets group provides cross-market snapshots and dashboard data — price movers, symbol leaderboard, exchange distribution, and sentiment histograms. It also exposes per-symbol detail endpoints (timeseries, exchange breakdown, aggregated stats) and per-exchange detail endpoints.

## Freshness

Market snapshot endpoints expose fields with different refresh cadences. Price fields such as `price_usd` and `price_24h_change_pct`, plus current funding fields such as `funding_current_bps`, `top_funding_bps`, and `top_funding_exchange`, generally refresh about once per minute. Rolling aggregate fields such as 24h volume, OI, 24h liquidations, and funding averages can refresh on the slower aggregate cadence, typically about 10 minutes.

The response `timestamp` reflects the latest materialized market snapshot, not that every field was recomputed from source at that exact second.

---

## Endpoints

| Method | Path | Tier | Summary |
|--------|------|------|---------|
| GET | [/markets/movers](/docs/api/markets/movers) | Dev | Top symbols by 24h volume or OI change. |
| GET | [/markets/liquidation-movers](/docs/api/markets/liquidation-movers) | Dev | Symbols with the largest 24h liquidation USD change. |
| GET | [/markets/funding-leaders](/docs/api/markets/funding-leaders) | Dev | Top 10 highest or lowest funding rate symbol×exchange pairs. |
| GET | [/markets/distribution](/docs/api/markets/distribution) | Dev | Symbol distribution by OI or volume — pie-chart data. |
| GET | [/markets/price-buckets](/docs/api/markets/price-buckets) | Dev | Histogram of symbols bucketed by 24h price change. |
| GET | [/markets/price-movers](/docs/api/markets/price-movers) | Dev | Top price gainers and losers by 24h percentage change. |
| GET | [/markets/exchange-distribution](/docs/api/markets/exchange-distribution) | Dev | Per-exchange rollup: symbol count, volume, OI, liquidations, and OI/vol ratio. |
| GET | [/markets/exchanges](/docs/api/markets/exchanges) | Dev | Exchange list with stats and 7d volume sparkline. |
| GET | [/markets/exchanges/all](/docs/api/markets/exchanges-all) | Pro | Bulk symbol×exchange map — every symbol's per-exchange rows in one response. |
| GET | [/markets/exchanges/{exchange}/symbols](/docs/api/markets/exchange-symbols) | Dev | Full symbol rows from one exchange's snapshot, sorted by volume. |
| GET | [/markets/exchanges/{exchange}/stats](/docs/api/markets/exchange-stats) | Dev | Aggregated totals for one exchange: volume, OI, and derived ratios. |
| GET | [/markets/exchanges/{exchange}/timeseries](/docs/api/markets/exchange-timeseries) | Dev | Volume and OI timeseries for one exchange over a configurable range. |
| GET | [/markets/symbols](/docs/api/markets/symbols) | Dev | Global symbol leaderboard with price, volume, OI, funding, and liquidations. |
| GET | [/markets/{symbol}/timeseries](/docs/api/markets/symbol-timeseries) | Dev | Volume and OI timeseries for one symbol with per-exchange breakdown. |
| GET | [/markets/{symbol}/distribution](/docs/api/markets/symbol-distribution) | Dev | Per-exchange OI or volume share for one symbol. |
| GET | [/markets/{symbol}/exchanges](/docs/api/markets/symbol-exchanges) | Free | Full per-exchange market rows for one symbol. |
| GET | [/markets/{symbol}/stats](/docs/api/markets/symbol-stats) | Free | Aggregated price, volume, OI, and funding across exchanges for one symbol. |

---

<!-- Source: https://loris.tools/docs/api/markets/movers | Raw: https://loris.tools/docs/md/api/markets/movers -->

# Movers

**Tier:** Dev

`GET /markets/movers`

Returns the top symbols sorted by 24h volume or OI change — which coins are moving the most relative to yesterday. Configurable minimum threshold, result count, and exchange scope. Use it to build a 'biggest movers' dashboard widget or scan for unusual activity before it becomes headline news.

---

## Authentication

Requires Dev tier or higher.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `metric` | string | Yes | `volume` or `oi`. |
| `min_value` | float | No | Minimum value threshold. |
| `limit` | int | No | Number of results to return. |
| `exchanges` | string | No | Comma-separated exchange filter. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/markets/movers?metric=volume&limit=10"
```

## Example response

```json
{
  "metric": "volume",
  "timestamp": "2026-06-08 06:00:00",
  "data": [
    {
      "symbol": "SOL",
      "value": 7800000000,
      "change_24h_pct": 42.3,
      "rank": 1
    },
    {
      "symbol": "DOGE",
      "value": 3200000000,
      "change_24h_pct": 38.1,
      "rank": 2
    }
  ]
}
```

## Errors

- `400` — Missing required parameter `metric`, or invalid value (must be `volume` or `oi`).

## Related

- [Price Movers](/docs/api/markets/price-movers)
- [Liquidation Movers](/docs/api/markets/liquidation-movers)
- [Symbols](/docs/api/markets/symbols)

---

<!-- Source: https://loris.tools/docs/api/markets/liquidation-movers | Raw: https://loris.tools/docs/md/api/markets/liquidation-movers -->

# Liquidation Movers

**Tier:** Dev

`GET /markets/liquidation-movers`

Symbols with the largest 24h liquidation USD change — where forced liquidations have increased most dramatically versus the prior period. Useful for spotting concentrated liquidation pressure, identifying stressed positions, or feeding a liquidation alert pipeline.

---

## Authentication

Requires Dev tier or higher.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `min_value` | float | No | Minimum USD liquidation threshold. Defaults to 100k. |
| `limit` | int | No | Number of results to return. |
| `exchanges` | string | No | Comma-separated exchange filter. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/markets/liquidation-movers?limit=10"
```

## Example response

```json
{
  "metric": "liquidation",
  "timestamp": "2026-06-08 06:00:00",
  "data": [
    {
      "symbol": "BTC",
      "value": 207000000,
      "change_24h_pct": 214.5,
      "rank": 1
    },
    {
      "symbol": "ETH",
      "value": 139000000,
      "change_24h_pct": 182.3,
      "rank": 2
    }
  ]
}
```

## Related

- [Liquidation Events](/docs/api/liquidations/events)
- [Movers](/docs/api/markets/movers)

---

<!-- Source: https://loris.tools/docs/api/markets/funding-leaders | Raw: https://loris.tools/docs/md/api/markets/funding-leaders -->

# Funding Leaders

**Tier:** Dev

`GET /markets/funding-leaders`

The top 10 highest funding rate symbol×exchange pairs — the venues paying out the most to shorts, or charging longs the most. Useful for quickly finding the best funding arbitrage opportunities or identifying which markets are most overbought or oversold.

## Freshness

Current funding fields generally refresh about once per minute. Supporting OI-rank context can refresh on the slower aggregate cadence, typically about 10 minutes.

---

## Authentication

Requires Dev tier or higher.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchanges` | string | No | Comma-separated exchange filter. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/markets/funding-leaders
```

## Example response

```json
{
  "timestamp": "2026-06-08 06:00:00",
  "data": [
    {
      "symbol": "PEPE",
      "exchange": "binance",
      "funding_current_bps": 8.45,
      "oi_rank": 42,
      "rank": 1
    },
    {
      "symbol": "DOGE",
      "exchange": "bybit",
      "funding_current_bps": 7.21,
      "oi_rank": 15,
      "rank": 2
    }
  ]
}
```

## Related

- [Funding Rates](/docs/api/funding/funding)
- [Movers](/docs/api/markets/movers)

---

<!-- Source: https://loris.tools/docs/api/markets/distribution | Raw: https://loris.tools/docs/md/api/markets/distribution -->

# Distribution

**Tier:** Dev

`GET /markets/distribution`

Symbol distribution by OI or volume — returns each symbol's total value and 24h change, sorted by value. Designed to drive pie charts or treemaps showing market share. Use it to visualize where OI or volume is concentrated and how dominance is shifting between majors and altcoins.

---

## Authentication

Requires Dev tier or higher.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `metric` | string | Yes | `oi` or `volume`. |
| `min_value` | float | No | Minimum value threshold. Defaults to 1M. |
| `exchanges` | string | No | Comma-separated exchange filter. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/markets/distribution?metric=oi"
```

## Example response

```json
{
  "metric": "oi",
  "timestamp": "2026-06-08 06:00:00",
  "data": [
    {
      "symbol": "BTC",
      "value": 38400000000,
      "change_24h_pct": 2.4
    },
    {
      "symbol": "ETH",
      "value": 14200000000,
      "change_24h_pct": -1.2
    }
  ]
}
```

## Errors

- `400` — Missing required parameter `metric`, or invalid value.

## Related

- [Movers](/docs/api/markets/movers)
- [Symbols](/docs/api/markets/symbols)

---

<!-- Source: https://loris.tools/docs/api/markets/price-buckets | Raw: https://loris.tools/docs/md/api/markets/price-buckets -->

# Price Buckets

**Tier:** Dev

`GET /markets/price-buckets`

Histogram of symbols grouped into 9 buckets by 24h price change. Returns bucket labels, boundaries, count of symbols, and the list of symbols in each bucket. Use it to visualize how broadly bullish or bearish the current market is, or to feed a sentiment gauge.

## Freshness

Price change fields generally refresh about once per minute. The response `timestamp` reflects the latest materialized market snapshot.

---

## Authentication

Requires Dev tier or higher.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchanges` | string | No | Comma-separated exchange filter. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/markets/price-buckets
```

## Example response

```json
{
  "timestamp": "2026-06-08 06:00:00",
  "buckets": [
    {
      "label": ">10%",
      "min": 10,
      "max": null,
      "count": 142,
      "symbols": ["SOL", "DOGE", "WIF", "..."]
    },
    {
      "label": "0–5%",
      "min": 0,
      "max": 5,
      "count": 487,
      "symbols": ["BTC", "XRP", "..."]
    },
    {
      "label": "<-10%",
      "min": null,
      "max": -10,
      "count": 78,
      "symbols": ["..."]
    }
  ]
}
```

## Related

- [Price Movers](/docs/api/markets/price-movers)
- [Distribution](/docs/api/markets/distribution)

---

<!-- Source: https://loris.tools/docs/api/markets/price-movers | Raw: https://loris.tools/docs/md/api/markets/price-movers -->

# Price Movers

**Tier:** Dev

`GET /markets/price-movers`

Top price gainers and losers by 24h percentage change, filtered to symbols with a minimum 24h volume (to exclude illiquid tokens). Returns separate ranked lists of the biggest up and down movers. Use it to build a gainers/losers widget or scan for momentum candidates.

## Freshness

Price fields generally refresh about once per minute. Volume fields used for filtering can refresh on the slower aggregate cadence, typically about 10 minutes. The response `timestamp` reflects the latest materialized market snapshot, not that every field was recomputed from source at that exact second.

---

## Authentication

Requires Dev tier or higher.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `min_value` | float | No | Minimum 24h volume USD threshold. Defaults to 10M. |
| `limit` | int | No | Number of entries per list. |
| `exchanges` | string | No | Comma-separated exchange filter. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/markets/price-movers?min_value=50000000&limit=5"
```

## Example response

```json
{
  "timestamp": "2026-06-08 06:00:00",
  "gainers": [
    {
      "symbol": "WIF",
      "price_usd": 2.84,
      "price_24h_change_pct": 42.1,
      "rank": 1
    }
  ],
  "losers": [
    {
      "symbol": "ARB",
      "price_usd": 0.62,
      "price_24h_change_pct": -18.3,
      "rank": 1
    }
  ]
}
```

## Related

- [Movers](/docs/api/markets/movers)
- [Price Buckets](/docs/api/markets/price-buckets)

---

<!-- Source: https://loris.tools/docs/api/markets/exchange-distribution | Raw: https://loris.tools/docs/md/api/markets/exchange-distribution -->

# Exchange Distribution

**Tier:** Dev

`GET /markets/exchange-distribution`

Per-exchange rollup of key market metrics: symbol count, 24h volume USD and change, OI USD and change, volume-to-OI ratio, and 24h liquidations USD. Returns one row per exchange, making it easy to compare venues across all dimensions at once.

---

## Authentication

Requires Dev tier or higher.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/markets/exchange-distribution
```

## Example response

```json
{
  "data": [
    {
      "exchange": "binance",
      "symbol_count": 312,
      "volume_24h_usd": 42800000000,
      "volume_24h_change_pct": 12.4,
      "oi_usd": 18200000000,
      "oi_24h_change_pct": 2.1,
      "oi_vol_ratio": 0.425,
      "liquidation_24h_usd": 210000000
    }
  ]
}
```

## Related

- [Exchanges](/docs/api/markets/exchanges)
- [Symbols](/docs/api/markets/symbols)

---

<!-- Source: https://loris.tools/docs/api/markets/exchanges | Raw: https://loris.tools/docs/md/api/markets/exchanges -->

# Exchanges

**Tier:** Dev

`GET /markets/exchanges`

Exchange list with stats and a 7-day volume sparkline. Returns one entry per supported exchange with 24h volume, OI, liquidations, and a week of daily volume for the sparkline. Use it to build an exchange directory or hub page that shows all venues at a glance.

---

## Authentication

Requires Dev tier or higher.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/markets/exchanges
```

## Example response

```json
{
  "timestamp": "2026-06-08 06:00:00",
  "exchanges": [
    {
      "exchange": "binance",
      "display": "Binance",
      "symbol_count": 312,
      "volume_24h_usd": 42800000000,
      "oi_usd": 18200000000,
      "liquidation_24h_usd": 210000000,
      "volume_7d_sparkline": [
        38000000000,
        39000000000,
        40500000000,
        41200000000,
        41800000000,
        42300000000,
        42800000000
      ]
    }
  ]
}
```

## Related

- [Exchange Distribution](/docs/api/markets/exchange-distribution)
- [Exchange Symbols](/docs/api/markets/exchange-symbols)

---

<!-- Source: https://loris.tools/docs/api/markets/exchanges-all | Raw: https://loris.tools/docs/md/api/markets/exchanges-all -->

# Exchanges (All)

**Tier:** Pro

`GET /markets/exchanges/all`

Bulk fetch of every symbol-by-exchange market row in a single response — price, volume, OI, funding, and liquidations per (symbol, exchange) pair. Use it as a one-shot universe pull for cross-market dashboards instead of fanning out to many per-symbol or per-exchange calls.

## Freshness

Price fields and current funding fields generally refresh about once per minute. Rolling aggregate fields such as 24h volume, OI, 24h liquidations, and funding averages can refresh on the slower aggregate cadence, typically about 10 minutes. Per-symbol `timestamp` values reflect the latest materialized market snapshot for that symbol.

---

## Authentication

Requires Pro tier or higher.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/markets/exchanges/all"
```

## Example response

```json
{
  "symbols": {
    "BTC": {
      "symbol": "BTC",
      "timestamp": "2026-06-08T19:00:00Z",
      "exchanges": [
        {
          "exchange": "binance",
          "price_usd": 71200.5,
          "price_24h_change_pct": 1.23,
          "volume_24h_usd": 1850000000,
          "oi_usd": 4200000000,
          "funding_current_bps": 0.5,
          "liquidation_24h_usd": 12000000
        }
      ]
    }
  }
}
```

## Errors

- `403` — Your tier does not have access. Upgrade to Pro.

## Related

- [Symbol Exchanges](/docs/api/markets/symbol-exchanges)
- [Markets](/docs/api/markets)

---

<!-- Source: https://loris.tools/docs/api/markets/exchange-symbols | Raw: https://loris.tools/docs/md/api/markets/exchange-symbols -->

# Exchange Symbols

**Tier:** Dev

`GET /markets/exchanges/{exchange}/symbols`

All symbols on one exchange with full market data rows — price, 24h change, volume, OI, funding rate, and liquidations — sorted by 24h volume. The per-exchange symbol table for a venue detail page.

## Freshness

Price fields and current funding fields generally refresh about once per minute. Rolling aggregate fields such as 24h volume, OI, 24h liquidations, and funding averages can refresh on the slower aggregate cadence, typically about 10 minutes. The response `timestamp` reflects the latest materialized market snapshot, not that every field was recomputed from source at that exact second.

---

## Authentication

Requires Dev tier or higher.

## Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchange` | string | Yes | Exchange slug, e.g. binance. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/markets/exchanges/binance/symbols
```

## Example response

```json
{
  "exchange": "binance",
  "timestamp": "2026-06-08 06:00:00",
  "symbols": [
    {
      "symbol": "BTC",
      "price_usd": 71200.00,
      "price_24h_change_pct": 3.2,
      "volume_24h_usd": 12800000000,
      "oi_usd": 7200000000,
      "funding_current_bps": 1.23,
      "liquidation_24h_usd": 145000000
    }
  ]
}
```

## Errors

- `404` — Exchange snapshot not found.

## Related

- [Exchange Stats](/docs/api/markets/exchange-stats)
- [Exchange Timeseries](/docs/api/markets/exchange-timeseries)

---

<!-- Source: https://loris.tools/docs/api/markets/exchange-stats | Raw: https://loris.tools/docs/md/api/markets/exchange-stats -->

# Exchange Stats

**Tier:** Dev

`GET /markets/exchanges/{exchange}/stats`

Aggregated totals for one exchange — total 24h volume, OI, change percentages, and the OI-to-volume ratio. A compact summary endpoint when you need a single-exchange snapshot without the full symbol table.

---

## Authentication

Requires Dev tier or higher.

## Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchange` | string | Yes | Exchange slug, e.g. binance. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/markets/exchanges/binance/stats
```

## Example response

```json
{
  "exchange": "binance",
  "symbol_count": 312,
  "total_volume_24h_usd": 42800000000,
  "volume_24h_change_pct": 12.4,
  "total_oi_usd": 18200000000,
  "oi_24h_change_pct": 2.1,
  "oi_vol_ratio": 0.425,
  "timestamp": "2026-06-08 06:00:00"
}
```

## Errors

- `404` — Exchange snapshot not found.

## Related

- [Exchange Symbols](/docs/api/markets/exchange-symbols)
- [Exchange Timeseries](/docs/api/markets/exchange-timeseries)

---

<!-- Source: https://loris.tools/docs/api/markets/exchange-timeseries | Raw: https://loris.tools/docs/md/api/markets/exchange-timeseries -->

# Exchange Timeseries

**Tier:** Dev

`GET /markets/exchanges/{exchange}/timeseries`

Volume and OI timeseries for one exchange over a configurable range. Returns hourly buckets for the 1d range, daily otherwise. Use it to chart how a specific venue's total volume and OI have evolved, or compare trend slopes between exchanges.

---

## Authentication

Requires Dev tier or higher. Dev: ranges of 1d, 7d, and 30d, or custom windows within the rolling 30-day lookback. Pro and Team: full stored history through custom `start`/`end` windows.

## Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchange` | string | Yes | Exchange slug, e.g. binance. |

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | Preset range: 1d, 7d, 30d, or 90d. Defaults to 7d. Cannot be combined with `start`/`end`. |
| `start` | string (ISO 8601) | No | Custom window start. Must be provided with `end`. Dev is clamped to the rolling 30-day lookback. |
| `end` | string (ISO 8601) | No | Custom window end. Must be after `start`. |

## Tier behavior

**Dev:** Ranges of 1d, 7d, and 30d, or custom windows within the rolling 30-day lookback.
**Pro/Team:** Full stored historical lookback through custom `start`/`end` windows.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/markets/exchanges/binance/timeseries?range=7d"
```

## Example response

```json
{
  "exchange": "binance",
  "range": "7d",
  "data": [
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "volume_usd": 38000000000,
      "oi_usd": 17200000000
    },
    {
      "timestamp": "2026-06-02T00:00:00Z",
      "volume_usd": 39500000000,
      "oi_usd": 17500000000
    }
  ]
}
```

## Related

- [Exchange Symbols](/docs/api/markets/exchange-symbols)
- [Symbol Timeseries](/docs/api/markets/symbol-timeseries)

---

<!-- Source: https://loris.tools/docs/api/markets/symbols | Raw: https://loris.tools/docs/md/api/markets/symbols -->

# Symbols

**Tier:** Dev

`GET /markets/symbols`

Global symbol leaderboard with price, 24h volume, OI, funding rate, liquidations, and asset classification for every tracked symbol. The most comprehensive per-symbol summary endpoint — use it to build a full markets table, power a screener, or seed your own database with a point-in-time snapshot.

## Freshness

Price fields and current funding fields generally refresh about once per minute. Rolling aggregate fields such as 24h volume, OI, 24h liquidations, and funding averages can refresh on the slower aggregate cadence, typically about 10 minutes. The response `timestamp` reflects the latest materialized market snapshot, not that every field was recomputed from source at that exact second.

---

## Authentication

Requires Dev tier or higher. Dev: top 200 symbols by OI. Pro: full list.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `exchanges` | string | No | Comma-separated exchange filter. |

## Tier behavior

**Dev:** Top 200 symbols only.
**Pro:** Full symbol list.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/markets/symbols
```

## Example response

```json
{
  "timestamp": "2026-06-08 06:00:00",
  "symbols": [
    {
      "rank": 1,
      "symbol": "BTC",
      "price_usd": 71200.00,
      "price_24h_change_pct": 3.2,
      "volume_24h_usd": 28400000000,
      "volume_24h_change_pct": 14.2,
      "oi_usd": 38400000000,
      "oi_24h_change_pct": 2.4,
      "top_funding_bps": 1.23,
      "top_funding_exchange": "binance",
      "liquidation_24h_usd": 207000000
    }
  ]
}
```

## Related

- [Movers](/docs/api/markets/movers)
- [Symbol Stats](/docs/api/markets/symbol-stats)

---

<!-- Source: https://loris.tools/docs/api/markets/symbol-timeseries | Raw: https://loris.tools/docs/md/api/markets/symbol-timeseries -->

# Symbol Timeseries

**Tier:** Dev

`GET /markets/{symbol}/timeseries`

Volume and OI timeseries for one symbol, aggregated across all exchanges and broken down per exchange. Supports preset ranges or custom start/end dates. Use it to build per-symbol trend charts that compare how volume and positioning have evolved across venues.

---

## Authentication

Requires Dev tier or higher. Preset `range` values are relative lookbacks ending now. `start` + `end` request an exact historical window. Dev is limited to the rolling 30-day window. Pro and Team can request exact custom windows across the full stored history.

## Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `symbol` | string | Yes | Base symbol, e.g. BTC. |

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | Preset relative lookback: 1d, 7d, 30d, or 90d. Defaults to 7d. Mutually exclusive with `start` + `end`. |
| `start` | string | No | Start of exact custom range (ISO 8601). Must be used with `end`. |
| `end` | string | No | End of exact custom range (ISO 8601). Must be used with `start`. |

## Tier behavior

**Dev:** `range` values of 1d, 7d, and 30d, or exact custom windows clamped to the rolling 30-day window.
**Pro:** `range` values through 90d, plus exact custom windows across the full stored history.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/markets/BTC/timeseries?range=7d"
```

## Example response

```json
{
  "symbol": "BTC",
  "range": "7d",
  "data": [
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "total_volume_usd": 42800000000,
      "total_oi_usd": 38000000000,
      "exchanges": {
        "binance": {
          "volume_usd": 12800000000,
          "oi_usd": 7200000000
        }
      }
    }
  ]
}
```

## Errors

- `404` — Symbol not found in Redis snapshot.
- `400` — Invalid `range`, mixed `range` with `start`/`end`, partial custom window, or invalid date order.

## Related

- [Symbol Stats](/docs/api/markets/symbol-stats)
- [Symbol Exchanges](/docs/api/markets/symbol-exchanges)

---

<!-- Source: https://loris.tools/docs/api/markets/symbol-distribution | Raw: https://loris.tools/docs/md/api/markets/symbol-distribution -->

# Symbol Distribution

**Tier:** Dev

`GET /markets/{symbol}/distribution`

Per-exchange share of OI or volume for one symbol — how trading activity is distributed across venues. Returns one row per exchange with the symbol's value on that exchange and its percentage of the total. Use it to build a pie chart showing exchange dominance for a specific coin, or to spot concentration risk.

---

## Authentication

Requires Dev tier or higher.

## Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `symbol` | string | Yes | Base symbol, e.g. BTC. |

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `metric` | string | Yes | `volume` or `oi`. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/markets/BTC/distribution?metric=oi"
```

## Example response

```json
{
  "symbol": "BTC",
  "metric": "oi",
  "timestamp": "2026-06-08 06:00:00",
  "data": [
    {
      "exchange": "binance",
      "value": 7200000000,
      "share": 0.188
    },
    {
      "exchange": "bybit",
      "value": 3100000000,
      "share": 0.081
    }
  ]
}
```

## Errors

- `400` — Missing required parameter `metric`.
- `404` — Symbol not found.

## Related

- [Symbol Timeseries](/docs/api/markets/symbol-timeseries)
- [Symbol Stats](/docs/api/markets/symbol-stats)

---

<!-- Source: https://loris.tools/docs/api/markets/symbol-exchanges | Raw: https://loris.tools/docs/md/api/markets/symbol-exchanges -->

# Symbol Exchanges

**Tier:** Free

`GET /markets/{symbol}/exchanges`

Full per-exchange market rows for one symbol — price, volume, OI, funding rate, and 24h liquidations — from every exchange that lists it. Use it to compare execution conditions across venues, find divergences between exchanges, or build the per-symbol exchange table page of a crypto analytics dashboard.

## Freshness

Price fields and current funding fields generally refresh about once per minute. Rolling aggregate fields such as 24h volume, OI, 24h liquidations, and funding averages can refresh on the slower aggregate cadence, typically about 10 minutes. The response `timestamp` reflects the latest materialized market snapshot, not that every field was recomputed from source at that exact second.

---

## Authentication

Available on all tiers. Free tier: BTC and ETH only — requests for other symbols return 403. Dev and above: all symbols.

## Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `symbol` | string | Yes | Base symbol, e.g. BTC. |

## Tier behavior

**Free:** BTC and ETH only.
**Dev:** All symbols.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/markets/BTC/exchanges
```

## Example response

```json
{
  "symbol": "BTC",
  "timestamp": "2026-06-08 06:00:00",
  "exchanges": [
    {
      "exchange": "binance",
      "price_usd": 71200.00,
      "price_24h_change_pct": 3.2,
      "volume_24h_usd": 12800000000,
      "oi_usd": 7200000000,
      "funding_current_bps": 1.23,
      "funding_avg_7d_bps": 1.18,
      "liquidation_24h_usd": 145000000
    }
  ]
}
```

## Errors

- `403` — Free tier requesting a symbol other than BTC or ETH.
- `404` — Symbol not found.

## Related

- [Symbol Stats](/docs/api/markets/symbol-stats)
- [Symbol Timeseries](/docs/api/markets/symbol-timeseries)

---

<!-- Source: https://loris.tools/docs/api/markets/symbol-stats | Raw: https://loris.tools/docs/md/api/markets/symbol-stats -->

# Symbol Stats

**Tier:** Free

`GET /markets/{symbol}/stats`

Aggregated price, 24h volume, OI, top funding rate, and 24h liquidations for one symbol, rolled up across all exchanges. The compact overview endpoint for a symbol page — use it when you need the headline numbers without the per-exchange breakdown.

## Freshness

Price fields generally refresh about once per minute. Rolling aggregate fields such as 24h volume, OI, and 24h liquidations can refresh on the slower aggregate cadence, typically about 10 minutes. The response `timestamp` reflects the latest materialized market snapshot, not that every field was recomputed from source at that exact second.

---

## Authentication

Available on all tiers. Free tier: BTC and ETH only — requests for other symbols return 403. Dev and above: all symbols.

## Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `symbol` | string | Yes | Base symbol, e.g. ETH. |

## Tier behavior

**Free:** BTC and ETH only. Requests for any other symbol return 403 with `required_tier: dev`.
**Dev:** All symbols.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/markets/ETH/stats
```

## Example response

```json
{
  "symbol": "ETH",
  "timestamp": "2026-06-08 06:00:00",
  "price_usd": 3820.00,
  "price_24h_change_pct": 2.1,
  "volume_24h_usd": 14200000000,
  "volume_24h_change_pct": 8.7,
  "oi_usd": 14200000000,
  "oi_24h_change_pct": -1.2,
  "top_funding_bps": -0.45,
  "top_funding_exchange": "bybit",
  "liquidation_24h_usd": 139000000
}
```

## Errors

- `403` — Free tier requesting a symbol other than BTC or ETH.
- `404` — Symbol not found.

## Related

- [Symbol Exchanges](/docs/api/markets/symbol-exchanges)
- [Symbols](/docs/api/markets/symbols)

---

<!-- Source: https://loris.tools/docs/api/options | Raw: https://loris.tools/docs/md/api/options -->

# Options

Access normalized options surface data for BTC, ETH, HYPE, SOL, ZEC, XRP, DOGE, and BNB across supported venues - live instrument snapshots, at-the-money implied volatility history, per-expiry metrics with 24h changes, and full volatility surface history for vol modeling and research. Pass `exchange` explicitly on every options request.

---

## Endpoints

| Method | Path | Tier | Summary |
|--------|------|------|---------|
| GET | [/options/snapshot](/docs/api/options/snapshot) | Free | Live options surface for one supported exchange - all instruments with normalized IV, OI, and Greek fields when available. |
| GET | [/options/overview-history](/docs/api/options/overview-history) | Free | Hourly USD-notional OI and rolling 24h volume by exchange and symbol for overview trend charts. |
| GET | [/options/atm-history](/docs/api/options/atm-history) | Dev | Historical ATM implied volatility per hour and expiry. Dev gets 30 days; Pro gets full stored history. |
| GET | [/options/metrics](/docs/api/options/metrics) | Free | Latest ATM IV per expiry with 24h change — the headline options dashboard view. |
| GET | [/options/surface-history](/docs/api/options/surface-history) | Dev | Full options volatility surface history — all strikes and expiries per hour. Dev gets 30 days; Pro gets full stored history. |

---

<!-- Source: https://loris.tools/docs/api/options/snapshot | Raw: https://loris.tools/docs/md/api/options/snapshot -->

# Options Snapshot

**Tier:** Free

`GET /options/snapshot`

Returns the live options surface for BTC, ETH, HYPE, SOL, ZEC, XRP, DOGE, or BNB on a supported exchange. Each active instrument is returned in the normalized options shape, including implied volatility, open interest, and Greek fields when the venue provides them. Useful for building an options chain visualization, scanning for unusual IV, or feeding an options analytics workflow.

---

## Authentication

Available on all tiers. Supported pairs: BTC/ETH on Deribit, Binance, Bybit, OKX, and Derive; HYPE on Deribit/Derive; SOL/XRP on Deribit/Binance/Bybit/Derive; DOGE on Binance/Bybit; BNB on Binance; ZEC on Derive.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `symbol` | string | No | BTC, ETH, HYPE, SOL, ZEC, XRP, DOGE, or BNB. Supported venues vary by symbol. Defaults to BTC. |
| `exchange` | string | Yes | `deribit`, `binance`, `bybit`, `okx`, or `derive`. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/options/snapshot?symbol=BTC&exchange=deribit"
```

## Example response

```json
{
  "symbol": "BTC",
  "exchange": "deribit",
  "count": 342,
  "instruments": [
    {
      "instrument_name": "BTC-27JUN26-70000-C",
      "expiry": "2026-06-27T08:00:00Z",
      "strike": 70000,
      "side": "call",
      "iv": 0.682,
      "delta": 0.541,
      "gamma": 0.000012,
      "vega": 42.8,
      "theta": -18.4,
      "open_interest": 1842,
      "underlying_price": 71200.00
    }
  ]
}
```

## Related

- [Options Metrics](/docs/api/options/metrics)
- [ATM History](/docs/api/options/atm-history)

---

<!-- Source: https://loris.tools/docs/api/options/overview-history | Raw: https://loris.tools/docs/md/api/options/overview-history -->

# Options Overview History

`GET /options/overview-history`

Hourly aggregate options trend data for the overview page. Returns USD-notional open interest and rolling 24h volume by exchange and symbol, so clients can stack the same dataset by venue or by coin.

---

## Auth

Available on all tiers. Response is limited to supported options exchange/symbol pairs.

---

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | Preset day lookback from `1d` through `90d`. Defaults to `30d`. Legacy `days` is accepted until July 21, 2026. |

---

## Example

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/options/overview-history?range=90d"
```

```json
{
  "range": "90d",
  "days": 90,
  "count": 12600,
  "unit": "usd_notional",
  "resolution": "1h",
  "data": [
    {
      "hour": "2026-06-28T08:00:00Z",
      "timestamp": "2026-06-28T08:00:00Z",
      "exchange": "deribit",
      "symbol": "BTC",
      "notional_oi_usd": 24500000000,
      "notional_volume_24h_usd": 1200000000
    }
  ]
}
```

---

## Notes

- `notional_oi_usd` is `sum(open_interest * underlying_price)`.
- `notional_volume_24h_usd` is `sum(volume_24h * underlying_price)`. It is a rolling 24h value at each hour, not hourly traded volume.
- Rows are returned at `exchange + symbol` granularity so clients can aggregate by exchange, by coin, or both.

---

<!-- Source: https://loris.tools/docs/api/options/atm-history | Raw: https://loris.tools/docs/md/api/options/atm-history -->

# ATM History

**Tier:** Dev

`GET /options/atm-history`

Historical at-the-money implied volatility for BTC, ETH, HYPE, SOL, ZEC, XRP, DOGE, or BNB on a supported exchange — one data point per hour and expiry, showing the IV of the option with the closest strike to the underlying price at that time. Use it to chart how the options market's volatility expectations have evolved, compare IV across term structures, or backtest options strategies.

---

## Authentication

Requires Dev tier or higher. Dev: up to 30 days (`range=30d`). Pro and Team: full stored history. Supported pairs: BTC/ETH on Deribit, Binance, Bybit, OKX, and Derive; HYPE on Deribit/Derive; SOL/XRP on Deribit/Binance/Bybit/Derive; DOGE on Binance/Bybit; BNB on Binance; ZEC on Derive.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `symbol` | string | No | BTC, ETH, HYPE, SOL, ZEC, XRP, DOGE, or BNB. Supported venues vary by symbol. Defaults to BTC. |
| `exchange` | string | Yes | `deribit`, `binance`, `bybit`, `okx`, or `derive`. |
| `range` | string | No | Day lookback such as `7d`, `30d`, `90d`, or a larger `Nd` window for Pro/Team. Defaults to `30d`. Legacy `days` is accepted until July 21, 2026. |

## Tier behavior

**Dev:** Maximum `30d`.
**Pro/Team:** Full stored historical lookback.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/options/atm-history?symbol=BTC&exchange=deribit&range=7d"
```

## Example response

```json
{
  "symbol": "BTC",
  "exchange": "deribit",
  "range": "7d",
  "days": 7,
  "count": 1680,
  "unit": "iv",
  "resolution": "1h",
  "data": [
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "hour": "2026-06-01T00:00:00Z",
      "expiry": "2026-06-27T08:00:00Z",
      "underlying_price": 69800.00,
      "strike": 70000,
      "iv": 0.718
    }
  ]
}
```

## Errors

- `400` — invalid range.
- `403` — range exceeds your tier's limit.

## Related

- [Options Metrics](/docs/api/options/metrics)
- [Surface History](/docs/api/options/surface-history)
- [Options Snapshot](/docs/api/options/snapshot)

---

<!-- Source: https://loris.tools/docs/api/options/metrics | Raw: https://loris.tools/docs/md/api/options/metrics -->

# Options Metrics

**Tier:** Free

`GET /options/metrics`

Latest ATM implied volatility per expiry with the 24h change — the headline view for an options dashboard. Returns one row per active expiry, showing the current ATM strike, its IV, the IV from 24 hours ago, and the change. Use it as the first panel on an options analytics page or to track term structure movement.

---

## Authentication

Available on all tiers. Supported pairs: BTC/ETH on Deribit, Binance, Bybit, OKX, and Derive; HYPE on Deribit/Derive; SOL/XRP on Deribit/Binance/Bybit/Derive; DOGE on Binance/Bybit; BNB on Binance; ZEC on Derive.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `symbol` | string | No | BTC, ETH, HYPE, SOL, ZEC, XRP, DOGE, or BNB. Supported venues vary by symbol. Defaults to BTC. |
| `exchange` | string | Yes | `deribit`, `binance`, `bybit`, `okx`, or `derive`. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/options/metrics?symbol=BTC&exchange=deribit"
```

## Example response

```json
{
  "symbol": "BTC",
  "exchange": "deribit",
  "count": 8,
  "data": [
    {
      "expiry": "2026-06-13T08:00:00Z",
      "underlying_price": 71200.00,
      "atm_strike": 71000,
      "atm_iv": 0.582,
      "atm_iv_24h_ago": 0.601,
      "atm_iv_change_24h": -0.019
    }
  ]
}
```

## Related

- [Options Snapshot](/docs/api/options/snapshot)
- [ATM History](/docs/api/options/atm-history)

---

<!-- Source: https://loris.tools/docs/api/options/surface-history | Raw: https://loris.tools/docs/md/api/options/surface-history -->

# Surface History

**Tier:** Dev

`GET /options/surface-history`

Full options volatility surface history for one supported exchange — all strikes and expiries for every hour in the requested window. Returns a nested structure keyed by hour, then by option instrument. The most data-intensive options endpoint; designed for volatility surface modeling, smile fitting, and historical vol research.

---

## Authentication

Requires Dev tier or higher. Dev: up to 30 days (`range=30d`). Pro and Team: full stored history. Supported pairs: BTC/ETH on Deribit, Binance, Bybit, OKX, and Derive; HYPE on Deribit/Derive; SOL/XRP on Deribit/Binance/Bybit/Derive; DOGE on Binance/Bybit; BNB on Binance; ZEC on Derive.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `symbol` | string | No | BTC, ETH, HYPE, SOL, ZEC, XRP, DOGE, or BNB. Supported venues vary by symbol. Defaults to BTC. |
| `exchange` | string | Yes | `deribit`, `binance`, `bybit`, `okx`, or `derive`. |
| `range` | string | No | Day lookback such as `7d`, `30d`, `90d`, or a larger `Nd` window for Pro/Team. Defaults to `30d`. Legacy `days` is accepted until July 21, 2026. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/options/surface-history?symbol=BTC&exchange=deribit&range=7d"
```

## Example response

```json
{
  "symbol": "BTC",
  "exchange": "deribit",
  "range": "7d",
  "days": 7,
  "hours": ["2026-06-01T00:00:00Z"],
  "snapshots": {
    "2026-06-01T00:00:00Z": [
      {
        "expiry": "2026-06-27T08:00:00Z",
        "strike": 70000,
        "side": "call",
        "iv": 0.718,
        "underlying_price": 69800.00,
        "open_interest": 1842
      }
    ]
  }
}
```

## Errors

- `400` — invalid range.
- `403` — range exceeds your tier's limit. Dev: 30d max.

## Related

- [ATM History](/docs/api/options/atm-history)
- [Options Snapshot](/docs/api/options/snapshot)

---

<!-- Source: https://loris.tools/docs/api/metrics | Raw: https://loris.tools/docs/md/api/metrics -->

# Metrics

Derived metrics built from raw market data, giving you higher-level signals that go beyond raw price, volume, and OI feeds.

---

## Endpoints

| Method | Path | Tier | Summary |
|--------|------|------|---------|
| GET | [/volume-oi-ratio](/docs/api/metrics/volume-oi-ratio) | Dev | Rolling volume-to-open-interest ratio per exchange over a date range. |

---

<!-- Source: https://loris.tools/docs/api/metrics/volume-oi-ratio | Raw: https://loris.tools/docs/md/api/metrics/volume-oi-ratio -->

# Volume/OI Ratio

**Tier:** Dev

`GET /volume-oi-ratio`

Rolling volume-to-open-interest ratio per exchange over a configurable date range and smoothing window. The ratio signals whether a market is in an active trading regime (high ratio) or an accumulation/positioning phase (low ratio). Use it to build a multi-exchange OI efficiency chart, detect regime shifts, or filter exchanges by relative trading intensity.

---

## Authentication

Requires Dev tier or higher. Dev: up to 30 days, `window_days` ≤ 7. Pro and Team: full stored date history, with `window_days` up to 365.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | Preset lookback: `1d`, `3d`, `7d`, `14d`, `30d`, `90d`, or `all`. Defaults to `30d`. Do not combine with `start`/`end`. |
| `start` | string | No | Custom range start (ISO 8601). Date-only strings are accepted. `start_date` is accepted as a legacy alias. |
| `end` | string | No | Custom range end (ISO 8601). Date-only strings are accepted. Defaults to now when `start` is provided. `end_date` is accepted as a legacy alias. |
| `exchanges` | string | No | Comma-separated exchange filter. |
| `window_days` | int | No | Smoothing window in days, 1–365. Defaults to 1. Dev is clamped to 7. |

## Tier behavior

**Dev:** Maximum 30-day date range. `window_days` capped at 7. Requests beyond these are clamped.
**Pro:** Full stored date history. Any `window_days` value up to 365.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/volume-oi-ratio?range=30d&exchanges=binance,bybit"
```

## Example response

```json
{
  "data": {
    "binance": [
      {
        "timestamp": "2026-06-01T00:00:00Z",
        "ratio": 2.35,
        "volume": 42800000000,
        "open_interest": 18200000000
      }
    ],
    "bybit": [
      {
        "timestamp": "2026-06-01T00:00:00Z",
        "ratio": 2.01,
        "volume": 18900000000,
        "open_interest": 9400000000
      }
    ]
  },
  "window_days": 1,
  "notices": [],
  "unit": "ratio",
  "range": "30d",
  "resolution": "1d"
}
```

## Errors

- `400` — Invalid range, invalid date format, mixed `range` plus `start`/`end`, invalid date order, or `window_days` outside 1–365.
- `403` — API key tier is below Dev.

## Related

- [Exchange OI Totals](/docs/api/open-interest/exchange-totals)
- [Exchange Volume Totals](/docs/api/volume/exchange-totals)

---

<!-- Source: https://loris.tools/docs/api/charts | Raw: https://loris.tools/docs/md/api/charts -->

# Charts

**Tier:** Dev

`GET /charts`

Market dashboard data — a formatted ticker strip of Binance USD perpetuals plus macro market statistics. Returns pre-formatted display strings for price, 24h change, and volume per symbol, alongside aggregate stats for ETH gas, total market OI, 24h volume, and BTC implied volatility. Use it to build a live market ticker bar or dashboard header panel.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/charts
```

## Example response

```json
{
  "data": [
    {
      "ticker": "BTC",
      "tv_ticker": "BINANCE:BTCUSDT.P",
      "price": "$71,200",
      "change": "+3.2%",
      "volume": "$12.8B"
    },
    {
      "ticker": "ETH",
      "tv_ticker": "BINANCE:ETHUSDT.P",
      "price": "$3,820",
      "change": "+2.1%",
      "volume": "$5.6B"
    }
  ],
  "market_data": {
    "eth_gas": "18 gwei",
    "open_interest": "$93.2B",
    "volume": "$128.5B",
    "btc_volatility": "68.2%"
  }
}
```

## Errors

- `403` — Free tier does not have access. Upgrade to Dev.

## Related

- [Funding Rates](/docs/api/funding/funding)
- [Symbols](/docs/api/markets/symbols)

---

<!-- Source: https://loris.tools/docs/api/rwa | Raw: https://loris.tools/docs/md/api/rwa -->

# RWA

Real-world asset classification analytics for crypto derivatives — covering commodities, equities, indices, pre-IPO, and forex traded as perpetual futures across major exchanges. Endpoints expose aggregated OI and volume timeseries by asset class and per-exchange snapshots with 24h changes.

---

## Endpoints

| Method | Path                                                              | Tier | Summary                                                                                          |
| ------ | ----------------------------------------------------------------- | ---- | ------------------------------------------------------------------------------------------------ |
| GET    | [/rwa/market-hours](/docs/api/rwa/market-hours)                   | Pro  | UTC trading-session intervals and holidays for TradFi and RWA-linked venues.                     |
| GET    | [/rwa/aggregates-timeseries](/docs/api/rwa/aggregates-timeseries) | Pro  | Volume and OI timeseries for RWA-classified symbols grouped by asset class, exchange, or symbol. |
| GET    | [/rwa/exchanges/snapshot](/docs/api/rwa/exchanges-snapshot)       | Dev  | Current RWA aggregates per exchange with 24h changes.                                            |

---

<!-- Source: https://loris.tools/docs/api/rwa/market-hours | Raw: https://loris.tools/docs/md/api/rwa/market-hours -->

# RWA Market Hours

**Tier:** Pro

`GET /rwa/market-hours`

UTC trading-session intervals for global TradFi and RWA-linked venues. Returns current tradable status, current/next tradable sessions, sessions inside a requested UTC window, and upcoming full-day exchange holidays. Use it to align RWA perpetuals, HIP-3/HIP-4 markets, and tradable synthetic assets with the underlying venue schedule.

---

## Authentication

Requires Pro tier or higher. Free and Dev tiers do not have access (returns 403). Requests to this endpoint do not count against the shared live-endpoint rate limit.

## Parameters

| Name       | Type    | Required | Description                                                                                                        |
| ---------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `date`     | string  | No       | UTC window start date in `YYYY-MM-DD` format. Defaults to the current UTC date.                                    |
| `days`     | integer | No       | Number of UTC days to return, from `1` to `14`. Defaults to `1`.                                                   |
| `exchange` | string  | No       | Comma-separated exchange MICs, ids, or short names, e.g. `XKRX`, `XNYS`, `krx`, `nyse`. Defaults to all exchanges. |
| `as_of`    | string  | No       | ISO-8601 timestamp used for current open status. Defaults to now. Returned status is normalized to UTC.            |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/rwa/market-hours?exchange=XKRX&date=2026-03-03&as_of=2026-03-03T00:30:00Z"
```

## Example response

```json
{
    "timestamp": "2026-03-03T00:30:00Z",
    "as_of_utc": "2026-03-03T00:30:00Z",
    "timezone": "UTC",
    "window": {
        "start_utc": "2026-03-03T00:00:00Z",
        "end_utc": "2026-03-04T00:00:00Z",
        "days": 1
    },
    "coverage": {
        "exchange_count": 1,
        "holiday_years": [2025, 2026, 2027],
        "notes": [
            "Session open_utc and close_utc are ISO-8601 UTC timestamps.",
            "is_open and next_session only consider tradable sessions.",
            "Full-day holidays are excluded from generated sessions.",
            "Configured session overrides are applied before recurring sessions."
        ]
    },
    "exchanges": [
        {
            "id": "krx",
            "name": "Korea Exchange (KOSPI/KOSDAQ)",
            "short_name": "KRX",
            "mic": "XKRX",
            "region": "asia",
            "timezone": "Asia/Seoul",
            "categories": ["equities"],
            "as_of_local": "2026-03-03T09:30:00+09:00",
            "is_open": true,
            "current_session": {
                "type": "regular",
                "label": "Open",
                "local_date": "2026-03-03",
                "local_open": "09:00",
                "local_close": "15:30",
                "open_utc": "2026-03-03T00:00:00Z",
                "close_utc": "2026-03-03T06:30:00Z",
                "is_overnight": false,
                "is_tradable": true
            },
            "next_session": null,
            "is_holiday": false,
            "holiday_name": null,
            "sessions": [
                {
                    "type": "regular",
                    "label": "Open",
                    "local_date": "2026-03-03",
                    "local_open": "09:00",
                    "local_close": "15:30",
                    "open_utc": "2026-03-03T00:00:00Z",
                    "close_utc": "2026-03-03T06:30:00Z",
                    "is_overnight": false,
                    "is_tradable": true
                }
            ],
            "upcoming_holidays": [
                {
                    "date": "2026-05-01",
                    "name": "Labor Day"
                }
            ]
        }
    ]
}
```

## Errors

-   `400` - Invalid date, days, as_of, or exchange filter.
-   `403` - Your tier does not have access. Upgrade to Pro.

## Related

-   [Aggregates Timeseries](/docs/api/rwa/aggregates-timeseries)
-   [Exchanges Snapshot](/docs/api/rwa/exchanges-snapshot)

---

<!-- Source: https://loris.tools/docs/api/rwa/aggregates-timeseries | Raw: https://loris.tools/docs/md/api/rwa/aggregates-timeseries -->

# Aggregates Timeseries

**Tier:** Pro

`GET /rwa/aggregates-timeseries`

Volume and/or OI timeseries for symbols classified as real-world assets, grouped by asset class (commodity, stock, etc.), asset group, asset subgroup, exchange, or individual symbol. Returns aggregate series plus breakdowns by group. Use it to analyze RWA derivatives market growth, compare commodity vs stock perpetual OI, or build sector-level charts for RWA perpetual futures.

---

## Authentication

Requires Pro tier or higher. Free and Dev tiers do not have access (returns 403).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `metric` | string | No | `volume`, `oi`, or `both`. Defaults to `both`. |
| `group_by` | string | No | `asset_class`, `asset_group`, `exchange`, or `symbol`. Defaults to `asset_class`. |
| `range` | string | No | `7d`, `30d`, `90d`, or `all`. Defaults to `30d`. |
| `asset_class` | string | No | Filter by asset class, e.g. `commodity`. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/rwa/aggregates-timeseries?metric=oi&group_by=asset_class&range=30d"
```

## Example response

```json
{
  "range": "30d",
  "metric": "oi",
  "group_by": "asset_class",
  "groups": ["commodity", "stock", "forex"],
  "data": [
    {
      "timestamp": "2026-06-01T00:00:00Z",
      "oi_usd": 4200000000,
      "oi_by_group": {
        "commodity": 2800000000,
        "stock": 980000000,
        "forex": 420000000
      }
    }
  ]
}
```

## Errors

- `403` — Your tier does not have access. Upgrade to Pro.

## Related

- [Exchanges Snapshot](/docs/api/rwa/exchanges-snapshot)
- [Exchange OI Totals](/docs/api/open-interest/exchange-totals)

---

<!-- Source: https://loris.tools/docs/api/rwa/exchanges-snapshot | Raw: https://loris.tools/docs/md/api/rwa/exchanges-snapshot -->

# Exchanges Snapshot

**Tier:** Dev

`GET /rwa/exchanges/snapshot`

Current RWA aggregates per exchange — total OI and 24h volume for RWA-classified symbols only, with 24h changes and symbol count. Returns one row per exchange that lists any RWA symbols. Use it to compare how different exchanges are positioned in real-world asset derivatives, or build an RWA exchange leaderboard.

---

## Authentication

Requires Dev tier or higher.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `asset_class` | string | No | Filter by asset class, e.g. `commodity`. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/rwa/exchanges/snapshot
```

## Example response

```json
{
  "timestamp": "2026-06-08 06:00:00",
  "exchanges": [
    {
      "exchange": "binance",
      "oi_usd": 1800000000,
      "volume_24h_usd": 3200000000,
      "rwa_symbol_count": 24,
      "oi_24h_change_pct": 2.8,
      "volume_24h_change_pct": 14.2
    }
  ],
  "totals": {
    "oi_usd": 4200000000,
    "volume_24h_usd": 7800000000,
    "rwa_symbol_count": 87
  }
}
```

## Related

- [Aggregates Timeseries](/docs/api/rwa/aggregates-timeseries)

---

<!-- Source: https://loris.tools/docs/api/hip3-analytics | Raw: https://loris.tools/docs/md/api/hip3-analytics -->

# HIP-3 Analytics

HIP-3 Analytics provides comprehensive data for Hyperliquid HIP-3 builder DEXes, covering combined dashboards, per-DEX and per-symbol breakdowns, liquidation count/value, trader leaderboards, symbol timeseries, OHLCV candles, and open interest trends.

---

## Endpoints

| Method | Path | Tier | Summary |
|--------|------|------|---------|
| GET | [/hip3-analytics/dashboard](/docs/api/hip3-analytics/dashboard) | Dev | Combined dashboard payload — summary, per-DEX stats, timeseries, liquidations, and fee/gas series in one call. |
| GET | [/hip3-analytics/dex-detail](/docs/api/hip3-analytics/dex-detail) | Dev | Single-DEX bundle — summary, per-symbol stats, timeseries, liquidations, and symbol breakdown. |
| GET | [/hip3-analytics/leaderboard](/docs/api/hip3-analytics/leaderboard) | Dev | Trader leaderboard sorted by volume or other metric. |
| GET | [/hip3-analytics/timeseries/symbol](/docs/api/hip3-analytics/symbol-timeseries) | Dev | Volume, fee, and liquidation timeseries for one HIP-3 symbol on a specific DEX. |
| GET | [/hip3-analytics/candles](/docs/api/hip3-analytics/candles) | Pro | OHLCV candles for a HIP-3 coin at configurable intervals. |
| GET | [/hip3-analytics/oi-trends/total](/docs/api/hip3-analytics/oi-trends-total) | Dev | Estimated HIP-3 OI from fills — all markets combined, daily. |
| GET | [/hip3-analytics/oi-trends/dex](/docs/api/hip3-analytics/oi-trends-dex) | Dev | HIP-3 OI trends for one DEX — aggregate plus per-symbol series. |
| GET | [/hip3-analytics/by-dex](/docs/api/hip3-analytics/by-dex) | Dev | Granular stats by DEX, including liquidation count/value. |
| GET | [/hip3-analytics/by-symbol](/docs/api/hip3-analytics/by-symbol) | Dev | Granular stats by symbol across all DEXes, including liquidation count/value. |
| GET | [/hip3-analytics/timeseries/dex-breakdown](/docs/api/hip3-analytics/dex-breakdown) | Dev | Per-DEX symbol breakdown timeseries with liquidation value fields. |

---

<!-- Source: https://loris.tools/docs/api/hip3-analytics/dashboard | Raw: https://loris.tools/docs/md/api/hip3-analytics/dashboard -->

# Dashboard

**Tier:** Dev

`GET /hip3-analytics/dashboard`

Combined HIP-3 dashboard payload that replaces 14+ separate calls. Returns summary totals, per-DEX stats, timeseries, liquidation count/value, builder fee series, and priority gas series — everything a HIP-3 DEX analytics dashboard needs in one request. Use it as your primary dashboard data source and drill into specific DEXes with the dex-detail endpoint.

---

## Metric notes

- `liquidation_count` and `liquidation_value_usd` count only the liquidated user's fill (`liq_user IS NOT NULL` and `trader = liq_user`). Counterparty fills are excluded to avoid double-counting.

## Authentication

Requires Dev tier or higher. Dev: range limited to `4h`, `1d`, and `7d`. Pro: full access including `30d` and `all`.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | `4h`, `1d`, `7d`, `30d`, or `all`. Defaults to `1d`. Legacy `period` is accepted until July 21, 2026. |

## Tier behavior

**Dev:** `range` must be `4h`, `1d`, or `7d`.

**Pro:** Full access. `range` includes `30d` and `all`.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip3-analytics/dashboard?range=1d"
```

## Example response

```json
{
  "success": true,
  "range": "1d",
  "period": "1d",
  "summary": {
    "volume": 482000000,
    "total_fees": 241000,
    "trade_count": 128400,
    "unique_users": 8420,
    "liquidation_count": 745,
    "liquidation_value_usd": 326118281.71,
    "total_deployer_fees": 105000,
    "builder_revenue": 125000,
    "priority_gas_total": 8300
  },
  "by_dex": [
    {
      "dex_name": "hyperliquid_dex",
      "volume": 210000000,
      "total_fees": 105000,
      "trade_count": 54200,
      "unique_users": 3820,
      "liquidation_count": 210,
      "liquidation_value_usd": 98000000,
      "total_deployer_fees": 52000,
      "builder_revenue": 58000
    }
  ],
  "timeseries": [
    {
      "date": "2026-06-08T00:00:00",
      "volume": 482000000,
      "total_fees": 241000,
      "trade_count": 128400,
      "unique_users": 8420,
      "liquidation_count": 745,
      "liquidation_value_usd": 326118281.71
    }
  ],
  "builder_fee_timeseries": [],
  "priority_gas_timeseries": []
}
```

## Errors

- `400` — Invalid range value.
- `403` — Dev tier attempting `range=30d` or `range=all`. Upgrade to Pro.

## Related

- [DEX Detail](/docs/api/hip3-analytics/dex-detail)
- [Leaderboard](/docs/api/hip3-analytics/leaderboard)

---

<!-- Source: https://loris.tools/docs/api/hip3-analytics/dex-detail | Raw: https://loris.tools/docs/md/api/hip3-analytics/dex-detail -->

# DEX Detail

**Tier:** Dev

`GET /hip3-analytics/dex-detail`

Single-DEX bundle for the specified HIP-3 builder DEX — summary stats, per-symbol breakdown, timeseries, liquidation count/value, builder fee series, and priority gas series. Use it to build a dedicated page for one DEX showing all its analytics without making multiple calls.

---

## Metric notes

- `liquidation_count` and `liquidation_value_usd` count only the liquidated user's fill (`liq_user IS NOT NULL` and `trader = liq_user`). Counterparty fills are excluded to avoid double-counting.

## Authentication

Requires Dev tier or higher.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `dex_name` | string | Yes | HIP-3 DEX identifier, e.g. `hyperliquid_dex`. |
| `range` | string | No | `4h`, `1d`, `7d`, `30d`, or `all`. Defaults to `1d`. Legacy `period` is accepted until July 21, 2026. |
| `top_n` | integer | No | Number of top symbols to include. Defaults to 10, max 20. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip3-analytics/dex-detail?dex_name=hyperliquid_dex&range=1d"
```

## Example response

```json
{
  "success": true,
  "range": "1d",
  "period": "1d",
  "dex_name": "hyperliquid_dex",
  "summary": {
    "volume": 210000000,
    "total_fees": 105000,
    "trade_count": 54200,
    "unique_users": 3820,
    "liquidation_count": 210,
    "liquidation_value_usd": 98000000,
    "total_deployer_fees": 52000,
    "builder_revenue": 58000,
    "priority_gas": 2600
  },
  "by_symbol": [
    {
      "dex_name": "hyperliquid_dex",
      "symbol": "BTC",
      "volume": 98000000,
      "total_fees": 49000,
      "trade_count": 18200,
      "unique_users": 1400,
      "liquidation_count": 96,
      "liquidation_value_usd": 47000000
    },
    {
      "dex_name": "hyperliquid_dex",
      "symbol": "ETH",
      "volume": 42000000,
      "total_fees": 21000,
      "trade_count": 12400,
      "unique_users": 980,
      "liquidation_count": 52,
      "liquidation_value_usd": 22000000
    }
  ],
  "timeseries": [
    {
      "date": "2026-06-08T00:00:00",
      "volume": 210000000,
      "total_fees": 105000,
      "trade_count": 54200,
      "unique_users": 3820,
      "liquidation_count": 210,
      "liquidation_value_usd": 98000000
    }
  ],
  "builder_timeseries": [],
  "priority_gas_timeseries": [],
  "symbol_breakdown": {}
}
```

## Errors

- `400` — Missing required parameter `dex_name`.

## Related

- [Dashboard](/docs/api/hip3-analytics/dashboard)
- [OI Trends (DEX)](/docs/api/hip3-analytics/oi-trends-dex)

---

<!-- Source: https://loris.tools/docs/api/hip3-analytics/leaderboard | Raw: https://loris.tools/docs/md/api/hip3-analytics/leaderboard -->

# Leaderboard

**Tier:** Dev

`GET /hip3-analytics/leaderboard`

Trader leaderboard for HIP-3 builder DEX activity, sorted by volume or another specified metric. Returns a ranked list of traders with their volume, trade count, and other stats. Use it to surface the most active participants on HIP-3 DEXes or build a public leaderboard widget.

---

## Authentication

Requires Dev tier or higher.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | `4h`, `1d`, `7d`, `30d`, or `all`. Defaults to `all`. Legacy `period` is accepted until July 21, 2026. |
| `sort_by` | string | No | Metric to sort by. Defaults to `volume`. |
| `limit` | integer | No | Number of traders to return. Defaults to 100. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip3-analytics/leaderboard?range=1d&limit=10"
```

## Example response

```json
{
  "success": true,
  "range": "1d",
  "period": "1d",
  "sort_by": "volume",
  "traders": [
    {
      "address": "0xAbc1...def2",
      "volume_usd": 4200000,
      "trades": 842,
      "rank": 1
    },
    {
      "address": "0xBcd2...ef03",
      "volume_usd": 3800000,
      "trades": 621,
      "rank": 2
    }
  ]
}
```

## Related

- [Dashboard](/docs/api/hip3-analytics/dashboard)
- [By Symbol](/docs/api/hip3-analytics/by-symbol)

---

<!-- Source: https://loris.tools/docs/api/hip3-analytics/symbol-timeseries | Raw: https://loris.tools/docs/md/api/hip3-analytics/symbol-timeseries -->

# Symbol Timeseries

**Tier:** Dev

`GET /hip3-analytics/timeseries/symbol`

Volume, fee, and liquidation timeseries for one HIP-3 symbol on a specific DEX. Use it to chart how trading activity on a particular token has evolved on a builder DEX, or compare activity between periods.

---

## Metric notes

- `liquidation_count` and `liquidation_value_usd` count only the liquidated user's fill (`liq_user IS NOT NULL` and `trader = liq_user`). Counterparty fills are excluded to avoid double-counting.

## Authentication

Requires Dev tier or higher.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `dex_name` | string | Yes | HIP-3 DEX identifier. Use with `symbol`. |
| `symbol` | string | Yes | Symbol name. Use with `dex_name`. |
| `range` | string | No | `4h`, `1d`, `7d`, `30d`, or `all`. Defaults to `all`. Legacy `period` is accepted until July 21, 2026. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip3-analytics/timeseries/symbol?dex_name=hyperliquid_dex&symbol=BTC&range=7d"
```

## Example response

```json
{
  "success": true,
  "range": "7d",
  "period": "1w",
  "dex_name": "hyperliquid_dex",
  "symbol": "BTC",
  "data": [
    {
      "date": "2026-06-01",
      "volume": 14200000,
      "total_fees": 7100,
      "trade_count": 2840,
      "unique_users": 420,
      "liquidation_count": 12,
      "liquidation_value_usd": 3800000
    },
    {
      "date": "2026-06-02",
      "volume": 15800000,
      "total_fees": 7900,
      "trade_count": 3120,
      "unique_users": 460,
      "liquidation_count": 18,
      "liquidation_value_usd": 5200000
    }
  ]
}
```

## Errors

- `400` — Missing required `dex_name` and `symbol`.

## Related

- [DEX Detail](/docs/api/hip3-analytics/dex-detail)
- [Candles](/docs/api/hip3-analytics/candles)

---

<!-- Source: https://loris.tools/docs/api/hip3-analytics/candles | Raw: https://loris.tools/docs/md/api/hip3-analytics/candles -->

# Candles

**Tier:** Pro

`GET /hip3-analytics/candles`

OHLCV candles for a HIP-3 coin at a configurable interval. Returns open, high, low, close, and volume data for charting. Use it to build a price chart for a HIP-3 DEX token or feed a technical analysis pipeline.

> **Note:** This endpoint may return 503 if candle computation is temporarily disabled.

---

## Authentication

Requires Pro tier or higher. Free and Dev tiers do not have access (returns 403).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `coin` | string | Yes | Coin identifier in `dex:symbol` format, e.g. `hyperliquid_dex:BTC`. |
| `interval` | string | No | Candle interval. Defaults to `1h`. |
| `start` | string (ISO 8601) | No | Start timestamp. Defaults to the HIP-3 start date. Legacy `start_time` milliseconds is accepted until July 21, 2026. |
| `end` | string (ISO 8601) | No | End timestamp. Legacy `end_time` milliseconds is accepted until July 21, 2026. |
| `limit` | integer | No | Maximum candles to return. Defaults to 500. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip3-analytics/candles?coin=hyperliquid_dex:BTC&interval=1h&limit=24"
```

## Example response

```json
{
  "success": true,
  "coin": "hyperliquid_dex:BTC",
  "interval": "1h",
  "data": [
    {
      "timestamp": "2026-06-08T00:00:00Z",
      "open": 70900.00,
      "high": 71400.00,
      "low": 70750.00,
      "close": 71200.00,
      "volume": 4800000
    },
    {
      "timestamp": "2026-06-08T01:00:00Z",
      "open": 71200.00,
      "high": 71600.00,
      "low": 71100.00,
      "close": 71450.00,
      "volume": 5100000
    }
  ]
}
```

## Errors

- `403` — Your tier does not have access. Upgrade to Pro.
- `503` — Candle computation is temporarily unavailable.

## Related

- [Symbol Timeseries](/docs/api/hip3-analytics/symbol-timeseries)
- [DEX Detail](/docs/api/hip3-analytics/dex-detail)

---

<!-- Source: https://loris.tools/docs/api/hip3-analytics/oi-trends-total | Raw: https://loris.tools/docs/md/api/hip3-analytics/oi-trends-total -->

# OI Trends (Total)

**Tier:** Dev

`GET /hip3-analytics/oi-trends/total`

Estimated HIP-3 open interest derived from fill data — all markets combined as a daily time series, with a per-DEX breakdown. Use it to chart overall HIP-3 OI growth, see which DEXes are driving positioning, or track how HIP-3 market depth is evolving over time.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | `7d`, `30d`, or `all`. Defaults to `all`. Legacy `period` values `1w` and `1m` are accepted until July 21, 2026. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip3-analytics/oi-trends/total?range=30d"
```

## Example response

```json
{
  "success": true,
  "range": "30d",
  "period": "1m",
  "data": [
    { "day": "2026-05-01", "oi_usd": 182000000, "oi_contracts": 2420 },
    { "day": "2026-05-02", "oi_usd": 194000000, "oi_contracts": 2580 },
    { "day": "2026-05-03", "oi_usd": 201000000, "oi_contracts": 2680 }
  ],
  "by_dex": {
    "hyperliquid_dex": [
      { "day": "2026-05-01", "oi_usd": 98000000, "oi_contracts": 1380 },
      { "day": "2026-05-02", "oi_usd": 105000000, "oi_contracts": 1460 }
    ]
  }
}
```

## Related

- [OI Trends (DEX)](/docs/api/hip3-analytics/oi-trends-dex)
- [Dashboard](/docs/api/hip3-analytics/dashboard)
- [Exchange OI Totals](/docs/api/open-interest/exchange-totals)

---

<!-- Source: https://loris.tools/docs/api/hip3-analytics/oi-trends-dex | Raw: https://loris.tools/docs/md/api/hip3-analytics/oi-trends-dex -->

# OI Trends (DEX)

**Tier:** Dev

`GET /hip3-analytics/oi-trends/dex`

HIP-3 OI trends for one specific builder DEX — aggregate daily open interest series plus per-symbol breakdown for up to the top N symbols. Use it to understand how positioning on a particular DEX has evolved and which symbols are driving OI growth.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `dex_name` | string | Yes | HIP-3 DEX identifier, e.g. `hyperliquid_dex`. |
| `range` | string | No | `7d`, `30d`, or `all`. Defaults to `all`. Legacy `period` values `1w` and `1m` are accepted until July 21, 2026. |
| `top_n` | integer | No | Number of top symbols to include. Defaults to 10, max 15. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip3-analytics/oi-trends/dex?dex_name=hyperliquid_dex&range=30d"
```

## Example response

```json
{
  "success": true,
  "range": "30d",
  "period": "1m",
  "dex_name": "hyperliquid_dex",
  "aggregate": [
    { "day": "2026-05-01", "oi_usd": 98000000 },
    { "day": "2026-05-02", "oi_usd": 104000000 },
    { "day": "2026-05-03", "oi_usd": 109000000 }
  ],
  "symbols": ["BTC", "ETH", "SOL"],
  "by_symbol": {
    "BTC": [
      { "day": "2026-05-01", "oi_usd": 42000000 },
      { "day": "2026-05-02", "oi_usd": 45000000 }
    ],
    "ETH": [
      { "day": "2026-05-01", "oi_usd": 28000000 },
      { "day": "2026-05-02", "oi_usd": 30000000 }
    ]
  }
}
```

## Errors

- `400` — Missing required parameter `dex_name`.

## Related

- [OI Trends (Total)](/docs/api/hip3-analytics/oi-trends-total)
- [DEX Detail](/docs/api/hip3-analytics/dex-detail)

---

<!-- Source: https://loris.tools/docs/api/hip3-analytics/by-dex | Raw: https://loris.tools/docs/md/api/hip3-analytics/by-dex -->

# By DEX

**Tier:** Dev

`GET /hip3-analytics/by-dex`

Granular HIP-3 stats broken down by builder DEX — volume, trade count, builder fees, liquidation count/value, and unique traders per venue. This data is also bundled in the `/dashboard` endpoint; use this endpoint when you need just the per-DEX breakdown without the rest of the dashboard payload.

---

## Metric notes

- `liquidation_count` and `liquidation_value_usd` count only the liquidated user's fill (`liq_user IS NOT NULL` and `trader = liq_user`). Counterparty fills are excluded to avoid double-counting.

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | `4h`, `1d`, `7d`, `30d`, or `all`. Defaults to `1d`. Legacy `period` is accepted until July 21, 2026. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip3-analytics/by-dex?range=1d"
```

## Example response

```json
{
  "success": true,
  "range": "1d",
  "period": "1d",
  "data": [
    {
      "dex_name": "hyperliquid_dex",
      "volume": 210000000,
      "total_fees": 105000,
      "trade_count": 54200,
      "unique_users": 3820,
      "liquidation_count": 210,
      "liquidation_value_usd": 98000000,
      "total_deployer_fees": 52000,
      "builder_revenue": 58000
    },
    {
      "dex_name": "another_dex",
      "volume": 84000000,
      "total_fees": 42000,
      "trade_count": 21400,
      "unique_users": 1240,
      "liquidation_count": 85,
      "liquidation_value_usd": 41000000,
      "total_deployer_fees": 21000,
      "builder_revenue": 24000
    }
  ]
}
```

## Related

- [Dashboard](/docs/api/hip3-analytics/dashboard)
- [By Symbol](/docs/api/hip3-analytics/by-symbol)
- [DEX Detail](/docs/api/hip3-analytics/dex-detail)

---

<!-- Source: https://loris.tools/docs/api/hip3-analytics/by-symbol | Raw: https://loris.tools/docs/md/api/hip3-analytics/by-symbol -->

# By Symbol

**Tier:** Dev

`GET /hip3-analytics/by-symbol`

Granular HIP-3 stats broken down by symbol across all builder DEXes — volume, trade count, builder fees, and liquidation count/value per coin. Also bundled in `/dashboard`; use this endpoint when you need the per-symbol breakdown specifically without the rest of the dashboard payload.

---

## Metric notes

- `liquidation_count` and `liquidation_value_usd` count only the liquidated user's fill (`liq_user IS NOT NULL` and `trader = liq_user`). Counterparty fills are excluded to avoid double-counting.

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | `4h`, `1d`, `7d`, `30d`, or `all`. Defaults to `1d`. Legacy `period` is accepted until July 21, 2026. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip3-analytics/by-symbol?range=1d"
```

## Example response

```json
{
  "success": true,
  "range": "1d",
  "period": "1d",
  "data": [
    {
      "dex_name": "hyperliquid_dex",
      "symbol": "BTC",
      "volume": 180000000,
      "total_fees": 90000,
      "trade_count": 42000,
      "unique_users": 3800,
      "liquidation_count": 320,
      "liquidation_value_usd": 138000000,
      "total_deployer_fees": 45000
    },
    {
      "dex_name": "hyperliquid_dex",
      "symbol": "ETH",
      "volume": 98000000,
      "total_fees": 49000,
      "trade_count": 24800,
      "unique_users": 2100,
      "liquidation_count": 180,
      "liquidation_value_usd": 76000000,
      "total_deployer_fees": 24500
    }
  ]
}
```

## Related

- [Dashboard](/docs/api/hip3-analytics/dashboard)
- [By DEX](/docs/api/hip3-analytics/by-dex)
- [Leaderboard](/docs/api/hip3-analytics/leaderboard)

---

<!-- Source: https://loris.tools/docs/api/hip3-analytics/dex-breakdown | Raw: https://loris.tools/docs/md/api/hip3-analytics/dex-breakdown -->

# DEX Symbol Breakdown

**Tier:** Dev

`GET /hip3-analytics/timeseries/dex-breakdown`

Per-DEX symbol breakdown timeseries — how each symbol contributes to a specific builder DEX's activity over time. Returns a time-bucketed series in wide format with volume, fee, trade, user, and liquidation fields per symbol. Use it to build stacked charts showing which tokens are driving a DEX's activity and liquidation value across periods.

---

## Metric notes

- `liquidation_count` and `liquidation_value_usd` count only the liquidated user's fill (`liq_user IS NOT NULL` and `trader = liq_user`). Counterparty fills are excluded to avoid double-counting.

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `dex_name` | string | Yes | HIP-3 DEX identifier, e.g. `hyperliquid_dex`. |
| `range` | string | No | `4h`, `1d`, `7d`, `30d`, or `all`. Defaults to `1d`. Legacy `period` is accepted until July 21, 2026. |
| `top_n` | integer | No | Number of top symbols to include. Defaults to 10. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip3-analytics/timeseries/dex-breakdown?dex_name=hyperliquid_dex&range=7d"
```

## Example response

```json
{
  "success": true,
  "range": "7d",
  "period": "1w",
  "dex_name": "hyperliquid_dex",
  "data": [
    {
      "date": "2026-06-01",
      "volume_BTC": 14200000,
      "volume_ETH": 6800000,
      "volume_others": 3400000,
      "trade_count_BTC": 2840,
      "trade_count_ETH": 1620,
      "liquidation_count_BTC": 12,
      "liquidation_count_ETH": 5,
      "liquidation_count_others": 1,
      "liquidation_value_usd_BTC": 3800000,
      "liquidation_value_usd_ETH": 1100000,
      "liquidation_value_usd_others": 250000
    },
    {
      "date": "2026-06-02",
      "volume_BTC": 15800000,
      "volume_ETH": 7200000,
      "volume_others": 3900000,
      "trade_count_BTC": 3120,
      "trade_count_ETH": 1700,
      "liquidation_count_BTC": 18,
      "liquidation_count_ETH": 6,
      "liquidation_count_others": 2,
      "liquidation_value_usd_BTC": 5200000,
      "liquidation_value_usd_ETH": 1600000,
      "liquidation_value_usd_others": 390000
    }
  ],
  "symbols": ["BTC", "ETH", "others"],
  "total_symbols": 3
}
```

## Errors

- `400` — Missing required parameter `dex_name`.

## Related

- [DEX Detail](/docs/api/hip3-analytics/dex-detail)
- [By DEX](/docs/api/hip3-analytics/by-dex)
- [Symbol Timeseries](/docs/api/hip3-analytics/symbol-timeseries)

---

<!-- Source: https://loris.tools/docs/api/hip4-analytics | Raw: https://loris.tools/docs/md/api/hip4-analytics -->

# HIP-4 Analytics

HIP-4 Analytics covers Hyperliquid's HIP-4 outcome and prediction market ecosystem, providing deployer-aware dashboards, trader rankings, merged outcome metadata, scoped per-outcome analytics, and end-of-day open interest snapshots.

---

## Endpoints

| Method | Path | Tier | Summary |
|--------|------|------|---------|
| GET | [/hip4-analytics/dashboard](/docs/api/hip4-analytics/dashboard) | Dev | Combined HIP-4 dashboard metrics — volume, fees, trade counts, and timeseries for the selected range. |
| GET | [/hip4-analytics/leaderboard](/docs/api/hip4-analytics/leaderboard) | Dev | Trader rankings by participant volume or realized PnL, optionally scoped to one deployer venue. |
| GET | [/hip4-analytics/outcome-meta](/docs/api/hip4-analytics/outcome-meta) | Dev | Merged live and archived HIP-4 outcome market labels and metadata. |
| GET | [/hip4-analytics/outcome/{outcome_id}](/docs/api/hip4-analytics/outcome-detail) | Dev | Scoped dashboard bundle for one outcome market. |
| GET | [/hip4-analytics/oi-eod](/docs/api/hip4-analytics/oi-eod) | Pro | End-of-day two-sided HIP-4 trading OI — shares and USD, settlement legs excluded. |

---

<!-- Source: https://loris.tools/docs/api/hip4-analytics/dashboard | Raw: https://loris.tools/docs/md/api/hip4-analytics/dashboard -->

# HIP-4 Analytics API Reference

**Tier:** Dev

`GET /hip4-analytics/dashboard`

Combined HIP-4 prediction market dashboard payload — nested summary metrics, per-outcome and per-coin breakdowns, trading and settlement timeseries, and stacked chart data for the requested range. Responses use cached analytics snapshots.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | `4h`, `1d`, `7d`, `30d`, or `all`. Defaults to `1d`. Legacy `period` remains supported as a compatibility alias. |
| `venue` | string | No | Restrict every metric and breakdown to one stored HIP-4 venue: `out` for Outcome.xyz or `skew` for Skew Markets. Omit it for totals across all deployers. |
| `view` | string | No | `full` (default, unchanged response), `charts` (summary and all chart series), `summary` (summary and aggregate trading/settlement series), or `markets` (selected market statistics). Small views return only the requested sections. |
| `outcome_ids` | string | No | For `view=markets`, comma-separated nonnegative outcome IDs, maximum 200. Omit to page through the market index. |
| `offset` | integer | No | For indexed `view=markets` requests, the zero-based starting offset. Defaults to `0`. |
| `limit` | integer | No | Indexed market page size, from `1` to `200`. Defaults to `100`. |

### Small responses

Use `view=summary` for venue comparison charts and `view=charts` for the main analytics charts. Both return empty market table arrays rather than the full archive. Metric totals and series retain their full requested-range meaning.

Use `view=markets&outcome_ids=42,43` for individual cards. This returns `by_outcome`, `by_coin`, and `settlement_by_outcome` for those IDs, excluding the nested per-row `trade_mechanics` and `lifecycle_mechanics`. The default full response continues to include those details.

Without `outcome_ids`, market responses include `total_markets` and `next_offset`; `next_offset` is `null` after the last page. Market pages are ordered by outcome ID. Small views return `503` when no warmed snapshot is available and never start an on-demand historical computation.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip4-analytics/dashboard?range=1d&venue=skew"
```

## Count semantics

Trading objects under `summary`, `by_outcome`, `by_coin`, and `timeseries` use the same count definitions:

| Field | Meaning |
|------|---------|
| `trade_count` | Atomic matched executions. One crossed Buy/Sell participant identifies one match, including when one match produces multiple outcome-leg records. |
| `protocol_trade_count` | Distinct outcome-leg records, deduplicated by `(block_number, coin, tid)`. |
| `orderbook_fill_count` | Raw Buy/Sell rows. |
| `fill_count` | All raw non-settlement rows, including Buy/Sell rows and manual Split/Merge lifecycle rows. |

`trade_mechanics` breaks order-book activity into `standard`, `split`, `merge`, and `other`. Each entry contains `trade_count`, `protocol_trade_count`, `fill_count`, `volume`, and `total_fees`. These labels classify observed execution shapes: Buy+Sell, Buy-only, Sell-only, or another shape. They do not assert an officially documented matching implementation.

`lifecycle_mechanics` is separate from order-book matching. Its `split` and `merge` entries count explicit manual lifecycle operations and their raw fill rows; `other_fill_count` covers remaining non-settlement lifecycle rows.

## Example response

```json
{
  "success": true,
  "range": "1d",
  "period": "1d",
  "venue": "skew",
  "computed_through_ms": 1788221100000,
  "summary": {
    "volume": 82000000,
    "fill_count": 50200,
    "orderbook_fill_count": 49600,
    "trade_count": 24800,
    "protocol_trade_count": 36200,
    "unique_traders": 2840,
    "total_fees": 41000,
    "liquidation_count": 0,
    "total_priority_gas": 0,
    "priority_gas_usdc": 0,
    "priority_gas_usdh": 0,
    "trade_mechanics": {
      "standard": { "trade_count": 13400, "protocol_trade_count": 13400, "fill_count": 26800, "volume": 44000000, "total_fees": 22000 },
      "split": { "trade_count": 6200, "protocol_trade_count": 12400, "fill_count": 12400, "volume": 21000000, "total_fees": 10500 },
      "merge": { "trade_count": 5200, "protocol_trade_count": 10400, "fill_count": 10400, "volume": 17000000, "total_fees": 8500 },
      "other": { "trade_count": 0, "protocol_trade_count": 0, "fill_count": 0, "volume": 0, "total_fees": 0 }
    },
    "lifecycle_mechanics": {
      "split": { "operation_count": 180, "fill_count": 360 },
      "merge": { "operation_count": 120, "fill_count": 240 },
      "other_fill_count": 0
    }
  },
  "by_outcome": [
    { "outcome_id": 42, "volume": 12000000, "trade_count": 3800, "protocol_trade_count": 5400, "orderbook_fill_count": 7600, "fill_count": 7680 }
  ],
  "by_coin": [
    { "coin": "#420", "encoding": 420, "outcome_id": 42, "outcome_side": 0, "volume": 6600000, "trade_count": 2100, "protocol_trade_count": 2900, "orderbook_fill_count": 4200, "fill_count": 4240 }
  ],
  "timeseries": [
    { "date": "2026-06-08T00:00:00", "volume": 82000000, "trade_count": 24800, "protocol_trade_count": 36200, "orderbook_fill_count": 49600, "fill_count": 50200 }
  ],
  "settlement_total": { "volume": 1800000, "fill_count": 920, "trade_count": 0, "unique_traders": 710, "total_fees": 0 },
  "settlement_by_outcome": [],
  "settlement_timeseries": []
}
```

Entries in `by_outcome`, `by_coin`, and trading `timeseries` also include the full `trade_mechanics` and `lifecycle_mechanics` objects. In `by_coin`, a manual lifecycle operation is counted for every outcome leg it touches, so `lifecycle_mechanics.*.operation_count` is not additive across coins. The payload additionally returns `timeseries_stacked*` and `settlement_timeseries_stacked*` fields for chart rendering; `timeseries_stacked_by_metric.protocol_trade_count` contains the outcome-side trade series.

## Errors

- `400` — Invalid venue, view, market IDs, offset, or limit.
- `503` — A small view has no warmed snapshot available yet. Retry shortly.

## Related

- [Live HIP-4 Dashboard](/hip4)
- [Trader Leaderboard](/docs/api/hip4-analytics/leaderboard)
- [Outcome Detail](/docs/api/hip4-analytics/outcome-detail)
- [Outcome Metadata](/docs/api/hip4-analytics/outcome-meta)
- [EOD OI](/docs/api/hip4-analytics/oi-eod)

---

<!-- Source: https://loris.tools/docs/api/hip4-analytics/leaderboard | Raw: https://loris.tools/docs/md/api/hip4-analytics/leaderboard -->

# Trader Leaderboard

**Tier:** Dev

`GET /hip4-analytics/leaderboard`

Redis-backed HIP-4 trader rankings by participant trading volume or realized PnL. Results can cover every HIP-4 deployer or one stored venue such as Outcome.xyz or Skew Markets.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | `4h`, `1d`, `7d`, `30d`, or `all`. Defaults to `all`. Legacy `period` remains supported as a compatibility alias. |
| `sort_by` | string | No | `volume` or `pnl`. Defaults to `volume`. |
| `limit` | integer | No | Number of ranked traders to return. Defaults to `100`; values above `500` are clamped to `500`. |
| `venue` | string | No | Restrict the ranking to one stored HIP-4 venue. Use `out` for Outcome.xyz or `skew` for Skew Markets. Omit it for all deployers. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip4-analytics/leaderboard?range=30d&sort_by=pnl&limit=25&venue=skew"
```

## Example response

```json
{
  "success": true,
  "cache_ready": true,
  "range": "30d",
  "period": "1m",
  "sort_by": "pnl",
  "venue": "skew",
  "data": [
    {
      "rank": 1,
      "address": "0x1234567890abcdef1234567890abcdef12345678",
      "volume": 184250.5,
      "fees_paid": 92.13,
      "trade_count": 418,
      "outcomes_traded": 12,
      "outcome_sides_traded": 21,
      "last_active_ms": 1788206400000,
      "realized_pnl": 4120.75
    }
  ],
  "total_traders": 84,
  "computed_at": "2026-09-01T00:05:00+00:00",
  "computed_through_ms": 1788221100000,
  "volume_scope": "participant_notional",
  "pnl_scope": "hyperliquid_closed_pnl"
}
```

## Metric semantics

- `volume` credits each participant's own deduplicated Buy/Sell fill once. Maker and taker can both receive participant volume, so summing leaderboard volume is not expected to equal dashboard volume.
- `trade_count` counts deduplicated participant fills. Settlement and direct Split/Merge lifecycle rows do not add trading volume or trades.
- `realized_pnl` sums Hyperliquid `closed_pnl` across deduplicated HIP-4 events, including Settlement and direct lifecycle events. Both profitable and losing traders are eligible for `sort_by=pnl`; zero-PnL rows are omitted.
- `total_traders` is the complete eligible population for the selected sort, before `limit` is applied.

## Errors

- `400` — Invalid venue, `sort_by`, or `limit` value.
- `403` — Free tier does not have access. Upgrade to Dev.
- `503` — Leaderboard data is temporarily unavailable. Please try again shortly.

## Related

- [Dashboard](/docs/api/hip4-analytics/dashboard)
- [Outcome Metadata](/docs/api/hip4-analytics/outcome-meta)
- [EOD OI](/docs/api/hip4-analytics/oi-eod)

---

<!-- Source: https://loris.tools/docs/api/hip4-analytics/outcome-meta | Raw: https://loris.tools/docs/md/api/hip4-analytics/outcome-meta -->

# Outcome Metadata

**Tier:** Dev

`GET /hip4-analytics/outcome-meta`

Merged metadata for all HIP-4 outcome markets — live outcomes from Hyperliquid's API combined with archived markets stored in the Loris database. It includes outcome-to-deployer attribution and the deployer registry used to resolve venue slugs such as `out` (Outcome.xyz) and `skew` (Skew Markets). `liveOutcomeIds` identifies rows present in the latest live response; it is omitted when Hyperliquid's metadata fetch fails.

---

## Authentication

Requires Dev tier or higher. Free tier does not have access (returns 403). The Loris website calls this endpoint server-side for trade page and HIP-4 UI population.

## Parameters

| Parameter | Default | Meaning |
|-----------|---------|---------|
| `scope` | `all` | `all` merges live and archived markets. `live` returns only the latest live snapshot and its questions, shared across requests for 30 seconds. Live requests do not read or update the archive; during an upstream outage they can return the last cached live snapshot. |

## Attribution fields

| Field | Meaning |
|------|---------|
| `outcomes[].venue` | Stable stored venue slug used by the `venue` filter on dashboard, leaderboard, and OI endpoints. Known deployers include `out` for Outcome.xyz and `skew` for Skew Markets. |
| `outcomes[].deployer` | Normalized deployer address attributed to the outcome. |
| `outcomes[].deployerFeeScale` | Deployer fee scale supplied by outcome metadata when available. |
| `deployers` | Current deployer-address-to-venue registry. When the live metadata request is unavailable, archived registry entries can be reconstructed from stored outcomes. |
| `liveOutcomeIds` | Outcome IDs present in the latest successful Hyperliquid response. Omitted when live metadata could not be fetched. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  https://api.loris.tools/hip4-analytics/outcome-meta
```

## Example response

```json
{
  "outcomes": [
    {
      "outcome": 1209,
      "name": "template:priceTouch",
      "description": "perp:HYPE|target:100|time:20261001-0000",
      "sideSpecs": [{ "name": "template:Yes" }, { "name": "template:No" }],
      "quoteToken": "USDC",
      "venue": "out",
      "deployer": "0x0c46eb73fae2816f219fcf11f50d6d3c59b5819e",
      "deployerFeeScale": "1.0"
    }
  ],
  "liveOutcomeIds": [1209],
  "deployers": [
    {
      "deployer": "0x0c46eb73fae2816f219fcf11f50d6d3c59b5819e",
      "venue": "out"
    }
  ]
}
```

## Errors

- `400` — Invalid `scope`; use `all` or `live`.
- `403` — Free tier does not have access. Upgrade to Dev.

## Related

- [Outcome Detail](/docs/api/hip4-analytics/outcome-detail)
- [Dashboard](/docs/api/hip4-analytics/dashboard)
- [Trader Leaderboard](/docs/api/hip4-analytics/leaderboard)

---

<!-- Source: https://loris.tools/docs/api/hip4-analytics/outcome-detail | Raw: https://loris.tools/docs/md/api/hip4-analytics/outcome-detail -->

# Outcome Detail

**Tier:** Dev

`GET /hip4-analytics/outcome/{outcome_id}`

Scoped dashboard bundle for one HIP-4 outcome market — nested summary metrics, per-coin breakdowns, trading timeseries, settlement data, and stacked chart data specific to that outcome.

---

## Authentication

Requires Dev tier or higher.

## Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `outcome_id` | integer | Yes | Outcome market ID. Must be a non-negative integer. |

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | `4h`, `1d`, `7d`, `30d`, or `all`. Defaults to `1d`. Legacy `period` remains supported as a compatibility alias. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip4-analytics/outcome/1?range=7d"
```

## Count semantics

The `summary`, `by_coin`, and trading `timeseries` objects use these definitions:

| Field | Meaning |
|------|---------|
| `trade_count` | Atomic matched executions, identified by one crossed Buy/Sell participant per match. |
| `protocol_trade_count` | Distinct outcome-leg records, deduplicated by `(block_number, coin, tid)`. |
| `orderbook_fill_count` | Raw Buy/Sell rows. |
| `fill_count` | All raw non-settlement rows, including Buy/Sell rows and manual Split/Merge lifecycle rows. |

`trade_mechanics` contains `standard`, `split`, `merge`, and `other`. Every entry reports `trade_count`, `protocol_trade_count`, `fill_count`, `volume`, and `total_fees`. The labels classify observed Buy+Sell, Buy-only, Sell-only, and other execution shapes; they do not claim an officially documented cross-outcome matching design.

`lifecycle_mechanics` reports explicit manual operations separately: `split` and `merge` each contain `operation_count` and `fill_count`, while `other_fill_count` covers other non-settlement lifecycle rows.

## Example response

```json
{
  "success": true,
  "outcome_id": 1,
  "range": "7d",
  "period": "1w",
  "computed_through_ms": 1788221100000,
  "summary": {
    "volume": 8400000,
    "fill_count": 5840,
    "orderbook_fill_count": 5680,
    "trade_count": 2840,
    "protocol_trade_count": 4120,
    "unique_traders": 420,
    "total_fees": 4200,
    "liquidation_count": 0,
    "total_priority_gas": 0,
    "priority_gas_usdc": 0,
    "priority_gas_usdh": 0,
    "trade_mechanics": {
      "standard": { "trade_count": 1560, "protocol_trade_count": 1560, "fill_count": 3120, "volume": 4700000, "total_fees": 2350 },
      "split": { "trade_count": 720, "protocol_trade_count": 1440, "fill_count": 1440, "volume": 2100000, "total_fees": 1050 },
      "merge": { "trade_count": 560, "protocol_trade_count": 1120, "fill_count": 1120, "volume": 1600000, "total_fees": 800 },
      "other": { "trade_count": 0, "protocol_trade_count": 0, "fill_count": 0, "volume": 0, "total_fees": 0 }
    },
    "lifecycle_mechanics": {
      "split": { "operation_count": 45, "fill_count": 90 },
      "merge": { "operation_count": 35, "fill_count": 70 },
      "other_fill_count": 0
    }
  },
  "by_coin": [
    { "coin": "#10", "encoding": 10, "outcome_id": 1, "outcome_side": 0, "volume": 4400000, "trade_count": 1480, "protocol_trade_count": 2060, "orderbook_fill_count": 2960, "fill_count": 3040 }
  ],
  "timeseries": [
    { "date": "2026-06-01", "volume": 1200000, "trade_count": 410, "protocol_trade_count": 590, "orderbook_fill_count": 820, "fill_count": 846 },
    { "date": "2026-06-02", "volume": 1400000, "trade_count": 480, "protocol_trade_count": 690, "orderbook_fill_count": 960, "fill_count": 982 }
  ],
  "settlement": { "volume": 620000, "fill_count": 310, "trade_count": 0, "unique_traders": 240, "total_fees": 0 },
  "settlement_timeseries": []
}
```

Entries in `by_coin` and trading `timeseries` also include the full `trade_mechanics` and `lifecycle_mechanics` objects. A manual lifecycle operation is counted for every outcome leg it touches in `by_coin`, so `lifecycle_mechanics.*.operation_count` is not additive across coins. The payload additionally returns `timeseries_stacked*` and `settlement_timeseries_stacked*` fields for chart rendering; `timeseries_stacked_by_metric.protocol_trade_count` contains the outcome-side trade series.

## Errors

- `400` — `outcome_id` must be a non-negative integer.

## Related

- [Dashboard](/docs/api/hip4-analytics/dashboard)
- [Trader Leaderboard](/docs/api/hip4-analytics/leaderboard)
- [EOD OI](/docs/api/hip4-analytics/oi-eod)

---

<!-- Source: https://loris.tools/docs/api/hip4-analytics/oi-eod | Raw: https://loris.tools/docs/md/api/hip4-analytics/oi-eod -->

# EOD OI

**Tier:** Pro

`GET /hip4-analytics/oi-eod`

End-of-day two-sided HIP-4 trading open interest — shares and USD values, with settlement legs excluded. Returns daily OI snapshots that can be filtered by outcome ID or scoped to a minimum date. Use it to track how overall prediction market positioning has evolved, or chart OI for a specific outcome.

---

## Authentication

Requires Pro tier or higher. Free and Dev tiers do not have access (returns 403).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `by_outcome` | string | No | Set to `1` or `true` for per-outcome rows. |
| `outcome_id` | integer | No | Filter to a specific outcome market. |
| `start` | string (ISO 8601 or YYYY-MM-DD) | No | Earliest date to include. Legacy `min_day` remains supported as a compatibility alias. |
| `venue` | string | No | Restrict open interest to one stored HIP-4 venue: `out` for Outcome.xyz or `skew` for Skew Markets. Omit it for all deployers. |

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/hip4-analytics/oi-eod?start=2026-06-01&venue=skew"
```

## Example response

```json
{
  "success": true,
  "start": "2026-06-01",
  "data": [
    { "day": "2026-06-01", "oi_usd": 12400000, "oi_shares": 84200 },
    { "day": "2026-06-02", "oi_usd": 13200000, "oi_shares": 89800 }
  ],
  "default_min_day": "2026-01-01"
}
```

## Errors

- `400` — Invalid start or venue value.
- `403` — Your tier does not have access. Upgrade to Pro.

## Related

- [Dashboard](/docs/api/hip4-analytics/dashboard)
- [Trader Leaderboard](/docs/api/hip4-analytics/leaderboard)
- [Outcome Detail](/docs/api/hip4-analytics/outcome-detail)

---

<!-- Source: https://loris.tools/docs/api/priority-fees | Raw: https://loris.tools/docs/md/api/priority-fees -->

# Priority Fees

Read priority fees are HYPE payments for earlier access to Hyperliquid data. Explore fee totals, payer concentration, auction results, slot time shares, and winning prices in HYPE and historical USDC values.

Compare read and write fees in the interactive [Hyperliquid Priority Fees Dashboard](/priority-fees).

## Endpoints

| Method | Path | Tier | Summary |
|--------|------|------|---------|
| GET | [/priority-fees/dashboard](/docs/api/priority-fees/dashboard) | Free | Read priority fee totals, payer concentration, payment history, and auction activity for the selected range. The response includes HYPE amounts and their historical USDC values. |
| GET | [/priority-fees/slots](/docs/api/priority-fees/slots) | Free | Completed auction results, participant time shares, daily spending by IP, and monthly totals for each reported read priority slot. |
| GET | [/priority-fees/winners](/docs/api/priority-fees/winners) | Free | Exact winning prices and priority holding intervals for one slot over the selected range. Prices are returned per interval without hourly or daily averaging. |

Requires a valid API key. Each endpoint accepts `range=4h`, `1d`, `7d`, `30d`, or `all`; the default is `all`. Available history begins on 10 April 2026. The Winners endpoint also accepts `slot=0`, `1`, or `2`, defaulting to `0`.

## Rate limits

| Free | Dev | Pro | Team |
|------|-----|-----|------|
| 30/min | 60/min | 120/min | 120/min |

All priority-fee endpoints, for every range, use the live request quota. This quota is shared with other live endpoints and across all API keys on your account.

On a `429` response, wait for the `Retry-After` period before retrying. See [Rate limits](/docs/rate-limits).

---

<!-- Source: https://loris.tools/docs/api/priority-fees/dashboard | Raw: https://loris.tools/docs/md/api/priority-fees/dashboard -->

# Priority Fees Dashboard API

**Tier:** Free

`GET /priority-fees/dashboard`

Read priority fee totals, payer concentration, payment history, and auction activity for the selected range. The response includes HYPE amounts and their historical USDC values.

Explore gossip auctions and interactive fee charts in [Hyperliquid Read Priority Fees Analytics](/priority-fees/read).

## Authentication

Requires a valid API key in the X-Api-Key header. Available on all plans.

## Rate limits

| Free | Dev | Pro | Team |
|------|-----|-----|------|
| 30/min | 60/min | 120/min | 120/min |

All priority-fee endpoints, for every range, use the live request quota. This quota is shared with other live endpoints and across all API keys on your account.

On a `429` response, wait for the `Retry-After` period before retrying. See [Rate limits](/docs/rate-limits).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | 4h, 1d, 7d, 30d, or all. Defaults to all. All available history begins on 10 April 2026. |

## Response fields

| Field | Meaning |
|-------|---------|
| `range, start_time, end_time` | Selected range and its UTC bounds. |
| `interval, token` | Timeseries buckets are hour for 4h and 1d, and day for 7d, 30d, and all. The payment token is HYPE. |
| `summary` | Total fees, payments, unique payers, payer concentration, auction counts, average closing prices, and the largest Slot 0 time share. |
| `timeseries` | Bucketed fees, cumulative fees, payments, unique payers, auction counts, and average closing prices. |
| `payer_timeseries` | Wallet series definitions and bucketed amounts. Each values dictionary contains HYPE amounts; usdc_values contains historical USDC estimates using the same series keys. |
| `payers` | Leading payer wallets with amounts, payment counts, fee shares, auction fields, and last_payment_at. The list includes the top 50 by HYPE paid and the top 50 by USDC value; overlapping wallets appear once, so it can contain up to 100 rows. |
| `attributions` | Payment totals grouped by wallet, IP, and slot_id, with fee shares and per-IP/slot auction results. |
| `slots` | Auction counts, filled and empty counts, average and maximum closing prices, and the last auction time for each slot. |
| `recent_payments` | Up to 50 payments, newest first, including time, block_number, hash, users, wallet, slot_id, ip, and HYPE/USDC amounts. |
| `metadata` | coverage_end_time and generated_at are UTC timestamps. fee_scope is read. |

## Reading the response

- Amounts ending in _hype are paid in HYPE. Amounts ending in _usdc are historical USDC value estimates, not additional USDC payments.
- Timestamps are UTC. Use metadata.coverage_end_time for the end of the reported data and metadata.generated_at for the time the analytics result was generated.
- Null means no reported value. It is distinct from a genuine zero.
- Payer and attribution share_pct and share_usdc_pct both measure the percentage of total fees paid by historical USDC value. Summary largest_payer_share_pct and top5_payer_share_pct use the same basis as their _usdc_pct counterparts.
- Attribution auction_win_share_pct is the IP address's wins divided by all completed auctions in that slot, including empty auctions. It does not measure the wallet's share across every slot.
- summary.largest_slot_0_time_share_pct is the largest participant share of recorded Slot 0 priority time. Empty intervals remain in the denominator. See Slots for participant-level time shares.
- Timeseries cumulative fees accumulate within the selected range. Result arrays in the example are shortened for readability.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/priority-fees/dashboard?range=4h"
```

## Example response

```json
{
  "range": "4h",
  "start_time": "2026-11-01T00:00:00Z",
  "end_time": "2026-11-01T04:00:00Z",
  "interval": "hour",
  "token": "HYPE",
  "summary": {
    "total_fees_hype": 1.25,
    "total_fees_usdc": 50,
    "payment_count": 1,
    "unique_payers": 1,
    "largest_payer_share_pct": 100,
    "largest_payer_share_usdc_pct": 100,
    "largest_slot_0_time_share_pct": 50,
    "top5_payer_share_pct": 100,
    "top5_payer_share_usdc_pct": 100,
    "auction_count": 3,
    "filled_auction_count": 1,
    "empty_auction_count": 2,
    "avg_auction_price_hype": 1.25,
    "avg_auction_price_usdc": 50
  },
  "timeseries": [
    {
      "time": "2026-11-01T00:00:00Z",
      "fees_hype": 1.25,
      "fees_usdc": 50,
      "payment_count": 1,
      "cumulative_fees_hype": 1.25,
      "cumulative_fees_usdc": 50,
      "unique_payers": 1,
      "auction_count": 3,
      "filled_auction_count": 1,
      "avg_auction_price_hype": 1.25,
      "avg_auction_price_usdc": 50
    }
  ],
  "payer_timeseries": {
    "series": [
      {
        "key": "0x0000000000000000000000000000000000000001",
        "address": "0x0000000000000000000000000000000000000001"
      }
    ],
    "data": [
      {
        "time": "2026-11-01T00:00:00Z",
        "values": {
          "0x0000000000000000000000000000000000000001": 1.25
        },
        "usdc_values": {
          "0x0000000000000000000000000000000000000001": 50
        }
      }
    ]
  },
  "payers": [
    {
      "address": "0x0000000000000000000000000000000000000001",
      "fees_hype": 1.25,
      "fees_usdc": 50,
      "payment_count": 1,
      "share_pct": 100,
      "share_usdc_pct": 100,
      "auction_wins": null,
      "auction_rounds": 3,
      "auction_win_share_pct": null,
      "last_payment_at": "2026-11-01T00:00:00Z"
    }
  ],
  "attributions": [
    {
      "wallet": "0x0000000000000000000000000000000000000001",
      "ip": "192.0.2.1",
      "slot_id": 0,
      "fees_hype": 1.25,
      "fees_usdc": 50,
      "payment_count": 1,
      "share_pct": 100,
      "share_usdc_pct": 100,
      "auction_wins": 1,
      "auction_rounds": 3,
      "auction_win_share_pct": 33.33333333333333,
      "last_payment_at": "2026-11-01T00:00:00Z"
    }
  ],
  "slots": [
    {
      "slot_id": 0,
      "auction_count": 3,
      "filled_auction_count": 1,
      "empty_auction_count": 2,
      "avg_price_hype": 1.25,
      "avg_price_usdc": 50,
      "max_price_hype": 1.25,
      "max_price_usdc": 50,
      "last_auction_at": "2026-11-01T00:06:00Z"
    }
  ],
  "recent_payments": [
    {
      "time": "2026-11-01T00:00:00Z",
      "block_number": 123456789,
      "hash": "0x1111111111111111111111111111111111111111111111111111111111111111",
      "users": [
        "0x0000000000000000000000000000000000000001"
      ],
      "amount_hype": 1.25,
      "amount_usdc": 50,
      "wallet": "0x0000000000000000000000000000000000000001",
      "slot_id": 0,
      "ip": "192.0.2.1"
    }
  ],
  "metadata": {
    "coverage_end_time": "2026-11-01T04:00:00Z",
    "generated_at": "2026-11-01T04:05:00Z",
    "fee_scope": "read"
  }
}
```

## Errors

- `400` — Invalid range.
- `405` — Use GET for this endpoint.
- `429` — Live request quota exceeded. Wait for `Retry-After` before retrying; see [Rate limits](/docs/rate-limits).
- `503` — Priority fee data is temporarily unavailable. Try again shortly.

For authentication errors and other shared API responses, see [Errors](/docs/errors).

## Related

- [Priority Fees](/docs/api/priority-fees)
- [Priority Fee Slots](/docs/api/priority-fees/slots)
- [Priority Fee Winners](/docs/api/priority-fees/winners)
- [Rate limits](/docs/rate-limits)

---

<!-- Source: https://loris.tools/docs/api/priority-fees/slots | Raw: https://loris.tools/docs/md/api/priority-fees/slots -->

# Priority Fee Slots

**Tier:** Free

`GET /priority-fees/slots`

Completed auction results, participant time shares, daily spending by IP, and monthly totals for each reported read priority slot.

## Authentication

Requires a valid API key in the X-Api-Key header. Available on all plans.

## Rate limits

| Free | Dev | Pro | Team |
|------|-----|-----|------|
| 30/min | 60/min | 120/min | 120/min |

All priority-fee endpoints, for every range, use the live request quota. This quota is shared with other live endpoints and across all API keys on your account.

On a `429` response, wait for the `Retry-After` period before retrying. See [Rate limits](/docs/rate-limits).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | 4h, 1d, 7d, 30d, or all. Defaults to all. All available history begins on 10 April 2026. |

## Response fields

| Field | Meaning |
|-------|---------|
| `range, start_time, end_time` | Selected range and its UTC bounds. |
| `slots[].slot_id` | Read priority slot identifier. |
| `slots[].latest_round` | Most recent completed auction, or null. Includes its bidding window, winner IP/wallet, and closing price. |
| `slots[].history` | Up to 50 completed auctions, newest first, with the same fields as latest_round. |
| `slots[].price_timeseries` | Closing prices by IP at metadata.price_interval granularity. Hourly and daily points are average closing prices for that IP within the bucket; round_count is the number of auctions represented. |
| `slots[].daily_spend` | Daily payment amounts by IP. series declares the keys used by each data point: values is HYPE, and usdc_values is historical USDC. May include an Other series. |
| `slots[].monthly` | Monthly rows by IP with wins, auction_rounds, auction_win_share_pct, share_pct, fees, payment_count, and average closing prices. Months follow the selected range. |
| `slots[].time_share` | observed_seconds is recorded priority time, including empty intervals. rows contains participant key, wallet, ip, seconds held, and share_pct. |
| `slots[].winner_timeline` | Priority holding intervals for the most recent 24 hours, independently of the selected range. Each row identifies the winner and the closing price that secured that interval. |
| `slots[].winner_timeline_start, slots[].winner_timeline_end` | UTC bounds for winner_timeline. |
| `metadata` | price_interval is round for 4h/1d, hour for 7d, and day for 30d/all. coverage_end_time and generated_at are UTC timestamps. |

## Reading the response

- Amounts ending in _hype are paid in HYPE. Amounts ending in _usdc are historical USDC value estimates, not additional USDC payments.
- Timestamps are UTC. Use metadata.coverage_end_time for the end of the reported data and metadata.generated_at for the time the analytics result was generated.
- Null means no reported value. It is distinct from a genuine zero.
- Auction results in latest_round and history describe the bidding window. The resulting winner holds priority in the following interval, shown in winner_timeline and Winners.
- A time_share row is seconds / observed_seconds × 100. Empty recorded intervals count in observed_seconds and have no participant row, so participant shares can sum to less than 100%. A wallet can combine time across multiple IP addresses; ip may then be null.
- In monthly rows, auction_win_share_pct includes empty auctions in its denominator. The separate share_pct is the share of filled auctions won in the same slot and month.
- The _usd price/fee fields and usd_values are compatibility aliases for the corresponding _usdc fields and usdc_values. Use the _usdc names for new integrations.
- Use range=all to retrieve all available monthly totals. For exact per-auction prices across longer ranges, use Winners. Result arrays in the example are shortened for readability.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/priority-fees/slots?range=4h"
```

## Example response

```json
{
  "range": "4h",
  "start_time": "2026-11-01T00:00:00Z",
  "end_time": "2026-11-01T04:00:00Z",
  "slots": [
    {
      "slot_id": 0,
      "latest_round": {
        "window_start": "2026-11-01T00:03:00Z",
        "window_end": "2026-11-01T00:06:00Z",
        "winner_ip": null,
        "winner_wallet": null,
        "closing_price_hype": null,
        "closing_price_usdc": null,
        "closing_price_usd": null
      },
      "history": [
        {
          "window_start": "2026-11-01T00:03:00Z",
          "window_end": "2026-11-01T00:06:00Z",
          "winner_ip": null,
          "winner_wallet": null,
          "closing_price_hype": null,
          "closing_price_usdc": null,
          "closing_price_usd": null
        },
        {
          "window_start": "2026-11-01T00:00:00Z",
          "window_end": "2026-11-01T00:03:00Z",
          "winner_ip": null,
          "winner_wallet": null,
          "closing_price_hype": null,
          "closing_price_usdc": null,
          "closing_price_usd": null
        },
        {
          "window_start": "2026-10-31T23:57:00Z",
          "window_end": "2026-11-01T00:00:00Z",
          "winner_ip": "192.0.2.1",
          "winner_wallet": "0x0000000000000000000000000000000000000001",
          "closing_price_hype": 1.25,
          "closing_price_usdc": 50,
          "closing_price_usd": 50
        }
      ],
      "price_timeseries": [
        {
          "time": "2026-11-01T00:00:00Z",
          "ip": "192.0.2.1",
          "closing_price_hype": 1.25,
          "closing_price_usdc": 50,
          "closing_price_usd": 50,
          "round_count": 1
        }
      ],
      "daily_spend": {
        "series": [
          {
            "key": "192.0.2.1",
            "ip": "192.0.2.1",
            "wallet": null
          }
        ],
        "data": [
          {
            "time": "2026-11-01T00:00:00Z",
            "values": {
              "192.0.2.1": 1.25
            },
            "usdc_values": {
              "192.0.2.1": 50
            },
            "usd_values": {
              "192.0.2.1": 50
            }
          }
        ]
      },
      "monthly": [
        {
          "month": "2026-11",
          "ip": "192.0.2.1",
          "wallet": null,
          "wins": 1,
          "auction_rounds": 3,
          "auction_win_share_pct": 33.33333333333333,
          "share_pct": 100,
          "fees_hype": 1.25,
          "fees_usdc": 50,
          "fees_usd": 50,
          "payment_count": 1,
          "avg_closing_price_hype": 1.25,
          "avg_closing_price_usdc": 50,
          "avg_closing_price_usd": 50
        }
      ],
      "time_share": {
        "observed_seconds": 360,
        "rows": [
          {
            "key": "0x0000000000000000000000000000000000000001",
            "wallet": "0x0000000000000000000000000000000000000001",
            "ip": "192.0.2.1",
            "seconds": 180,
            "share_pct": 50
          }
        ]
      },
      "winner_timeline": [
        {
          "window_start": "2026-11-01T00:00:00Z",
          "window_end": "2026-11-01T00:03:00Z",
          "winner_ip": "192.0.2.1",
          "winner_wallet": "0x0000000000000000000000000000000000000001",
          "closing_price_hype": 1.25,
          "closing_price_usdc": 50,
          "closing_price_usd": 50
        },
        {
          "window_start": "2026-11-01T00:03:00Z",
          "window_end": "2026-11-01T00:06:00Z",
          "winner_ip": null,
          "winner_wallet": null,
          "closing_price_hype": null,
          "closing_price_usdc": null,
          "closing_price_usd": null
        }
      ],
      "winner_timeline_start": "2026-10-31T04:00:00Z",
      "winner_timeline_end": "2026-11-01T04:00:00Z"
    }
  ],
  "metadata": {
    "price_interval": "round",
    "coverage_end_time": "2026-11-01T04:00:00Z",
    "generated_at": "2026-11-01T04:05:00Z"
  }
}
```

## Errors

- `400` — Invalid range.
- `405` — Use GET for this endpoint.
- `429` — Live request quota exceeded. Wait for `Retry-After` before retrying; see [Rate limits](/docs/rate-limits).
- `503` — Priority fee data is temporarily unavailable. Try again shortly.

For authentication errors and other shared API responses, see [Errors](/docs/errors).

## Related

- [Priority Fees](/docs/api/priority-fees)
- [Priority Fees Dashboard API](/docs/api/priority-fees/dashboard)
- [Priority Fee Winners](/docs/api/priority-fees/winners)
- [Gossip (Read) Priority Fees](/priority-fees/read)

- [Rate limits](/docs/rate-limits)

---

<!-- Source: https://loris.tools/docs/api/priority-fees/winners | Raw: https://loris.tools/docs/md/api/priority-fees/winners -->

# Priority Fee Winners

**Tier:** Free

`GET /priority-fees/winners`

Exact winning prices and priority holding intervals for one slot over the selected range. Prices are returned per interval without hourly or daily averaging.

## Authentication

Requires a valid API key in the X-Api-Key header. Available on all plans.

## Rate limits

| Free | Dev | Pro | Team |
|------|-----|-----|------|
| 30/min | 60/min | 120/min | 120/min |

All priority-fee endpoints, for every range, use the live request quota. This quota is shared with other live endpoints and across all API keys on your account.

On a `429` response, wait for the `Retry-After` period before retrying. See [Rate limits](/docs/rate-limits).

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `range` | string | No | 4h, 1d, 7d, 30d, or all. Defaults to all. All available history begins on 10 April 2026. |
| `slot` | integer | No | 0, 1, or 2. Defaults to 0. |

## Response fields

| Field | Meaning |
|-------|---------|
| `range, slot_id` | Selected range and slot. |
| `start_time, end_time` | UTC bounds of the reported history. end_time may be null when there is no reported interval. |
| `interval, timestamp_unit` | interval is round and timestamp_unit is us (microseconds). |
| `time_origin_us` | UTC Unix timestamp in microseconds, matching start_time. |
| `series` | Participant dictionary. Each entry has key, wallet, and ips. A key is the wallet address when present; otherwise it is ip: followed by the IP address, and wallet is null. |
| `data` | Chronological five-element tuples: [offset_us, duration_us, series_index, closing_price_hype, closing_price_usdc]. |

### Tuple positions

| Position | Meaning |
|----------|---------|
| `0: offset_us` | Interval start offset from time_origin_us, in microseconds. |
| `1: duration_us` | Interval duration in microseconds. |
| `2: series_index` | Zero-based index into series, or null for an empty interval. |
| `3: closing_price_hype` | HYPE closing price for the winner, or null. |
| `4: closing_price_usdc` | Historical USDC value of that closing price, or null. |

## Reading the response

- Compute start_us = time_origin_us + offset_us and end_us = start_us + duration_us. Divide either value by 1,000 to construct a JavaScript Date. Preserve the microsecond values for exact interval arithmetic.
- An interval starts when the winner gains priority, after the auction closes. Intervals are clipped to the selected range.
- A null series_index denotes a recorded empty interval; both prices are then null. Time with no returned interval must not be counted as an empty auction or extended from the previous winner.
- Each series entry can contain multiple IP addresses for the same wallet. The ips list belongs to the participant across the response; the tuple does not select one IP from that list.
- HYPE is the payment currency. USDC is a historical value estimate. Null differs from a genuine zero. Result arrays in the example are shortened for readability.

## Example request

```bash
curl -H "X-Api-Key: lk_live_your_key_here" \
  "https://api.loris.tools/priority-fees/winners?range=4h&slot=0"
```

## Example response

```json
{
  "range": "4h",
  "slot_id": 0,
  "start_time": "2026-11-01T00:00:00Z",
  "end_time": "2026-11-01T04:00:00Z",
  "interval": "round",
  "timestamp_unit": "us",
  "time_origin_us": 1793491200000000,
  "series": [
    {
      "key": "0x0000000000000000000000000000000000000001",
      "wallet": "0x0000000000000000000000000000000000000001",
      "ips": [
        "192.0.2.1"
      ]
    }
  ],
  "data": [
    [
      0,
      180000000,
      0,
      1.25,
      50
    ],
    [
      180000000,
      180000000,
      null,
      null,
      null
    ]
  ]
}
```

## Errors

- `400` — Invalid range or slot. Supported slot values are 0, 1, and 2.
- `405` — Use GET for this endpoint.
- `429` — Live request quota exceeded. Wait for `Retry-After` before retrying; see [Rate limits](/docs/rate-limits).
- `503` — Priority fee data is temporarily unavailable. Try again shortly.

For authentication errors and other shared API responses, see [Errors](/docs/errors).

## Related

- [Priority Fees](/docs/api/priority-fees)
- [Priority Fees Dashboard API](/docs/api/priority-fees/dashboard)
- [Priority Fee Slots](/docs/api/priority-fees/slots)
- [Gossip (Read) Priority Fees](/priority-fees/read)

- [Rate limits](/docs/rate-limits)
