Skip to main content
Version: testnet (v0.75)

Estimate fee

GET 

/api/v2/estimate/fee

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

Request

Query Parameters

    marketId stringrequired

    Market ID, used to specify the fee factors.

    price stringrequired

    Price at which the potential order is expected to trade.

    size uint64required

    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.

    infrastructureFeeReferrerDiscount string

    Discount on infrastructure fee for eligible referrer.

    infrastructureFeeVolumeDiscount string

    Discount on infrastructure fee based on the taker volume.

    liquidityFee string

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

    liquidityFeeReferrerDiscount string

    Discount on liquidity fee for eligible referrer.

    liquidityFeeVolumeDiscount string

    Discount on liquidity fee basedo on taker volume.

    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.

    makerFeeReferrerDiscount string

    Referrer discounts. Discount on maker fee for eligible referrer.

    makerFeeVolumeDiscount string

    Volume discounts. Discount on maker fee based on the taker volume.

Loading...