Skip to content

Commit

Permalink
client/core,app: Create arbitrage bot
Browse files Browse the repository at this point in the history
The `makerBot` is refactored to take a `botEngine` as a field
which contains the logic of when to place and cancel orders.
The old maker bot logic is placed into the `gapEngine` type,
and an arbitrage bot is added. The arbitrage bot compares the
DEX and the CEX order books, and if there is an arbitrage
opportunity, executes a trade on both.

The UI is also updated to be able to create both gap and arbitrage
bots.
  • Loading branch information
martonp committed Dec 20, 2022
1 parent 903d6ce commit af2d355
Show file tree
Hide file tree
Showing 20 changed files with 3,615 additions and 912 deletions.
2 changes: 1 addition & 1 deletion client/cmd/mmbot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func mainErr() error {
}

if manualRate > 0 {
pgm.EmptyMarketRate = manualRate
pgm.GapEngineCfg.EmptyMarketRate = manualRate
}

net := dex.Mainnet
Expand Down
Loading

0 comments on commit af2d355

Please sign in to comment.