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

Get orders #9

Open
Jackodb opened this issue Jun 21, 2019 · 2 comments
Open

Get orders #9

Jackodb opened this issue Jun 21, 2019 · 2 comments

Comments

@Jackodb
Copy link
Owner

Jackodb commented Jun 21, 2019

  • To get data of own orders you can just call StrategyBase.get_own.orders():
    • Difference between initial orders and current orders = stacked (either negative or positive):
      1. Snapshot of orders after initial orders placement (how to get orders from a specific worker? See below);
      2. Call StrategyBase.own_orders (for current orders);
      3. Compare initial snapshot with step 2;
      4. Plot
      THIS MIGHT BE OUTDATED BECAUSE OF REFACTORING
@Jackodb
Copy link
Owner Author

Jackodb commented Jul 22, 2019

New method:
account = Account(account_name)

account.openorders

Further filtering is still required

@Jackodb
Copy link
Owner Author

Jackodb commented Aug 1, 2019

Snapshot of initial orders would be saved in database and thus could be compared with current orders to be able to distinguish them. This is also discussed in: #10 . Progress on the new dataframe (dumping orders in db) can be found here

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

No branches or pull requests

1 participant