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

(fix) Avellaneda status for hanging orders #5862

Merged
merged 7 commits into from Dec 8, 2022

Conversation

MementoRC
Copy link
Sponsor 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:
Avellaneda strategy trimmed zeros off hanging orders original amount in status report
The issue seems to be a data coherence issue when the pandas dataframe is created with a column of data with inconsistent type (in this case Decimal and float). The solution proposed is to convert to float when the row is appended

Tests performed by the developer:
Added a called to the status function to verify the issue
Confirmed that the issue was resolved with the proposal

Tips for QA testing:

@rapcmia rapcmia requested a review from nikspz November 29, 2022 02:16
Copy link
Contributor

@nikspz nikspz 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:

  • Cloned and installed fix branch
  • Created docker image manually - successfully
  • Created password and Started instance with no issues
  • Created/started AvellanedaMM strategy with hanging orders enabled
  • Reviewed that hanging order amount now showed correct values
  • Tested on different pairs/connectors
  • Longrun testbot have no issues during the run, left hanging orders according the order amount

Tested using AWS Ubuntu Docker and Source

Copy link
Contributor

@cardosofede cardosofede left a comment

Choose a reason for hiding this comment

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

LGTM!

@JeremyKono JeremyKono merged commit 087af1e into hummingbot:development Dec 8, 2022
@MementoRC MementoRC deleted the fix/avellaneda_status branch March 22, 2023 22:34
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.

Avellaneda - Hanging order amount's orig and adj does not matched on status
5 participants