jup-ag / jupiter-swap-api

The jupiter swap api binary
72 stars 20 forks source link

Can't get quotes for new tokens unless restart jup api - `data: { error: 'No route found' }` #11

Closed dancamarg0 closed 1 month ago

dancamarg0 commented 7 months ago

One of our clients is reporting this error and we can reproduce that.

Here's a new token we could not query until we restarted the jupiter_swap_api for example:

quote?inputMint=So11111111111111111111111111111111111111112&outputMint=E4fVrxVL7xM19hqvp8U8VGJr6pCFdxNzvjCdrgngnQtH&amount=3000000000&slippageBps=0&asLegacyTransaction=false&maxAccounts=25&swapMode=ExactOut
arrowcircle commented 5 months ago

I have the same issue, any updates on this?

dancamarg0 commented 5 months ago

It looks like this behavior is expected and the jupiter API doesn't have the ability to hot-reload markets yet.

What we do to work-around it is to deploy on systemd and set RuntimeMaxSec=3600 to restart every hour

NotArchon commented 3 months ago
image