btcoin23 / Growtradebot

Telegram Solana bot that users can buy, sell all SPL tokens using JITO on Raydium, Jupiter, Pump.fun. Tech stack: Typescript, Solana/web3, Jito, Raydium SDK, Jupiter API, Pump.fun, ...
https://t.me/BTC0in23
67 stars 24 forks source link

How to make a PNL card? #11

Closed btcoin23 closed 1 day ago

btcoin23 commented 1 day ago

To create a PNL card, a new project is needed. It should record the token price at the time of purchase, then calculate the current price, compare the difference and amounts, and derive the PNL value. After obtaining this PNL value, send a GET request to the PNL card generation project, which will respond with the PNL card image.

btcoin23 commented 1 day ago

You can get a PNL card generation project from this repo