Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public enum FilterType {
MIN_NOTIONAL,
MAX_NUM_ORDERS,
MAX_ALGO_ORDERS,
MAX_NUM_ALGO_ORDERS,

// Exchange
EXCHANGE_MAX_NUM_ORDERS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
* Rate limiters.
*/
public enum RateLimitType {
REQUESTS,
REQUEST_WEIGHT,
ORDERS
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void testExchangeInfoDeserialization() {
" \"timezone\": \"UTC\",\n" +
" \"serverTime\": 1508631584636,\n" +
" \"rateLimits\": [{\n" +
" \"rateLimitType\": \"REQUESTS\",\n" +
" \"rateLimitType\": \"REQUEST_WEIGHT\",\n" +
" \"interval\": \"MINUTE\",\n" +
" \"limit\": 1200\n" +
" },\n" +
Expand Down Expand Up @@ -81,7 +81,7 @@ public void testExchangeInfoDeserialization() {

List<RateLimit> rateLimits = exchangeInfo.getRateLimits();
assertEquals(rateLimits.size(), 3);
testRateLimit(rateLimits.get(0), RateLimitType.REQUESTS, RateLimitInterval.MINUTE, 1200);
testRateLimit(rateLimits.get(0), RateLimitType.REQUEST_WEIGHT, RateLimitInterval.MINUTE, 1200);
testRateLimit(rateLimits.get(1), RateLimitType.ORDERS, RateLimitInterval.SECOND, 10);
testRateLimit(rateLimits.get(2), RateLimitType.ORDERS, RateLimitInterval.DAY, 100000);

Expand Down