I am trying to build a bot to swap programmatically in python on Jupiter, but could not find any doc for that. Anyone managed to do so please?
Thanks!
Use this API: https://station.jup.ag/docs/apis/swap-api to fetching prices and generate the transactions needed.
Along with the solana web3 library for signing and sending transactions.
For anyone looking, here's a full guide & code on how to do the Jupiter swap using Jupiter v6 & custom nodes: [Priority fees for a Jupiter swap in Python][1]