Solana-USDC-SOL-Trades-Both-Sides-edited

Streams the latest DEX trades on Solana as they happen, where DEX program address is 675kPX…1Mp8, buy currency mint address is AujTJJ…ZLmG or So1111…1112 and sell currency mint address is AujTJJ…ZLmG or So1111…1112: buy amount, buy currency mint address, buy price in USD, buy amount in USD, sell amount, sell currency mint address, sell price in USD and 6 more fields.

By Todd L · saved 11 June 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The subscription

subscription MyQuery($tokens: [String!]) {
  Solana {
    DEXTrades(
      orderBy: {descending: Block_Time}
      where: {Transaction: {Result: {Success: true}}, Trade: {Dex: {ProgramAddress: {is: "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"}}, Buy: {Currency: {MintAddress: {in: $tokens}}}, Sell: {Currency: {MintAddress: {in: $tokens}}}}}
    ) {
      Trade {
        Buy {
          Amount
          Currency {
            MintAddress
          }
          PriceInUSD
          AmountInUSD
        }
        Sell {
          Amount
          Currency {
            MintAddress
          }
          PriceInUSD
          AmountInUSD
        }
        Market {
          MarketAddress
        }
      }
      Transaction {
        Signature
        Signer
      }
      Block {
        Time
        Slot
      }
    }
  }
}

Variables

{"tokens": ["AujTJJ7aMS8LDo3bFzoyXDwT3jBALUbu4VZhzZdTZLmG", "So11111111111111111111111111111111111111112"]}

Similar queries