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

# Batch wallet trades

> Returns recent buy/sell trades for up to 500 wallet addresses, newest first. Follow `pagination.pagination_key` for older trades. Set fields=array for fixed positional TradeArrayRow rows; the last column is metadata [name, symbol, image_url] or null. Pagination is unchanged.

Trades come back newest first, at most 100 per page. When `pagination.has_more` is true, pass `pagination.pagination_key` back with the same `wallets` to get the next older trades. `offset` still works but is deprecated.

With `include_metadata: true`, each trade carries `metadata` (short `md`) with the traded token's (`token_a`) `name` (`n`), `symbol` (`sy`) and `image_url` (`iu`), resolved through the trade's pool. The same parameters are accepted as query parameters on `GET /trader/batch-trades`.

```bash theme={null}
curl -X POST "https://staging-api.struct.to/v1/trader/batch-trades" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"chain":"robinhood","chain_id":4663,"wallets":["0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51"],"limit":50,"include_metadata":true}'
```

```json Response (Long) theme={null}
[
  {
    "chain_id": 4663,
    "type": "Buy",
    "id": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
    "hash": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
    "protocol": "PonsV2",
    "trader": "0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51",
    "pool_id": "0xEd50bDeeA8aDC232f159486192a4157281D722ff",
    "block": 22100000,
    "bonding_curve_percent": 42.5,
    "confirmed_at": 1784216377000,
    "price": 3.906497e-05,
    "price_native": 3.906497e-05,
    "price_usd": 0.09664868619,
    "market_cap": 39064.97,
    "market_cap_usd": 96648686.19,
    "market_cap_native": 39064.97,
    "token_a": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
    "token_b": "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73",
    "token_a_amount": 1000000,
    "token_a_amount_usd": 96648.69,
    "token_a_amount_native": 39.06497,
    "token_b_amount": 39.06497,
    "token_b_amount_usd": 96648.69,
    "token_b_amount_native": 39.06497,
    "token_a_vault_amount": 1644447.08,
    "token_b_vault_amount": 934.0647,
    "token_a_vault_amount_usd": 158921.11,
    "token_b_vault_amount_usd": 2322765.87,
    "tags": [
      "Bundler",
      "Sniper",
      "Dev"
    ],
    "bot_name": "GMGN",
    "factory_address": "0x1f7d7550B1b028f7571E69A784071F0205FD2EfA",
    "is_first_trade": false,
    "fee_native": 0.039,
    "gas_used": 184221,
    "gas_price": 12.4,
    "native_usd_price": 2474.05,
    "bot_fees_native": 0.008,
    "cex_name": "Binance",
    "tip_provider": "Jito",
    "tip_amount_native": 0.002,
    "tx_count": 1,
    "buys": 1,
    "sells": 0,
    "metadata": {
      "name": "Pons",
      "symbol": "PONS",
      "image_url": "https://cdn.example.com/pons.png"
    }
  }
]
```

```jsonc Response (Short) theme={null}
[
  {
    "ci": 4663,
    "t": "Buy",
    "id": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
    "h": "0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f",
    "pr": "PonsV2",
    "tr": "0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51",
    "p": "0xEd50bDeeA8aDC232f159486192a4157281D722ff",
    "b": 22100000,
    "bc": 42.5,
    "ca": 1784216377000,
    "px": 3.906497e-05,
    "pn": 3.906497e-05,
    "pu": 0.09664868619,
    "mc": 39064.97,
    "mcu": 96648686.19,
    "mcn": 39064.97,
    "ta": "0x39dBED3a2bd333467115dE45665cC57F813C4571",
    "tb": "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73",
    "taa": 1000000,
    "tau": 96648.69,
    "tan": 39.06497,
    "tba": 39.06497,
    "tbu": 96648.69,
    "tbn": 39.06497,
    "tava": 1644447.08,
    "tbva": 934.0647,
    "tavu": 158921.11,
    "tbvu": 2322765.87,
    "tg": [
      "Bundler",
      "Sniper",
      "Dev"
    ],
    "bt": "GMGN",
    "fa": "0x1f7d7550B1b028f7571E69A784071F0205FD2EfA",
    "ft": false,
    "f": 0.039,
    "gu": 184221,
    "gp": 12.4,
    "nup": 2474.05,
    "bf": 0.008,
    "cn": "Binance",
    "tp": "Jito",
    "tip": 0.002,
    "tc": 1,
    "by": 1,
    "sl": 0,
    "md": {
      "n": "Pons",
      "sy": "PONS",
      "iu": "https://cdn.example.com/pons.png"
    }
  }
]
```


## OpenAPI

````yaml onchain-openapi.json POST /trader/batch-trades
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/batch-trades:
    post:
      tags:
        - Trader
      summary: Batch wallet trades
      description: >-
        Returns recent buy/sell trades for up to 500 wallet addresses, newest
        first. Follow `pagination.pagination_key` for older trades. Set
        fields=array for fixed positional TradeArrayRow rows; the last column is
        metadata [name, symbol, image_url] or null. Pagination is unchanged.
      operationId: post_trader_batch_trades
      parameters:
        - name: fields
          in: query
          description: >-
            Response format: long (default), short, or array. Array uses fixed
            TradeArrayRow positions, retaining nulls and millisecond
            confirmed_at. x-field-names header takes precedence; field_names is
            an alias.
          required: false
          schema:
            type: string
        - 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
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchTradesRequest'
            example:
              chain: robinhood
              chain_id: 4663
              wallets:
                - '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
              limit: 50
              include_metadata: true
        required: true
      responses:
        '200':
          description: Wallet trades
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchTradesResponseFormats'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    - chain_id: 4663
                      type: Buy
                      id: >-
                        0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                      hash: >-
                        0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                      protocol: PonsV2
                      trader: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
                      pool_id: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
                      block: 22100000
                      bonding_curve_percent: 42.5
                      confirmed_at: 1784216377000
                      price: 0.00003906497
                      price_native: 0.00003906497
                      price_usd: 0.09664868619
                      market_cap: 39064.97
                      market_cap_usd: 96648686.19
                      market_cap_native: 39064.97
                      token_a: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                      token_b: '0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73'
                      token_a_amount: 1000000
                      token_a_amount_usd: 96648.69
                      token_a_amount_native: 39.06497
                      token_b_amount: 39.06497
                      token_b_amount_usd: 96648.69
                      token_b_amount_native: 39.06497
                      token_a_vault_amount: 1644447.08
                      token_b_vault_amount: 934.0647
                      token_a_vault_amount_usd: 158921.11
                      token_b_vault_amount_usd: 2322765.87
                      tags:
                        - Bundler
                        - Sniper
                        - Dev
                      bot_name: GMGN
                      factory_address: '0x1f7d7550B1b028f7571E69A784071F0205FD2EfA'
                      is_first_trade: false
                      fee_native: 0.039
                      gas_used: 184221
                      gas_price: 12.4
                      native_usd_price: 2474.05
                      bot_fees_native: 0.008
                      cex_name: Binance
                      tip_provider: Jito
                      tip_amount_native: 0.002
                      tx_count: 1
                      buys: 1
                      sells: 0
                      metadata:
                        name: Pons
                        symbol: PONS
                        image_url: https://cdn.example.com/pons.png
                short:
                  summary: Response (Short)
                  value:
                    - ci: 4663
                      t: Buy
                      id: >-
                        0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                      h: >-
                        0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f
                      pr: PonsV2
                      tr: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
                      p: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
                      b: 22100000
                      bc: 42.5
                      ca: 1784216377000
                      px: 0.00003906497
                      pn: 0.00003906497
                      pu: 0.09664868619
                      mc: 39064.97
                      mcu: 96648686.19
                      mcn: 39064.97
                      ta: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
                      tb: '0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73'
                      taa: 1000000
                      tau: 96648.69
                      tan: 39.06497
                      tba: 39.06497
                      tbu: 96648.69
                      tbn: 39.06497
                      tava: 1644447.08
                      tbva: 934.0647
                      tavu: 158921.11
                      tbvu: 2322765.87
                      tg:
                        - Bundler
                        - Sniper
                        - Dev
                      bt: GMGN
                      fa: '0x1f7d7550B1b028f7571E69A784071F0205FD2EfA'
                      ft: false
                      f: 0.039
                      gu: 184221
                      gp: 12.4
                      nup: 2474.05
                      bf: 0.008
                      cn: Binance
                      tp: Jito
                      tip: 0.002
                      tc: 1
                      by: 1
                      sl: 0
                      md:
                        'n': Pons
                        sy: PONS
                        iu: https://cdn.example.com/pons.png
        '400':
          description: Validation error.
components:
  schemas:
    BatchTradesRequest:
      type: object
      required:
        - wallets
      properties:
        chain:
          type:
            - string
            - 'null'
          description: Chain name. Required unless `chain_id` is provided.
        chain_id:
          type:
            - integer
            - 'null'
          format: int64
          description: Chain id. Required unless `chain` is provided. Use `-1` for Solana.
        wallets:
          type: array
          items:
            type: string
          description: Wallet addresses to load trades for. Up to 500.
        limit:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
          description: Max trades to return (default 100, max 100).
        offset:
          type:
            - integer
            - 'null'
          format: int32
          description: Number of trades to skip.
          minimum: 0
        pagination_key:
          type:
            - string
            - 'null'
          description: Keyset key from the previous page's `pagination.pagination_key`.
        include_metadata:
          type:
            - boolean
            - 'null'
          description: >-
            Add the traded token's name/symbol/image as `metadata` (short `md`)
            on each trade.
    BatchTradesResponseFormats:
      anyOf:
        - type: array
          items:
            $ref: '#/components/schemas/BatchTradeResponse'
        - type: array
          items:
            $ref: '#/components/schemas/TradeArrayRow'
    BatchTradeResponse:
      allOf:
        - $ref: '#/components/schemas/Swap'
        - type: object
          properties:
            metadata:
              oneOf:
                - type: 'null'
                - $ref: '#/components/schemas/BatchTradeMetadata'
    TradeArrayRow:
      type: array
      items: false
      prefixItems:
        - allOf:
            - type: integer
              format: int64
          title: chain_id
        - allOf:
            - type: string
          title: type
        - allOf:
            - type: string
          title: id
        - allOf:
            - type: string
          title: hash
        - allOf:
            - 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
          title: protocol
        - allOf:
            - oneOf:
                - type: 'null'
                - type: string
          title: trader
        - allOf:
            - oneOf:
                - type: 'null'
                - type: string
          title: pool_id
        - allOf:
            - oneOf:
                - type: 'null'
                - type: string
          title: factory_address
        - allOf:
            - type: integer
              format: int64
              minimum: 0
          title: block
        - allOf:
            - type: integer
              format: int64
          title: confirmed_at
        - allOf:
            - oneOf:
                - type: 'null'
                - type: boolean
          title: is_first_trade
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: bonding_curve_percent
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: price
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: price_usd
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: price_native
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: market_cap
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: market_cap_usd
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: market_cap_native
        - allOf:
            - oneOf:
                - type: 'null'
                - type: string
          title: token_a
        - allOf:
            - oneOf:
                - type: 'null'
                - type: string
          title: token_b
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: token_a_amount
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: token_b_amount
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: token_a_amount_usd
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: token_b_amount_usd
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: token_a_amount_native
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: token_b_amount_native
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: token_a_vault_amount
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: token_b_vault_amount
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: token_a_vault_amount_usd
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: token_b_vault_amount_usd
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: token_a_vault_amount_native
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: token_b_vault_amount_native
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: fee_native
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: gas_used
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: gas_price
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: native_usd_price
        - allOf:
            - type: array
              items:
                type: string
          title: tags
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: bot_fees_native
        - allOf:
            - oneOf:
                - type: 'null'
                - type: string
          title: bot_name
        - allOf:
            - oneOf:
                - type: 'null'
                - type: string
                  enum:
                    - Binance
                    - Coinbase
                    - CryptoCom
                    - Kraken
                    - Mexc
                    - Robinhood
                    - Kucoin
                    - FTX
                    - FTXUS
                    - Bitfinex
                    - Coinsquare
                    - Swissborg
                    - CoinList
                    - Rollbit
                    - AscendEX
                    - Backpack
                    - Bitget
                    - Bitstamp
                    - Bybit
                    - CoinDCX
                    - Gateio
                    - HTX
                    - Korbit
                    - LAToken
                    - NBX
                    - OKX
                    - Huobi
                    - Solcasino
                    - Tapbit
                    - TGCasino
                    - CoinSpot
                    - Upbit
                    - Moonpay
                    - Uphold
                    - Weex
                    - Ourbit
                    - Whitebit
                    - MayanBridge
                    - Wintermute
                    - LuckyBlock
                    - M2Exchange
                    - WOO
                    - Btse
                    - XTDotcom
                    - Hotcoin
                    - Zonda
                    - AlamedaResearch
                    - Allbridge
                    - Arkham
                    - BCGame
                    - BtcTurk
                    - Revolut
                    - Bitmart
                    - ManifoldTrading
                    - Betpanda
                    - BigONE
                    - Bitvavo
                    - Razed
                    - OxDotFun
                    - Bitrue
                    - Ceffu
                    - Phantom
                    - BitgetUS
                    - TGDotCasino
                    - ShuffleDotCom
                    - Fixedfloat
                    - DexTrade
                    - FalconX
                    - Stake
                    - Probit
                    - Rainbet
                    - Flipster
                    - Indodax
                    - Rapira
                    - LBank
                    - Bridgers
                    - ChainupCustody
                    - LuckDotio
                    - DigiFinex
                    - Changenow
                    - Blockchain
                    - Bloxroute
                    - Bitkub
                    - Bithumb
                    - Blofin
                    - JumpCrypto
                    - Coinex
                    - Cobo
                    - CoinW
                    - Cumberland
                    - Debridge
                    - Deribit
                    - Firi
          title: cex_name
        - allOf:
            - oneOf:
                - type: 'null'
                - type: string
          title: tip_provider
        - allOf:
            - oneOf:
                - type: 'null'
                - type: number
                  format: double
          title: tip_amount_native
        - allOf:
            - oneOf:
                - type: 'null'
                - type: integer
                  format: int64
          title: tx_count
        - allOf:
            - oneOf:
                - type: 'null'
                - type: integer
                  format: int64
          title: buys
        - allOf:
            - oneOf:
                - type: 'null'
                - type: integer
                  format: int64
          title: sells
        - allOf:
            - oneOf:
                - type: 'null'
                - type: array
                  items:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Optional batch-trade metadata in the order [name, symbol,
                      image_url].
                  description: >-
                    Optional batch-trade metadata in the order [name, symbol,
                    image_url].
                  maxItems: 3
                  minItems: 3
          title: metadata
      description: >-
        Fixed order: chain_id, type, id, hash, protocol, trader, pool_id,
        factory_address, block, confirmed_at, is_first_trade,
        bonding_curve_percent, price, price_usd, price_native, market_cap,
        market_cap_usd, market_cap_native, token_a, token_b, token_a_amount,
        token_b_amount, token_a_amount_usd, token_b_amount_usd,
        token_a_amount_native, token_b_amount_native, token_a_vault_amount,
        token_b_vault_amount, token_a_vault_amount_usd,
        token_b_vault_amount_usd, token_a_vault_amount_native,
        token_b_vault_amount_native, fee_native, gas_used, gas_price,
        native_usd_price, tags, bot_fees_native, bot_name, cex_name,
        tip_provider, tip_amount_native, tx_count, buys, sells, metadata, All
        positions are retained, including nulls. confirmed_at is Unix
        milliseconds. metadata is null or [name, symbol, image_url].
      maxItems: 46
      minItems: 46
    Swap:
      type: object
      required:
        - chain_id
        - type
        - id
        - hash
        - protocol
        - block
        - confirmed_at
        - tags
      properties:
        chain_id:
          type: integer
          format: int64
        position_change:
          $ref: '#/components/schemas/PositionChange'
          description: >-
            How this trade changed the trader's holding of the traded token (the

            one this swap's buy/sell is about): `opened` (first buy),
            `increased`

            (bought more), `reduced` (sold some) or `closed` (sold all). Picked

            from the per-token values under the swap's current orientation, so
            it

            always agrees with the rendered direction. Omitted when unknown.
        type:
          type: string
          enum:
            - Buy
            - Sell
        id:
          type: string
        hash:
          type: string
        protocol:
          $ref: '#/components/schemas/Protocol'
          description: DEX protocol name.
        trader:
          type:
            - string
            - 'null'
        pool_id:
          type:
            - string
            - 'null'
        factory_address:
          type:
            - string
            - 'null'
        block:
          type: integer
          format: int64
          minimum: 0
        bonding_curve_percent:
          type:
            - number
            - 'null'
          format: double
        confirmed_at:
          type: integer
          format: int64
          description: Tx confirmation time, in milliseconds.
        is_first_trade:
          type:
            - boolean
            - 'null'
        price_native:
          type:
            - number
            - 'null'
          format: double
        price_usd:
          type:
            - number
            - 'null'
          format: double
        market_cap_usd:
          type:
            - number
            - 'null'
          format: double
        market_cap_native:
          type:
            - number
            - 'null'
          format: double
        price:
          type:
            - number
            - 'null'
          format: double
          description: Price in the counter token's units.
        market_cap:
          type:
            - number
            - 'null'
          format: double
          description: Market cap in the counter token's units.
        token_a:
          type:
            - string
            - 'null'
        token_b:
          type:
            - string
            - 'null'
        token_a_amount:
          type:
            - number
            - 'null'
          format: double
        token_a_amount_usd:
          type:
            - number
            - 'null'
          format: double
        token_b_amount:
          type:
            - number
            - 'null'
          format: double
        token_b_amount_usd:
          type:
            - number
            - 'null'
          format: double
        token_a_amount_native:
          type:
            - number
            - 'null'
          format: double
        token_b_amount_native:
          type:
            - number
            - 'null'
          format: double
        token_a_vault_amount:
          type:
            - number
            - 'null'
          format: double
        token_b_vault_amount:
          type:
            - number
            - 'null'
          format: double
        token_a_vault_amount_usd:
          type:
            - number
            - 'null'
          format: double
        token_b_vault_amount_usd:
          type:
            - number
            - 'null'
          format: double
        token_a_vault_amount_native:
          type:
            - number
            - 'null'
          format: double
          description: Token A pool reserve valued in the chain's native coin.
        token_b_vault_amount_native:
          type:
            - number
            - 'null'
          format: double
          description: Token B pool reserve valued in the chain's native coin.
        fee_native:
          type:
            - number
            - 'null'
          format: double
          description: Network transaction fee in the chain's native currency.
        gas_used:
          type:
            - number
            - 'null'
          format: double
          description: >-
            Total transaction gas units (EVM). Shared by all trades in that
            transaction; omitted when unavailable.
        gas_price:
          type:
            - number
            - 'null'
          format: double
        native_usd_price:
          type:
            - number
            - 'null'
          format: double
        tags:
          type: array
          items:
            type: string
          description: >-
            Classification tags present on the trader, e.g. `Bundler`, `Sniper`,
            `Dev`.
        bot_fees_native:
          type:
            - number
            - 'null'
          format: double
          description: Trading-bot fees in the chain's native currency.
        bot_name:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/BotType'
        cex_name:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/CEX'
        tip_provider:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TipProvider'
        tip_amount_native:
          type:
            - number
            - 'null'
          format: double
          description: Validator or relay tip in the chain's native currency.
        tx_count:
          type:
            - integer
            - 'null'
          format: int64
        buys:
          type:
            - integer
            - 'null'
          format: int64
        sells:
          type:
            - integer
            - 'null'
          format: int64
      example:
        chain_id: 4663
        type: Buy
        id: '0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f'
        hash: '0x7c4a8d09ca3762af61d53583ec55ad30131148048f16944d19399c267a8a4b8f'
        protocol: PonsV2
        trader: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
        pool_id: '0xEd50bDeeA8aDC232f159486192a4157281D722ff'
        block: 22100000
        bonding_curve_percent: 42.5
        confirmed_at: 1784216377000
        price: 0.00003906497
        price_native: 0.00003906497
        price_usd: 0.09664868619
        market_cap: 39064.97
        market_cap_usd: 96648686.19
        market_cap_native: 39064.97
        token_a: '0x39dBED3a2bd333467115dE45665cC57F813C4571'
        token_b: '0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73'
        token_a_amount: 1000000
        token_a_amount_usd: 96648.69
        token_a_amount_native: 39.06497
        token_b_amount: 39.06497
        token_b_amount_usd: 96648.69
        token_b_amount_native: 39.06497
        token_a_vault_amount: 1644447.08
        token_b_vault_amount: 934.0647
        token_a_vault_amount_usd: 158921.11
        token_b_vault_amount_usd: 2322765.87
        tags:
          - Bundler
          - Sniper
          - Dev
        bot_name: GMGN
        factory_address: '0x1f7d7550B1b028f7571E69A784071F0205FD2EfA'
        is_first_trade: false
        fee_native: 0.039
        gas_used: 184221
        gas_price: 12.4
        native_usd_price: 2474.05
        bot_fees_native: 0.008
        cex_name: Binance
        tip_provider: Jito
        tip_amount_native: 0.002
        tx_count: 1
        buys: 1
        sells: 0
    BatchTradeMetadata:
      type: object
      description: The traded token's name, symbol and image (`include_metadata=true`).
      properties:
        name:
          type:
            - string
            - 'null'
        symbol:
          type:
            - string
            - 'null'
        image_url:
          type:
            - string
            - 'null'
    PositionChange:
      type: string
      enum:
        - unknown
        - opened
        - increased
        - reduced
        - closed
    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
    BotType:
      type: string
      enum:
        - Unknown
        - GMGN
        - BullX
        - Trojan
        - Pepeboost
        - Photon
        - Bloom
        - Lunar
        - VisionAIO
        - SharpAIO
        - Mintech
        - Okx
        - BananaGun
        - StarkDexBot
        - TradeWiz
        - CabalBot
        - Blood
        - Axiom
        - Peppermints
        - Maestro
        - MevX
        - Nova
        - Shuriken
        - Wifbot
        - Padre
        - Definitive
        - BasedBot
        - O1Exchange
        - Sigma
        - BONKbot
        - Raybot
        - STBot
    CEX:
      type: string
      enum:
        - Binance
        - Coinbase
        - CryptoCom
        - Kraken
        - Mexc
        - Robinhood
        - Kucoin
        - FTX
        - FTXUS
        - Bitfinex
        - Coinsquare
        - Swissborg
        - CoinList
        - Rollbit
        - AscendEX
        - Backpack
        - Bitget
        - Bitstamp
        - Bybit
        - CoinDCX
        - Gateio
        - HTX
        - Korbit
        - LAToken
        - NBX
        - OKX
        - Huobi
        - Solcasino
        - Tapbit
        - TGCasino
        - CoinSpot
        - Upbit
        - Moonpay
        - Uphold
        - Weex
        - Ourbit
        - Whitebit
        - MayanBridge
        - Wintermute
        - LuckyBlock
        - M2Exchange
        - WOO
        - Btse
        - XTDotcom
        - Hotcoin
        - Zonda
        - AlamedaResearch
        - Allbridge
        - Arkham
        - BCGame
        - BtcTurk
        - Revolut
        - Bitmart
        - ManifoldTrading
        - Betpanda
        - BigONE
        - Bitvavo
        - Razed
        - OxDotFun
        - Bitrue
        - Ceffu
        - Phantom
        - BitgetUS
        - TGDotCasino
        - ShuffleDotCom
        - Fixedfloat
        - DexTrade
        - FalconX
        - Stake
        - Probit
        - Rainbet
        - Flipster
        - Indodax
        - Rapira
        - LBank
        - Bridgers
        - ChainupCustody
        - LuckDotio
        - DigiFinex
        - Changenow
        - Blockchain
        - Bloxroute
        - Bitkub
        - Bithumb
        - Blofin
        - JumpCrypto
        - Coinex
        - Cobo
        - CoinW
        - Cumberland
        - Debridge
        - Deribit
        - Firi
    TipProvider:
      type: string
      enum:
        - Unknown
        - Jito
        - NextBlock
        - Temporal
        - Bloxroute
        - ZeroSlot
        - Astralane
        - Helius
        - Helio
        - FlashBlock
        - Stellium
        - Node1
        - BlockRazor
  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.