Skip to content

Commit

Permalink
adjust max order limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Mar 9, 2024
1 parent c06b161 commit 69084a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/exchange/max/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func New(key, secret string) *Exchange {
v3margin: &v3.MarginService{Client: client},

queryTradeLimiter: rate.NewLimiter(rate.Every(1*time.Second), 2),
submitOrderLimiter: rate.NewLimiter(rate.Every(100*time.Millisecond), 10),
submitOrderLimiter: rate.NewLimiter(rate.Every(10*time.Millisecond), 18),

// closedOrderQueryLimiter is used for the closed orders query rate limit, 1 request per second
closedOrderQueryLimiter: rate.NewLimiter(rate.Every(1*time.Second), 1),
Expand Down

0 comments on commit 69084a9

Please sign in to comment.