Docs | monitor.ws
  • Welcome
  • Beta
  • 🌊Websocket
    • Quickstart
    • On-Chain Data
      • All
      • Account
      • Signer
      • Token
      • Creation
      • Migration
      • Transfer
    • Off-Chain Data
      • Pumpfun Monitor
        • King of the Hill
        • Meta
      • Dexscreener Monitor
        • Dex Paid
        • Dex Boost
  • 🌐Api
    • Quickstart
    • Transaction
      • Trade
    • On-Chain Data
      • Token
        • Metadata
        • Info
Powered by GitBook
On this page
  • Payload
  • Response
Export as PDF
  1. Websocket
  2. On-Chain Data

Token

Our Token Trade Monitoring features enable you to track Trades made on a specific Solana token in real time.

For details on the supported pool types, please refer to the Welcome section of our documentation.

Payload

Add one or more tokens to monitor by replacing pbk_n with the desired Solana token public keys (mint).

{
   "event": "listenTokenTrade",
   "content": [
      "pbk_one",
      "pbk_two",
      "..."
   ]
}

Remove one or more tokens from monitoring by replacing pbk_n with the desired Solana token public keys (mint).

{
   "event": "removeTokenTrade",
   "content": [
      "pbk_one",
      "pbk_two",
      "..."
   ]
}

Response

The pool.type response may vary depending on the pool used to purchase/sell the token. The isBuy field will only be available if one of the input/output tokens is equal to solMint.

marketcap, marketcap_usd, and bonding_percentage are omitempty.

{
   "signature":"solana.Signature",
   "signer":[
      "solana.PublicKey",
      "..."
   ],
   "trade":{
      "user":"solana.PublicKey",
      "mint_in":"solana.PublicKey",
      "token_in": float64,
      "decimals_in":int,
      "mint_out":"solana.PublicKey",
      "token_out":float64,
      "decimals_out":int,
      "isBuy":bool
   },
   "pool":{
      "type":"string",
      "pairs":[
         {
            "mint":"solana.PublicKey",
            "amount":float64,
            "decimals":int
         },
         {
            "mint":"solana.PublicKey",
            "amount":float64,
            "decimals":int
         }
      ],
      "marketcap":float64,
      "marketcap_usd":float64,
      "bonding_percentage":float64
   },
   "details": {
      "slot": uint64,
      "block_height": uint64,
      "timestamp": int64
  }
}

PreviousSignerNextCreation

Last updated 2 months ago

🌊