> ## Documentation Index
> Fetch the complete documentation index at: https://docs.struct.to/llms.txt
> Use this file to discover all available pages before exploring further.

# Trader portfolio

> Returns a trader's full portfolio over the selected timeframe: overall and per-token PnL, PnL distribution, open and closed positions with live balances and keyset cursors, stablecoin balances, a PnL chart series, funding, and dev tokens.

* `active_positions_pnl_stats` holds the first 100 open positions worth at least \$0.001, most recently traded first. `current_balance` totals cover every open position.
* `closed_positions_pnl_stats` holds the first 100 closed positions, most recently traded first.
* Page further through either list with [trader positions list](https://docs.struct.to/api-reference/trader/trader-positions-list.md): pass `active_positions_pagination.pagination_key` with `status=open&min_value_usd=0.001`, or `closed_positions_pagination.pagination_key` with `status=closed`.
* `stablecoin_balances` lists the wallet's non-zero balances of the chain's stablecoins (for example USDC and USDT, or USDG on Robinhood), valued at \$1 per token, with name, symbol and image. `current_balance.stablecoin_balance_usd` is their sum.
* `token_pnl_stats` holds the top 100 tokens by PnL in the selected `timeframe`; `recent_100_tokens` lists the 100 most recently traded tokens. `token_metadata` covers every token in these lists.
* `potential_max_value_*` and `couldve_made_*` are set only on open positions whose token hit its all-time high while the trader held it; otherwise they are `null`. `overall_average_*` fields are not computed and are always `null`. `streak_info` is not currently returned.
* `funding` is the wallet's first inbound native transfer, the same record as [funded by](https://docs.struct.to/api-reference/trader/trader-funded-by.md).

```bash theme={null}
curl "https://staging-api.struct.to/v1/trader/pnl/portfolio?chain=robinhood&chain_id=4663&trader=0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51&timeframe=30d&fields=short" \
  -H "X-API-Key: YOUR_API_KEY"
```

```json Response (Long) theme={null}
{
  "overall_pnl_stats": {
    "buy_count": 90,
    "sell_count": 71,
    "buy_native": 53.4,
    "buy_usd": 132000.0,
    "sell_native": 43.6,
    "sell_usd": 108000.0,
    "pnl_native": 7.44,
    "pnl_usd": 18420.55,
    "pnl_native_percent": 13.93,
    "pnl_usd_percent": 13.95,
    "pnl_above_500_count": 6,
    "pnl_200_to_500_count": 8,
    "pnl_0_to_200_count": 7,
    "pnl_0_to_neg50_count": 9,
    "pnl_below_neg50_count": 8
  },
  "token_pnl_stats": [
    {
      "token_address": "0x39dbed3a2bd333467115de45665cc57f813c4571",
      "buy_count": 8,
      "sell_count": 5,
      "buy_native": 4.85,
      "buy_usd": 12000.0,
      "buy_tokens": 680000.0,
      "sell_native": 6.22,
      "sell_usd": 15400.0,
      "sell_tokens": 420000.0,
      "pnl_native": 1.37,
      "pnl_usd": 3400.0,
      "pnl_native_percent": 28.25,
      "pnl_usd_percent": 28.33,
      "average_buy_price_usd": 0.01765,
      "average_buy_price_native": 7.13e-06,
      "average_sell_price_usd": 0.03667,
      "average_sell_price_native": 1.481e-05,
      "overall_average_price_usd": null,
      "overall_average_price_native": null,
      "average_buy_market_cap_usd": 261760.0,
      "average_buy_market_cap_native": 1760.0,
      "average_sell_market_cap_usd": 564290.0,
      "average_sell_market_cap_native": 3810.0,
      "overall_average_market_cap_usd": null,
      "overall_average_market_cap_native": null,
      "current_token_balance_usd": 25160.0,
      "current_token_balance_native": 10.17,
      "current_token_balance": 260000.0,
      "potential_max_value_usd": null,
      "potential_max_value_native": null,
      "couldve_made_usd": null,
      "couldve_made_native": null,
      "most_recent_pool_id": "0xed50bdeea8adc232f159486192a4157281d722ff",
      "first_active": 1784116377000,
      "last_active": 1784216377000
    }
  ],
  "active_positions_pnl_stats": [
    {
      "token_address": "0x39dbed3a2bd333467115de45665cc57f813c4571",
      "buy_count": 8,
      "sell_count": 5,
      "buy_native": 4.85,
      "buy_usd": 12000.0,
      "buy_tokens": 680000.0,
      "sell_native": 6.22,
      "sell_usd": 15400.0,
      "sell_tokens": 420000.0,
      "pnl_native": 1.37,
      "pnl_usd": 3400.0,
      "pnl_native_percent": 28.25,
      "pnl_usd_percent": 28.33,
      "average_buy_price_usd": 0.01765,
      "average_buy_price_native": 7.13e-06,
      "average_sell_price_usd": 0.03667,
      "average_sell_price_native": 1.481e-05,
      "overall_average_price_usd": null,
      "overall_average_price_native": null,
      "average_buy_market_cap_usd": 261760.0,
      "average_buy_market_cap_native": 1760.0,
      "average_sell_market_cap_usd": 564290.0,
      "average_sell_market_cap_native": 3810.0,
      "overall_average_market_cap_usd": null,
      "overall_average_market_cap_native": null,
      "current_token_balance_usd": 25160.0,
      "current_token_balance_native": 10.17,
      "current_token_balance": 260000.0,
      "potential_max_value_usd": 41600.0,
      "potential_max_value_native": 16.81,
      "couldve_made_usd": 16440.0,
      "couldve_made_native": 6.64,
      "most_recent_pool_id": "0xed50bdeea8adc232f159486192a4157281d722ff",
      "first_active": 1784116377000,
      "last_active": 1784216377000
    }
  ],
  "closed_positions_pnl_stats": [
    {
      "token_address": "0x8f2c1a0e5b7d4c3e9a6b1f0d2e4c6a8b0d1e3f57",
      "buy_count": 8,
      "sell_count": 5,
      "buy_native": 4.85,
      "buy_usd": 12000.0,
      "buy_tokens": 680000.0,
      "sell_native": 4.52,
      "sell_usd": 11180.0,
      "sell_tokens": 680000.0,
      "pnl_native": -0.33,
      "pnl_usd": -820.0,
      "pnl_native_percent": -6.8,
      "pnl_usd_percent": -6.83,
      "average_buy_price_usd": 0.01765,
      "average_buy_price_native": 7.13e-06,
      "average_sell_price_usd": 0.03667,
      "average_sell_price_native": 1.481e-05,
      "overall_average_price_usd": null,
      "overall_average_price_native": null,
      "average_buy_market_cap_usd": 261760.0,
      "average_buy_market_cap_native": 1760.0,
      "average_sell_market_cap_usd": 564290.0,
      "average_sell_market_cap_native": 3810.0,
      "overall_average_market_cap_usd": null,
      "overall_average_market_cap_native": null,
      "current_token_balance_usd": 0.0,
      "current_token_balance_native": 0.0,
      "current_token_balance": 0.0,
      "potential_max_value_usd": null,
      "potential_max_value_native": null,
      "couldve_made_usd": null,
      "couldve_made_native": null,
      "most_recent_pool_id": "0x4b1a9c2d7e5f8a3b6c0d9e2f1a4b7c3d5e8f0a12",
      "first_active": 1783900000000,
      "last_active": 1784010000000
    }
  ],
  "token_metadata": [
    {
      "address": "0x39dbed3a2bd333467115de45665cc57f813c4571",
      "name": "Pons",
      "symbol": "PONS",
      "image_url": "https://cdn.example.com/pons.png",
      "created_at": 1783816377000,
      "protocol": "UniswapV4",
      "migrated_from_protocol": "PonsV2"
    },
    {
      "address": "0x8f2c1a0e5b7d4c3e9a6b1f0d2e4c6a8b0d1e3f57",
      "name": "Robin",
      "symbol": "ROBIN",
      "image_url": "https://cdn.example.com/robin.png",
      "created_at": 1783800000000,
      "protocol": "UniswapV3"
    }
  ],
  "current_balance": {
    "native_balance": 2.4,
    "native_balance_usd": 5937.72,
    "token_value_native": 10.17,
    "token_value_usd": 25160.0,
    "total_unrealized_native": 8.32,
    "total_unrealized_usd": 20571.0,
    "stablecoin_balance_usd": 1520.4
  },
  "current_positions": [
    "0x39dbed3a2bd333467115de45665cc57f813c4571"
  ],
  "top_100_tokens": [
    "0x39dbed3a2bd333467115de45665cc57f813c4571"
  ],
  "recent_100_tokens": [
    "0x39dbed3a2bd333467115de45665cc57f813c4571",
    "0x8f2c1a0e5b7d4c3e9a6b1f0d2e4c6a8b0d1e3f57"
  ],
  "pnl_chart_data": [
    {
      "timestamp": 1784030400000,
      "cumulative_pnl_usd": 0.0
    },
    {
      "timestamp": 1784116800000,
      "cumulative_pnl_usd": -820.0
    },
    {
      "timestamp": 1784203200000,
      "cumulative_pnl_usd": 2580.0
    }
  ],
  "dev_tokens": {
    "total_tokens_created": 12,
    "total_tokens_migrated": 3,
    "average_migration_time": 842,
    "fastest_migrated_token": {
      "address": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
      "name": "Pons",
      "symbol": "PONS",
      "created_at": 1784216377000,
      "last_active": 1784265827000,
      "image_url": "https://cdn.example.com/pons.png",
      "market_cap_usd_ath": 1265510619.22
    },
    "fastest_migrated_token_time": 214,
    "last_launched_token": {
      "address": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
      "name": "Pons",
      "symbol": "PONS",
      "created_at": 1784216377000,
      "last_active": 1784265827000,
      "image_url": "https://cdn.example.com/pons.png",
      "market_cap_usd_ath": 1265510619.22
    },
    "last_launched_timestamp": 1784216377000,
    "highest_current_market_cap_token": {
      "address": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
      "name": "Pons",
      "symbol": "PONS",
      "created_at": 1784216377000,
      "last_active": 1784265827000,
      "image_url": "https://cdn.example.com/pons.png",
      "market_cap_usd_ath": 1265510619.22
    },
    "highest_current_market_cap_usd": 96648686.19,
    "highest_current_market_cap_usd_timestamp": 1784265827000,
    "highest_current_market_cap_ath_token": {
      "address": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
      "name": "Pons",
      "symbol": "PONS",
      "created_at": 1784216377000,
      "last_active": 1784265827000,
      "image_url": "https://cdn.example.com/pons.png",
      "market_cap_usd_ath": 1265510619.22
    },
    "highest_current_market_cap_ath_usd": 1265510619.22,
    "highest_current_market_cap_ath_usd_timestamp": 1784265827000,
    "tokens": [
      {
        "address": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
        "name": "Pons",
        "symbol": "PONS",
        "image_url": "https://cdn.example.com/pons.png",
        "created_at": 1784216377000,
        "is_migration_pool": true,
        "protocol": "UniswapV4",
        "migrated_from_protocol": "PonsV2",
        "last_active": 1784265827000,
        "market_cap_usd": 96648686.19,
        "volume_24h_usd": 13499.42,
        "price_change_24h_percentage_usd": 0.47,
        "market_cap_usd_ath": 1265510619.22,
        "pool_id": "0x1111111111111111111111111111111111111111111111111111111111111111",
        "token_a": {
          "address": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
          "decimals": 18,
          "supply": 1000000000.0,
          "market_cap": 32216.23,
          "market_cap_usd": 96648686.19,
          "market_cap_native": 32216.23,
          "price": 3.22162e-05,
          "price_usd": 0.0966487,
          "price_native": 3.22162e-05,
          "market_cap_usd_ath": 1265510619.22,
          "price_usd_ath": 1.2655106,
          "ath_timestamp": 1784240000000,
          "vault_amount": 12803400.0,
          "vault_amount_usd": 1237420.4,
          "verified": false,
          "metadata": {
            "name": "Pons",
            "symbol": "PONS",
            "image_url": "https://cdn.example.com/pons.png"
          }
        },
        "token_b": {
          "address": "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73",
          "decimals": 18,
          "price": 31040.4,
          "price_usd": 3000.0,
          "price_native": 1.0,
          "vault_amount": 412.5,
          "vault_amount_usd": 1237500.0,
          "verified": true,
          "metadata": {
            "name": "Wrapped Ether",
            "symbol": "WETH"
          }
        },
        "token_a_flipped": true,
        "quote_type": "NATIVE",
        "liquidity_fdv_usd": 2474840.8,
        "holders": {
          "total_holders": 18422,
          "top_10_holder_percentage": 21.4,
          "dev_holding_percentage": 1.2,
          "sniper_holders_count": 14,
          "sniper_holding_percentage": 2.8,
          "bundler_holders_count": 6,
          "bundler_holding_percentage": 1.9,
          "insider_holders_count": 3,
          "insider_holding_percentage": 0.7,
          "fresh_holders_count": 412,
          "fresh_holding_percentage": 4.6
        },
        "metrics": {
          "1h": {
            "buy_volume_usd": 820.5,
            "sell_volume_usd": 610.2,
            "total_volume_usd": 1430.7,
            "net_volume_usd": 210.3,
            "buys": 18,
            "sells": 11,
            "txns": 29,
            "total_fees_native": 0.0142,
            "price_historical_usd": 0.0962,
            "price_change_percentage": 0.47
          },
          "24h": {
            "buy_volume_usd": 7200.12,
            "sell_volume_usd": 6299.3,
            "total_volume_usd": 13499.42,
            "net_volume_usd": 900.82,
            "buys": 204,
            "sells": 171,
            "txns": 375,
            "total_fees_native": 0.1831,
            "total_priority_fees_native": 0.0412,
            "price_historical_usd": 0.0962,
            "price_change_percentage": 0.47,
            "market_cap_usd_ath": 98200000.0,
            "price_usd_ath": 0.0982
          }
        },
        "pnl": {
          "status": "open",
          "buy_count": 1,
          "sell_count": 4,
          "total_trades": 5,
          "total_bought": 20000000.0,
          "total_sold": 8000000.0,
          "position_amount": 12000000.0,
          "estimated_value_native": 386.5944,
          "estimated_value_usd": 1159784.4,
          "value_price_native": 3.22162e-05,
          "value_price_usd": 0.0966487,
          "buy_native": 0.4,
          "sell_native": 112.0,
          "pnl_native": 111.6,
          "buy_usd": 1200.0,
          "sell_usd": 336000.0,
          "pnl_usd": 334800.0,
          "avg_buy_price_native": 2e-08,
          "avg_buy_price_usd": 6e-05,
          "avg_sell_price_native": 1.4e-05,
          "avg_sell_price_usd": 0.042,
          "opening_price_native": 2e-08,
          "closing_price_native": 2.04e-05,
          "opening_price_usd": 6e-05,
          "closing_price_usd": 0.0612,
          "high_price_native": 2.04e-05,
          "low_price_native": 2e-08,
          "high_price_usd": 0.0612,
          "low_price_usd": 6e-05,
          "avg_buy_market_cap_native": 20.0,
          "avg_buy_market_cap_usd": 60000.0,
          "avg_sell_market_cap_native": 14000.0,
          "avg_sell_market_cap_usd": 42000000.0,
          "total_priority_fees": 0.0021,
          "first_trade_at": 1784216377000,
          "last_trade_at": 1784240000000,
          "last_pool": "0x1111111111111111111111111111111111111111111111111111111111111111",
          "first_tx_hash": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
          "timeframe": "lifetime"
        }
      },
      {
        "address": "0x2222222222222222222222222222222222222222",
        "name": "New Pons",
        "symbol": "NPONS",
        "image_url": "https://cdn.example.com/new-pons.png",
        "created_at": 1784265800000,
        "is_migration_pool": false,
        "protocol": "PonsV2",
        "last_active": 1784265827000,
        "market_cap_usd": 4000.0,
        "volume_24h_usd": 1000.0,
        "price_change_24h_percentage_usd": 2.5,
        "market_cap_usd_ath": 4500.0,
        "pool_id": "0x3333333333333333333333333333333333333333",
        "token_a": {
          "address": "0x2222222222222222222222222222222222222222",
          "decimals": 18,
          "supply": 1000000000.0,
          "market_cap": 1.3333,
          "market_cap_usd": 4000.0,
          "market_cap_native": 1.3333,
          "price": 1.3333e-09,
          "price_usd": 4e-06,
          "price_native": 1.3333e-09,
          "market_cap_usd_ath": 4500.0,
          "price_usd_ath": 4.5e-06,
          "ath_timestamp": 1784265810000,
          "bonding_curve_percentage": 12.4,
          "vault_amount": 793000000.0,
          "vault_amount_usd": 3172.0,
          "verified": false,
          "metadata": {
            "name": "New Pons",
            "symbol": "NPONS",
            "image_url": "https://cdn.example.com/new-pons.png"
          }
        },
        "token_b": {
          "address": "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73",
          "decimals": 18,
          "price": 750018750.0,
          "price_usd": 3000.0,
          "price_native": 1.0,
          "vault_amount": 1.05,
          "vault_amount_usd": 3150.0,
          "verified": true,
          "metadata": {
            "name": "Wrapped Ether",
            "symbol": "WETH"
          }
        },
        "token_a_flipped": false,
        "quote_type": "NATIVE",
        "liquidity_fdv_usd": 6322.0,
        "holders": {
          "total_holders": 86,
          "top_10_holder_percentage": 38.2,
          "dev_holding_percentage": 4.1,
          "fresh_holders_count": 9,
          "fresh_holding_percentage": 3.3
        },
        "metrics": {
          "1h": {
            "buy_volume_usd": 640.0,
            "sell_volume_usd": 210.0,
            "total_volume_usd": 850.0,
            "net_volume_usd": 430.0,
            "buys": 22,
            "sells": 7,
            "txns": 29,
            "total_fees_native": 0.0019,
            "price_historical_usd": 3.9e-06,
            "price_change_percentage": 2.5
          },
          "24h": {
            "buy_volume_usd": 690.0,
            "sell_volume_usd": 310.0,
            "total_volume_usd": 1000.0,
            "net_volume_usd": 380.0,
            "buys": 24,
            "sells": 9,
            "txns": 33,
            "total_fees_native": 0.0021,
            "price_historical_usd": 3.9e-06,
            "price_change_percentage": 2.5,
            "market_cap_usd_ath": 4500.0,
            "price_usd_ath": 4.5e-06
          }
        },
        "pnl": {
          "status": "open",
          "buy_count": 1,
          "sell_count": 0,
          "total_trades": 1,
          "total_bought": 50000000.0,
          "total_sold": 0.0,
          "position_amount": 50000000.0,
          "estimated_value_native": 0.066665,
          "estimated_value_usd": 200.0,
          "value_price_native": 1.3333e-09,
          "value_price_usd": 4e-06,
          "buy_native": 0.05,
          "sell_native": 0.0,
          "pnl_native": -0.05,
          "buy_usd": 150.0,
          "sell_usd": 0.0,
          "pnl_usd": -150.0,
          "avg_buy_price_native": 1e-09,
          "avg_buy_price_usd": 3e-06,
          "opening_price_native": 1e-09,
          "closing_price_native": 1e-09,
          "opening_price_usd": 3e-06,
          "closing_price_usd": 3e-06,
          "high_price_native": 1e-09,
          "low_price_native": 1e-09,
          "high_price_usd": 3e-06,
          "low_price_usd": 3e-06,
          "avg_buy_market_cap_native": 1.0,
          "avg_buy_market_cap_usd": 3000.0,
          "total_priority_fees": 0.0004,
          "first_trade_at": 1784265800000,
          "last_trade_at": 1784265800000,
          "last_pool": "0x3333333333333333333333333333333333333333",
          "first_tx_hash": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
          "timeframe": "lifetime"
        }
      }
    ]
  },
  "funding": {
    "funder": "0x92C5A42cF503b572955BcfA10E15D47cA5682387",
    "funder_type": "cex",
    "funder_name": "Binance",
    "amount": 0.5,
    "amount_raw": "500000000000000000",
    "decimals": 18,
    "name": "Ether",
    "symbol": "ETH",
    "hash": "0x1111111111111111111111111111111111111111111111111111111111111111",
    "block": 12345678,
    "timestamp": 1784216300000
  },
  "active_positions_pagination": {
    "has_more": true,
    "pagination_key": "1784216377~0x39dbed3a2bd333467115de45665cc57f813c4571"
  },
  "closed_positions_pagination": {
    "has_more": false
  },
  "stablecoin_balances": [
    {
      "address": "0x5fc5360d0400a0fd4f2af552add042d716f1d168",
      "name": "Global Dollar",
      "symbol": "USDG",
      "image_url": "https://cdn.example.com/usdg.png",
      "balance_usd": 1520.4
    }
  ]
}
```

```jsonc Response (Short) theme={null}
{
  "ops": {
    "bc": 90,
    "sc": 71,
    "bn": 53.4,
    "bu": 132000.0,
    "sn": 43.6,
    "su": 108000.0,
    "pnn": 7.44,
    "pu": 18420.55,
    "pnp": 13.93,
    "pup": 13.95,
    "p5": 6,
    "p25": 8,
    "p02": 7,
    "pn50": 9,
    "pbn": 8
  },
  "tps": [
    {
      "ta": "0x39dbed3a2bd333467115de45665cc57f813c4571",
      "bc": 8,
      "sc": 5,
      "bn": 4.85,
      "bu": 12000.0,
      "bt": 680000.0,
      "sn": 6.22,
      "su": 15400.0,
      "st": 420000.0,
      "pnn": 1.37,
      "pu": 3400.0,
      "pnp": 28.25,
      "pup": 28.33,
      "abpu": 0.01765,
      "abpn": 7.13e-06,
      "aspu": 0.03667,
      "aspn": 1.481e-05,
      "oapu": null,
      "oapn": null,
      "abmcu": 261760.0,
      "abmcn": 1760.0,
      "asmcu": 564290.0,
      "asmcn": 3810.0,
      "oamcu": null,
      "oamcn": null,
      "ctbu": 25160.0,
      "ctbn": 10.17,
      "ctb": 260000.0,
      "pmvu": null,
      "pmvn": null,
      "cmu": null,
      "cmn": null,
      "mrp": "0xed50bdeea8adc232f159486192a4157281d722ff",
      "fa": 1784116377000,
      "la": 1784216377000
    }
  ],
  "aps": [
    {
      "ta": "0x39dbed3a2bd333467115de45665cc57f813c4571",
      "bc": 8,
      "sc": 5,
      "bn": 4.85,
      "bu": 12000.0,
      "bt": 680000.0,
      "sn": 6.22,
      "su": 15400.0,
      "st": 420000.0,
      "pnn": 1.37,
      "pu": 3400.0,
      "pnp": 28.25,
      "pup": 28.33,
      "abpu": 0.01765,
      "abpn": 7.13e-06,
      "aspu": 0.03667,
      "aspn": 1.481e-05,
      "oapu": null,
      "oapn": null,
      "abmcu": 261760.0,
      "abmcn": 1760.0,
      "asmcu": 564290.0,
      "asmcn": 3810.0,
      "oamcu": null,
      "oamcn": null,
      "ctbu": 25160.0,
      "ctbn": 10.17,
      "ctb": 260000.0,
      "pmvu": 41600.0,
      "pmvn": 16.81,
      "cmu": 16440.0,
      "cmn": 6.64,
      "mrp": "0xed50bdeea8adc232f159486192a4157281d722ff",
      "fa": 1784116377000,
      "la": 1784216377000
    }
  ],
  "cps": [
    {
      "ta": "0x8f2c1a0e5b7d4c3e9a6b1f0d2e4c6a8b0d1e3f57",
      "bc": 8,
      "sc": 5,
      "bn": 4.85,
      "bu": 12000.0,
      "bt": 680000.0,
      "sn": 4.52,
      "su": 11180.0,
      "st": 680000.0,
      "pnn": -0.33,
      "pu": -820.0,
      "pnp": -6.8,
      "pup": -6.83,
      "abpu": 0.01765,
      "abpn": 7.13e-06,
      "aspu": 0.03667,
      "aspn": 1.481e-05,
      "oapu": null,
      "oapn": null,
      "abmcu": 261760.0,
      "abmcn": 1760.0,
      "asmcu": 564290.0,
      "asmcn": 3810.0,
      "oamcu": null,
      "oamcn": null,
      "ctbu": 0.0,
      "ctbn": 0.0,
      "ctb": 0.0,
      "pmvu": null,
      "pmvn": null,
      "cmu": null,
      "cmn": null,
      "mrp": "0x4b1a9c2d7e5f8a3b6c0d9e2f1a4b7c3d5e8f0a12",
      "fa": 1783900000000,
      "la": 1784010000000
    }
  ],
  "tm": [
    {
      "a": "0x39dbed3a2bd333467115de45665cc57f813c4571",
      "n": "Pons",
      "s": "PONS",
      "i": "https://cdn.example.com/pons.png",
      "c": 1783816377000,
      "pr": "UniswapV4",
      "mp": "PonsV2"
    },
    {
      "a": "0x8f2c1a0e5b7d4c3e9a6b1f0d2e4c6a8b0d1e3f57",
      "n": "Robin",
      "s": "ROBIN",
      "i": "https://cdn.example.com/robin.png",
      "c": 1783800000000,
      "pr": "UniswapV3"
    }
  ],
  "cb": {
    "nb": 2.4,
    "nbu": 5937.72,
    "tvn": 10.17,
    "tvu": 25160.0,
    "tun": 8.32,
    "tuu": 20571.0,
    "sbu": 1520.4
  },
  "cp": [
    "0x39dbed3a2bd333467115de45665cc57f813c4571"
  ],
  "t1": [
    "0x39dbed3a2bd333467115de45665cc57f813c4571"
  ],
  "r1": [
    "0x39dbed3a2bd333467115de45665cc57f813c4571",
    "0x8f2c1a0e5b7d4c3e9a6b1f0d2e4c6a8b0d1e3f57"
  ],
  "pcd": [
    {
      "t": 1784030400000,
      "p": 0.0
    },
    {
      "t": 1784116800000,
      "p": -820.0
    },
    {
      "t": 1784203200000,
      "p": 2580.0
    }
  ],
  "dt": {
    "ttc": 12,
    "ttm": 3,
    "amt": 842,
    "fmt": {
      "a": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
      "n": "Pons",
      "sy": "PONS",
      "ca": 1784216377000,
      "la": 1784265827000,
      "iu": "https://cdn.example.com/pons.png",
      "mcua": 1265510619.22
    },
    "fmtt": 214,
    "llt": {
      "a": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
      "n": "Pons",
      "sy": "PONS",
      "ca": 1784216377000,
      "la": 1784265827000,
      "iu": "https://cdn.example.com/pons.png",
      "mcua": 1265510619.22
    },
    "llts": 1784216377000,
    "hcmct": {
      "a": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
      "n": "Pons",
      "sy": "PONS",
      "ca": 1784216377000,
      "la": 1784265827000,
      "iu": "https://cdn.example.com/pons.png",
      "mcua": 1265510619.22
    },
    "hcmcu": 96648686.19,
    "hcmcts": 1784265827000,
    "hcmat": {
      "a": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
      "n": "Pons",
      "sy": "PONS",
      "ca": 1784216377000,
      "la": 1784265827000,
      "iu": "https://cdn.example.com/pons.png",
      "mcua": 1265510619.22
    },
    "hcmau": 1265510619.22,
    "hcmatts": 1784265827000,
    "tks": [
      {
        "a": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
        "n": "Pons",
        "sy": "PONS",
        "iu": "https://cdn.example.com/pons.png",
        "ca": 1784216377000,
        "imp": true,
        "pr": "UniswapV4",
        "mfp": "PonsV2",
        "la": 1784265827000,
        "mcu": 96648686.19,
        "v24": 13499.42,
        "pc24": 0.47,
        "mcua": 1265510619.22,
        "p": "0x1111111111111111111111111111111111111111111111111111111111111111",
        "ta": {
          "a": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
          "d": 18,
          "su": 1000000000.0,
          "mn": 32216.23,
          "mc": 96648686.19,
          "mcn": 32216.23,
          "p": 3.22162e-05,
          "pu": 0.0966487,
          "pn": 3.22162e-05,
          "mca": 1265510619.22,
          "pua": 1.2655106,
          "at": 1784240000000,
          "va": 12803400.0,
          "vau": 1237420.4,
          "v": false,
          "m": {
            "n": "Pons",
            "s": "PONS",
            "i": "https://cdn.example.com/pons.png"
          }
        },
        "tb": {
          "a": "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73",
          "d": 18,
          "p": 31040.4,
          "pu": 3000.0,
          "pn": 1.0,
          "va": 412.5,
          "vau": 1237500.0,
          "v": true,
          "m": {
            "n": "Wrapped Ether",
            "s": "WETH"
          }
        },
        "fl": true,
        "qt": "NATIVE",
        "lq": 2474840.8,
        "h": {
          "ho": 18422,
          "h10": 21.4,
          "dhp": 1.2,
          "snc": 14,
          "shp": 2.8,
          "buc": 6,
          "buhp": 1.9,
          "ihc": 3,
          "ihp": 0.7,
          "fhc": 412,
          "fhp": 4.6
        },
        "mx": {
          "1h": {
            "bv": 820.5,
            "sv": 610.2,
            "tv": 1430.7,
            "nv": 210.3,
            "b": 18,
            "s": 11,
            "t": 29,
            "tf": 0.0142,
            "ph": 0.0962,
            "pc": 0.47
          },
          "24h": {
            "bv": 7200.12,
            "sv": 6299.3,
            "tv": 13499.42,
            "nv": 900.82,
            "b": 204,
            "s": 171,
            "t": 375,
            "tf": 0.1831,
            "pf": 0.0412,
            "ph": 0.0962,
            "pc": 0.47,
            "mca": 98200000.0,
            "pua": 0.0982
          }
        },
        "pnl": {
          "st": "open",
          "bc": 1,
          "sc": 4,
          "tt": 5,
          "tbo": 20000000.0,
          "tso": 8000000.0,
          "pa": 12000000.0,
          "evn": 386.5944,
          "evu": 1159784.4,
          "vpn": 3.22162e-05,
          "vpu": 0.0966487,
          "bn": 0.4,
          "sn": 112.0,
          "pnn": 111.6,
          "bu": 1200.0,
          "su": 336000.0,
          "pu": 334800.0,
          "abpn": 2e-08,
          "abpu": 6e-05,
          "aspn": 1.4e-05,
          "aspu": 0.042,
          "opn": 2e-08,
          "clpn": 2.04e-05,
          "opu": 6e-05,
          "clpu": 0.0612,
          "hpn": 2.04e-05,
          "lpn": 2e-08,
          "hpu": 0.0612,
          "lpu": 6e-05,
          "abmcn": 20.0,
          "abmcu": 60000.0,
          "asmcn": 14000.0,
          "asmcu": 42000000.0,
          "tpf": 0.0021,
          "fta": 1784216377000,
          "lta": 1784240000000,
          "lpo": "0x1111111111111111111111111111111111111111111111111111111111111111",
          "fth": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
          "tf": "lifetime"
        }
      },
      {
        "a": "0x2222222222222222222222222222222222222222",
        "n": "New Pons",
        "sy": "NPONS",
        "iu": "https://cdn.example.com/new-pons.png",
        "ca": 1784265800000,
        "imp": false,
        "pr": "PonsV2",
        "la": 1784265827000,
        "mcu": 4000.0,
        "v24": 1000.0,
        "pc24": 2.5,
        "mcua": 4500.0,
        "p": "0x3333333333333333333333333333333333333333",
        "ta": {
          "a": "0x2222222222222222222222222222222222222222",
          "d": 18,
          "su": 1000000000.0,
          "mn": 1.3333,
          "mc": 4000.0,
          "mcn": 1.3333,
          "p": 1.3333e-09,
          "pu": 4e-06,
          "pn": 1.3333e-09,
          "mca": 4500.0,
          "pua": 4.5e-06,
          "at": 1784265810000,
          "bc": 12.4,
          "va": 793000000.0,
          "vau": 3172.0,
          "v": false,
          "m": {
            "n": "New Pons",
            "s": "NPONS",
            "i": "https://cdn.example.com/new-pons.png"
          }
        },
        "tb": {
          "a": "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73",
          "d": 18,
          "p": 750018750.0,
          "pu": 3000.0,
          "pn": 1.0,
          "va": 1.05,
          "vau": 3150.0,
          "v": true,
          "m": {
            "n": "Wrapped Ether",
            "s": "WETH"
          }
        },
        "fl": false,
        "qt": "NATIVE",
        "lq": 6322.0,
        "h": {
          "ho": 86,
          "h10": 38.2,
          "dhp": 4.1,
          "fhc": 9,
          "fhp": 3.3
        },
        "mx": {
          "1h": {
            "bv": 640.0,
            "sv": 210.0,
            "tv": 850.0,
            "nv": 430.0,
            "b": 22,
            "s": 7,
            "t": 29,
            "tf": 0.0019,
            "ph": 3.9e-06,
            "pc": 2.5
          },
          "24h": {
            "bv": 690.0,
            "sv": 310.0,
            "tv": 1000.0,
            "nv": 380.0,
            "b": 24,
            "s": 9,
            "t": 33,
            "tf": 0.0021,
            "ph": 3.9e-06,
            "pc": 2.5,
            "mca": 4500.0,
            "pua": 4.5e-06
          }
        },
        "pnl": {
          "st": "open",
          "bc": 1,
          "sc": 0,
          "tt": 1,
          "tbo": 50000000.0,
          "tso": 0.0,
          "pa": 50000000.0,
          "evn": 0.066665,
          "evu": 200.0,
          "vpn": 1.3333e-09,
          "vpu": 4e-06,
          "bn": 0.05,
          "sn": 0.0,
          "pnn": -0.05,
          "bu": 150.0,
          "su": 0.0,
          "pu": -150.0,
          "abpn": 1e-09,
          "abpu": 3e-06,
          "opn": 1e-09,
          "clpn": 1e-09,
          "opu": 3e-06,
          "clpu": 3e-06,
          "hpn": 1e-09,
          "lpn": 1e-09,
          "hpu": 3e-06,
          "lpu": 3e-06,
          "abmcn": 1.0,
          "abmcu": 3000.0,
          "tpf": 0.0004,
          "fta": 1784265800000,
          "lta": 1784265800000,
          "lpo": "0x3333333333333333333333333333333333333333",
          "fth": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
          "tf": "lifetime"
        }
      }
    ]
  },
  "f": {
    "a": "0x92C5A42cF503b572955BcfA10E15D47cA5682387",
    "t": "cex",
    "f": "Binance",
    "v": 0.5,
    "r": "500000000000000000",
    "d": 18,
    "n": "Ether",
    "s": "ETH",
    "h": "0x1111111111111111111111111111111111111111111111111111111111111111",
    "b": 12345678,
    "c": 1784216300000
  },
  "app": {
    "hm": true,
    "pk": "1784216377~0x39dbed3a2bd333467115de45665cc57f813c4571"
  },
  "cpp": {
    "hm": false
  },
  "sb": [
    {
      "a": "0x5fc5360d0400a0fd4f2af552add042d716f1d168",
      "n": "Global Dollar",
      "sy": "USDG",
      "iu": "https://cdn.example.com/usdg.png",
      "bu": 1520.4
    }
  ]
}
```


## OpenAPI

````yaml onchain-openapi.json GET /trader/pnl/portfolio
openapi: 3.1.0
info:
  title: Struct On-chain API
  description: >-
    RESTful API for token market data, discovery, holders, audits, and trader
    analytics across supported chains. Pass `fields=short` or header
    `x-field-names: short` for abbreviated keys. HTTP defaults to `long`. Token
    candlesticks, token trades and wallet batch trades also support
    `fields=array` for typed positional rows.
  version: 1.0.0
servers:
  - url: https://staging-api.struct.to/v1
    description: Staging
security:
  - ApiKey: []
paths:
  /trader/pnl/portfolio:
    get:
      tags:
        - Trader
      summary: Trader portfolio
      description: >-
        Returns a trader's full portfolio over the selected timeframe: overall
        and per-token PnL, PnL distribution, open and closed positions with live
        balances and keyset cursors, stablecoin balances, a PnL chart series,
        funding, and dev tokens.
      operationId: get_trader_portfolio
      parameters:
        - name: chain
          in: query
          description: Chain name. Required unless `chain_id` is provided.
          required: false
          schema:
            type: string
          example: robinhood
        - name: chain_id
          in: query
          description: Chain id. Required unless `chain` is provided. Use `-1` for Solana.
          required: false
          schema:
            type: integer
            format: int64
          example: 4663
        - name: trader
          in: query
          description: Trader wallet address (required).
          required: true
          schema:
            type: string
          example: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
        - name: timeframe
          in: query
          description: Lookback window (default 30d).
          required: false
          schema:
            $ref: '#/components/schemas/TraderTimeframe'
          example: 30d
        - name: x-field-names
          in: header
          required: false
          description: >-
            Select long (full) or short (abbreviated) field names. HTTP defaults
            to `long`. Takes precedence over `fields`. See [Response
            Format](/api-reference/response-format#long-and-short-field-names).
          schema:
            type: string
            enum:
              - long
              - short
            default: long
          example: short
        - name: fields
          in: query
          required: false
          description: >-
            Same as `x-field-names`. Use `long` or `short`. HTTP defaults to
            `long`. Ignored when the header is set. `field_names` is accepted as
            an alias.
          schema:
            type: string
            enum:
              - long
              - short
            default: long
          example: short
      responses:
        '200':
          description: Trader portfolio
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TraderPortfolio'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    overall_pnl_stats:
                      buy_count: 90
                      sell_count: 71
                      buy_native: 53.4
                      buy_usd: 132000
                      sell_native: 43.6
                      sell_usd: 108000
                      pnl_native: 7.44
                      pnl_usd: 18420.55
                      pnl_native_percent: 13.93
                      pnl_usd_percent: 13.95
                      pnl_above_500_count: 6
                      pnl_200_to_500_count: 8
                      pnl_0_to_200_count: 7
                      pnl_0_to_neg50_count: 9
                      pnl_below_neg50_count: 8
                    token_pnl_stats:
                      - token_address: '0x39dbed3a2bd333467115de45665cc57f813c4571'
                        buy_count: 8
                        sell_count: 5
                        buy_native: 4.85
                        buy_usd: 12000
                        buy_tokens: 680000
                        sell_native: 6.22
                        sell_usd: 15400
                        sell_tokens: 420000
                        pnl_native: 1.37
                        pnl_usd: 3400
                        pnl_native_percent: 28.25
                        pnl_usd_percent: 28.33
                        average_buy_price_usd: 0.01765
                        average_buy_price_native: 0.00000713
                        average_sell_price_usd: 0.03667
                        average_sell_price_native: 0.00001481
                        overall_average_price_usd: null
                        overall_average_price_native: null
                        average_buy_market_cap_usd: 261760
                        average_buy_market_cap_native: 1760
                        average_sell_market_cap_usd: 564290
                        average_sell_market_cap_native: 3810
                        overall_average_market_cap_usd: null
                        overall_average_market_cap_native: null
                        current_token_balance_usd: 25160
                        current_token_balance_native: 10.17
                        current_token_balance: 260000
                        potential_max_value_usd: null
                        potential_max_value_native: null
                        couldve_made_usd: null
                        couldve_made_native: null
                        most_recent_pool_id: '0xed50bdeea8adc232f159486192a4157281d722ff'
                        first_active: 1784116377000
                        last_active: 1784216377000
                    active_positions_pnl_stats:
                      - token_address: '0x39dbed3a2bd333467115de45665cc57f813c4571'
                        buy_count: 8
                        sell_count: 5
                        buy_native: 4.85
                        buy_usd: 12000
                        buy_tokens: 680000
                        sell_native: 6.22
                        sell_usd: 15400
                        sell_tokens: 420000
                        pnl_native: 1.37
                        pnl_usd: 3400
                        pnl_native_percent: 28.25
                        pnl_usd_percent: 28.33
                        average_buy_price_usd: 0.01765
                        average_buy_price_native: 0.00000713
                        average_sell_price_usd: 0.03667
                        average_sell_price_native: 0.00001481
                        overall_average_price_usd: null
                        overall_average_price_native: null
                        average_buy_market_cap_usd: 261760
                        average_buy_market_cap_native: 1760
                        average_sell_market_cap_usd: 564290
                        average_sell_market_cap_native: 3810
                        overall_average_market_cap_usd: null
                        overall_average_market_cap_native: null
                        current_token_balance_usd: 25160
                        current_token_balance_native: 10.17
                        current_token_balance: 260000
                        potential_max_value_usd: 41600
                        potential_max_value_native: 16.81
                        couldve_made_usd: 16440
                        couldve_made_native: 6.64
                        most_recent_pool_id: '0xed50bdeea8adc232f159486192a4157281d722ff'
                        first_active: 1784116377000
                        last_active: 1784216377000
                    closed_positions_pnl_stats:
                      - token_address: '0x8f2c1a0e5b7d4c3e9a6b1f0d2e4c6a8b0d1e3f57'
                        buy_count: 8
                        sell_count: 5
                        buy_native: 4.85
                        buy_usd: 12000
                        buy_tokens: 680000
                        sell_native: 4.52
                        sell_usd: 11180
                        sell_tokens: 680000
                        pnl_native: -0.33
                        pnl_usd: -820
                        pnl_native_percent: -6.8
                        pnl_usd_percent: -6.83
                        average_buy_price_usd: 0.01765
                        average_buy_price_native: 0.00000713
                        average_sell_price_usd: 0.03667
                        average_sell_price_native: 0.00001481
                        overall_average_price_usd: null
                        overall_average_price_native: null
                        average_buy_market_cap_usd: 261760
                        average_buy_market_cap_native: 1760
                        average_sell_market_cap_usd: 564290
                        average_sell_market_cap_native: 3810
                        overall_average_market_cap_usd: null
                        overall_average_market_cap_native: null
                        current_token_balance_usd: 0
                        current_token_balance_native: 0
                        current_token_balance: 0
                        potential_max_value_usd: null
                        potential_max_value_native: null
                        couldve_made_usd: null
                        couldve_made_native: null
                        most_recent_pool_id: '0x4b1a9c2d7e5f8a3b6c0d9e2f1a4b7c3d5e8f0a12'
                        first_active: 1783900000000
                        last_active: 1784010000000
                    token_metadata:
                      - address: '0x39dbed3a2bd333467115de45665cc57f813c4571'
                        name: Pons
                        symbol: PONS
                        image_url: https://cdn.example.com/pons.png
                        created_at: 1783816377000
                        protocol: UniswapV4
                        migrated_from_protocol: PonsV2
                      - address: '0x8f2c1a0e5b7d4c3e9a6b1f0d2e4c6a8b0d1e3f57'
                        name: Robin
                        symbol: ROBIN
                        image_url: https://cdn.example.com/robin.png
                        created_at: 1783800000000
                        protocol: UniswapV3
                    current_balance:
                      native_balance: 2.4
                      native_balance_usd: 5937.72
                      token_value_native: 10.17
                      token_value_usd: 25160
                      total_unrealized_native: 8.32
                      total_unrealized_usd: 20571
                      stablecoin_balance_usd: 1520.4
                    current_positions:
                      - '0x39dbed3a2bd333467115de45665cc57f813c4571'
                    top_100_tokens:
                      - '0x39dbed3a2bd333467115de45665cc57f813c4571'
                    recent_100_tokens:
                      - '0x39dbed3a2bd333467115de45665cc57f813c4571'
                      - '0x8f2c1a0e5b7d4c3e9a6b1f0d2e4c6a8b0d1e3f57'
                    pnl_chart_data:
                      - timestamp: 1784030400000
                        cumulative_pnl_usd: 0
                      - timestamp: 1784116800000
                        cumulative_pnl_usd: -820
                      - timestamp: 1784203200000
                        cumulative_pnl_usd: 2580
                    dev_tokens:
                      total_tokens_created: 12
                      total_tokens_migrated: 3
                      average_migration_time: 842
                      fastest_migrated_token:
                        address: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                        name: Pons
                        symbol: PONS
                        created_at: 1784216377000
                        last_active: 1784265827000
                        image_url: https://cdn.example.com/pons.png
                        market_cap_usd_ath: 1265510619.22
                      fastest_migrated_token_time: 214
                      last_launched_token:
                        address: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                        name: Pons
                        symbol: PONS
                        created_at: 1784216377000
                        last_active: 1784265827000
                        image_url: https://cdn.example.com/pons.png
                        market_cap_usd_ath: 1265510619.22
                      last_launched_timestamp: 1784216377000
                      highest_current_market_cap_token:
                        address: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                        name: Pons
                        symbol: PONS
                        created_at: 1784216377000
                        last_active: 1784265827000
                        image_url: https://cdn.example.com/pons.png
                        market_cap_usd_ath: 1265510619.22
                      highest_current_market_cap_usd: 96648686.19
                      highest_current_market_cap_usd_timestamp: 1784265827000
                      highest_current_market_cap_ath_token:
                        address: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                        name: Pons
                        symbol: PONS
                        created_at: 1784216377000
                        last_active: 1784265827000
                        image_url: https://cdn.example.com/pons.png
                        market_cap_usd_ath: 1265510619.22
                      highest_current_market_cap_ath_usd: 1265510619.22
                      highest_current_market_cap_ath_usd_timestamp: 1784265827000
                      tokens:
                        - address: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                          name: Pons
                          symbol: PONS
                          image_url: https://cdn.example.com/pons.png
                          created_at: 1784216377000
                          is_migration_pool: true
                          protocol: UniswapV4
                          migrated_from_protocol: PonsV2
                          last_active: 1784265827000
                          market_cap_usd: 96648686.19
                          volume_24h_usd: 13499.42
                          price_change_24h_percentage_usd: 0.47
                          market_cap_usd_ath: 1265510619.22
                          pool_id: >-
                            0x1111111111111111111111111111111111111111111111111111111111111111
                          token_a:
                            address: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                            decimals: 18
                            supply: 1000000000
                            market_cap: 32216.23
                            market_cap_usd: 96648686.19
                            market_cap_native: 32216.23
                            price: 0.0000322162
                            price_usd: 0.0966487
                            price_native: 0.0000322162
                            market_cap_usd_ath: 1265510619.22
                            price_usd_ath: 1.2655106
                            ath_timestamp: 1784240000000
                            vault_amount: 12803400
                            vault_amount_usd: 1237420.4
                            verified: false
                            metadata:
                              name: Pons
                              symbol: PONS
                              image_url: https://cdn.example.com/pons.png
                          token_b:
                            address: '0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73'
                            decimals: 18
                            price: 31040.4
                            price_usd: 3000
                            price_native: 1
                            vault_amount: 412.5
                            vault_amount_usd: 1237500
                            verified: true
                            metadata:
                              name: Wrapped Ether
                              symbol: WETH
                          token_a_flipped: true
                          quote_type: NATIVE
                          liquidity_fdv_usd: 2474840.8
                          holders:
                            total_holders: 18422
                            top_10_holder_percentage: 21.4
                            dev_holding_percentage: 1.2
                            sniper_holders_count: 14
                            sniper_holding_percentage: 2.8
                            bundler_holders_count: 6
                            bundler_holding_percentage: 1.9
                            insider_holders_count: 3
                            insider_holding_percentage: 0.7
                            fresh_holders_count: 412
                            fresh_holding_percentage: 4.6
                          metrics:
                            1h:
                              buy_volume_usd: 820.5
                              sell_volume_usd: 610.2
                              total_volume_usd: 1430.7
                              net_volume_usd: 210.3
                              buys: 18
                              sells: 11
                              txns: 29
                              total_fees_native: 0.0142
                              price_historical_usd: 0.0962
                              price_change_percentage: 0.47
                            24h:
                              buy_volume_usd: 7200.12
                              sell_volume_usd: 6299.3
                              total_volume_usd: 13499.42
                              net_volume_usd: 900.82
                              buys: 204
                              sells: 171
                              txns: 375
                              total_fees_native: 0.1831
                              total_priority_fees_native: 0.0412
                              price_historical_usd: 0.0962
                              price_change_percentage: 0.47
                              market_cap_usd_ath: 98200000
                              price_usd_ath: 0.0982
                          pnl:
                            status: open
                            buy_count: 1
                            sell_count: 4
                            total_trades: 5
                            total_bought: 20000000
                            total_sold: 8000000
                            position_amount: 12000000
                            estimated_value_native: 386.5944
                            estimated_value_usd: 1159784.4
                            value_price_native: 0.0000322162
                            value_price_usd: 0.0966487
                            buy_native: 0.4
                            sell_native: 112
                            pnl_native: 111.6
                            buy_usd: 1200
                            sell_usd: 336000
                            pnl_usd: 334800
                            avg_buy_price_native: 2.e-8
                            avg_buy_price_usd: 0.00006
                            avg_sell_price_native: 0.000014
                            avg_sell_price_usd: 0.042
                            opening_price_native: 2.e-8
                            closing_price_native: 0.0000204
                            opening_price_usd: 0.00006
                            closing_price_usd: 0.0612
                            high_price_native: 0.0000204
                            low_price_native: 2.e-8
                            high_price_usd: 0.0612
                            low_price_usd: 0.00006
                            avg_buy_market_cap_native: 20
                            avg_buy_market_cap_usd: 60000
                            avg_sell_market_cap_native: 14000
                            avg_sell_market_cap_usd: 42000000
                            total_priority_fees: 0.0021
                            first_trade_at: 1784216377000
                            last_trade_at: 1784240000000
                            last_pool: >-
                              0x1111111111111111111111111111111111111111111111111111111111111111
                            first_tx_hash: >-
                              0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                            timeframe: lifetime
                        - address: '0x2222222222222222222222222222222222222222'
                          name: New Pons
                          symbol: NPONS
                          image_url: https://cdn.example.com/new-pons.png
                          created_at: 1784265800000
                          is_migration_pool: false
                          protocol: PonsV2
                          last_active: 1784265827000
                          market_cap_usd: 4000
                          volume_24h_usd: 1000
                          price_change_24h_percentage_usd: 2.5
                          market_cap_usd_ath: 4500
                          pool_id: '0x3333333333333333333333333333333333333333'
                          token_a:
                            address: '0x2222222222222222222222222222222222222222'
                            decimals: 18
                            supply: 1000000000
                            market_cap: 1.3333
                            market_cap_usd: 4000
                            market_cap_native: 1.3333
                            price: 1.3333e-9
                            price_usd: 0.000004
                            price_native: 1.3333e-9
                            market_cap_usd_ath: 4500
                            price_usd_ath: 0.0000045
                            ath_timestamp: 1784265810000
                            bonding_curve_percentage: 12.4
                            vault_amount: 793000000
                            vault_amount_usd: 3172
                            verified: false
                            metadata:
                              name: New Pons
                              symbol: NPONS
                              image_url: https://cdn.example.com/new-pons.png
                          token_b:
                            address: '0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73'
                            decimals: 18
                            price: 750018750
                            price_usd: 3000
                            price_native: 1
                            vault_amount: 1.05
                            vault_amount_usd: 3150
                            verified: true
                            metadata:
                              name: Wrapped Ether
                              symbol: WETH
                          token_a_flipped: false
                          quote_type: NATIVE
                          liquidity_fdv_usd: 6322
                          holders:
                            total_holders: 86
                            top_10_holder_percentage: 38.2
                            dev_holding_percentage: 4.1
                            fresh_holders_count: 9
                            fresh_holding_percentage: 3.3
                          metrics:
                            1h:
                              buy_volume_usd: 640
                              sell_volume_usd: 210
                              total_volume_usd: 850
                              net_volume_usd: 430
                              buys: 22
                              sells: 7
                              txns: 29
                              total_fees_native: 0.0019
                              price_historical_usd: 0.0000039
                              price_change_percentage: 2.5
                            24h:
                              buy_volume_usd: 690
                              sell_volume_usd: 310
                              total_volume_usd: 1000
                              net_volume_usd: 380
                              buys: 24
                              sells: 9
                              txns: 33
                              total_fees_native: 0.0021
                              price_historical_usd: 0.0000039
                              price_change_percentage: 2.5
                              market_cap_usd_ath: 4500
                              price_usd_ath: 0.0000045
                          pnl:
                            status: open
                            buy_count: 1
                            sell_count: 0
                            total_trades: 1
                            total_bought: 50000000
                            total_sold: 0
                            position_amount: 50000000
                            estimated_value_native: 0.066665
                            estimated_value_usd: 200
                            value_price_native: 1.3333e-9
                            value_price_usd: 0.000004
                            buy_native: 0.05
                            sell_native: 0
                            pnl_native: -0.05
                            buy_usd: 150
                            sell_usd: 0
                            pnl_usd: -150
                            avg_buy_price_native: 1.e-9
                            avg_buy_price_usd: 0.000003
                            opening_price_native: 1.e-9
                            closing_price_native: 1.e-9
                            opening_price_usd: 0.000003
                            closing_price_usd: 0.000003
                            high_price_native: 1.e-9
                            low_price_native: 1.e-9
                            high_price_usd: 0.000003
                            low_price_usd: 0.000003
                            avg_buy_market_cap_native: 1
                            avg_buy_market_cap_usd: 3000
                            total_priority_fees: 0.0004
                            first_trade_at: 1784265800000
                            last_trade_at: 1784265800000
                            last_pool: '0x3333333333333333333333333333333333333333'
                            first_tx_hash: >-
                              0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                            timeframe: lifetime
                    funding:
                      funder: '0x92C5A42cF503b572955BcfA10E15D47cA5682387'
                      funder_type: cex
                      funder_name: Binance
                      amount: 0.5
                      amount_raw: '500000000000000000'
                      decimals: 18
                      name: Ether
                      symbol: ETH
                      hash: >-
                        0x1111111111111111111111111111111111111111111111111111111111111111
                      block: 12345678
                      timestamp: 1784216300000
                    active_positions_pagination:
                      has_more: true
                      pagination_key: 1784216377~0x39dbed3a2bd333467115de45665cc57f813c4571
                    closed_positions_pagination:
                      has_more: false
                    stablecoin_balances:
                      - address: '0x5fc5360d0400a0fd4f2af552add042d716f1d168'
                        name: Global Dollar
                        symbol: USDG
                        image_url: https://cdn.example.com/usdg.png
                        balance_usd: 1520.4
                short:
                  summary: Response (Short)
                  value:
                    ops:
                      bc: 90
                      sc: 71
                      bn: 53.4
                      bu: 132000
                      sn: 43.6
                      su: 108000
                      pnn: 7.44
                      pu: 18420.55
                      pnp: 13.93
                      pup: 13.95
                      p5: 6
                      p25: 8
                      p02: 7
                      pn50: 9
                      pbn: 8
                    tps:
                      - ta: '0x39dbed3a2bd333467115de45665cc57f813c4571'
                        bc: 8
                        sc: 5
                        bn: 4.85
                        bu: 12000
                        bt: 680000
                        sn: 6.22
                        su: 15400
                        st: 420000
                        pnn: 1.37
                        pu: 3400
                        pnp: 28.25
                        pup: 28.33
                        abpu: 0.01765
                        abpn: 0.00000713
                        aspu: 0.03667
                        aspn: 0.00001481
                        oapu: null
                        oapn: null
                        abmcu: 261760
                        abmcn: 1760
                        asmcu: 564290
                        asmcn: 3810
                        oamcu: null
                        oamcn: null
                        ctbu: 25160
                        ctbn: 10.17
                        ctb: 260000
                        pmvu: null
                        pmvn: null
                        cmu: null
                        cmn: null
                        mrp: '0xed50bdeea8adc232f159486192a4157281d722ff'
                        fa: 1784116377000
                        la: 1784216377000
                    aps:
                      - ta: '0x39dbed3a2bd333467115de45665cc57f813c4571'
                        bc: 8
                        sc: 5
                        bn: 4.85
                        bu: 12000
                        bt: 680000
                        sn: 6.22
                        su: 15400
                        st: 420000
                        pnn: 1.37
                        pu: 3400
                        pnp: 28.25
                        pup: 28.33
                        abpu: 0.01765
                        abpn: 0.00000713
                        aspu: 0.03667
                        aspn: 0.00001481
                        oapu: null
                        oapn: null
                        abmcu: 261760
                        abmcn: 1760
                        asmcu: 564290
                        asmcn: 3810
                        oamcu: null
                        oamcn: null
                        ctbu: 25160
                        ctbn: 10.17
                        ctb: 260000
                        pmvu: 41600
                        pmvn: 16.81
                        cmu: 16440
                        cmn: 6.64
                        mrp: '0xed50bdeea8adc232f159486192a4157281d722ff'
                        fa: 1784116377000
                        la: 1784216377000
                    cps:
                      - ta: '0x8f2c1a0e5b7d4c3e9a6b1f0d2e4c6a8b0d1e3f57'
                        bc: 8
                        sc: 5
                        bn: 4.85
                        bu: 12000
                        bt: 680000
                        sn: 4.52
                        su: 11180
                        st: 680000
                        pnn: -0.33
                        pu: -820
                        pnp: -6.8
                        pup: -6.83
                        abpu: 0.01765
                        abpn: 0.00000713
                        aspu: 0.03667
                        aspn: 0.00001481
                        oapu: null
                        oapn: null
                        abmcu: 261760
                        abmcn: 1760
                        asmcu: 564290
                        asmcn: 3810
                        oamcu: null
                        oamcn: null
                        ctbu: 0
                        ctbn: 0
                        ctb: 0
                        pmvu: null
                        pmvn: null
                        cmu: null
                        cmn: null
                        mrp: '0x4b1a9c2d7e5f8a3b6c0d9e2f1a4b7c3d5e8f0a12'
                        fa: 1783900000000
                        la: 1784010000000
                    tm:
                      - a: '0x39dbed3a2bd333467115de45665cc57f813c4571'
                        'n': Pons
                        s: PONS
                        i: https://cdn.example.com/pons.png
                        c: 1783816377000
                        pr: UniswapV4
                        mp: PonsV2
                      - a: '0x8f2c1a0e5b7d4c3e9a6b1f0d2e4c6a8b0d1e3f57'
                        'n': Robin
                        s: ROBIN
                        i: https://cdn.example.com/robin.png
                        c: 1783800000000
                        pr: UniswapV3
                    cb:
                      nb: 2.4
                      nbu: 5937.72
                      tvn: 10.17
                      tvu: 25160
                      tun: 8.32
                      tuu: 20571
                      sbu: 1520.4
                    cp:
                      - '0x39dbed3a2bd333467115de45665cc57f813c4571'
                    t1:
                      - '0x39dbed3a2bd333467115de45665cc57f813c4571'
                    r1:
                      - '0x39dbed3a2bd333467115de45665cc57f813c4571'
                      - '0x8f2c1a0e5b7d4c3e9a6b1f0d2e4c6a8b0d1e3f57'
                    pcd:
                      - t: 1784030400000
                        p: 0
                      - t: 1784116800000
                        p: -820
                      - t: 1784203200000
                        p: 2580
                    dt:
                      ttc: 12
                      ttm: 3
                      amt: 842
                      fmt:
                        a: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                        'n': Pons
                        sy: PONS
                        ca: 1784216377000
                        la: 1784265827000
                        iu: https://cdn.example.com/pons.png
                        mcua: 1265510619.22
                      fmtt: 214
                      llt:
                        a: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                        'n': Pons
                        sy: PONS
                        ca: 1784216377000
                        la: 1784265827000
                        iu: https://cdn.example.com/pons.png
                        mcua: 1265510619.22
                      llts: 1784216377000
                      hcmct:
                        a: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                        'n': Pons
                        sy: PONS
                        ca: 1784216377000
                        la: 1784265827000
                        iu: https://cdn.example.com/pons.png
                        mcua: 1265510619.22
                      hcmcu: 96648686.19
                      hcmcts: 1784265827000
                      hcmat:
                        a: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                        'n': Pons
                        sy: PONS
                        ca: 1784216377000
                        la: 1784265827000
                        iu: https://cdn.example.com/pons.png
                        mcua: 1265510619.22
                      hcmau: 1265510619.22
                      hcmatts: 1784265827000
                      tks:
                        - a: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                          'n': Pons
                          sy: PONS
                          iu: https://cdn.example.com/pons.png
                          ca: 1784216377000
                          imp: true
                          pr: UniswapV4
                          mfp: PonsV2
                          la: 1784265827000
                          mcu: 96648686.19
                          v24: 13499.42
                          pc24: 0.47
                          mcua: 1265510619.22
                          p: >-
                            0x1111111111111111111111111111111111111111111111111111111111111111
                          ta:
                            a: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                            d: 18
                            su: 1000000000
                            mn: 32216.23
                            mc: 96648686.19
                            mcn: 32216.23
                            p: 0.0000322162
                            pu: 0.0966487
                            pn: 0.0000322162
                            mca: 1265510619.22
                            pua: 1.2655106
                            at: 1784240000000
                            va: 12803400
                            vau: 1237420.4
                            v: false
                            m:
                              'n': Pons
                              s: PONS
                              i: https://cdn.example.com/pons.png
                          tb:
                            a: '0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73'
                            d: 18
                            p: 31040.4
                            pu: 3000
                            pn: 1
                            va: 412.5
                            vau: 1237500
                            v: true
                            m:
                              'n': Wrapped Ether
                              s: WETH
                          fl: true
                          qt: NATIVE
                          lq: 2474840.8
                          h:
                            ho: 18422
                            h10: 21.4
                            dhp: 1.2
                            snc: 14
                            shp: 2.8
                            buc: 6
                            buhp: 1.9
                            ihc: 3
                            ihp: 0.7
                            fhc: 412
                            fhp: 4.6
                          mx:
                            1h:
                              bv: 820.5
                              sv: 610.2
                              tv: 1430.7
                              nv: 210.3
                              b: 18
                              s: 11
                              t: 29
                              tf: 0.0142
                              ph: 0.0962
                              pc: 0.47
                            24h:
                              bv: 7200.12
                              sv: 6299.3
                              tv: 13499.42
                              nv: 900.82
                              b: 204
                              s: 171
                              t: 375
                              tf: 0.1831
                              pf: 0.0412
                              ph: 0.0962
                              pc: 0.47
                              mca: 98200000
                              pua: 0.0982
                          pnl:
                            st: open
                            bc: 1
                            sc: 4
                            tt: 5
                            tbo: 20000000
                            tso: 8000000
                            pa: 12000000
                            evn: 386.5944
                            evu: 1159784.4
                            vpn: 0.0000322162
                            vpu: 0.0966487
                            bn: 0.4
                            sn: 112
                            pnn: 111.6
                            bu: 1200
                            su: 336000
                            pu: 334800
                            abpn: 2.e-8
                            abpu: 0.00006
                            aspn: 0.000014
                            aspu: 0.042
                            opn: 2.e-8
                            clpn: 0.0000204
                            opu: 0.00006
                            clpu: 0.0612
                            hpn: 0.0000204
                            lpn: 2.e-8
                            hpu: 0.0612
                            lpu: 0.00006
                            abmcn: 20
                            abmcu: 60000
                            asmcn: 14000
                            asmcu: 42000000
                            tpf: 0.0021
                            fta: 1784216377000
                            lta: 1784240000000
                            lpo: >-
                              0x1111111111111111111111111111111111111111111111111111111111111111
                            fth: >-
                              0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                            tf: lifetime
                        - a: '0x2222222222222222222222222222222222222222'
                          'n': New Pons
                          sy: NPONS
                          iu: https://cdn.example.com/new-pons.png
                          ca: 1784265800000
                          imp: false
                          pr: PonsV2
                          la: 1784265827000
                          mcu: 4000
                          v24: 1000
                          pc24: 2.5
                          mcua: 4500
                          p: '0x3333333333333333333333333333333333333333'
                          ta:
                            a: '0x2222222222222222222222222222222222222222'
                            d: 18
                            su: 1000000000
                            mn: 1.3333
                            mc: 4000
                            mcn: 1.3333
                            p: 1.3333e-9
                            pu: 0.000004
                            pn: 1.3333e-9
                            mca: 4500
                            pua: 0.0000045
                            at: 1784265810000
                            bc: 12.4
                            va: 793000000
                            vau: 3172
                            v: false
                            m:
                              'n': New Pons
                              s: NPONS
                              i: https://cdn.example.com/new-pons.png
                          tb:
                            a: '0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73'
                            d: 18
                            p: 750018750
                            pu: 3000
                            pn: 1
                            va: 1.05
                            vau: 3150
                            v: true
                            m:
                              'n': Wrapped Ether
                              s: WETH
                          fl: false
                          qt: NATIVE
                          lq: 6322
                          h:
                            ho: 86
                            h10: 38.2
                            dhp: 4.1
                            fhc: 9
                            fhp: 3.3
                          mx:
                            1h:
                              bv: 640
                              sv: 210
                              tv: 850
                              nv: 430
                              b: 22
                              s: 7
                              t: 29
                              tf: 0.0019
                              ph: 0.0000039
                              pc: 2.5
                            24h:
                              bv: 690
                              sv: 310
                              tv: 1000
                              nv: 380
                              b: 24
                              s: 9
                              t: 33
                              tf: 0.0021
                              ph: 0.0000039
                              pc: 2.5
                              mca: 4500
                              pua: 0.0000045
                          pnl:
                            st: open
                            bc: 1
                            sc: 0
                            tt: 1
                            tbo: 50000000
                            tso: 0
                            pa: 50000000
                            evn: 0.066665
                            evu: 200
                            vpn: 1.3333e-9
                            vpu: 0.000004
                            bn: 0.05
                            sn: 0
                            pnn: -0.05
                            bu: 150
                            su: 0
                            pu: -150
                            abpn: 1.e-9
                            abpu: 0.000003
                            opn: 1.e-9
                            clpn: 1.e-9
                            opu: 0.000003
                            clpu: 0.000003
                            hpn: 1.e-9
                            lpn: 1.e-9
                            hpu: 0.000003
                            lpu: 0.000003
                            abmcn: 1
                            abmcu: 3000
                            tpf: 0.0004
                            fta: 1784265800000
                            lta: 1784265800000
                            lpo: '0x3333333333333333333333333333333333333333'
                            fth: >-
                              0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                            tf: lifetime
                    f:
                      a: '0x92C5A42cF503b572955BcfA10E15D47cA5682387'
                      t: cex
                      f: Binance
                      v: 0.5
                      r: '500000000000000000'
                      d: 18
                      'n': Ether
                      s: ETH
                      h: >-
                        0x1111111111111111111111111111111111111111111111111111111111111111
                      b: 12345678
                      c: 1784216300000
                    app:
                      hm: true
                      pk: 1784216377~0x39dbed3a2bd333467115de45665cc57f813c4571
                    cpp:
                      hm: false
                    sb:
                      - a: '0x5fc5360d0400a0fd4f2af552add042d716f1d168'
                        'n': Global Dollar
                        sy: USDG
                        iu: https://cdn.example.com/usdg.png
                        bu: 1520.4
        '400':
          description: >-
            Validation error — missing or invalid `trader`, or invalid
            `timeframe`.
components:
  schemas:
    TraderTimeframe:
      type: string
      description: Lookback window for trader PnL endpoints.
      enum:
        - 1d
        - 3d
        - 7d
        - 14d
        - 30d
        - lifetime
    TraderPortfolio:
      type: object
      properties:
        overall_pnl_stats:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/OverallPnlStats'
        token_pnl_stats:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/TokenPnlStats'
        active_positions_pnl_stats:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/TokenPnlStats'
        closed_positions_pnl_stats:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/TokenPnlStats'
        token_metadata:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/PortfolioTokenMetadata'
        current_balance:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/PortfolioCurrentBalance'
        current_positions:
          type:
            - array
            - 'null'
          items:
            type: string
        top_100_tokens:
          type:
            - array
            - 'null'
          items:
            type: string
        recent_100_tokens:
          type:
            - array
            - 'null'
          items:
            type: string
        streak_info:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/StreakInfo'
        pnl_chart_data:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/PnlChartData'
        dev_tokens:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/DevTokensResponse'
        funding:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/FundingData'
        active_positions_pagination:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/PortfolioPagination'
        closed_positions_pagination:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/PortfolioPagination'
        stablecoin_balances:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/PortfolioStablecoinBalance'
    OverallPnlStats:
      type: object
      properties:
        buy_count:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        sell_count:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        buy_native:
          type:
            - number
            - 'null'
          format: double
        buy_usd:
          type:
            - number
            - 'null'
          format: double
        sell_native:
          type:
            - number
            - 'null'
          format: double
        sell_usd:
          type:
            - number
            - 'null'
          format: double
        pnl_native:
          type:
            - number
            - 'null'
          format: double
        pnl_usd:
          type:
            - number
            - 'null'
          format: double
        pnl_native_percent:
          type:
            - number
            - 'null'
          format: double
        pnl_usd_percent:
          type:
            - number
            - 'null'
          format: double
        pnl_above_500_count:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        pnl_200_to_500_count:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        pnl_0_to_200_count:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        pnl_0_to_neg50_count:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        pnl_below_neg50_count:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
    TokenPnlStats:
      type: object
      properties:
        token_address:
          type:
            - string
            - 'null'
        buy_count:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        sell_count:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        buy_native:
          type:
            - number
            - 'null'
          format: double
        buy_usd:
          type:
            - number
            - 'null'
          format: double
        buy_tokens:
          type:
            - number
            - 'null'
          format: double
        sell_native:
          type:
            - number
            - 'null'
          format: double
        sell_usd:
          type:
            - number
            - 'null'
          format: double
        sell_tokens:
          type:
            - number
            - 'null'
          format: double
        pnl_native:
          type:
            - number
            - 'null'
          format: double
        pnl_usd:
          type:
            - number
            - 'null'
          format: double
        pnl_native_percent:
          type:
            - number
            - 'null'
          format: double
        pnl_usd_percent:
          type:
            - number
            - 'null'
          format: double
        average_buy_price_usd:
          type:
            - number
            - 'null'
          format: double
        average_buy_price_native:
          type:
            - number
            - 'null'
          format: double
        average_sell_price_usd:
          type:
            - number
            - 'null'
          format: double
        average_sell_price_native:
          type:
            - number
            - 'null'
          format: double
        overall_average_price_usd:
          type:
            - number
            - 'null'
          format: double
        overall_average_price_native:
          type:
            - number
            - 'null'
          format: double
        average_buy_market_cap_usd:
          type:
            - number
            - 'null'
          format: double
        average_buy_market_cap_native:
          type:
            - number
            - 'null'
          format: double
        average_sell_market_cap_usd:
          type:
            - number
            - 'null'
          format: double
        average_sell_market_cap_native:
          type:
            - number
            - 'null'
          format: double
        overall_average_market_cap_usd:
          type:
            - number
            - 'null'
          format: double
        overall_average_market_cap_native:
          type:
            - number
            - 'null'
          format: double
        current_token_balance_usd:
          type:
            - number
            - 'null'
          format: double
        current_token_balance_native:
          type:
            - number
            - 'null'
          format: double
        current_token_balance:
          type:
            - number
            - 'null'
          format: double
        potential_max_value_usd:
          type:
            - number
            - 'null'
          format: double
        potential_max_value_native:
          type:
            - number
            - 'null'
          format: double
        couldve_made_usd:
          type:
            - number
            - 'null'
          format: double
        couldve_made_native:
          type:
            - number
            - 'null'
          format: double
        most_recent_pool_id:
          type:
            - string
            - 'null'
        first_active:
          type:
            - integer
            - 'null'
          format: int64
          description: Time of the first trade, in milliseconds.
        last_active:
          type:
            - integer
            - 'null'
          format: int64
          description: Time of the latest trade, in milliseconds.
    PortfolioTokenMetadata:
      type: object
      properties:
        address:
          type:
            - string
            - 'null'
        name:
          type:
            - string
            - 'null'
        symbol:
          type:
            - string
            - 'null'
        image_url:
          type:
            - string
            - 'null'
        created_at:
          type:
            - integer
            - 'null'
          format: int64
          description: Pool creation time, in milliseconds.
        protocol:
          type:
            - string
            - 'null'
        underlying_protocol:
          type:
            - string
            - 'null'
          description: >-
            AMM venue holding the pool's liquidity when `protocol` is a
            launchpad

            living on another AMM.
        migrated_from_protocol:
          type:
            - string
            - 'null'
    PortfolioCurrentBalance:
      type: object
      properties:
        native_balance:
          type:
            - number
            - 'null'
          format: double
        native_balance_usd:
          type:
            - number
            - 'null'
          format: double
        token_value_native:
          type:
            - number
            - 'null'
          format: double
        token_value_usd:
          type:
            - number
            - 'null'
          format: double
        total_unrealized_native:
          type:
            - number
            - 'null'
          format: double
        total_unrealized_usd:
          type:
            - number
            - 'null'
          format: double
        stablecoin_balance_usd:
          type:
            - number
            - 'null'
          format: double
    StreakInfo:
      type: object
      properties:
        current_streak_length:
          type:
            - integer
            - 'null'
          format: int64
        current_streak_type:
          type:
            - integer
            - 'null'
          format: int32
        current_streak_start_timestamp:
          type:
            - integer
            - 'null'
          format: int64
        current_streak_end_timestamp:
          type:
            - integer
            - 'null'
          format: int64
        best_positive_streak_length:
          type:
            - integer
            - 'null'
          format: int64
        best_positive_streak_start_timestamp:
          type:
            - integer
            - 'null'
          format: int64
        best_positive_streak_end_timestamp:
          type:
            - integer
            - 'null'
          format: int64
    PnlChartData:
      type: object
      properties:
        timestamp:
          type:
            - integer
            - 'null'
          format: int64
          description: Bucket start, in milliseconds.
        cumulative_pnl_usd:
          type:
            - number
            - 'null'
          format: double
    DevTokensResponse:
      type: object
      properties:
        total_tokens_created:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
        total_tokens_migrated:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
        average_migration_time:
          type:
            - integer
            - 'null'
          format: int64
          description: >-
            Average launch-to-migration duration, in seconds (a duration, not a
            timestamp).
          minimum: 0
        fastest_migrated_token:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/DevTokenMinimal'
        fastest_migrated_token_time:
          type:
            - integer
            - 'null'
          format: int64
          description: >-
            Fastest launch-to-migration duration, in seconds (a duration, not a
            timestamp).
          minimum: 0
        last_launched_token:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/DevTokenMinimal'
        last_launched_timestamp:
          type:
            - integer
            - 'null'
          format: int64
          description: Creation time of the most recent launch, in milliseconds.
          minimum: 0
        highest_current_market_cap_token:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/DevTokenMinimal'
        highest_current_market_cap_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        highest_current_market_cap_usd_timestamp:
          type:
            - integer
            - 'null'
          format: int64
          description: Latest activity time of that token's pool, in milliseconds.
          minimum: 0
        highest_current_market_cap_ath_token:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/DevTokenMinimal'
        highest_current_market_cap_ath_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        highest_current_market_cap_ath_usd_timestamp:
          type:
            - integer
            - 'null'
          format: int64
          description: Time of that token's all-time high, in milliseconds.
          minimum: 0
        tokens:
          type: array
          items:
            $ref: '#/components/schemas/DevToken'
    FundingData:
      type: object
      properties:
        funder:
          type: string
          example: '0x92C5A42cF503b572955BcfA10E15D47cA5682387'
        funder_type:
          type:
            - string
            - 'null'
          example: cex
        funder_name:
          type:
            - string
            - 'null'
          example: Binance
        amount:
          type: number
          format: double
          example: 0.5
        amount_raw:
          type: string
          example: '500000000000000000'
        decimals:
          type: integer
          format: int32
          minimum: 0
          example: 18
        name:
          type: string
          example: Ether
        symbol:
          type: string
          example: ETH
        hash:
          type: string
          example: '0x1111111111111111111111111111111111111111111111111111111111111111'
        block:
          type: integer
          format: int64
          minimum: 0
          example: 12345678
        timestamp:
          type:
            - integer
            - 'null'
          format: int64
          description: |-
            When the funding transfer confirmed, in milliseconds. Serialized as
            `timestamp`; the holders engines still send `confirmed_at`.
          example: 1784216300000
      example:
        funder: '0x92C5A42cF503b572955BcfA10E15D47cA5682387'
        funder_type: cex
        funder_name: Binance
        amount: 0.5
        amount_raw: '500000000000000000'
        decimals: 18
        name: Ether
        symbol: ETH
        hash: '0x1111111111111111111111111111111111111111111111111111111111111111'
        block: 12345678
        timestamp: 1784216300000
    PortfolioPagination:
      type: object
      required:
        - has_more
      properties:
        has_more:
          type: boolean
        pagination_key:
          type:
            - string
            - 'null'
    PortfolioStablecoinBalance:
      type: object
      required:
        - address
        - balance_usd
      properties:
        address:
          type: string
        name:
          type:
            - string
            - 'null'
        symbol:
          type:
            - string
            - 'null'
        image_url:
          type:
            - string
            - 'null'
        balance_usd:
          type: number
          format: double
    DevTokenMinimal:
      type: object
      required:
        - address
        - name
        - symbol
        - image_url
      properties:
        address:
          type: string
        name:
          type: string
        symbol:
          type: string
        created_at:
          type:
            - integer
            - 'null'
          format: int64
          description: Pool creation time, in milliseconds.
          minimum: 0
        last_active:
          type:
            - integer
            - 'null'
          format: int64
          description: Time of the pool's latest activity, in milliseconds.
          minimum: 0
        image_url:
          type: string
        market_cap_usd_ath:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
    Decimal:
      type: number
      format: double
      description: Floating-point number serialized as JSON number.
      examples:
        - 4.108801574e-7
    DevToken:
      type: object
      required:
        - address
      properties:
        address:
          type: string
        pool_id:
          type:
            - string
            - 'null'
          description: >-
            The token's current pool. `token_a`, `token_b`, `liquidity_fdv_usd`,

            `holders` and `metrics` describe this pool, as on `GET
            /token/address`.
        name:
          type:
            - string
            - 'null'
        symbol:
          type:
            - string
            - 'null'
        image_url:
          type:
            - string
            - 'null'
        created_at:
          type:
            - integer
            - 'null'
          format: int64
          description: Pool creation time, in milliseconds.
          minimum: 0
        is_migration_pool:
          type: boolean
        protocol:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Protocol'
              description: >-
                Current pool protocol. Available for both bonding and migrated
                pools.
        underlying_protocol:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Protocol'
              description: >-
                AMM venue holding the pool's liquidity when `protocol` is a
                launchpad

                living on another AMM. Omitted for bonding curves and older
                rows.
        migrated_from_protocol:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Protocol'
              description: >-
                Origin protocol of a migrated pool. Omitted for pools that have
                not migrated.
        last_active:
          type:
            - integer
            - 'null'
          format: int64
          description: Time of the pool's latest activity, in milliseconds.
          minimum: 0
        market_cap_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        volume_24h_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        price_change_24h_percentage_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        market_cap_usd_ath:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        token_a:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TokenData'
              description: >-
                Pool token A, in on-chain order (the same `TokenData` as `GET
                /token/address`).

                The dev token is the side whose `address` matches this row's
                `address`;

                `price` / `market_cap` are in the other side's units.
        token_b:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TokenData'
              description: Pool token B, in on-chain order.
        token_a_flipped:
          type: boolean
          description: True when the dev token is `token_b`.
        quote_type:
          type:
            - string
            - 'null'
          description: >-
            Quote-token class of the counter token (`NATIVE`, `USDC`, `RWA`,
            ...).
        liquidity_fdv_usd:
          type:
            - number
            - 'null'
          format: double
        holders:
          $ref: '#/components/schemas/Holders'
          description: Holder stats for the dev token, as on `GET /token/address`.
        metrics:
          $ref: '#/components/schemas/MetricsByTimeframe'
          description: >-
            Metrics by window for the dev token's side of the pool, as on

            `GET /token/address`. Windows follow `include_timeframes` (default
            `24h`).
        pnl:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TraderPnlResponse'
              description: >-
                The developer wallet's lifetime PnL on this token

                (same shape as `GET /token/first-buyers` `pnl`). `pnl_usd` /
                `pnl_native`

                are realized (sell proceeds minus buy spending);
                `estimated_value_*`

                values the net position (`position_amount`, floored at zero) at
                the

                token's current price. Omitted when PnL data is unavailable.
    Protocol:
      type: string
      description: DEX protocol name (e.g. "RaydiumAMM", "UniswapV3").
      enum:
        - Unknown
        - Jupiter
        - MeteoraDLMM
        - MeteoraPools
        - RaydiumAMM
        - RaydiumCPMM
        - RaydiumCLMM
        - OrcaWhirlpool
        - PumpFun
        - PumpAMM
        - Moonit
        - System
        - Token22
        - Token
        - RaydiumLaunchLab
        - LaunchACoin
        - Bonk
        - MeteoraDBC
        - MeteoraDAMM2
        - BoopFun
        - Believe
        - JupiterStudio
        - Moonshot
        - Bags
        - Heaven
        - WenDev
        - StonkFun
        - TrendsFun
        - AnonCoin
        - AssociatedTokenProgram
        - UniswapV2
        - UniswapV3
        - UniswapV4
        - PancakeSwapV2
        - SushiSwapV2
        - PancakeSwapV3
        - SushiSwapV3
        - PancakeSwapV4
        - FourMeme
        - XMode
        - Flap
        - Alloca
        - AllocaChad
        - AllocaDex
        - NadFun
        - NadFunDex
        - Kuru
        - ClankerV3
        - ClankerV4
        - Bankr
        - Aerodrome
        - AerodromeSlipstream
        - ZoraContent
        - ZoraCreator
        - BaseApp
        - Basememe
        - Virtuals
        - PurpsV2
        - OctoSwapV2
        - TayaV2
        - AtlantisV2
        - DyorSwap
        - DyorFun
        - DyorV3
        - NoxaFun
        - Pons
        - PonsV2
        - PoolsInstant
        - FlapVault
        - FlapTax
        - Trench
        - PoolsCCA
        - RobinSwap
        - LongXyz
        - O1
        - Flywheel
        - Launchpad
        - Foci
        - LiftFun
        - Argus
        - TollyLabs
        - RadarDex
        - Sharc
        - ArcReactor
        - Archemist
        - ArchemistV4
        - Minara
        - StonkBrokers
        - Robinfun
        - UpV2
        - UpCL
        - Livo
        - HoodFun
        - Circus
        - HyperMeme
        - Lemon
        - Flutch
        - Stoxes
        - Holoworld
        - LaunchHood
        - StandardReserve
        - Commodities
        - LeaveHood
        - GeniusFun
        - Cubepeg
        - LikwidDex
        - GoPlusCreator
        - GoPlusSkill
        - TapeOut
        - OpenFour
        - FlapAI
        - Brew
        - MemecoinFunV2
        - Printr
        - CheesePad
        - CheesePadMicroSale
        - CheesePadMelt
        - LunaFun
        - Urcoin
        - FeelCash
        - Flaunch
        - Klik
        - Rwagmi
        - Doppler
        - BaseStonk
        - TheStonks
        - Stonx
        - Embow
        - Hydropump
        - HydrexIntegral
        - HydrexClassic
        - Stockereum
        - Sender
        - Stroid
        - MotoFun
        - Motoswap
        - Programmable
        - Strategy
        - Meridian
        - RobinVista
        - Odys
        - OdysElite
        - CamelotV2
        - CamelotV3
        - CamelotIntegral
        - Ignix
        - EulrFun
        - AltFun
        - MotionMeme
        - LiquidLaunch
        - LiquidLaunchV2
        - Signal
        - SignalCurve
        - SignalV4
        - Kumbaya
        - KumbayaV3
        - Bonad
        - NadFunDexV2
        - HyperSwapV2
        - HyperSwapV3
        - ProjectXV2
        - ProjectXV3
        - PotatoSwapV2
        - PotatoSwapV3
        - MondayTradeV3
        - Pangea
        - ClankerV5
      examples:
        - UniswapV3
    TokenData:
      type: object
      required:
        - address
      properties:
        address:
          type: string
          example: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
        decimals:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
          example: 18
        supply:
          type:
            - number
            - 'null'
          format: double
          example: 1000000000
        supply_raw:
          type:
            - string
            - 'null'
          example: '1000000000000000000000000000'
        bonding_curve_percentage:
          type:
            - number
            - 'null'
          format: double
          example: 100
        bonding_curve_percent_ath:
          type:
            - number
            - 'null'
          format: double
          example: 100
        bonding_curve_ath_timestamp:
          type:
            - integer
            - 'null'
          format: int64
          description: Time of `bonding_curve_percent_ath`, in milliseconds.
          minimum: 0
          example: 1784216377000
        market_cap:
          type:
            - number
            - 'null'
          format: double
          example: 39064.97
        market_cap_usd:
          type:
            - number
            - 'null'
          format: double
          example: 96648686.19
        price_usd:
          type:
            - number
            - 'null'
          format: double
          example: 0.09664868619
        market_cap_usd_ath:
          type:
            - number
            - 'null'
          format: double
          example: 1265510619.22
        price_usd_ath:
          type:
            - number
            - 'null'
          format: double
          example: 1.2655106192
        ath_timestamp:
          type:
            - integer
            - 'null'
          format: int64
          description: Time of the all-time high, in milliseconds.
          minimum: 0
          example: 1784265827000
        price:
          type:
            - number
            - 'null'
          format: double
          description: Price in the counter token's units (`market_cap` likewise).
          example: 0.00003906497
        price_native:
          type:
            - number
            - 'null'
          format: double
          description: Price in the chain's native coin.
          example: 0.00003906497
        market_cap_native:
          type:
            - number
            - 'null'
          format: double
          description: Market cap in the chain's native coin.
          example: 39064.97
        price_ath:
          type:
            - number
            - 'null'
          format: double
          description: Lifetime ATH price in counter-token units (`price_usd_ath` is USD).
        price_native_ath:
          type:
            - number
            - 'null'
          format: double
          description: Lifetime ATH price in the chain's native coin.
        market_cap_ath:
          type:
            - number
            - 'null'
          format: double
          description: Lifetime ATH market cap in counter-token units.
        market_cap_native_ath:
          type:
            - number
            - 'null'
          format: double
          description: Lifetime ATH market cap in the chain's native coin.
        vault_amount:
          type:
            - number
            - 'null'
          format: double
          example: 1644447.08
        vault_amount_usd:
          type:
            - number
            - 'null'
          format: double
          example: 158921.11
        vault_amount_initial:
          type:
            - number
            - 'null'
          format: double
          example: 282784.09
        verified:
          type: boolean
          example: true
        metadata:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Metadata'
          example:
            name: Pons
            symbol: PONS
            translated_name: Pons
            translated_symbol: PONS
            image_url: https://cdn.example.com/pons.png
            image_usage_count: 1
            is_og: true
            is_original_image: true
            description: 100% of fees go back to Pons
            website: https://ponsfamily.com/launchpad
            twitter: https://x.com/ponsdotfamily
            telegram: https://t.me/ponsdotfamily
            discord: https://discord.gg/pons
            twitter_username: ponsdotfamily
            twitter_reuses: 1
            twitter_username_history:
              - username: ponsdotfamily
                last_checked: 1784216377000
            dex_updated_at: 1784216377000
            dex_banner_url: https://cdn.example.com/pons-banner.png
            dex_paid: true
      example:
        address: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
        decimals: 18
        supply: 1000000000
        supply_raw: '1000000000000000000000000000'
        bonding_curve_percentage: 100
        bonding_curve_percent_ath: 100
        bonding_curve_ath_timestamp: 1784216377000
        market_cap: 39064.97
        market_cap_usd: 96648686.19
        price_usd: 0.09664868619
        market_cap_usd_ath: 1265510619.22
        price_usd_ath: 1.2655106192
        ath_timestamp: 1784265827000
        price: 0.00003906497
        price_native: 0.00003906497
        market_cap_native: 39064.97
        vault_amount: 1644447.08
        vault_amount_usd: 158921.11
        vault_amount_initial: 282784.09
        verified: true
        metadata:
          name: Pons
          symbol: PONS
          translated_name: Pons
          translated_symbol: PONS
          image_url: https://cdn.example.com/pons.png
          image_usage_count: 1
          is_og: true
          is_original_image: true
          description: 100% of fees go back to Pons
          website: https://ponsfamily.com/launchpad
          twitter: https://x.com/ponsdotfamily
          telegram: https://t.me/ponsdotfamily
          discord: https://discord.gg/pons
          twitter_username: ponsdotfamily
          twitter_reuses: 1
          twitter_username_history:
            - username: ponsdotfamily
              last_checked: 1784216377000
          dex_updated_at: 1784216377000
          dex_banner_url: https://cdn.example.com/pons-banner.png
          dex_paid: true
    Holders:
      type: object
      properties:
        total_holders:
          type:
            - integer
            - 'null'
          format: int32
          example: 65704
        top_10_holder_percentage:
          type:
            - number
            - 'null'
          format: double
          example: 37.99
        top_25_holder_percentage:
          type:
            - number
            - 'null'
          format: double
          example: 45.59
        top_50_holder_percentage:
          type:
            - number
            - 'null'
          format: double
          example: 53.26
        caller_holders_count:
          type:
            - integer
            - 'null'
          format: int32
          example: 3
        dev_holding_percentage:
          type:
            - number
            - 'null'
          format: double
          example: 1.5
        pro_trader_holding_percentage:
          type:
            - number
            - 'null'
          format: double
          example: 7.4
        sniper_holding_percentage:
          type:
            - number
            - 'null'
          format: double
          example: 4.2
        caller_holding_percentage:
          type:
            - number
            - 'null'
          format: double
          example: 1.1
        migration_sniper_holding_percentage:
          type:
            - number
            - 'null'
          format: double
          example: 0.4
        block_zero_buyers_holding_percentage:
          type:
            - number
            - 'null'
          format: double
          example: 6.8
        block_zero_holders_count:
          type:
            - integer
            - 'null'
          format: int32
          example: 4
        insider_holders_count:
          type:
            - integer
            - 'null'
          format: int32
          example: 2
        insider_holding_percentage:
          type:
            - number
            - 'null'
          format: double
          example: 0.8
        pro_trader_count:
          type:
            - integer
            - 'null'
          format: int32
          example: 12
        sniper_holders_count:
          type:
            - integer
            - 'null'
          format: int32
          example: 7
        migration_sniper_holders_count:
          type:
            - integer
            - 'null'
          format: int32
          example: 1
        bundler_holding_percentage:
          type:
            - number
            - 'null'
          format: double
          example: 2.1
        bundler_holders_count:
          type:
            - integer
            - 'null'
          format: int32
          example: 5
        fresh_holding_percentage:
          type:
            - number
            - 'null'
          format: double
          example: 1.24
        fresh_holders_count:
          type:
            - integer
            - 'null'
          format: int32
          example: 1989
      example:
        total_holders: 65704
        top_10_holder_percentage: 37.99
        top_25_holder_percentage: 45.59
        top_50_holder_percentage: 53.26
        caller_holders_count: 3
        dev_holding_percentage: 1.5
        pro_trader_holding_percentage: 7.4
        sniper_holding_percentage: 4.2
        caller_holding_percentage: 1.1
        migration_sniper_holding_percentage: 0.4
        block_zero_buyers_holding_percentage: 6.8
        block_zero_holders_count: 4
        insider_holders_count: 2
        insider_holding_percentage: 0.8
        pro_trader_count: 12
        sniper_holders_count: 7
        migration_sniper_holders_count: 1
        bundler_holding_percentage: 2.1
        bundler_holders_count: 5
        fresh_holding_percentage: 1.24
        fresh_holders_count: 1989
    MetricsByTimeframe:
      type: object
      properties:
        1m:
          $ref: '#/components/schemas/WindowMetrics'
        5m:
          $ref: '#/components/schemas/WindowMetrics'
        30m:
          $ref: '#/components/schemas/WindowMetrics'
        1h:
          $ref: '#/components/schemas/WindowMetrics'
        6h:
          $ref: '#/components/schemas/WindowMetrics'
        24h:
          $ref: '#/components/schemas/WindowMetrics'
    TraderPnlResponse:
      type: object
      required:
        - status
        - position_amount
      properties:
        status:
          type: string
        buy_count:
          type:
            - integer
            - 'null'
          format: int64
        sell_count:
          type:
            - integer
            - 'null'
          format: int64
        total_trades:
          type:
            - integer
            - 'null'
          format: int64
        total_bought:
          type:
            - number
            - 'null'
          format: double
        total_sold:
          type:
            - number
            - 'null'
          format: double
        position_amount:
          type: number
          format: double
        estimated_value_native:
          type:
            - number
            - 'null'
          format: double
        estimated_value_usd:
          type:
            - number
            - 'null'
          format: double
        value_price_native:
          type:
            - number
            - 'null'
          format: double
        value_price_usd:
          type:
            - number
            - 'null'
          format: double
        buy_native:
          type:
            - number
            - 'null'
          format: double
        sell_native:
          type:
            - number
            - 'null'
          format: double
        pnl_native:
          type:
            - number
            - 'null'
          format: double
        buy_usd:
          type:
            - number
            - 'null'
          format: double
        sell_usd:
          type:
            - number
            - 'null'
          format: double
        pnl_usd:
          type:
            - number
            - 'null'
          format: double
        avg_buy_price_native:
          type:
            - number
            - 'null'
          format: double
        avg_buy_price_usd:
          type:
            - number
            - 'null'
          format: double
        avg_sell_price_native:
          type:
            - number
            - 'null'
          format: double
        avg_sell_price_usd:
          type:
            - number
            - 'null'
          format: double
        opening_price_native:
          type:
            - number
            - 'null'
          format: double
        closing_price_native:
          type:
            - number
            - 'null'
          format: double
        opening_price_usd:
          type:
            - number
            - 'null'
          format: double
        closing_price_usd:
          type:
            - number
            - 'null'
          format: double
        high_price_native:
          type:
            - number
            - 'null'
          format: double
        low_price_native:
          type:
            - number
            - 'null'
          format: double
        high_price_usd:
          type:
            - number
            - 'null'
          format: double
        low_price_usd:
          type:
            - number
            - 'null'
          format: double
        avg_buy_market_cap_native:
          type:
            - number
            - 'null'
          format: double
        avg_buy_market_cap_usd:
          type:
            - number
            - 'null'
          format: double
        avg_sell_market_cap_native:
          type:
            - number
            - 'null'
          format: double
        avg_sell_market_cap_usd:
          type:
            - number
            - 'null'
          format: double
        total_priority_fees:
          type:
            - number
            - 'null'
          format: double
        total_bot_fees:
          type:
            - number
            - 'null'
          format: double
        total_tip_amount:
          type:
            - number
            - 'null'
          format: double
        first_trade_at:
          type:
            - integer
            - 'null'
          format: int64
          description: Time of the first trade, in milliseconds.
        last_trade_at:
          type:
            - integer
            - 'null'
          format: int64
          description: Time of the latest trade, in milliseconds.
        last_pool:
          type:
            - string
            - 'null'
        first_tx_hash:
          type:
            - string
            - 'null'
        timeframe:
          type:
            - string
            - 'null'
      example:
        status: open
        buy_count: 8
        sell_count: 5
        total_trades: 13
        total_bought: 680000
        total_sold: 420000
        position_amount: 260000
        estimated_value_native: 7.14
        estimated_value_usd: 17670.26
        value_price_native: 0.00003906497
        value_price_usd: 0.09664868619
        buy_native: 1.2
        sell_native: 1.6
        pnl_native: 0.4
        buy_usd: 178
        sell_usd: 237
        pnl_usd: 59
        avg_buy_price_native: 0.00000176
        avg_buy_price_usd: 0.00026176
        avg_sell_price_native: 0.00000381
        avg_sell_price_usd: 0.00056429
        opening_price_native: 0.0000012
        closing_price_native: 0.00000381
        opening_price_usd: 0.00018
        closing_price_usd: 0.00056429
        high_price_native: 0.0000042
        low_price_native: 0.0000011
        high_price_usd: 0.00063
        low_price_usd: 0.000165
        avg_buy_market_cap_native: 1760
        avg_buy_market_cap_usd: 261760
        avg_sell_market_cap_native: 3810
        avg_sell_market_cap_usd: 564290
        total_priority_fees: 0.014
        total_bot_fees: 0.008
        total_tip_amount: 0.002
        first_trade_at: 1705000000000
        last_trade_at: 1710000000000
        last_pool: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
        first_tx_hash: '0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f'
        timeframe: lifetime
    Metadata:
      type: object
      properties:
        name:
          type:
            - string
            - 'null'
          example: Pons
        symbol:
          type:
            - string
            - 'null'
          example: PONS
        translated_name:
          type:
            - string
            - 'null'
          example: Pons
        translated_symbol:
          type:
            - string
            - 'null'
          example: PONS
        image_url:
          type:
            - string
            - 'null'
          example: https://cdn.example.com/pons.png
        image_usage_count:
          type:
            - integer
            - 'null'
          format: int32
          example: 1
        is_og:
          type:
            - boolean
            - 'null'
          example: true
        is_original_image:
          type:
            - boolean
            - 'null'
          example: true
        description:
          type:
            - string
            - 'null'
          example: 100% of fees go back to Pons
        website:
          type:
            - string
            - 'null'
          example: https://ponsfamily.com/launchpad
        twitter:
          type:
            - string
            - 'null'
          example: https://x.com/ponsdotfamily
        telegram:
          type:
            - string
            - 'null'
          example: https://t.me/ponsdotfamily
        discord:
          type:
            - string
            - 'null'
          example: https://discord.gg/pons
        twitter_username:
          type:
            - string
            - 'null'
          example: ponsdotfamily
        twitter_reuses:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
          example: 1
        twitter_username_history:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/TwitterUsernameEntry'
            example:
              username: ponsdotfamily
              last_checked: 1784216377000
          example:
            - username: ponsdotfamily
              last_checked: 1784216377000
        dex_updated_at:
          type:
            - integer
            - 'null'
          format: int64
          description: Time the DEX Screener profile was last updated, in milliseconds.
          minimum: 0
          example: 1784216377000
        dex_banner_url:
          type:
            - string
            - 'null'
          example: https://cdn.example.com/pons-banner.png
        dex_paid:
          type:
            - boolean
            - 'null'
          example: true
      example:
        name: Pons
        symbol: PONS
        translated_name: Pons
        translated_symbol: PONS
        image_url: https://cdn.example.com/pons.png
        image_usage_count: 1
        is_og: true
        is_original_image: true
        description: 100% of fees go back to Pons
        website: https://ponsfamily.com/launchpad
        twitter: https://x.com/ponsdotfamily
        telegram: https://t.me/ponsdotfamily
        discord: https://discord.gg/pons
        twitter_username: ponsdotfamily
        twitter_reuses: 1
        twitter_username_history:
          - username: ponsdotfamily
            last_checked: 1784216377000
        dex_updated_at: 1784216377000
        dex_banner_url: https://cdn.example.com/pons-banner.png
        dex_paid: true
    WindowMetrics:
      type: object
      properties:
        buy_volume_usd:
          type:
            - number
            - 'null'
          format: double
        sell_volume_usd:
          type:
            - number
            - 'null'
          format: double
        total_volume_usd:
          type:
            - number
            - 'null'
          format: double
        net_volume_usd:
          type:
            - number
            - 'null'
          format: double
        buys:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
        sells:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
        txns:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
        total_fees_native:
          type:
            - number
            - 'null'
          format: double
          description: Total fees in the chain's native currency (for example SOL or ETH).
        total_priority_fees_native:
          type:
            - number
            - 'null'
          format: double
          description: Priority or gas fees in the chain's native currency.
        total_tip_amount_native:
          type:
            - number
            - 'null'
          format: double
          description: Tips in the chain's native currency.
        price_historical_usd:
          type:
            - number
            - 'null'
          format: double
        price_change_percentage:
          type:
            - number
            - 'null'
          format: double
        total_bot_fees_native:
          type:
            - number
            - 'null'
          format: double
          description: Bot fees in the chain's native currency.
        market_cap_usd_ath:
          type:
            - number
            - 'null'
          format: double
        price_usd_ath:
          type:
            - number
            - 'null'
          format: double
    TwitterUsernameEntry:
      type: object
      required:
        - username
      properties:
        username:
          type: string
        last_checked:
          type: integer
          format: int64
          description: Time the username was last seen, in milliseconds.
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: Secret API key (`sk_*`) or JWT public key (`pk_jwt_*`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.