Closed ghost closed 2 months ago
You could implement something where it fetches the price on-chain for coins after it has already fetched them through the api once. You’ll need to do it once to get the bonding curve address though, or figure out another way to get that.
I haven’t implemented anything like that since rate limiting has never been an issue while testing. I assume you’re doing a lot of swaps/volume botting that you’re having issues with rate limiting.
Thanks for response!
That makes sense. I think I'll just slow down the requests and should work with your library.
Hi, great library!
Inside
api.ts
your library calls this Pumpfun APIhttps://frontend-api.pump.fun/coins/${mintStr}
. The problem is I get rate limited a lot by it. I'm using thepumpFunBuy
function which internally calls that API.My needs are specific and I want to solve this without adding time delays between requests.
I see you are using this data from API to buy with
pumpFunBuy
:virtual_token_reserves
virtual_sol_reserves
bonding_curve
associated_bonding_curve
I believe this data is available to get onchain right? If yes, is there a reason why you use the API versus getting this data onchain?