Skip to content
/ zo-arb Public
forked from 01protocol/zo-arb

TypeScript Arbitrage Bot examples for 01.

Notifications You must be signed in to change notification settings

acamill/zo-arb

 
 

Repository files navigation

01-Arb

please use caution and burner wallets when using this experimental software

What is it

This is a fork of this repo, credits go to chenwainuo

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 (for both 01 and Drift)
  6. Copy .env.example to .env
  7. Fill in all parameters for .env, don't modify the last line
  8. Choose if you want to use the funding arb or the price differential arb by modifying src/index.ts
  9. Enjoy

Quick Start

npm i  # or yarn
ts-node src/index.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

TypeScript Arbitrage Bot examples for 01.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.8%
  • Shell 2.2%