v1

latestOpenAPI 3.1.0UNLICENSED2026-07-26216788.0 KB
Positions

GetPositionFeeInfo

Returns the trading fee paid and the rebate accrued so far for one specific position, identified by the composite key position_id + market_id + address (owner). All three must match an existing position, or the request fails.

post/position_service.v1.PositionService/GetPositionFeeInfo

Headers

Connect-Protocol-Version1 required

Define the version of the Connect protocol. If omitted, use 1.

Connect-Timeout-Msnumber

Define the timeout, in ms

Request body

addressstring

Wallet address that owns the position. Must match the position's actual owner, or the lookup fails.

positionIdstring int64

On-chain position identifier (same as the opening order's ID).

marketIdstring int64

Market the position belongs to.

Response

Success

feesnumber double

Trading fee paid when the position was opened, in USDC, recomputed from the position's entry price and the market's fee rate. -1 if required market configuration is unavailable.

estimatedRebatenumber double

Rebate accrued to the position so far, in USDC — the same calculation as Position.estimatedRebate. -1 if required market configuration is unavailable.