Skip to content

Commit f987d8b

Browse files
authored
Add Market Making mode & Manifest cleanup (#144)
# Pull Request Description Adds an AI guided Market Making mode and moves all Manifest tools to a single file ## Changes Made This PR adds the following changes: <!-- List the key changes made in this PR --> - Creates a new mm mode (3) for market making - Combines all manifest related tools into a single file ## Implementation Details <!-- Provide technical details about the implementation --> - Added a mode which prompts the user to enter parameters to market make on Manifest ## Transaction executed by agent <!-- If applicable, provide example usage, transactions, or screenshots --> Example transaction: https://solscan.io/tx/5qKGhpPuoFs2GtmQ5kGKQmu6NTZTG39DGY8YZVifXwx3BFQhkA9tANhVHPC3yRcEZYFy7hxy4SAjSh6WTSxUGxap ## Prompt Used <!-- If relevant, include the prompt or configuration used --> Prompt for AI guided mm ![image](https://github.com/user-attachments/assets/2dbfe04e-4cfe-4495-86d2-24a9573b7c3f) Subsequent aiMM ![image](https://github.com/user-attachments/assets/70cecd37-0acd-4cc4-b5d2-fa0ad863c821) ## Additional Notes <!-- Any additional information that reviewers should know --> ## Checklist - [x] I have tested these changes locally - [x] I have updated the documentation - [x] I have added a transaction link - [x] I have added the prompt used to test it
2 parents 249cd70 + f03f5dd commit f987d8b

File tree

11 files changed

+6610
-192
lines changed

11 files changed

+6610
-192
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
OPENAI_API_KEY=
2+
RPC_URL=
3+
SOLANA_PRIVATE_KEY=
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# AI Guided Market Making Agent
2+
3+
This agent showcases an ai guided market maker on Manifest, Solana's CLOB DEX. The agent guides the user to setup basic two-sided quotes on Manifest markets.
4+
[Reference](https://github.com/CKS-Systems/manifest)
5+
6+
## Key Features
7+
8+
- **Automated Quoting**: The agent automatically refreshes quotes on an interval.
9+
- **Reducing Complexity**: Designed to abstract away parameters for setting up market making.
10+
- **Random Model**: The market making introduces randomness to prevent front running or other negative botting behavoirs.
11+
12+
13+
## Example
14+
=== Market Maker Configuration ===
15+
16+
Enter the market ID: 2Uj8277fkaVBtTU6Wp2GPRbQC86SkSdgQ2mp1Q5N2LHc
17+
Enter the base token symbol (e.g., SEND): SEND
18+
Enter the quote token symbol (e.g., USDC): USDC
19+
20+
=== Quote Parameters (applies to both buy and sell sides) ===
21+
Enter number of quotes to place on each side: 4
22+
Enter minimum quote depth (% distance from mid price): 0.1
23+
Enter maximum quote depth (% distance from mid price): 2
24+
25+
=== Token Allowances ===
26+
Enter total SEND allowance: 2
27+
Enter total USDC allowance: 3
28+
29+
Enter update interval in seconds: 20
30+
31+
=== Configuration Summary ===
32+
{
33+
"marketId": "2Uj8277fkaVBtTU6Wp2GPRbQC86SkSdgQ2mp1Q5N2LHc",
34+
"baseToken": "SEND",
35+
"quoteToken": "USDC",
36+
"quoteParams": {
37+
"number": 4,
38+
"minDepth": 0.1,
39+
"maxDepth": 2
40+
},
41+
"allowance": {
42+
"base": 2,
43+
"quote": 3
44+
},
45+
"intervalSeconds": 20
46+
}
47+
48+
Is this configuration correct? (yes/no): yes
49+
50+
Starting market maker mode for SEND/USDC...

0 commit comments

Comments
 (0)