hitorical solana trades for a account

Returns 100 DEX trades by token on Solana, where account owner is E1UiTF…Bvve and block time after 2024-05-01, sorted by block time: block time, sum of trade amount, quantile of trade price, currency mint address and side currency mint address.

By gaurav · saved 4 November 2024 · run 9 times · Bitquery API v2

What it returns

Filters

The query

query ($time_ago: DateTime) {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      limit: {count: 100}
      orderBy: {ascendingByField: "Block_Time"}
      where: {Block: {Time: {after: $time_ago}}, Trade: {Account: {Owner: {is: "E1UiTFXLG444KKU5bLPvka1LYG4cmHjCSf291BXcBvve"}}}}
    ) {
      Block {
        Time(interval: {count: 1, in: seconds})
      }
      v1: sum(of: Trade_Amount)
      min: quantile(of: Trade_Price, level: 0.05)
      Trade {
        Currency {
          MintAddress
        }
        Side {
          Currency {
            MintAddress
          }
        }
      }
    }
  }
}

Variables

{
  "base": "So11111111111111111111111111111111111111112",
  "token": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "time_ago": "2024-05-01T08:19:53Z"
}

Similar queries