PearPear
API IntegrationAPI SpecificationFees

Quote the trading fee and fee recipient

Returns the trading fee in canonical bps, the connector fee recipient and the derivation behind them for the authenticated user's selected trade account. The connector is taken from the trade account. Pass clientId to quote the same attribution route a trade would carry. Quoting never redeems a capped discount.

GET
/fee
x-api-key<token>

In: header

Query Parameters

clientId?string

Attribution route code (client_ids.code)

Length1 <= length <= 64

Header Parameters

X-Trade-Account-Id*string

UUID of the trade account the request acts on. Must belong to the authenticated user.

Formatuuid

Response Body

application/json

curl -X GET "https://example.com/fee" \  -H "X-Trade-Account-Id: 3fa85f64-5717-4562-b3fc-2c963f66afa6"
{  "feeRecipient": "string",  "baseBps": "3.5",  "overrideBps": "3.5",  "overrideScope": "user",  "discounts": [    {      "scope": "user",      "rate": "0.2"    }  ],  "finalBps": "3.5"}