Rate limiting

Different rate limits can be applied for orders creation depending on users role.

The configuration is stored in config/config.yaml in the section rate_limits.

Note: It is not an API rate limiting.

rate_limits:
  - role: any
    config:
      - limit: 50
        period: 10s
      - limit: 200
        period: 1m
      - limit: 100000
        period: 24h
  - role: maker
    config:
      - limit: 20000
        period: 10s
      - limit: 100000
        period: 1m
      - limit: 100000000
        period: 24h

The only mandatory role is any, this is the default configuration applied if a role doesn't have explicit settings.

  • role - user role defined in barong.
  • config - list of limit-period pairs. So it is Not more than {limit} requests per {period}.

NOTE:

Finex also has API-level rate limiter. Default config is 1 request per second, with maximum burst of 10 requests.

Every API process has its own limiter.

API-level rate-limiter affects: - /api/v2/market/orders - /api/v2/market/orders/:id/cancel

Bulk endpoints are not affected by API limiter.