Skip to main content
Package: monaco.api.fees Source: protos/api/fees.proto Use FeesService to simulate fees before placing an order, to look up your current fee tier, and to read any pair’s public fee schedule.

Notes

  • Fee simulation helps estimate trading costs before order entry. application_maker_fee and application_maker_fee_bps quote the application’s maker add-on if the order fills as the maker, and maker_total_receipt nets it off. application_taker_fee_cbps and application_maker_fee_cbps are the application rates in centi-bps (1 bps = 100 cbps), the rates the two fee amounts are computed from; the _bps fields are the same rates truncated to whole bps. builder_fee_clamped and builder_maker_fee_clamped are true when the application’s taker or maker rate is above the cap and the cap is charged. The application rates resolve for the caller’s wallet and the pair, so they can differ from the application’s default.
  • SimulateFeesResponse carries the caller’s rate in monaco_taker_fee_bps_exact and monaco_maker_rebate_bps_exact — decimal basis-points strings (e.g. "6.5", negative for a rebate, positive for a maker fee) equal to the exact rate the ledger charges the caller, whether it comes from their volume tier or from a tier or rate assigned to their wallet, their frontend or the pair. Fee rates are tiered per account and are not fields of TradingPairData or the account response: read a pair’s schedule with GetFeeSchedule and your own tier and rate with GetMyFeeTier.
  • GetMyFeeTier returns the authenticated caller’s fee tier, rolling 14-day weighted/spot/perp volumes, the volume needed to reach the next tier, and the fee schedule that applies to the caller on the requested pair, up to 20 tiers (FeeTierScheduleRow). rate_source says why the rate applies (volume, tier_override or custom), rate_scope says which kind of rate it is (wallet_application, wallet, application, pair or market_type), and maker_fee_bps and taker_fee_bps are the effective rates on the pair (negative maker = rebate, positive = fee). current_tier_level is the caller’s tier in fee_schedule: the tier the rates come from, or, for a fixed custom rate (one rate set for the wallet or frontend), the tier the caller’s volume earns on the pair’s schedule (else the market type’s), with the rate in maker_fee_bps and taker_fee_bps; volume_to_next_tier and next_tier_level are omitted at its top tier and when the rate is an assigned tier or a fixed custom rate. Fee tiers are recalculated daily from a trailing 14-day weighted volume (14d perp + 2.5 × 14d spot), summed across every application the wallet trades through. updated_at is when those volumes were last computed (RFC 3339, UTC), omitted before the first computation.
  • GetFeeSchedule is public and needs no authentication. GetFeeScheduleRequest takes trading_pair_id; GetFeeScheduleResponse echoes trading_pair_id and lists the pair’s public Monaco fee tiers in fee_schedule (the schedule set for the pair, or its market type’s default; never a rate set for a wallet or a frontend) (FeeTierScheduleRow: tier level, weighted 14-day volume threshold, maker and taker fee in basis points, negative maker = rebate), ordered by tier level. A malformed trading_pair_id is INVALID_ARGUMENT; an unknown pair is NOT_FOUND. Use GetMyFeeTier for your own tier and rate.