im a js i dont work with py but pump provides many apis that works , here : https://frontend-api.pump.fun/api/#/default/TradesController_getAllByMint you can find any endpoint you need to interact with pump i could help if that was a js project , i made a trading bot out of this apis with websocket