kekloldyormarket / Mango-Money-Multiplier

It's a baby bot, soon will do more & onchain at that
https://riptide.fair3d.me
82 stars 22 forks source link

general bot logic #4

Open CharlesFr opened 2 years ago

CharlesFr commented 2 years ago

Is the bot logic described in writing anywhere?

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

staccDOTsol commented 2 years ago

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