Trader trades

Returns the latest 50 DEX trades by token on Solana, where account owner is 38hKur…9QRq: block time, transaction signature, program address, protocol family, protocol name, account owner, side type and 12 more fields.

By Aleksey · saved 2 September 2024 · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($trader: String!) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {Trade: {Account: {Owner: {is: $trader}}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Signature
      }
      Trade {
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Account {
          Owner
        }
        Side {
          Type
          Account {
            Address
            Owner
          }
        }
        Price
        Amount
        Side {
          Currency {
            Symbol
            MintAddress
            Name
          }
          AmountInUSD
          Amount
        }
        Currency {
            Symbol
            MintAddress
            Name
        }
      }
    }
  }
}

Variables

{
"trader": "38hKurCp1vqoT381gU9SixT3RXWWMigzEr7RjF9W9QRq"
}

Similar queries