Skip to content

Commit

Permalink
Update other rate limits page to include query for latest limits (closes
Browse files Browse the repository at this point in the history
 #172) (#285)

* Update other rate limits page to include query for latest limits

* Fix broken link
  • Loading branch information
matthewdowney authored Nov 12, 2024
1 parent 90a998f commit 17fbba9
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 4 deletions.
45 changes: 43 additions & 2 deletions pages/api_integration-trading/other_limits.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
## Other Limits

Subaccounts may have a limited number of open orders at any one time determined by the net collateral of the subaccount as per:
Subaccounts have a limited number of stateful open orders at any one time determined by the net collateral of the subaccount.

These limits are subject to governance. The latest limits can be queried via the `https://<REST_NODE_ENDPOINT>/dydxprotocol/clob/equity_tier` endpoint.

Here is an example response:

```
{
"equity_tier_limit_config": {
"stateful_order_equity_tiers": [
{
"usd_tnc_required": "0",
"limit": 0
},
{
"usd_tnc_required": "20000000",
"limit": 4
},
{
"usd_tnc_required": "100000000",
"limit": 8
},
{
"usd_tnc_required": "1000000000",
"limit": 10
},
{
"usd_tnc_required": "10000000000",
"limit": 100
},
{
"usd_tnc_required": "100000000000",
"limit": 200
}
]
}
}
```

Read as:

| Net Collateral | Long-term or Conditional orders |
| -------------- | ------------------------------- |
Expand All @@ -13,4 +52,6 @@ Subaccounts may have a limited number of open orders at any one time determined

For example up to 10 open bids across all markets for a subaccount with a net collateral of $2,000.

Note that limit `Immediate-or-Cancel`, `Fill-or-Kill`, and market orders on the frontend do not have this limitation.
Note:
- Short term orders, including limit `Immediate-or-Cancel`, `Fill-or-Kill`, and market orders on the frontend do not have this limitation.
- Only the `stateful_order_equity_tiers` field is in effect -- short term order equity limits under the `short_term_order_equity_tiers` key are no longer in effect.
4 changes: 2 additions & 2 deletions pages/users-governance/reading_new_market_proposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Create Perpetual message specifies the parameters specific to the perpetual.
- `atomic_resolution` determines the precision of the size of the coin. If the atomic resolution is -10, then the perpetual positions are represented as multiples of 10^-10.
- `default_funding_ppm` is the default funding rate in parts per million.
- `id` is the id of the perpetual. This should be the same as the oracle_market_id and clob_pair_id.
- `liquidity_tier` is the liquidity tier of the proposed market. This should be set based on [dYdX liquidity tier guidelines](../users-governance/functionalities#liquidity-tiers).
- `liquidity_tier` is the liquidity tier of the proposed market. This should be set based on [dYdX liquidity tier guidelines](./functionalities.md#liquidity-tiers)
- `market_id` is the id of the oracle market. This should be the same as the id.
- `ticker` is the ticker of the market being added.

Expand Down Expand Up @@ -138,4 +138,4 @@ You can calculate the following values based on parameters in a new market propo
## Next Steps
If you are a dYdX Chain user, you can [vote on a proposal](../users-governance/voting.md) or [submit your own](../users-governance/submitting_a_proposal.md).

If you are a market maker aiming to provide liquidity to a new market, you can configure a trading strategy using values and derived values from the proposal.
If you are a market maker aiming to provide liquidity to a new market, you can configure a trading strategy using values and derived values from the proposal.

1 comment on commit 17fbba9

@vercel
Copy link

@vercel vercel bot commented on 17fbba9 Nov 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.