getSolanaLibraryTokenTradesByDates

Returns the latest DEX trades by token on Solana, where transaction signer is GbidjU…GL9m, block time since 2025-02-19 and block time till 2025-02-19: block time, signer, transaction signature, trade amount, amount in USD, price in USD, currency symbol and 12 more fields.

By Jose · saved 19 February 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query getSolanaLibraryTokenTradesByDates($wallet: String!, $since: DateTime!, $till: DateTime!) {
  Solana {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      where: {Transaction: {Result: {Success: true}, Signer: {is: $wallet}}, Block: {Time: {since: $since, till: $till}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Signer
        Signature
      }
      Trade {
        Amount
        AmountInUSD
        PriceInUSD
        Currency {
          Symbol
          MintAddress
          Name
          Decimals
        }
        Side {
          Type
          Currency {
            Symbol
            MintAddress
            Name
            Decimals
          }
          AmountInUSD
          Amount
        }
        Dex {
          ProtocolFamily
          ProtocolName
        }
      }
    }
  }
}

Variables

{
  "till": "2025-02-19T23:59:59.000Z",
  "since": "2025-02-19T00:00:00.000Z",
  "wallet": "GbidjUU6y4aRQjGhtAGiVT7GQ4Mdos47owY8tX8tGL9m"
}

Similar queries