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

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

By gaurav · saved 11 June 2024 · run 19 times · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    BUY: DEXTrades(
      orderBy: {descending: Block_Time}
      where: {Transaction: {Result: {Success: true}}, Trade: {Buy: {Currency: {MintAddress: {is: "AujTJJ7aMS8LDo3bFzoyXDwT3jBALUbu4VZhzZdTZLmG"}}}, Sell: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}, Dex: {ProgramAddress: {is: "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"}}}}
    ) {
      Transaction {
        Signature
      }
      Trade {
        Buy {
          Amount
          Currency {
            MintAddress
          }
          PriceInUSD
          AmountInUSD
        }
        Sell {
          Amount
          Currency {
            MintAddress
          }
          PriceInUSD
          AmountInUSD
        }
        Market {
          MarketAddress
        }
      }
      Transaction {
        Signature
        Signer
      }
      Block {
        Time
        Slot
      }
    }
    SELL: DEXTrades(
      orderBy: {descending: Block_Time}
      where: {Transaction: {Result: {Success: true}}, Trade: {Buy: {Currency: {MintAddress: {is: "So11111111111111111111111111111111111111112"}}}, Sell: {Currency: {MintAddress: {is: "AujTJJ7aMS8LDo3bFzoyXDwT3jBALUbu4VZhzZdTZLmG"}}}, Dex: {ProgramAddress: {is: "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"}}}}
    ) {
      Transaction {
        Signature
      }
      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