Repository navigation
🏷️ 3.3.0
🚀 API Specifications Release 3.3.0
The Fee v3 fee decomposition on perp executions: four new optional fields,
and corrected presence semantics on the existing maker-fee fields.
📋 Updated Specifications
- OpenAPI Trading API v2:
3.3.0 - AsyncAPI Trading WebSocket API v2:
3.3.0 - AsyncAPI ws-exec WebSocket API v2:
3.3.0
✨ New fields (all optional, additive)
Four components of PerpExecution, all rUSD amounts, exposed on both the REST
perpExecutions endpoints and the WS perpExecutions channels:
protocolFeeCredit— the portion oftakerFeecredited to the protocol
fee collector.referrerFeeCredit— the portion credited to the taker's referrer. Zero
when the taker has no referrer.takerRebateCredit— the portion routed to the taker-rebate settlement
bucket. It is part of the gross taker debit and is not necessarily an
immediate net credit back to the taker.poolFeeCredit— the portion credited to the passive pool.
They are present together on a Fee v3 fill and absent together on a pre–Fee v3
execution; a partial set is never synthesized. Whenever present:
takerFee = protocolFeeCredit + referrerFeeCredit + takerRebateCredit + poolFeeCredit