Sameer's PR (simple market making bot)#1
Open
sameerlal wants to merge 18 commits into0xbigz:masterfrom
Open
Conversation
0xbigz
added a commit
that referenced
this pull request
May 30, 2023
0xbigz
added a commit
that referenced
this pull request
Oct 27, 2023
* fixes/limit-grid-edge-cases * add --authority param * spacing tweak 1 * spacing tweak #1 revert * init intialize_vault.py (wip) * initialize_vault.py: fix signers err * cleanup * conditionalize --------- Co-authored-by: 0xbigz <“83473873+0xbigz@users.noreply.github.com”>
0xbigz
added a commit
that referenced
this pull request
Jan 24, 2024
* fixes/limit-grid-edge-cases * add --authority param * spacing tweak 1 * spacing tweak #1 revert * init intialize_vault.py (wip) * initialize_vault.py: fix signers err * cleanup * conditionalize * update-driftpy-7-attempt-2 * work tx send --------- Co-authored-by: 0xbigz <“83473873+0xbigz@users.noreply.github.com”>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For full writeup, please see: https://docs.google.com/document/d/1-RLxJFIUnLdCsSEhgFzScwMichheS_FlFB17M6HmmYQ/edit#
The simple_mm.py can be run from the command line and will execute market maker style orders at specified intervals. The output is saved and can then be inspected in a jupyter notebook.
Right now, I included my own keypair secret where I airdropped SOL to the account and it’s ready to go.
Setup:
(1) Include the following in
~/.config/solana/key.json: (On google docs)I have already airdropped tokens to this account, registered with drift, and added collateral.
(2) Set: export
ANCHOR_WALLET=’~/.config/solana/key.json”(3) Run: python3 simple_mm.py