GetEstimatedFees
Estimates the trading fee for opening a position, given the margin
you plan to post and the leverage you intend to use. The fee is
computed as if it were deducted from margin upfront, before the
position opens: fee = (rate / (1 + rate)) * margin, where rate
is the market’s configured trade-fee rate multiplied by leverage.
If the market has no trade-fee percentage configured, this returns
a successful response with fees: -1 rather than an error.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Define the version of the Connect protocol. If omitted, use 1.
1 Define the timeout, in ms
Body
Market to estimate the fee for.
Collateral you plan to post for the position, in quote asset units.
Leverage multiplier you intend to use. Combined with the market's configured trade-fee rate to compute the effective fee rate.
Currently unused by the server. Reserved for future fee calculations that account for position size.
Currently unused by the server. Reserved for future fee calculations that account for entry price.
Response
Success
Estimated fee in USDC, deducted from margin upfront. -1 if
the market has no trade-fee percentage configured.