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

Automated management of limit orders once placed #5

Open
moconnell opened this issue Dec 7, 2021 · 1 comment · May be fixed by #19
Open

Automated management of limit orders once placed #5

moconnell opened this issue Dec 7, 2021 · 1 comment · May be fixed by #19
Assignees
Labels
enhancement New feature or request FTX FTX-related issue

Comments

@moconnell
Copy link
Owner

moconnell commented Dec 7, 2021

Currently the tool does no automated management of orders once place - this is left as a tasks for the user.

An enhancement would be to wait until all orders were filled and manage orders until they are filled.

From RW James:

Simple "passive aggressive" logic:
For a buy

  • Specify an offset in ticks as x% of the (mean) bid ask spread, rounded up.
  • Specify an offset to "chase" as y% of the (mean) bid ask spread, rounded up
  • Bid at the best ask less the offset number of ticks
  • Wait. If fully filled, done.
  • If best offer moves reset offset ticks away from your bid, cancel and reset what is remaining to get filled.
  • If not filled after , reduce the offset to get more aggressive, until it's marketable.

Further on:

Q: what's a sensible default for x and y in the logic above?

RJ: for liquid stuff i think quoting the middle is good for x
RJ: for less liquid crap (CRO) might want to be a bit more aggressive and sit a bit further over where someone with a shorter term horizon can pick you off

@moconnell moconnell self-assigned this Dec 27, 2021
@moconnell moconnell added enhancement New feature or request FTX FTX-related issue labels Dec 27, 2021
@moconnell moconnell linked a pull request Dec 27, 2021 that will close this issue
@moconnell
Copy link
Owner Author

More urgent is that we also need to handle the case where post-only orders are immediately cancelled as they would cross the book. This presumably means that the market is actually moving in a favourable direction w.r.t. the delta we are wanting to trade, so just keep resubmitting the order at ever more advantageous price until we get one to stick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request FTX FTX-related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant