Solana dextrades for a token
测试用例2,带限价订单簿、MarketAddress
Returns the latest 1000 DEX trades on Solana: program address, protocol name, protocol family, market address, buy amount, buy amount in USD, buy currency symbol and 29 more fields.
What it returns
- program address
- protocol name
- protocol family
- market address
- buy amount
- buy amount in USD
- buy currency symbol
- buy currency name
- buy currency mint address
- buy price
- buy price in USD
- buy account address
- buy token owner
- buy limit price
- buy limit amount
- buy order ID
- sell amount
- sell amount in USD
- sell currency symbol
- sell currency name
- sell currency mint address
- sell price
- sell price in USD
- sell account address
- sell token owner
- sell limit price
- sell limit amount
- sell order ID
- trade index
- block time
- block height
- slot
- transaction signature
- fee payer
- signer
- transaction index
The query
query LatestTrades {
Solana {
DEXTrades(
where: {
any: [
{Trade: {Buy: {Currency: {MintAddress: {is: "5zCETicUCJqJ5Z3wbfFPZqtSpHPYqnggs1wX7ZRpump"}}}}}
{Trade: {Sell: {Currency: {MintAddress: {is: "5zCETicUCJqJ5Z3wbfFPZqtSpHPYqnggs1wX7ZRpump"}}}}}
]
Transaction: {Result: {Success: true}}
}
limit: {count: 1000}
orderBy: {descending: Block_Time}
) {
Trade {
Dex {
ProgramAddress
ProtocolName
ProtocolFamily
}
Market{
MarketAddress
}
Buy {
Amount
AmountInUSD
Currency {
Symbol
Name
MintAddress
}
Price
PriceInUSD
Account {
Address
Token {
Owner
}
}
Order {
LimitPrice
LimitAmount
OrderId
}
}
Sell {
Amount
AmountInUSD
Currency {
Symbol
Name
MintAddress
}
Price
PriceInUSD
Account {
Address
Token {
Owner
}
}
Order{
LimitPrice
LimitAmount
OrderId
}
}
Index
}
Block {
Time
Height
Slot
}
Transaction {
Signature
FeePayer
Signer
Index
}
}
}
}
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
- sol_meteora_dlmm_ · Solana · DEXTrades