feat(models): add fee tiers to perps fee schedule#185
Merged
kartojal merged 1 commit intoJul 24, 2026
Merged
Conversation
cesarenaldi
approved these changes
Jul 23, 2026
kartojal
deleted the
feature/dev-432-add-fee-tiers-to-perps-fee-schedule-in-sdks-and-docs
branch
July 24, 2026 09:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
PerpsFeeTiermodel (min_volume_30d,taker_fee_rate,maker_fee_rate) and atierstuple onPerpsFeeScheduleEntry, matching the updatedGET /v1/info/feescontract. Exported frompolymarket.models(root export omitted, following thePerpsRiskTierprecedent for nested tier models).The public-reads integration test now also asserts the fee schedule returns tiers.
Part of DEV-432.
Note
Low Risk
Additive Pydantic schema and export changes for fee parsing; no auth, trading, or withdrawal logic touched.
Overview
Aligns perps fee schedule models with the updated
GET /v1/info/feesresponse by modeling volume-based tiers alongside the existing category-level maker/taker rates.Introduces
PerpsFeeTier(min_volume_30d,taker_fee_rate,maker_fee_rate) and adds a requiredtierstuple onPerpsFeeScheduleEntry.PerpsFeeTieris exported from the perps and top-level model packages (same pattern as nested tier types likePerpsRiskTier).The public perps integration test now asserts the live fee schedule includes at least one tier.
Reviewed by Cursor Bugbot for commit 0083c9e. Bugbot is set up for automated code reviews on this repo. Configure here.