gRPC
Market Data — gRPC
Endpoint
enterprise.guardis.io:443Authentication
x-api-key: your_api_key_hereService Definition
syntax = "proto3";
package guardis.marketdata.v1;
import "google/protobuf/timestamp.proto";
service MarketDataService {
// Stream pool updates for each processed block
rpc StreamMarketData(StreamMarketDataRequest) returns (stream PoolBlockUpdate);
}
message StreamMarketDataRequest {
// Optional: Filter by DEX names. If empty, all supported DEXs are included.
repeated string dex_names = 1;
}
message PoolBlockUpdate {
// The Solana slot number that was just processed
uint64 block_number = 1;
// Timestamp when the block update was sent
google.protobuf.Timestamp timestamp = 2;
// All pools that had state changes during this block
repeated PoolSnapshot pools = 3;
}
message PoolSnapshot {
// The on-chain address of the liquidity pool
string pair_address = 1;
// The base token address of the pool
string base_address = 2;
// the quote token address of the pool
string quote_address = 3;
// Amount of liquidity that is locked
string percentage_of_liquidity_locked = 4;
// Amount of SOL currently in the pool
string base_amount = 5;
// Amount of tokens currently in the pool
string quote_amount = 6;
// Price of SOL in USD at time of snapshot
string sol_price_usd = 7;
// Token price denominated in the base currency
string price = 8;
// Token price denominated in USD
string price_usd = 9;
// Total buy transactions on this pool
int32 number_of_buys = 10;
// Total sell transactions on this pool
int32 number_of_sells = 11;
// Cumulative buy volume in USD
string buy_volume_usd = 12;
// Cumulative sell volume in USD
string sell_volume_usd = 13;
// Cumulative trading volume in USD
string total_volume_usd = 14;
// All-time high token price in USD
string ath_token_price_usd = 15;
// Total liquidity value in USD (SOL side + token side)
string liquidity_usd = 16;
// Name of the DEX this pool belongs to (e.g., "PumpFun", "PumpSwap", "MeteoraDLMM")
string dex_name = 17;
// The current price multiplied by total tokens
string market_cap_usd = 18;
}Request Parameters
StreamMarketDataRequest
Field
Type
Required
Description
Response Format
PoolBlockUpdate
Field
Type
Description
PoolSnapshot
Field
Type
Description
Example Usage
Connection Best Practices
Last updated
