0xTaoDev / jupiter-python-sdk

Jupiter Python SDK is a Python library that allows you to use most of Jupiter features.
https://pypi.org/project/jupiter-python-sdk/
MIT License
146 stars 34 forks source link

The token is not tradable #13

Open CRY-D opened 6 months ago

CRY-D commented 6 months ago

Ah, it's me again ;) I'm currently facing the following issue: I know it's not the library's issue but the DEX jup aggregator. When I snap a newly created pools on Raydium, roughly within the first 10 to 20 seconds, and then execute the trade, it always returns the message 'The token whatever is not tradable :('.

However, when I search the token address on Dexscreener or Birdeye ... oh my, is already there and tradable :100:.

Screenshot_20240322_025903

jglrmm commented 6 months ago

Hello, I have the same issue, have you found any alternative?

0xTaoDev commented 5 months ago

Hello, if I'm not mistaken, once the token met the criterias (token metadata, $250 liquidity buy/sell, price impact below 30%), it will be listed automatically within few minutes. So that's probably why there is a delay.

Source: https://docs.jup.ag/docs/get-your-token-onto-jup#tokens-with-sufficient-liquidity-and-on-chain-metadata-are-automatically-listed

Allen-Taylor commented 5 months ago

Ah, it's me again ;) I'm currently facing the following issue: I know it's not the library's issue but the DEX jup aggregator. When I snap a newly created pools on Raydium, roughly within the first 10 to 20 seconds, and then execute the trade, it always returns the message 'The token whatever is not tradable :('.

However, when I search the token address on Dexscreener or Birdeye ... oh my, is already there and tradable 💯.

Screenshot_20240322_025903

Jupiter doesn't trade new pairs. You have to use the Raydium SDK.

aleph0ne commented 5 months ago

Is there a python Raydium API/SDK? I haven't found one.

Allen-Taylor commented 5 months ago

Is there a python Raydium API/SDK? I haven't found one.

Check this out.

https://github.com/leq6c/soldexpy

This guy has a good start on doing Raydium swaps, but unfortunately the code is super slow, even with a good RPC. This wouldn't be suitable for an production level code, in fact he expressly says that it is experimental.

If this code could be improved upon, it could be great.

nandubatchu commented 4 months ago

Noticed that some of the tokens are available on their private api host: https://edge-quote-api.jup.ag while the same tokens are deemed not tradable on https://quote-api.jup.ag

alekskravchenko commented 4 months ago

Noticed that some of the tokens are available on their private api host: https://edge-quote-api.jup.ag while the same tokens are deemed not tradable on https://quote-api.jup.ag

Yes, but can't send ".swapPost" to this url. Got: 'Program log: panicked at 'range end index 72 out of range for slice of length 0', src/token.rs:537:39', 'Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 consumed 33807 of 1353845 compute units', 'Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 failed: SBF program panicked'

bambi-bf commented 2 months ago

When I build transaction including two swap instructions and sol transfer instruction: I used jupiter swap instructions api. "Program log: Instruction: Route" "Program log: panicked at 'range end index 72 out of range for slice of length 0', src/token.rs:537:39" "Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 consumed 18729 of 778155 compute units" "Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 failed: SBF program panicked"

siong1987 commented 2 months ago

if you run into "Program log: panicked at 'range end index 72 out of range for slice of length 0', src/token.rs:537:39" error, that means that you are missing the necessary token accounts to swap to and from.

this can happen if you are skipping setupInstructions if you are using /swap-instructions.