api

Returns the latest DEX trades by token on Solana, where transaction signature is 4Vhvpt…Czuy and trade price asymmetry is at most 0.1: median of trade price in USD, block time, transaction signature, signer, price asymmetry, currency mint address, currency name and 10 more fields.

By keychains · saved 27 December 2024 · run 13 times · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
  DEXTradeByTokens(
    orderBy: {descending: Block_Time}
    where: {
      Transaction: {
        Signature:{is:"4Vhvpt95NPf93yZaNUbvqrF6JQou8mZkggV8aKvsLZwFLwD1Tf3hC2J31jpN7EiMPHc6PaoNRabG21YoZvXNCzuy"}
        Result: {Success: true}
      }
      Trade: {
        PriceAsymmetry: {
          le: 0.1
        }
      },
    }
  ) {
    price: median(of: Trade_PriceInUSD)
    Block {
      allTime: Time
    }
    Transaction {
      Signature
      Signer
    }
    Trade {
      PriceAsymmetry
      Currency{
        MintAddress
        Name
        Symbol
      }
      AmountInUSD
      PriceInUSD
      Amount
      Side {
        Type
        Currency {
          MintAddress
          Name
          Symbol
        }
        AmountInUSD
        Amount
      }
    }
  }
}
}

Similar queries