wallet buy sold

Returns DEX trades by token on Solana, where side currency mint address is So1111…1112 or 111111…1111, currency mint address is DbACGA…SKWj and block time since 2025-01-06: count.

By Nico · saved 4 February 2025 · run 30 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($timestamp: DateTime, $trader: String) {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      where: {Block: {Time: {since: $timestamp}}, Trade: {Side: {Currency: {MintAddress: {in: ["So11111111111111111111111111111111111111112", "11111111111111111111111111111111"]}}}, Currency: {MintAddress: {is: "DbACGA5TphPnpnMfG4jeKu9Mr6iJnE1Lk6gzYFXKSKWj"}}}, any: [{Trade: {Account: {Address: {is: $trader}}}}, {Trade: {Account: {Token: {Owner: {is: $trader}}}}}]}
    ) {
      buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
      sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Variables

{
  "timestamp" : "2025-01-06T09:28:00Z",
  "trader" : "F44Zp5LLENDNJgLdxWeSjMfxEFxwxFDxNhWdssDMS2Zi"
}

Similar queries