mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 16:28:06 +00:00
2.8 KiB
2.8 KiB
Fee Rates
Rate limits
- 1200 requests/min or 20 requests/sec per IP address. (weight = 2)
{% hint style="info" %} See more details in API Rate limits {% endhint %}
Request
{% tabs %} {% tab title="Websocket" %} Connect
WEBSOCKET [GATEWAY_WEBSOCKET_ENDPOINT]
Message
{
"type": "fee_rates",
"sender": "0x7a5ec2748e9065794491a8d29dcf3f9edb8d7c43000000000000000000000000"
}
{% endtab %}
{% tab title="REST (GET)" %} GET [GATEWAY_REST_ENDPOINT]/query?type=fee_rates&sender={sender}
{% endtab %}
{% tab title="REST (POST)" %} POST [GATEWAY_REST_ENDPOINT]/query
Message
{
"type": "fee_rates",
"sender": "0x7a5ec2748e9065794491a8d29dcf3f9edb8d7c43000000000000000000000000"
}
{% endtab %} {% endtabs %}
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| sender | string | Yes | A bytes32 sent as a hex string; includes the address and the subaccount identifier. |
Response
{
"status": "success",
"data": {
"taker_fee_rates_x18": [
"0",
"300000000000000",
"200000000000000",
"300000000000000",
"200000000000000"
],
"maker_fee_rates_x18": [
"0",
"0",
"0",
"0",
"0"
],
"liquidation_sequencer_fee": "250000000000000000",
"health_check_sequencer_fee": "100000000000000000",
"taker_sequencer_fee": "25000000000000000",
"withdraw_sequencer_fees": [
"10000000000000000",
"40000000000000",
"0",
"600000000000000",
"0"
]
},
"request_type": "query_fee_rates",
}
{% hint style="info" %}
taker_fee_rates_x18: taker fee associated with a given product indexed byproduct_id. Note: this fee represents the basis point (BPS) on a taker order inx18.maker_fee_rates_x18: maker fee associated with a given produced indexed byproduct_id.withdraw_sequencer_fees: withdraw fees associated with a given product indexed byproduct_id. Note: this fee represents a fixed amount of product to be deducted as fee inx18. {% endhint %}
See our fees page for details about current fee rates.