list tokens with protocolName and sideCurrency

with side currency WSOL

Returns 10 DEX trades by token on Solana, where side currency mint address is 111111…1111, DEX protocol name is pump and block date since 2024-06-30, sorted by block time: block time, protocol name, program address, protocol family, market address, currency symbol, currency name and 5 more fields.

By Richard · saved 28 April 2025 · run 7 times · Bitquery API v2

What it returns

Filters

The query

query querySolanaTokensByProtocolNameAndSideCurrencyBetween($dataset: dataset_arg_enum, $limit: Int, $offset: Int, $startDate: String, $endDate: String,
    $protocolName: String, $sideCurrency: String) {
    Solana(dataset: $dataset) {
        DEXTradeByTokens(
            orderBy: {ascending: Block_Time},
            limitBy: {by: Trade_Currency_MintAddress, count: 1}
            where: {
                Block: {
                    Date: {
                        since: $startDate
                        till: $endDate
                    }
                },
                Trade: {
                    Dex: {
                        ProtocolName: {
                            is: $protocolName
                        }
                    },
                    Side: {
                        Currency: {
                            MintAddress: {
                                is: $sideCurrency,
                            }
                        }
                    }
                }
            }
            limit: {
                count: $limit,
                offset: $offset
            }
        ) {
            Block {
                Time(minimum: Block_Time)
            }
            Trade {
                Dex {
                    ProtocolName
                    ProgramAddress
                    ProtocolFamily
                }
                Market{
                    MarketAddress
                }
                Currency {
                    Symbol
                    Name
                    MintAddress
                    UpdateAuthority
                }
                Side {
                    Currency {
                        Symbol
                        Name
                        MintAddress
                    }
                }
            }
        }
    }
}

Variables

{
  "dataset": "archive",
	"startDate": "2024-06-30",
  "endDate": "2024-06-30",
  "limit": 10,
  "offset": 0,
  "protocolName": "pump",
  "sideCurrency": "11111111111111111111111111111111"
}

Similar queries