How to Create a Solana Trading Bot
In this video, learn how to create a Solana trading bot using QuickNode Metis – Jupiter Swap API.
Written version & code used in the video: https://qn.social/QNGuide-metis
Official Jupiter Swap API docs: https://qn.social/QNJupDoc-metis
———
Get access to Metis – Jupiter Swap API: https://qn.social/QNDoc-metis
———
Jupiter Swap Public API: https://qn.social/QNPublic-metis
QuickNode loves sharing its knowledge and tech with the community. Check out the following resources ♥:
Blog: https://qn.social/QNBlog-metis
Web3 Courses: https://qn.social/QNCourses-metis
Web3 guides: https://qn.social/QNGuides-metis
RPC docs: https://qn.social/QNDocs-metis
Discord community: https://qn.social/QNDiscord-metis
Follow us on our social channels to stay updated about everything #web3:
Twitter: https://qn.social/QNTwitter-metis
Facebook: https://qn.social/QNFacebook-metis
Instagram: https://qn.social/QNInstagram-metis
Linkedin: https://qn.social/QNLinkedIn-metis
source
which token is gonna be buy?
00:04 Using Jupiter swap API to find best routes for token swaps.
01:48 Setting up Solana trading bot
03:42 Setting up the trading bot configuration
05:28 Initializing variables and connections for Solana trading bot
07:15 Refreshing balances and initializing price watch for Solana trading bot.
08:54 Creating a Solana trading bot involves executing swap functions efficiently.
10:35 Setting up next trade thresholds and token switches
12:21 Setting up a Solana trading bot with specific parameters
Crafted by Merlin AI.
Hi! With this code I sometimes get this on the wallet transactions: Program Error: "Instruction #6 Failed – Slippage tolerance exceeded". Is this normal, or the slippage has to be adjusted? Thanks!
Thanks for your great content!
Bro, close your file chooser when you're going through the code. It unnecessarily takes up screen real estate and places your face over the code.
is it fit with pumpfun ?
@QuickNode can the priority fee api be used with the metis endpoint?
How can I contact you for custom trading bot on solana?
What platform is the best to deploy a Solana trading bot please, does anyone know?
Great video, thanks. BTW, reinstall VSC and catch exception ERR_UNKNOWN_FILE_EXTENSION when trying to launch index.ts. Can you help out?
I cant use Visual STudio because gives me a lot of errors with Python
Error when executing the command: ts-node index.ts . Which script should I configure in panckage.json?
Do I need to create a "src" folder or just modify the script for start ?
Error: Cannot find module 'rpc-websockets/dist/lib/client' what is this problem
Error when executing the command: ts-node index.ts . Which script should I configure in panckage.json?
Do I need to create a "src" folder or just modify the script for start ?
guys if i want to change those SOL and USDC pairs which part should i Change ? someone help me please
Working really well, except for Program Error: "Instruction #6 Failed – Slippage tolerance exceeded"
Thanks for the thelp. Although, the amount of code it takes to do anything on Solana is so dumb lol.
Make a video about a simple Buy and Sell. Buy a token with SOL, sell your token for SOL. Manually call the function. This is where people should start using Jupiter API and I don't see this video anywhere.