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

Feat/Adapt Trade Intensity Indicator to Use Trade Events #5279

Merged

Conversation

mhrvth
Copy link
Contributor

@mhrvth mhrvth commented May 3, 2022

Before submitting this PR, please make sure:

  • Your code builds clean without any errors or warnings
  • You are using approved title ("feat/", "fix/", "docs/", "refactor/")

A description of the changes proposed in the pull request:

Stores the most recent trades in the order book class and makes them available to strategies.
Replaces simulation in trading intensity with real trades from the exchange.
Update of the Avellaneda-Stoikov strategy to use the new sampling.

Tests performed by the developer:

Ran the Avellaneda-Stoikov strategy in this branch side by side with the version in the development branch and compared their behavior as well as calculated trading intensity variables.
Ran unit tests.

Tips for QA testing:

The version in this branch should give roughly the same results as the version in the development branch, but not necessarily exactly the same. Namely the orders placed in the market should be roughly the same, and the variables order_book_intensity_factor and order_book_depth_factor should be roughly the same.

@JeremyKono
Copy link
Contributor

Hi @mhrvth, please fix github tests which are failing. Thanks!

@mhrvth
Copy link
Contributor Author

mhrvth commented May 20, 2022

@JeremyKono Hi, it's fixed now.

Copy link
Contributor

@rapcmia rapcmia left a comment

Choose a reason for hiding this comment

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

Test performed:

  • Install feature branch, ok
  • Setup two testbots running Avellaneda on same connector/markets on development and this PR
  • Configure trading intense parameter similar to each of the testbots
  • Started strategy and monitor client behavior, all ok
  • Compare risk_factor, order_book_intensity, order_book_depth_factor
  • Compare orders created, close enough
  • Compare status after filled trades on each instance, all ok

@JeremyKono JeremyKono merged commit 38e1329 into hummingbot:development May 24, 2022
@aarmoa aarmoa deleted the feat/trading_intensity_real_trades branch June 19, 2022 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants