← 开源
outsmartchad

onchain-dex-cli

Agent-first CLI for trading on Solana — 18 DEX adapters, 12 SWQoS TX landing processors. Buy, sell, lp, snipe, create pool, launch coin, and stream real-time onchain events from your terminal.

AI EngineeringGive agent toolsTypeScript
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
582
Star
192
Fork
+-1
本周
6
贡献者
创建于 2024-05-29 · 更新于 2026-10-10 · 今日第 16608 名
主要开发者
outsmartchadchiwangso2maxktz

outsmartchad/onchain-dex-cli 排名第 16,608,有 582 个星标。

同类别比较

outsmartchad/onchain-dex-cli 排名第 16,608,此处有 8 个同类条目;omarcusdev/zap-gpt-free 排名第 16,607。

同类别比较
名称排名指标
KeyValueSoftwareSystems/agent-opfor16,579
语言:
TypeScript
星标数:
583
分叉数:
35
简介:
Open-source adversary emulation for AI agents and MCP servers.
vivekVells/mcp-pandoc16,592
语言:
Python
星标数:
583
分叉数:
62
简介:
MCP server for document format conversion using pandoc.
joeseesun/qiaomu-design16,602
语言:
JavaScript
星标数:
582
分叉数:
47
简介:
偏执型设计顾问:反 AI 味设计 + 风格试衣间 + 58 站设计系统库的 Claude Code Skill | Opinionated design advisor for Claude Code: anti-generic UI, style fitting room, 58 real-site design systems.
omarcusdev/zap-gpt-free16,607
语言:
TypeScript
星标数:
582
分叉数:
227
简介:
Este projeto explora a integração do ChatGPT com o WhatsApp, transformando o chatbot em um assistente virtual capaz de realizar tarefas como falar com amigos, responder a perguntas de clientes, e muito mais, com um toque de humanização nas conversas.
texttron/hyde16,610
语言:
Jupyter Notebook
星标数:
582
分叉数:
40
简介:
HyDE: Precise Zero-Shot Dense Retrieval without Relevance Labels
hatayama/unity-cli-loop16,620
语言:
C#
星标数:
581
分叉数:
49
简介:
Let AI Drive Unity, from Editor to Play Mode.
Plaer1/junction16,642
语言:
TypeScript
星标数:
580
分叉数:
9
简介:
VS Code chat sidebar for local AI coding agents
kijai/ComfyUI-MMAudio16,648
语言:
Python
星标数:
580
分叉数:
76
关键参数与规格
关键参数与规格
参数值
语言TypeScript
类别AI Engineering
子类别Give agent tools
关键词Agent-ready APIs, Automation, Client integration, Trading
星标数582
分叉数192
贡献者6
创建日期2024-05-29
更新日期2026-10-10
1 天星标数0
7 天星标数-1
排名16,608
上次排名16,400
排名变化-208
7 天星标排名17,918
上次 7 天星标排名17,865
7 天星标排名变化-53
总星标排名17,197
上次总星标排名17,167
总星标排名变化-30
README 摘录

🔗doc Main Features Trading any token using Jupiter API & Raydium swap function Create your own Solana **_SPL tokens_** on mainnet | Pump. fun Swap tokens on top of Raydium, Orca, Meteora, and pump. fun Predefined Jito tips and Priority fee Fastest Copy Trade Program **_Got everything needed for any developer to create their own trading bot_** Credits Installation 🛠️ 1. also see the command examples in examples/ Prerequisites 🚨 0. copy for you to follow and paste your keys to the code (specify

the custom jito fee if you need). Add your mainnet wallet secret key(must), devnet wallet secret key (optional), RPC endpoint(must) and shyft api key(optional) 2. env Features ✅: Developer CLI: wrap/unwrap solana Create a new SPL token or zk-compressed token (on SOL mainnet/devnet/zk-devnet) and it will automatically mint to your wallet Integrates both **user-defined priority fee and jito tips** that land transactions faster Burn a percentage of a token Revoke mint and

freeze authority of a token boost volume of a token by creating buy and sell orders in just **one transaction** **Add or Remove liquidity** to a pool Swap tokens in a **raydium dex's AMM pool and JUP Swap API** Buy or sell a token using SOL using raydium and JUP **Buy, Sell, and launch token in pump. fun** Check the balance of a token in your wallet monitor real-time pump-fun's create, trade, and complete bonding curve events Trader

CLI: Optimized Copy Trading Program with auto-buy&sell Features in Development 🚧: With user-defined Jito tips and priority Lamports supported for every command tp/sl modules for Trading dev sniping tools on pump. fun&raydium using yellowstone geyser grpc copy trade program using yellowstone geyser grpc **More Profitable Strategies** for Trading dev more features to come. Commands (Please see the command examples in examples/ to get start~) payer options is by default use the private key in . env file

, but you can also specify the path to the secret key if you want to use another wallet 1. Specify the token symbol, name, mint keypair(optional, will help u to generate), supply, decimals, path to metadata json file, path to image file, the cluster you want to use, and the file type(png, jpg, jpeg). Specify the token address, the percentage of the token you want to burn and the cluster you want to use. Specify the token address

and the cluster you want to use. Specify the token address you want to query and the cluster for boosting the volume of the token. Specify the token address, the amount of Sol you want to swap, and the cluster you want to use. Specify the token address, the percentage of the token you want to sell, and the cluster you want to use. Specify the token address, the pool id(optional, will help to find the pool with the

most liquidity using the given token address), the amount of Sol you want to add, and the cluster you want

常见问题

记录了多少星标和分叉?

outsmartchad/onchain-dex-cli 有 582 个星标和 192 个分叉。

仓库排名是多少?

outsmartchad/onchain-dex-cli 排名第 16,608。

记录的语言和类别是什么?

outsmartchad/onchain-dex-cli 有 582 个星标,语言为 TypeScript,类别为 AI Engineering。

哪个仓库排名最接近?

outsmartchad/onchain-dex-cli 与 omarcusdev/zap-gpt-free 比较,后者排名第 16,607,有 582 个星标。

README

🔗doc

Main Features

  • Trading any token using Jupiter API & Raydium swap function

  • Create your own Solana SPL tokens on mainnet | Pump.fun

  • Swap tokens on top of Raydium, Orca, Meteora, and pump.fun

  • Predefined Jito tips and Priority fee

  • Fastest Copy Trade Program

  • Got everything needed for any developer to create their own trading bot

Credits

Installation 🛠️

  1. git clone https://github.com/outsmartchad/solana-trading-cli.git
  2. cd solana-memecoin-cli
  3. nvm install v22.2.0
  4. nvm use v22.2.0
  5. npm install
  6. node help.js (to see commands or read cli_doc.txt file)
  7. also see the command examples in examples/

Prerequisites 🚨

  1. we have added a .env.copy file in src/helpers/.env.copy for you to follow and paste your keys to the code (specify the custom jito fee if you need).
  2. Add your mainnet wallet secret key(must), devnet wallet secret key (optional), RPC endpoint(must) and shyft api key(optional)
  3. rename the .env.copy file to .env

Features ✅:

Developer CLI:

  • wrap/unwrap solana
  • Create a new SPL token or zk-compressed token (on SOL mainnet/devnet/zk-devnet) and it will automatically mint to your wallet
  • Integrates both user-defined priority fee and jito tips that land transactions faster
  • Burn a percentage of a token
  • Revoke mint and freeze authority of a token
  • boost volume of a token by creating buy and sell orders in just one transaction
  • Add or Remove liquidity to a pool
  • Swap tokens in a raydium dex's AMM pool and JUP Swap API
  • Buy or sell a token using SOL using raydium and JUP
  • Buy, Sell, and launch token in pump.fun
  • Check the balance of a token in your wallet
  • monitor real-time pump-fun's create, trade, and complete bonding curve events

Trader CLI:

  • Optimized Copy Trading Program with auto-buy&sell

Features in Development 🚧:

  • With user-defined Jito tips and priority Lamports supported for every command
  • tp/sl modules for Trading dev
  • sniping tools on pump.fun&raydium using yellowstone geyser grpc
  • copy trade program using yellowstone geyser grpc
  • More Profitable Strategies for Trading dev
  • more features to come...

Commands </> (Please see the command examples in examples/ to get start~)

payer options is by default use the private key in .env file, but you can also specify the path to the secret key if you want to use another wallet

  1. Specify the token symbol, name, mint keypair(optional, will help u to generate), supply, decimals, path to metadata json file, path to image file, the cluster you want to use, and the file type(png, jpg, jpeg).
node create --payer  --symbol  --token_name  --mint  --supply  --decimals  --metadata  --image  --cluster  --priority-fee  --file_type 
  1. Specify the token address, the percentage of the token you want to burn and the cluster you want to use.
node burn --payer  --token_address  --percentage  --cluster 
  1. Specify the token address and the cluster you want to use.
node revoke_authority --payer  --mint_address  --cluster  --mint --freeze
  1. Specify the token address you want to query and the cluster for boosting the volume of the token.
node boost_volume --token_address  --payer  --cluster  --sol_per_order 

  1. Specify the token address, the amount of Sol you want to swap, and the cluster you want to use.
node buy --payer  --token_address  --sol  --cluster 
  1. Specify the token address, the percentage of the token you want to sell, and the cluster you want to use.
node sell --payer  --token_address  --percentage  --cluster 
  1. Specify the token address, the pool id(optional, will help to find the pool with the most liquidity using the given token address), the amount of Sol you want to add, and the cluster you want to use.
node add_pool --payer  --token_address  --pool_id  --sol  --cluster  --priority_fee 
  1. Specify the token address, the percentage of the LP token you want to remove(1=1%), and the cluster you want to use.
node remove_pool --payer  --token_address  --percentage  --cluster 
  1. wrap your sol to wsol.
node wrap_sol.js --size 
  1. unwrap your wsol to sol.
node unwrap_sol.js

Pump.fun commands

  1. Specify the path to your mint keypair, the amount of Sol you want to buy, the name of the token, the symbol of the token, the description of the token, the telegram link, the twitter link, the website link, and the image file path.
node createAndBuy --pathToMintKeypair  --sol  --name  --symbol  --description  --telegram  --twitter  --website  --file 
  1. Specify the token address, the sol you want to buy
node buy --token_address  --sol 
  1. Specify the token address, the percentage of the token you want to sell
node sell --token_address  --percentage 

Code Usage </>

Token:

  • src/Token/create.js: create a spl token on devnet or mainnet with a given name, symbol, token image(using irys decentralized storage), metadata json file, supply, decimals, the code by default revokes the mint authority and freeze authority after creating the token so that the token has a cap and no one can feeze the token of the token holder, it will then mint all the token to your wallet

  • src/Token/burn.js: burn spl token with a given percentage of the token from your wallet

  • src/Token/revoke_authority.js: revoke mint and freeze authority of a given token

Trading:

  • src/Trading/dex/raydium/sell.js: selling spl token for SOL in your wallet using raydium dex swap function

  • src/Trading/dex/raydium/buy.js: buying spl token using SOL in your wallet using raydium dex swap function

  • src/Trading/volume/boost_volume.js: boost the volume of a token by creating a buy and sell order in just one transaction in a way to avoid possible MEV

  • src/Trading/memecoin_trading_strategies/copy-trading/copy-trade.js: copy trading program to follow a user-defined wallet address to auto-buy&sell

Transactions:

  • src/Transactions/jito_tips_tx_executor.js: execute the transaction by sending the bundles to Jito validators, they help us to land the transaction to the Solana blockchain faster than just using priority fee.

  • src/Transactions/simple_tx_executor.js: execute the transaction by sending the request to the Solana blockchain with a given priority gas fee.

Pool:

  • src/Pool/add_pool.js: add liquidity to a pool in a given token address, the code find the most liquid pool (TOKEN_ADDRESS/SOL) in the raydium dex and add liquidity to it. You need to specify the amount of liquidity(sol) you want to add.

  • src/Pool/remove_pool.js: remove liquidity from a pool in a given token address, the code find the most liquid pool (TOKEN_ADDRESS/SOL) in the raydium dex and remove liquidity from it. You need to specify the amount of percentage of liquidity you want to remove.

  • src/Pool/swap.js: swap token for another token in the raydium dex, src/Trading/dex/raydium/buy.js and src/Trading/dex/raydium/sell.js are based on this code.

  • src/Pool/query_pool.js: query the pool information of a given pool address in the raydium dex, it use shyft api to get the pool information. Please make sure you have your shyft api key inside the code before running this code.

Helper methods:

  • src/helpers/config.js: configuration file for the code.

  • src/helpers/util.js: utility functions for the code, including: send transactions to Solana blockchain, dropped transactions handling, etc.

  • src/helpers/check_balance.js: check the balance of a given token in your wallet

Project Structure

.solana-memecoin-cli
├── data
|   ├── Image_file                     # store image file (jpeg, jpg,...)
|   ├── metadata_file                  # store .json file about the token metadata
|   ├── payer_keypair                  # store wallet keypair .json
|   └── token_keypair                  # store token keypair .json
├── examples (Screenshots of Commands) # all screenshot to show how we use the command line tool
|   ├── add_liquidity                  # see how to add liquidity to a pool on Raydium
|   ├── burn_token                     # see how to burn a token with WSOL using Raydium swap
|   ├── create_token                   # see how to create a SPL token on mainnet or devnet
|   ├── buy_token                      # buy a token using raydium with both jito bundles and priority fees
|   ├── create_token                   # create a token with 0% extra fees on solana (mainnet or devnet)
|   ├── remove_liquidity               # remove some liquidity from a pool on Raydium
|   ├── boost_volume                   # boost the volume of a token on raydium
|   ├── pump_createAndInitialBuy       # create and initial buy token on pump.fun
|   ├── pump_buy                       # buy token on pump.fun
|   ├── pump_sell                      # sell token on pump.fun
|   └── sell_token                     # sell the token with a percentage using Raydium swap
└── src
    ├── helpers
    │   ├── .env
    │   ├── .env.copy
    │   ├── check_balance.js
    │   ├── config.js
    │   ├── unwrap_sol.js
    │   ├── util.js
    │   └── wrap_sol.js
    ├── Trading_dev
    │   ├── dex
    │   │   ├── meteora
    │   │   │   ├── swap.js
    │   │   │   ├── buy.js
    │   │   │   ├── sell.js
    │   │   │   ├── constants.js
    │   │   │   ├── fetch-pool.js
    │   │   │   ├── fetch-price.js
    │   │   │   └── idl.js
    │   │   └── orca
    │   │       └── #same as meteora/raydium
    │   └── memecoin_trading_strategies/
    │       ├── copy-trading/
    │       │   ├── copy-buy.js
    │       │   ├── copy-sell.js
    │       │   ├── copy-trade.js
    │       │   └── grpc-copy-bot/
    │       └── tp_sl
    │           ├── stop-loss.js
    │           └── take-profit.js
    ├── Memecoin_dev
    │   ├── bundled_launcher
    │   ├── market-making_dev/
    │   │   └── boost_volume.js
    │   └── sniping_dev
    │       ├── grpc_pump_sniper/
    │       └── grpc_raydium_sniper/
    ├── Transactions
    │   ├── bloXroute_tips_tx_executor.js
    │   ├── jito_tips_tx_executor.js
    │   └── simple_tx_executor.js
    ├── Token
    │   ├── zk-compression/
    │   ├── burn.js
    │   ├── create.js
    │   └── revoke_authority.js
    ├── raydium
    │   ├── Pool/
    │   │   ├── add_pool.js
    │   │   ├── create_pool.js
    │   │   ├── fetch_pool.js
    │   │   ├── formatAmmKeysById.js
    │   │   ├── query_pool.js
    │   │   ├── remove_pool.js
    │   │   └── swap.js
    │   ├── token-filters
    │   │   ├── lp-burn.js
    │   │   ├── maker-count.js
    │   │   ├── marketcap.js
    │   │   ├── pool-sol.js
    │   │   ├── tx-count.js
    │   │   └── volume.js
    │   ├── buy.js
    │   ├── constants.js
    │   ├── fetch-price.js
    │   ├── raydium_config.js
    │   └── sell.js
    ├── jupiter
    │   ├── swap/
    │   │   ├── buy-helper.js
    │   │   ├── sell-helper.js
    │   │   └── swap-helper.js
    │   ├── dca.js
    │   └── limit-order.js
    └── pumpfunsdk
        ├── pump-keypair/
        └── pumpdotfun-sdk
            ├── images/
            └── src
                ├── IDL/
                ├── pump-events-listener/
                │   └── listeners.js
                ├── amm.js
                ├── buy.js
                ├── createAndBuy.js
                ├── pumpfun.js
                ├── sell.js
                ├── tools.js
                └── util.js

Contributing

  • Contributions is wellcome!!!
  • Fork it
  • git checkout -b feature/YourNewFeature
  • git commit -m 'bug Fixed/added new feature'
  • git push origin feature/YourNewFeature
  • And Please open a pull request

Apply Latest Changes from remote repo

  • git stash -u # Stash your changes
  • git pull --rebase # Pull the latest changes
  • git stash pop # Apply Your stashed changes

If you think this project is useful, please give us a star🌟, it will help us a lot.

Discord channel: https://discord.gg/hFhQeBCqWX

It is a work in progress, if you have any suggestions or any problems, please let us know!

Stay tuned for the updates.🤖_**

排名相邻
同类项目