For the complete documentation index, see llms.txt. This page is also available as Markdown.

Funding

Real-time funding rates and next funding time for futures pairs.

Use this stream to show the funding each side of a position will pay or receive at the next funding time.

Endpoint

wss://futures-marketdata-service.outpoll.com/ws/funding

Authentication

No authentication required.

Message Envelope

Field
Type
Description

pi

integer

Pair ID

nft

integer

Next funding time, epoch ms

iv

integer

Funding interval, ms

elr

number

Funding rate for long positions

esr

number

Funding rate for short positions

Message Types

Type
Direction
Description

subscribe / unsubscribe

Client → Server

Start or stop pairs

Funding

Server → Client

Current funding state of one pair

Error

Server → Client

{"er", "msg"} — see Errors

ping / pong

Both

Plain-text keep-alive

Subscribe

Every pair:

Server confirmation: there is no confirmation frame. When you subscribe by pair ID, the pair's current funding frame arrives immediately. With all: true, frames arrive as each pair's funding is refreshed.

When Frames Are Sent

Funding rates are refreshed periodically, and a frame is sent on each refresh. Each frame is the complete funding state of one pair — replace the previous value.

Funding Rules

  • Funding is settled every 8 hours, at 00:00, 08:00 and 16:00 UTC. nft is the next of these times.

  • Rates are fractions per funding interval: 0.0001 = 0.01 %.

  • Each side has its own rate. Positive = the side pays, negative = the side receives.

  • Funding amount for a position = position size × mark price × rate of its side. The amount a receiving side gets can be capped by what the paying side contributes.

Funding Payload

Field
Type
Description

pi

integer

Pair ID

nft

integer

Next funding time, epoch ms, UTC

iv

integer

Funding interval in ms (28800000 = 8 hours)

elr

number

Rate applied to long positions at nft; positive = longs pay

esr

number

Rate applied to short positions at nft; positive = shorts pay

Python Example

Was this helpful?