dex trade

Streams the latest 100 DEX trades by token on Solana as they happen, where DEX program address is 6EF8rr…wF6P and currency mint address is not 111111…1111: block time, count, sum of trade amount, trade price, currency name, currency mint address, currency symbol and 2 more fields.

By akshay · saved 30 October 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The subscription

subscription MyQuery {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      where: {Trade: {Dex: {ProgramAddress: {is: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"}}, Currency: {MintAddress: {not: "11111111111111111111111111111111"}}}}
      limitBy: {by: Instruction_Program_AccountNames}
      limit: {count: 100}
    ) {
      Block {
        Time
      }
      trades: count
      volume: sum(of: Trade_Amount)
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Slot)
        close: Price(maximum: Block_Slot)
        Currency {
          Name
          MintAddress
          Symbol
        }
        PriceInUSD
      }
      count
      Transaction {
        Signature
      }
    }
  }
}

Similar queries