Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/01protocol/zo-arb
TypeScript Arbitrage Bot examples for 01.
https://github.com/01protocol/zo-arb
Last synced: 3 months ago
JSON representation
TypeScript Arbitrage Bot examples for 01.
- Host: GitHub
- URL: https://github.com/01protocol/zo-arb
- Owner: 01protocol
- Created: 2022-02-06T22:02:30.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-14T10:13:05.000Z (over 2 years ago)
- Last Synced: 2024-02-12T17:32:57.277Z (9 months ago)
- Language: TypeScript
- Homepage:
- Size: 217 KB
- Stars: 37
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 01-Arb
*please use caution and burner wallets when using this experimental software*
# What is it
This is a fork of [this repo](https://github.com/chenwainuo/drifting-mango/tree/master/src), credits go to [chenwainuo](https://github.com/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`](src/index.ts)
9. EnjoyQuick 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.