Historical Dex Trades on Solaan

solana dex trades

Returns DEX trades on Solana, sorted by block time: buy amount, buy amount in USD, buy currency name, buy native, buy currency mint address, buy decimals, buy currency symbol and 23 more fields.

By Matthew · saved 6 November 2024 · run 7 times · Bitquery API v2

What it returns

The query

query MyQuery($mint: String, $start: DateTime, $stop: DateTime) {
  Solana {
    DEXTrades(orderBy: {ascendingByField: "Block_Time"}) {
      Trade {
        Buy {
          Amount
          AmountInUSD
          Currency {
            Name
            Native
            MintAddress(selectWhere: {not: "So11111111111111111111111111111111111111112"})
            Decimals
            Symbol
            TokenCreator {
              Address
            }
            IsMutable
            ProgramAddress
          }
          Account {
            Address
          }
          Price
          PriceInUSD
        }
        Sell {
          Amount
          AmountInUSD
          Currency {
            Name
            Native
            MintAddress
            Decimals
            Symbol
            TokenCreator {
              Address
            }
            IsMutable
            ProgramAddress
          }
          Account {
            Address
          }
          Price
          PriceInUSD
        }
        Dex {
          ProtocolFamily
        }
      }
      Block {
        Date
        Slot
        Time
      }
    }
  }
}

Variables

{
  "mint": "Cwa6QNeNP2Qh7zR34hdzJdgtDDmaD2Y96m7c9HBdpump",
  "start":  "2024-11-04T00:00:00.000Z",
  "stop":   "2024-11-05T00:00:00.000Z"
}

Similar queries