Skip to content

simple tutorial and example bots using drift protocol

Notifications You must be signed in to change notification settings

01protocol/zo-drifting

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zero One Drifting

please use caution and burner wallets when using this experimental software

What is it

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!).

Pre-requisite

  1. You will need a Drift account
  2. Deposit USDC into Drift via UI
  3. Create new 01 Account in the same wallet via UI
  4. Deposit same amount of money into 01
  5. 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
  6. Copy .env.example to .env
  7. Fill in all parameters for .env, don't modify the last line
  8. Enjoy

Quick Start

yarn
ts-node src/drifting-zo.ts

Disclaimer

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.

About

simple tutorial and example bots using drift protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.3%
  • Shell 2.7%