trades of a token

Returns DEX trades on Solana, where DEX program address is 675kPX…1Mp8 or 6EF8rr…wF6P and sell currency mint address is ExSoRZ…pump: trade index, program address, protocol family, protocol name, buy account address, buy amount, buy currency mint address and 20 more fields.

By gaurav · saved 27 November 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    DEXTrades(
      where: {Trade: {Dex: {ProgramAddress: {in: ["675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8", "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"]}}, Sell: {Currency: {MintAddress: {is: "ExSoRZk8UZxHY8GqHzPbUT3EZZH8te6xKCaiFPpVpump"}}}}, Transaction: {Result: {Success: true}}}
      orderBy: [{ascending: Block_Time}, {ascending: Block_Height}, {ascending: Transaction_Index}, {ascending: Trade_Index}]
    ) {
      Trade {
        Index
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Account {
            Address
          }
          Amount
          Currency {
            MintAddress
            Decimals
            Symbol
            ProgramAddress
            Name
          }
          PriceAgaistSellCurrency: Price
          AmountInUSD
        }
        Sell {
          Account {
            Address
          }
          Amount
          Currency {
            MintAddress
            Decimals
            Symbol
            Name
          }
          AmountInUSD
          PriceInUSD
        }
      }
      Block {
        Time
        Height
      }
      Transaction {
        Index
        Signature
        FeePayer
        Signer
      }
    }
  }
}

Similar queries