Last trades SOL token

Returns the latest 50 DEX trades by token on Solana, where currency mint address is HnixX5…pump: block time, protocol name, protocol family, program address, currency symbol, currency name, currency mint address and 10 more fields.

By Aleksey · saved 25 June 2024 · run 14 times · Bitquery API v2

What it returns

Filters

The query

query LatestTrades($token: String) {
  Solana {
    DEXTradeByTokens(
      orderBy: {
        descending: Block_Time
      }
      limit: {count: 50}
      where: { 
        Trade: {
          Currency: {
            MintAddress: {
              is: $token
            }
          }
        }
        Transaction: {Result: {Success: true}}}
    ) {
      Block {
        Time
      }
      
      Trade {
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Currency {
          Symbol
          Name
          MintAddress
        }
        
        Account {
          Address
        }
      
        Price
        Amount

        Side {
         	Account {
          Address
        }
          Currency {
          	Symbol
          	Name
          	MintAddress
            Native
          }
          AmountInUSD
          Amount
        }
       }
      
      
    }
  }
}

Variables

{
  "token": "HnixX5WvZ67Sdnx5cjyAmWV71GdxFZtYHWyt3d1pump"
}

Similar queries