> ## 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.

# Token first buyers

> Returns the earliest wallets to buy a token, each with the size of their first buy plus current balance and PnL.

```bash theme={null}
curl "https://staging-api.struct.to/v1/token/first-buyers?chain=robinhood&chain_id=4663&token_address=0x39dBED3a2bd333467115dE45665cC57F813C4571&limit=50&fields=short" \
  -H "X-API-Key: YOUR_API_KEY"
```

```json Response (Long) theme={null}
{
  "token_address": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
  "token_created_at": 1784216377000,
  "count": 1,
  "cached": false,
  "buyers": [
    {
      "address": "0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51",
      "buy_rank": 1,
      "first_buy_at": 1784216378000,
      "first_buy_pool": "0xEd50bDeeA8aDC232f159486192a4157281D722ff",
      "first_buy_hash": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
      "initial_amount_native": 0.06,
      "initial_amount_usd": 148.22,
      "initial_token_amount": 1534.2,
      "token_balance": 1250.5,
      "token_balance_usd": 120770.48,
      "token_balance_raw": "1250500000000000000000",
      "native_balance": 2.4,
      "percentage": 0.125,
      "tags": {
        "is_bundler": true,
        "is_sniper": true,
        "is_dev": true
      },
      "liquidity_name": "PonsV2",
      "funding": {
        "funder": "0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51",
        "funder_type": "cex",
        "funder_name": "Binance",
        "amount": 1.25,
        "amount_raw": "1250000000000000000",
        "decimals": 18,
        "name": "Ether",
        "symbol": "ETH",
        "hash": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
        "block": 22100000,
        "timestamp": 1784216377000
      },
      "pnl": {
        "status": "open",
        "buy_count": 8,
        "sell_count": 5,
        "total_trades": 13,
        "total_bought": 680000.0,
        "total_sold": 420000.0,
        "position_amount": 260000.0,
        "estimated_value_native": 7.14,
        "estimated_value_usd": 17670.26,
        "value_price_native": 3.906497e-05,
        "value_price_usd": 0.09664868619,
        "buy_native": 1.2,
        "sell_native": 1.6,
        "pnl_native": 0.4,
        "buy_usd": 178.0,
        "sell_usd": 237.0,
        "pnl_usd": 59.0,
        "avg_buy_price_native": 1.76e-06,
        "avg_buy_price_usd": 0.00026176,
        "avg_sell_price_native": 3.81e-06,
        "avg_sell_price_usd": 0.00056429,
        "opening_price_native": 1.2e-06,
        "closing_price_native": 3.81e-06,
        "opening_price_usd": 0.00018,
        "closing_price_usd": 0.00056429,
        "high_price_native": 4.2e-06,
        "low_price_native": 1.1e-06,
        "high_price_usd": 0.00063,
        "low_price_usd": 0.000165,
        "avg_buy_market_cap_native": 1760.0,
        "avg_buy_market_cap_usd": 261760.0,
        "avg_sell_market_cap_native": 3810.0,
        "avg_sell_market_cap_usd": 564290.0,
        "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"
      }
    }
  ]
}
```

```jsonc Response (Short) theme={null}
{
  "ta": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
  "tca": 1784216377000,
  "c": 1,
  "ch": false,
  "by": [
    {
      "a": "0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51",
      "br": 1,
      "fba": 1784216378000,
      "fbp": "0xEd50bDeeA8aDC232f159486192a4157281D722ff",
      "fbh": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
      "ian": 0.06,
      "iau": 148.22,
      "ita": 1534.2,
      "tb": 1250.5,
      "tbu": 120770.48,
      "tbr": "1250500000000000000000",
      "nb": 2.4,
      "pct": 0.125,
      "tg": {
        "bu": true,
        "sn": true,
        "dv": true
      },
      "ln": "PonsV2",
      "f": {
        "a": "0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51",
        "t": "cex",
        "f": "Binance",
        "v": 1.25,
        "r": "1250000000000000000",
        "d": 18,
        "n": "Ether",
        "s": "ETH",
        "h": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
        "b": 22100000,
        "c": 1784216377000
      },
      "pnl": {
        "st": "open",
        "bc": 8,
        "sc": 5,
        "tt": 13,
        "tbo": 680000.0,
        "tso": 420000.0,
        "pa": 260000.0,
        "evn": 7.14,
        "evu": 17670.26,
        "vpn": 3.906497e-05,
        "vpu": 0.09664868619,
        "bn": 1.2,
        "sn": 1.6,
        "pnn": 0.4,
        "bu": 178.0,
        "su": 237.0,
        "pu": 59.0,
        "abpn": 1.76e-06,
        "abpu": 0.00026176,
        "aspn": 3.81e-06,
        "aspu": 0.00056429,
        "opn": 1.2e-06,
        "clpn": 3.81e-06,
        "opu": 0.00018,
        "clpu": 0.00056429,
        "hpn": 4.2e-06,
        "lpn": 1.1e-06,
        "hpu": 0.00063,
        "lpu": 0.000165,
        "abmcn": 1760.0,
        "abmcu": 261760.0,
        "asmcn": 3810.0,
        "asmcu": 564290.0,
        "tpf": 0.014,
        "tbf": 0.008,
        "tta": 0.002,
        "fta": 1705000000000,
        "lta": 1710000000000,
        "lpo": "0xEd50bDeeA8aDC232f159486192a4157281D722ff",
        "fth": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
        "tf": "lifetime"
      }
    }
  ]
}
```


## OpenAPI

````yaml onchain-openapi.json GET /token/first-buyers
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:
  /token/first-buyers:
    get:
      tags:
        - Token
      summary: Token first buyers
      description: >-
        Returns the earliest wallets to buy a token, each with the size of their
        first buy plus current balance and PnL.
      operationId: get_token_first_buyers
      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: token_address
          in: query
          description: Token address (required).
          required: true
          schema:
            type: string
          example: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
        - name: limit
          in: query
          description: Max buyers to return (default 50, max 100).
          required: false
          schema:
            type: integer
            format: int32
          example: 50
        - name: timeframe
          in: query
          description: PnL lookback window (default lifetime).
          required: false
          schema:
            $ref: '#/components/schemas/TraderTimeframe'
        - 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: Token first buyers
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FirstBuyersResponse'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    token_address: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                    token_created_at: 1784216377000
                    count: 1
                    cached: false
                    buyers:
                      - address: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
                        buy_rank: 1
                        first_buy_at: 1784216378000
                        first_buy_pool: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
                        first_buy_hash: >-
                          0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                        initial_amount_native: 0.06
                        initial_amount_usd: 148.22
                        initial_token_amount: 1534.2
                        token_balance: 1250.5
                        token_balance_usd: 120770.48
                        token_balance_raw: '1250500000000000000000'
                        native_balance: 2.4
                        percentage: 0.125
                        tags:
                          is_bundler: true
                          is_sniper: true
                          is_dev: true
                        liquidity_name: PonsV2
                        funding:
                          funder: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
                          funder_type: cex
                          funder_name: Binance
                          amount: 1.25
                          amount_raw: '1250000000000000000'
                          decimals: 18
                          name: Ether
                          symbol: ETH
                          hash: >-
                            0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                          block: 22100000
                          timestamp: 1784216377000
                        pnl:
                          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
                short:
                  summary: Response (Short)
                  value:
                    ta: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                    tca: 1784216377000
                    c: 1
                    ch: false
                    by:
                      - a: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
                        br: 1
                        fba: 1784216378000
                        fbp: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
                        fbh: >-
                          0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                        ian: 0.06
                        iau: 148.22
                        ita: 1534.2
                        tb: 1250.5
                        tbu: 120770.48
                        tbr: '1250500000000000000000'
                        nb: 2.4
                        pct: 0.125
                        tg:
                          bu: true
                          sn: true
                          dv: true
                        ln: PonsV2
                        f:
                          a: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
                          t: cex
                          f: Binance
                          v: 1.25
                          r: '1250000000000000000'
                          d: 18
                          'n': Ether
                          s: ETH
                          h: >-
                            0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                          b: 22100000
                          c: 1784216377000
                        pnl:
                          st: open
                          bc: 8
                          sc: 5
                          tt: 13
                          tbo: 680000
                          tso: 420000
                          pa: 260000
                          evn: 7.14
                          evu: 17670.26
                          vpn: 0.00003906497
                          vpu: 0.09664868619
                          bn: 1.2
                          sn: 1.6
                          pnn: 0.4
                          bu: 178
                          su: 237
                          pu: 59
                          abpn: 0.00000176
                          abpu: 0.00026176
                          aspn: 0.00000381
                          aspu: 0.00056429
                          opn: 0.0000012
                          clpn: 0.00000381
                          opu: 0.00018
                          clpu: 0.00056429
                          hpn: 0.0000042
                          lpn: 0.0000011
                          hpu: 0.00063
                          lpu: 0.000165
                          abmcn: 1760
                          abmcu: 261760
                          asmcn: 3810
                          asmcu: 564290
                          tpf: 0.014
                          tbf: 0.008
                          tta: 0.002
                          fta: 1705000000000
                          lta: 1710000000000
                          lpo: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
                          fth: >-
                            0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                          tf: lifetime
        '400':
          description: Validation error — missing/invalid `token_address`.
components:
  schemas:
    TraderTimeframe:
      type: string
      description: Lookback window for trader PnL endpoints.
      enum:
        - 1d
        - 3d
        - 7d
        - 14d
        - 30d
        - lifetime
    FirstBuyersResponse:
      type: object
      required:
        - token_address
        - count
        - cached
        - buyers
      properties:
        token_address:
          type: string
        token_created_at:
          type:
            - integer
            - 'null'
          format: int64
          description: Token creation time, in milliseconds.
          minimum: 0
        count:
          type: integer
          minimum: 0
        cached:
          type: boolean
        buyers:
          type: array
          items:
            $ref: '#/components/schemas/FirstBuyer'
      example:
        token_address: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
        token_created_at: 1784216377000
        count: 1
        cached: false
        buyers:
          - address: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
            buy_rank: 1
            first_buy_at: 1784216378000
            first_buy_pool: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
            first_buy_hash: '0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f'
            initial_amount_native: 0.06
            initial_amount_usd: 148.22
            initial_token_amount: 1534.2
            token_balance: 1250.5
            token_balance_usd: 120770.48
            token_balance_raw: '1250500000000000000000'
            native_balance: 2.4
            percentage: 0.125
            tags:
              is_bundler: true
              is_sniper: true
              is_dev: true
            liquidity_name: PonsV2
            funding:
              funder: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
              funder_type: cex
              funder_name: Binance
              amount: 1.25
              amount_raw: '1250000000000000000'
              decimals: 18
              name: Ether
              symbol: ETH
              hash: >-
                0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
              block: 22100000
              timestamp: 1784216377000
            pnl:
              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
    FirstBuyer:
      type: object
      required:
        - address
        - buy_rank
        - percentage
      properties:
        address:
          type: string
        buy_rank:
          type: integer
          format: int32
        first_buy_at:
          type:
            - integer
            - 'null'
          format: int64
          description: Time of this wallet's first buy, in milliseconds.
          minimum: 0
        first_buy_pool:
          type:
            - string
            - 'null'
        first_buy_hash:
          type:
            - string
            - 'null'
        initial_amount_native:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        initial_amount_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        initial_token_amount:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        token_balance:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        token_balance_usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        token_balance_raw:
          type:
            - string
            - 'null'
        native_balance:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
        percentage:
          type: number
          format: double
        tags:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/HolderTags'
        liquidity_name:
          type:
            - string
            - 'null'
        funding:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/FundingData'
        pnl:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TraderPnlResponse'
      example:
        address: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
        buy_rank: 1
        first_buy_at: 1784216378000
        first_buy_pool: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
        first_buy_hash: '0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f'
        initial_amount_native: 0.06
        initial_amount_usd: 148.22
        initial_token_amount: 1534.2
        token_balance: 1250.5
        token_balance_usd: 120770.48
        token_balance_raw: '1250500000000000000000'
        native_balance: 2.4
        percentage: 0.125
        tags:
          is_bundler: true
          is_sniper: true
          is_dev: true
        liquidity_name: PonsV2
        funding:
          funder: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
          funder_type: cex
          funder_name: Binance
          amount: 1.25
          amount_raw: '1250000000000000000'
          decimals: 18
          name: Ether
          symbol: ETH
          hash: '0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f'
          block: 22100000
          timestamp: 1784216377000
        pnl:
          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
    Decimal:
      type: number
      format: double
      description: Floating-point number serialized as JSON number.
      examples:
        - 4.108801574e-7
    HolderTags:
      type: object
      properties:
        is_liquidity:
          type:
            - boolean
            - 'null'
        liquidity_name:
          type:
            - string
            - 'null'
        is_block_zero_buyer:
          type:
            - boolean
            - 'null'
        is_sniper:
          type:
            - boolean
            - 'null'
        is_migration_sniper:
          type:
            - boolean
            - 'null'
        is_insider:
          type:
            - boolean
            - 'null'
        is_caller:
          type:
            - boolean
            - 'null'
        is_pro_trader:
          type:
            - boolean
            - 'null'
        is_dev:
          type:
            - boolean
            - 'null'
        is_cex:
          type:
            - boolean
            - 'null'
        is_bundler:
          type:
            - boolean
            - 'null'
        is_volume_bot:
          type:
            - boolean
            - 'null'
        is_bump_bot:
          type:
            - boolean
            - 'null'
        is_fresh:
          type:
            - boolean
            - 'null'
    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
    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
  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.