vinotech sample query

Returns DEX trades on Solana, where block time since 2025-04-17 and block time till 2025-04-18: block date, block hash, block height, slot, block time, parent slot, parent hash and 41 more fields.

By Divyasshree · saved 24 April 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana(dataset: archive, network: solana) {
    DEXTrades(
      where: {Block: {Time: {since: "2025-04-17T00:54:59Z", till: "2025-04-18T00:54:59Z"}}}
    ) {
      Block {
        Date
        Hash
        Height
        Slot
        Time
        ParentSlot
        ParentHash
      }
      ChainId
      Trade {
        Buy {
          Account {
            Address
            Owner
            Token {
              Owner
            }
          }
          Amount
          AmountInUSD
          Currency {
            CollectionAddress
            Decimals
            Key
            Name
            Native
            Symbol
            TokenStandard
            Uri
          }
          Price
          PriceInUSD
        }
        Index
        Sell {
          Account {
            Address
            Owner
            Token {
              Owner
            }
          }
          Amount
          AmountInUSD
          Currency {
            Decimals
            CollectionAddress
            Key
            Name
            Native
            Symbol
            TokenStandard
            Uri
          }
          Price
          PriceInUSD
        }
      }
      Transaction {
        Fee
        FeeInUSD
        FeePayer
        Index
        Result {
          ErrorMessage
          Success
        }
        Signature
        Signer
      }
      count
    }
  }
}

Similar queries