please use caution and burner wallets when using this experimental software
Based on a fork of this repo
The program looks at 01 SOL-PERP price and Drift SOL-PERP price.
Once the gap becomes wide enough, it opens a postion on both side to close the gap.
For example if 01 is selling at 260 and Drift is selling at 230, it will open 01 market short and Drift market long (in one transaction!).
- You will need a Drift account
- Deposit USDC into Drift via UI
- Create new 01 Account in the same wallet via UI
- Deposit same amount of money into 01
- Create an open orders account for the market you want to arb by placing a position on that market and closing it in the UI
- Copy
.env.example
to.env
- Fill in all parameters for
.env
, don't modify the last line - Enjoy
yarn
ts-node src/drifting-zo.ts
NFA, everything is written as an experiment, please don't put more than couple bucks into it.
Do not use software without understanding what it does.
It also has no liquidation preventive measure, you will get liquidated.
This repo is meant as a guide for interfacing with 01 code and demonstrates some tools one might need if they wanted to write a bot. Use with caution.