---
title: "Get user funding rate history"
method: GET
path: "/api/v1/funding_rate_history"
tags: ["Account"]
---

# Get user funding rate history

`GET /api/v1/funding_rate_history`

Retrieve funding rate payment history for a specific user.
Shows funding payments including the direction, amount, and associated fees.
Supports filtering by market, side, and timestamp range. Supports sorting and pagination. Page size is capped at 200.

## Query parameters

- `account` string, required
- `market` string
- `side` 'buy' | 'sell' — Order side filter: buy (long) or sell (short). For orders, maps to `is_buy` column. For trades/funding, maps to `action IN ('OpenLong','CloseShort')` (buy) or `action IN ('CloseLong','OpenShort')` (sell).
- `limit` integer
- `offset` integer
- `start_timestamp` integer
- `end_timestamp` integer
- `sort_key` 'timestamp' — Sort key for history endpoints
- `sort_dir` 'ASC' | 'DESC'

## Response `200`

Funding rate history retrieved successfully

- PaginatedResponseFundingRateHistory
  - `items` object[], required — The items in the current page
    - `action` string, required
    - `fee_amount` number, double, required
    - `is_rebate` boolean, required
    - `market` string, required
    - `realized_funding_amount` number, double, required — Realized funding amount in USDC - Negative value: trader PAID funding (e.g., long position with positive funding rate) - Positive value: trader RECEIVED funding (e.g., short position with positive funding rate) - Zero: no funding accrued
    - `size` number, double, required
    - `transaction_unix_ms` integer, required
  - `total_count` integer, nullable — The total number of items across all pages. Optional: history endpoints omit this field to avoid expensive COUNT(*) queries.

## Other responses

- `500` — Database error

---

[API](https://skmtc.net/decibel/apis/decibel-trading-api.md) · [All operations](https://skmtc.net/decibel/apis/decibel-trading-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/decibel/decibel-trading-api/revisions/37a02083ff59/schema)
