Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rate limit router #298

Merged
merged 10 commits into from
Jul 11, 2023
Merged

Conversation

ZIMkaRU
Copy link
Member

@ZIMkaRU ZIMkaRU commented Jul 10, 2023

This PR adds Rate Limit router as part of the main logic being extended main bfx-report#314 repo


Basic changes:

  • adds RateLimitChecker class
  • implements BfxApiRouter with rate limit logic
  • turns off api middleware processing for positions history to reduce redundant positionsAudit calls to facilitate sync
  • uses bfx api router for fetching sub-account api data
  • fixes stuck event loop to fix ws timeout on big data

Depends on this PR:

Copy link
Contributor

@ezewer ezewer left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants