Skip to main content
POST
GetEstimatedFees

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
marketId
string<int64>

Market to estimate the fee for.

margin
number<float>

Collateral you plan to post for the position, in quote asset units.

leverage
number<float>

Leverage multiplier you intend to use. Combined with the market's configured trade-fee rate to compute the effective fee rate.

size
number<float>

Currently unused by the server. Reserved for future fee calculations that account for position size.

price
number<float>

Currently unused by the server. Reserved for future fee calculations that account for entry price.

Response

200 - application/json

Success

fees
number<float>

Estimated fee in USDC, deducted from margin upfront. -1 if the market has no trade-fee percentage configured.