Solana dextrades

Returns 100 DEX trades on Solana, where block time after 2024-01-01, sorted by block time: buy amount, buy price, buy currency symbol, buy currency mint address, buy account owner, buy buy side, sell amount and 10 more fields.

By hk · saved 22 May 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($wallet: String, $fromTime: DateTime, $offset: Int, $limit: Int) {
  Solana {
    DEXTrades(
      where: {any: [
          {Trade: {Buy: {Account: {Owner: {is: $wallet}}}}}
          {Trade: {Buy: {Account: {Owner: {is: $wallet}}}}}
          {Trade: {Sell: {Account: {Owner: {is: $wallet}}}}}
          {Trade: {Sell: {Account: {Owner: {is: $wallet}}}}}
        ]
        Block: {Time: {after: $fromTime}}
      }
      limit: {offset: $offset, count: $limit}
      orderBy: {ascending: Block_Time}
    ) {
      Trade {
        Buy {
          Amount
          Price
          Currency {
            Symbol
            MintAddress
          }
          Account {
            Owner
          }
          Order {
            BuySide
          }
        }
        Sell {
          Amount
          Price
          Currency {
            Symbol
            MintAddress
          }
          Order {
            BuySide
          }
          Account {
            Owner
          }
        }
        Index
      }
      Transaction {
        Index
        Signature
        Result {
          Success
        }
      }
      Block {
        Time
      }
    }
  }
}

Variables

{
    "wallet": "K1tChn2NETQd9cCHe1UmUyWP3rDA92gP1dH4nNyEJrx",
    "fromTime": "2024-01-01T00:00:00.000Z",
    "offset": 0,
    "limit": 100
}

Similar queries