market.funding is a public market-scoped channel. Authentication: none.
Payload schema: RealtimeMarketFundingPayload. Source status: live.
fundingRateBps follows one sign rule. A positive rate means long positions pay and short positions receive; a negative rate means short positions pay and long positions receive. Funding pays the interval premium capped at 75 basis points, divided by 8, every hour: at most 9.375 basis points of the index price an hour. This rate is shown in whole basis points rounded toward zero, so it can show less than a position pays (a 75 basis point premium pays 9.375 basis points and shows 9) and shows 0 for an hour that pays less than 1 basis point, while positions still pay. Take exact amounts and who pays from the funding index on market.funding: fundingPaymentPerBaseAtoms and cumulativeFundingIndexAtoms. A positive fundingPaymentPerBaseAtoms, or a rise in cumulativeFundingIndexAtoms, means long positions pay and short positions receive; a negative one means short positions pay and long positions receive. A position’s payment, in settlement-asset atoms, is its base quantity in quantity atoms times the funding index amount in price atoms, times 10^settlementAssetDecimals, divided by 10^(priceScale + quantityScale), with the scales of the market catalog. For example, at priceScale 2, quantityScale 8 and settlementAssetDecimals 6, an index step of 6,093 on a long of 10,000,000 quantity atoms pays 6,093,000 atoms. Each settlement moves the account’s cash by that amount rounded down to a whole atom, so a payment rounds up and a receipt rounds down, and carries the remaining fraction into the account’s next funding settlement. cumulativeFundingIndexAtoms is the running index; its change between two checkpoints is the funding index amount for that period.
Subscribe envelope
Send this exact JSON shape.requestId is required and there is no action field.
The series field is not sent for this channel.
Accepted frame
The subscription is active only after a matchingrealtime-subscription-accepted/v1 frame arrives.
Data frame
The envelope isrealtime-stream/v1; its payload validates against RealtimeMarketFundingPayload.
Worked example
- Send the subscribe envelope with request id
subscribe-market-funding. - Wait for the accepted frame with the same request id; receiving any other frame does not prove this subscription.
- Process the data frame at sequence
1and validate its payload asRealtimeMarketFundingPayload.