Skip to main content
POST
GetPositionFeeInfo

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Connect-Protocol-Version
enum<number>
default:1
required

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

Available options:
1
Connect-Timeout-Ms
number

Define the timeout, in ms

Body

application/json
address
string

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

positionId
string<int64>

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

marketId
string<int64>

Market the position belongs to.

Response

200 - application/json

Success

fees
number<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.

estimatedRebate
number<double>

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