Solana-USDC-SOL-Trades-Both-Sides

Streams the latest DEX trades on Solana as they happen, where buy currency mint address is EPjFWd…Dt1v or So1111…1112 and sell currency mint address is EPjFWd…Dt1v or So1111…1112: buy amount, buy currency mint address, buy price in USD, sell amount, sell currency mint address and sell price in USD.

By Nick · saved 26 May 2024 · run 25 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: {Buy: {Currency: {MintAddress: {in: $tokens}}}, Sell: {Currency: {MintAddress: {in: $tokens}}}}}
    ) {
      Trade {
        Buy {
          Amount
          Currency {
            MintAddress
          }
          PriceInUSD
        }
        Sell {
          Amount
          Currency {
            MintAddress
          }
          PriceInUSD
        }
      }
    }
  }
}

Variables

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

Similar queries