Skip to content

Commit

Permalink
refactor: simplify jit maker (#124)
Browse files Browse the repository at this point in the history
* refactor: jit maker to match new py arch

* fix

* fix: is variant casing

* use state commitment

* tweaks from testing

* add priority fees

* more tweaks

---------

Co-authored-by: Chris Heaney <[email protected]>
  • Loading branch information
soundsonacid and crispheaney authored Jan 26, 2024
1 parent a7d71fa commit d03e777
Show file tree
Hide file tree
Showing 5 changed files with 343 additions and 558 deletions.
31 changes: 16 additions & 15 deletions jitMaker.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ enabledBots:
# - liquidator

# Example maker bot that participates in JIT auction (caution: you will probably lose money)
# - jitMaker
- jitMaker

# Example maker bot that posts floating oracle orders
# - floatingMaker
Expand All @@ -62,22 +62,23 @@ enabledBots:
# - userPnlSettler

# uncross the book to capture an arb
- uncrossArb
# - uncrossArb

# below are bot configs
botConfigs:
# jitMaker:
# botId: "jitMaker"
# dryRun: false
# # below, ordering is important: match the subaccountIds to perpMarketindices.
# # e.g. to MM perp markets 0, 1 both on subaccount 0, then subaccounts=[0,0], perpMarketIndicies=[0,1]
# # to MM perp market 0 on subaccount 0 and perp market 1 on subaccount 1, then subaccounts=[0, 1], perpMarketIndicies=[0, 1]
# # also, make sure all subaccounts are loaded in the global config subaccounts above to avoid errors
# subaccounts: [0]
# perpMarketIndicies: [0]

uncrossArb:
botId: "uncrossArb"
jitMaker:
botId: "jitMaker"
dryRun: false
driftEnv: "mainnet-beta"
# below, ordering is important: match the subaccountIds to perpMarketindices.
# e.g. to MM perp markets 0, 1 both on subaccount 0, then subaccounts=[0,0], perpMarketIndicies=[0,1]
# to MM perp market 0 on subaccount 0 and perp market 1 on subaccount 1, then subaccounts=[0, 1], perpMarketIndicies=[0, 1]
# also, make sure all subaccounts are loaded in the global config subaccounts above to avoid errors
subaccounts: [0]
perpMarketIndicies: [0]
marketType: PERP

# uncrossArb:
# botId: "uncrossArb"
# dryRun: false
# driftEnv: "mainnet-beta"

Loading

0 comments on commit d03e777

Please sign in to comment.