tippenein / seent

seer stats
https://seery.xyz
3 stars 3 forks source link

PNL for hold times #1

Closed tippenein closed 7 months ago

tippenein commented 8 months ago

Could we look at pnl for different holding times too? Like 1h vs 4h vs 12h vs hodl?

Maybe a slider to control. Take the call price and slide along the live data from that point

tippenein commented 7 months ago

https://api.geckoterminal.com/api/v2/networks/solana/tokens/multi/Fp22fxaVMbyWU965ZUXdkY1CH7rTPMo8tBAj54AX8d6H%2CAHW5N8iqZobTcBepkSJzZ61XtAuSzBDcpxtrLG6KUKPk%2C32ga4pCjWS5Z12FJYipJFCZvVPfDy2F7QAQGgdBTUFdJ

fetches 3 tokens by hash

and returns

{
  "data": [
    {
      "id": "solana_Fp22fxaVMbyWU965ZUXdkY1CH7rTPMo8tBAj54AX8d6H",
      "type": "token",
      "attributes": {
        "address": "Fp22fxaVMbyWU965ZUXdkY1CH7rTPMo8tBAj54AX8d6H",
        "name": "Boximator",
        "symbol": "BOXIMATOR",
        "image_url": "missing.png",
        "coingecko_coin_id": null,
        "decimals": 8,
        "total_supply": "99931606624973603.0",
        "price_usd": "0.00000200",
        "fdv_usd": "1995.56",
        "total_reserve_in_usd": "1761.59268839263999995386795780026993776",
        "volume_usd": {
          "h24": "5.0829349260000004406134873542"
        },
        "market_cap_usd": null
      },
      "relationships": {
        "top_pools": {
          "data": [
            {
              "id": "solana_4eNRw11DYY6LNMmC6mesxpdWmw7SkkX3k59UqHeWpqtj",
              "type": "pool"
            }
          ]
        }
      }
    },

https://www.geckoterminal.com/dex-api

tippenein commented 7 months ago

done here https://github.com/tippenein/seent/commit/d7c76fdd1cf70280c0defe6b3405f5197dd04b9b