# Polymarket — Get Historical Funding

Get Polymarket Perps Funding History data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Polymarket, pass parameters such as end_timestamp, instrument_id, start_timestamp, and retrieve structured data including funding rate and funding observation timestamp for funding charts, and market context, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/polymarket/polymarket-get-historical-funding/43e1fc55-b6f3-48ec-b85c-0474bcfde95c/
API ID: 43e1fc55-b6f3-48ec-b85c-0474bcfde95c
Provider: Polymarket
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/v1/info/funding
Page update time: 2026-12-03T02:49:31.119Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:30.634Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Polymarket Perps Funding History API

Provide required instrument\_id, an integer from 0 to 4294967295. Optional start\_timestamp and end\_timestamp use milliseconds. data contains funding\_rate and timestamp observations, while more reports whether the source has further entries.

## What You Can Build

- **Funding charts**: Plot rate observations with their instrument and timestamp.
- **Market context**: Present funding separately from trading fees and account payments.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `data[].funding_rate` | Historical funding rate as a decimal string |
| `data[].timestamp` | Funding observation timestamp |
| `more` | Whether the source reports further entries |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Polymarket — Get Historical Funding request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "instrument_id": {
          "type": "integer",
          "description": "Instrument ID",
          "minimum": 0,
          "maximum": 4294967295
        },
        "start_timestamp": {
          "type": "integer",
          "description": "Start timestamp in milliseconds"
        },
        "end_timestamp": {
          "type": "integer",
          "description": "End timestamp in milliseconds"
        }
      },
      "required": [
        "instrument_id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "funding_rate": {
            "type": "string"
          },
          "timestamp": {
            "type": "integer"
          }
        }
      }
    },
    "more": {
      "type": "boolean"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/v1/info/funding?end_timestamp=1793282615000&instrument_id=6&start_timestamp=1793279015000' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "data": [
    {
      "funding_rate": "0.0000125",
      "timestamp": 1793282400018
    }
  ],
  "more": false
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which instrument identity is required?
Use the integer Perps instrument_id, from 0 to 4294967295. Prediction-market token IDs have a different role and format.

### Which time unit do the bounds use?
start_timestamp and end_timestamp are optional integer millisecond bounds. Keep them separate from epoch-second analytics filters.

### Does funding_rate report my actual payment?
No. It is an instrument rate observation. An account's realized funding payment depends on its position and settlement context.

### Can I send a cursor or page-size parameter?
This implementation exposes instrument_id and the two timestamp bounds, with no cursor or limit input. Inspect more and retain timestamps when managing time-scoped reads.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- Polymarket: https://openany.si/polymarket/polymarket-get-historical-funding/43e1fc55-b6f3-48ec-b85c-0474bcfde95c/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
