sample tx

Returns DEX trades by token on Solana, where transaction signature is 5JdEbd…2DXp: block time, transaction signature, market address, protocol name, protocol family, amount in USD, price in USD and 9 more fields.

By Divyasshree · saved 8 November 2024 · Bitquery API v2

What it returns

Filters

The query

query LatestTrades {
  Solana {
    DEXTradeByTokens(
      where: {Transaction: {Signature: {is: "5JdEbdAtcacQrYU6XF7NP9rpNcK1o7ozcQr4HfKRrz7PTivX3ya8Zmc9Uqmg5QRsy43KmTRLXBk1JXqHPALa2DXp"}}}
    ) {
      Block {
        allTime: Time
      }
      Transaction {
        Signature
      }
      Trade {
        Market {
          MarketAddress
        }
        Dex {
          ProtocolName
          ProtocolFamily
        }
        AmountInUSD
        PriceInUSD
        Amount
        Side {
          Type
          Currency {
            Symbol
            MintAddress
            Name
          }
          AmountInUSD
          Amount
          Account {
            Address
          }
        }
        Account {
          Address
        }
      }
    }
  }
}

Similar queries