Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 7293
0 votes

Simulate a swap / execute a swap on Raydium in Python

Unfortunately the raydium swap SDK only supports Javascript but there is some way around it where you can do it all in python but it can become very tedious. … This is a good place to get started: https://github.com/precious-void/raydium-swap And regarding the pool keys, I have found two ways to get it reliably: FalconHit API ( costs 0.12 SOL per month): https …
sashavsthewrld's user avatar
5 votes
1 answer
532 views

Why can slippage only be set to whole numbers using Raydium Swap SDK?

I am currently using the Raydium SDK to perform token swaps. … Here is just an example of the percent object I create, where slippageBps is a number, such that if slippageBps was 5 then it would be 5 percent, import { Percent } from '@raydium-io/raydium-sdk' const …
sashavsthewrld's user avatar
4 votes
Accepted

Why can slippage only be set to whole numbers using Raydium Swap SDK?

The Percent class works as a fraction and thus if I just increase the denominator the percent values can become more accurate. const slippage = new Percent(25, 10000); This would yield a percentage v …
sashavsthewrld's user avatar