Skip to main content
Version: mainnet (v0.72)

Estimate fee

Estimate the fee that would be incurred for submitting an order with the specified price and size on the market.

Query Parameters
    marketId string required

    Market ID, used to specify the fee factors.

    price string required

    Price at which the potential order is expected to trade.

    size uint64 required

    Size at which the potential order is expected to trade.

Responses

A successful response.


Schema
    fee object

    Summary of the estimated fees for this order if it were to trade now.

    infrastructureFee string

    Fee amount paid for maintaining the Vega infrastructure. This field is an unsigned integer scaled using the asset's decimal places.

    liquidityFee string

    Fee amount paid to market makers. This field is an unsigned integer scaled to the asset's decimal places.

    makerFee string

    Fee amount paid to the non-aggressive party of the trade. This field is an unsigned integer scaled to the asset's decimal places.

Loading...