https://github.com/drift-labs/keepyrs
drift v2 python keeper bots
https://github.com/drift-labs/keepyrs
Last synced: 7 days ago
JSON representation
drift v2 python keeper bots
- Host: GitHub
- URL: https://github.com/drift-labs/keepyrs
- Owner: drift-labs
- Created: 2023-12-22T01:02:04.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-21T14:29:36.000Z (about 1 year ago)
- Last Synced: 2024-05-21T15:48:21.731Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 9
- Watchers: 6
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Drift Protocol v2 Python Keeper Bots
## Set up
1) Run `poetry shell`
2) Run `poetry install`
3) Create `.env` file in `keepyrs` with wallet `PRIVATE_KEY` and your `RPC_URL`## JIT MAKER
`poetry run python -m jit_maker.src.jit_maker`
You CANNOT make multiple markets with the same sub account on the JIT Maker. This code does not account for overleveraging as a result of having positions open across several markets on the same sub account id.
To adjust your account's target leverage, change the TARGET_LEVERAGE_PER_ACCOUNT constant at `jit_maker.py:47`. The JIT maker will open positions up to this leverage, and once reached, will only open positions that reduce the account's leverage (i.e. if you are max levered long, it'll only open shorts until you're no longer max levered long)
## PERP FILLER
`poetry run python -m perp_filler.src.perp_filler`