API Reference
DBot OfficialDBot DashboardPricing

Wallet Token Holdings

This API is used to retrieve all tokens held by any wallet on Solana / BSC and their profit/loss status

FreePlusProEnterpriseCredit Usage
30

Response data

{
  "err": false, // Error or not
  "res": [
    {
      "_id": "36cfcb17100407b2d691f6a97265ecfd", // Unique record ID
      "account": "6pNBhbgtWwWd6tnQHNoH1tqZW2hBvUfLPVtq5BwTQNZt", // Wallet address
      "latestTradeTime": 1762766802, // Timestamp of the latest trade
      "latestTradeType": "buy", // Type of the latest trade (buy/sell)
      "mint": "A7ba7d16jipe1X5PosZvyPzWCexgijgqJ9pb9tnaQXaS", // Token mint/contract address
      "totalBuyAmount": 0.001, // Total cost spent on buying this token
      "totalBuyQuantity": 0.454814516, // Total token amount bought
      "totalBuyTimes": 1, // Number of buy transactions
      "totalSellAmount": 0, // Total amount received from selling
      "totalSellProfit": 0, // Total profit from sells
      "totalSellQuantity": 0, // Total tokens sold
      "totalSellTimes": 0, // Number of sell transactions
      "updatedAt": 1762766805, // Record last update timestamp
      "tokenBalance": "454814516", // Current token balance (raw)
      "tokenBalanceUI": "0.454814516", // UI-display token balance (adjusted by decimals)
      "pnl": -0.001, // Profit or loss amount
      "pnlPercent": -1, // Profit or loss percentage
      "tokenInfo": {
        "contract": "A7ba7d16jipe1X5PosZvyPzWCexgijgqJ9pb9tnaQXaS", // Token contract address
        "decimals": 9, // Token decimals
        "description": "", // Token description
        "image": "https://cdn.dbotx.com/icon/d3d9d56cb25cf043067aae257702cc4cb745750b", // Token image URL
        "name": "Zcash", // Token name
        "supply": 1000000000, // Total supply of the token
        "symbol": "ZEC", // Token symbol
        "tokenProgram": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", // Token program ID (SPL program)
        "updatedAt": 1762753330542, // Token info last updated timestamp
        "createdAt": 1762753319000, // Timestamp when token info was created
        "freezeAuthority": null, // Freeze authority (null = no freeze authority)
        "mintAuthority": null, // Mint authority (null = no mint authority)
        "telegram": null, // Telegram link
        "twitter": null, // Twitter link
        "website": null // Website link
      }
    }
  ]
}

Response data visualization reference


Language