[go: nahoru, domu]

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/position executor db table #6644

Merged

Conversation

cardosofede
Copy link
Contributor

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:
Add position executors table and refactor the logic of the executor handler to store the executors in the database instead of the csv.

Tests performed by the developer:

Tips for QA testing:

@rapcmia
Copy link
Contributor
rapcmia commented Nov 14, 2023
  • Ran tests on source
  • Compare data between old .csv to sqlite
    • Additional Id, order_levels and controller_name
    • Compare data when using different markets
      • When initially started with GAS-USDT, it was recorded on the sqlite
      • Changed the market to BAKE-USDT, with recorded trade data on .csv file however not on sqlite
        image
        • Compare data when using dmanv3, same results

Steps to reproduce:

  • Setup any script
  • Start the script and run til satisfied with the trades then stop the bot
  • Check .csv and sqlite file and compare

Archive.zip

Pending:

  • Run tests on docker version
  • Run scripts that support multiple markets

@rapcmia
Copy link
Contributor
rapcmia commented Nov 15, 2023

Changed the market to BAKE-USDT, with recorded trade data on .csv file however not on sqlite

  • Run long term bot today and on a script with multiple markets and order level of 7
  • Upon checking the sqlite file again, its recording multiple markets.
    image
    • Database table names are complete on sqlite

Pending:

  • Atm checking docker build

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.

LGTM

  • Setup dmanv3 script and run multiple market pairs with order levels
  • Compare data from old dmanv3 csv files vs PositionExecutoron sqlite
  • Added names are Id, order_levels and controller_name
  • Check timestamp coverted readable date, ok
  • Run tests on both source and docker

@cardosofede cardosofede merged commit 08af81f into hummingbot:development Nov 16, 2023
2 checks passed
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.

None yet

2 participants