Account

Get position funding

Changed on

Get funding accrued by the position currently open in a market, measured from when that position was opened (from flat, or from a long/short flip). Unlike unsettled funding, this value survives partial closes.

get/v1/account/position/funding

Request

Query parameters

market_idstring uint64

Market ID to query

accountstring

Account address to query (hex format)

Response

A successful response.

opened_atstring int64

Block timestamp of the trade that opened the current position (Unix nano). 0 when there is no open position, or when no open record was found.

settled_fundingstring

Funding settled on trades since the position was opened.

unsettled_fundingstring

Funding accrued since the last settlement: (accumulatedFunding - lastFundingPayment) * size.

total_accrued_fundingstring

settled_funding + unsettled_funding.

Changes