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

general bot logic #4

Open
CharlesFr opened this issue Mar 28, 2022 · 1 comment
Open

general bot logic #4

CharlesFr opened this issue Mar 28, 2022 · 1 comment

Comments

@CharlesFr
Copy link

Is the bot logic described in writing anywhere?

Does it primarily manage delta-neutral positions by picking highest funding rate?

@staccDOTsol
Copy link
Contributor

in this version it does a few things

  1. assesses current funding rates
  2. weighs them as opportunities proportional to each other
  3. it will then try to get into position based on however deep in each hedge/perp pair it wants to be
  4. if it's not very much into position and the APYs are high enough to justify it, it'll taker into the position sometimes - it just drops the 'post only' requirement
  5. until it's at least 50% in position, then it will only do makers
  6. at the point where it's in position (and mango continuous rates aren't fluctuating like crazy) it'll just keep trading back and forth as maker, while keeping its near-perfect hedge

the revenue streams are:

  1. funding rates
  2. the spread, as most trades are maker
  3. the maker fee rebate

on the immediate todo list:

  1. other leveraged exchanges on Solana, in order to achieve wider funding rate arb as well as pure arbitrage at leverage
  2. Zeta Markets allow us to play a much longer futures cash n carry arbitrage, but I think they only have one product live atm
  3. more forward testing

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