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

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.

    party string

    Party ID, used to get discount details.

Responses

A successful response.

Schema
    fee object

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

    buyBackFee string

    Fee amount used to purchase governance tokens via regular auctions (network wide).

    highVolumeMakerFee string

    Fee paid by the taker to the maker if the maker is eligible.

    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.

    treasuryFee string

    Fee amount sent to network treasury for later use based on governance actions (network wide).

Loading...