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

feature: implement strategy of overwrite order tree in state_manager #104

Open
lispc opened this issue Mar 12, 2021 · 1 comment
Open

feature: implement strategy of overwrite order tree in state_manager #104

lispc opened this issue Mar 12, 2021 · 1 comment
Assignees

Comments

@lispc
Copy link
Member

lispc commented Mar 12, 2021

# finished orders can never be used again
order_leaf_to_overwrite = `select order_leaf where state = 'finished' order by id asc limit 1;`
if order_leaf_to_overwrite is None:
    # oldest open order is less probable to be used later? heuristic 
    order_leaf_to_overwrite = `select order_leaf order by id asc limit 1;`
@lispc lispc self-assigned this Mar 12, 2021
@0xmountaintop 0xmountaintop changed the title feature: implement strategy of overwrite order tree feature: implement strategy of overwrite order tree in state_manager Mar 13, 2021
@lispc
Copy link
Member Author

lispc commented Apr 5, 2021

implemented in the rust repo. Not tested yet

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

No branches or pull requests

2 participants