trades of a token
Returns DEX trades on Solana, where DEX program address is 675kPX…1Mp8 or 6EF8rr…wF6P and sell currency mint address is ExSoRZ…pump: trade index, program address, protocol family, protocol name, buy account address, buy amount, buy currency mint address and 20 more fields.
What it returns
- trade index
- program address
- protocol family
- protocol name
- buy account address
- buy amount
- buy currency mint address
- buy decimals
- buy currency symbol
- buy program address
- buy currency name
- buy price
- buy amount in USD
- sell account address
- sell amount
- sell currency mint address
- sell decimals
- sell currency symbol
- sell currency name
- sell amount in USD
- sell price in USD
- block time
- block height
- transaction index
- transaction signature
- fee payer
- signer
Filters
- DEX program address is 675kPX…1Mp8 or 6EF8rr…wF6P
- sell currency mint address is ExSoRZ…pump
The query
query MyQuery {
Solana {
DEXTrades(
where: {Trade: {Dex: {ProgramAddress: {in: ["675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8", "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"]}}, Sell: {Currency: {MintAddress: {is: "ExSoRZk8UZxHY8GqHzPbUT3EZZH8te6xKCaiFPpVpump"}}}}, Transaction: {Result: {Success: true}}}
orderBy: [{ascending: Block_Time}, {ascending: Block_Height}, {ascending: Transaction_Index}, {ascending: Trade_Index}]
) {
Trade {
Index
Dex {
ProgramAddress
ProtocolFamily
ProtocolName
}
Buy {
Account {
Address
}
Amount
Currency {
MintAddress
Decimals
Symbol
ProgramAddress
Name
}
PriceAgaistSellCurrency: Price
AmountInUSD
}
Sell {
Account {
Address
}
Amount
Currency {
MintAddress
Decimals
Symbol
Name
}
AmountInUSD
PriceInUSD
}
}
Block {
Time
Height
}
Transaction {
Index
Signature
FeePayer
Signer
}
}
}
}
Similar queries
- Solana DEX Trades: Buy and Sell Accounts with DEX Name · Solana · DEXTrades
- Solana DEXTrades Archive Coverage, Last 7 Days · Solana · DEXTrades
- FOMO App: One Wallet's Trades (Solana) · Solana · DEXTrades
- FOMO App: Latest Trades (Solana) · Solana · DEXTrades
- Solana dextrades for a token · Solana · DEXTrades