Strange trade

Returns DEX trades by token on Solana, where account owner is Gxa2XQ…XX3b and currency mint address is 3Zbini…ZNqU: slot, transaction signature, success, side amount, side currency symbol, trade amount, currency symbol and 4 more fields.

By Aleksey · saved 23 August 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query TopTraders($token: String) {
  Solana {
    DEXTradeByTokens(
      where: {Trade: 
        {
          Account: {Owner: {is: "Gxa2XQHthYusR6y3nUJeAiVuVNpdDoio28SYyTy4XX3b"}}
          Currency: {MintAddress: {is: $token}}}, Transaction: {Result: {Success: true}}}
    ) {
      Block {
        Slot
      }
      Transaction{
        Signature
        Result {
          Success
        }
      }
      Trade {
        Side {
          Amount
          Currency {
            Symbol
          }
        }
       Amount
        Currency {
          Symbol
        }
        Account {
          Owner
        }
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
      }
    }
  }
}

Variables

{
  "token": "3Zbinit7enckug39f6sJKbiYMJxsByakFNu9AqRvZNqU"
}

Similar queries