gRPC
How Triggers Work
Endpoint
enterprise.guardis.io:443Authentication
x-api-key: your_api_key_hereService Definition
syntax = "proto3";
package guardis.triggers.v1;
import "google/protobuf/timestamp.proto";
service TriggersService {
// Stream trigger notifications
rpc StreamTriggers(StreamTriggersRequest) returns (stream TriggerNotification);
}
message StreamTriggersRequest {
// Reserved for future filtering options
}
message TriggerNotification {
// Notification type
string type = 1;
// Your unique trigger identifier
string trigger_id = 2;
// Timestamp when the trigger fired
google.protobuf.Timestamp fired_at = 3;
// Current pool state that triggered the notification
Pool pool = 4;
}
message Pool {
// The on-chain address of the liquidity pool
string pair_address = 1;
// The mint address of the token
string token_address = 2;
// Amount of SOL currently in the pool
string sol_amount = 3;
// Amount of tokens currently in the pool
string token_amount = 4;
// Total buy transactions on the pool
int32 number_of_buys = 5;
// Total sell transactions on the pool
int32 number_of_sells = 6;
// Cumulative buy volume in USD
string buy_volume_usd = 7;
// Cumulative sell volume in USD
string sell_volume_usd = 8;
// Total trading volume in USD
string total_volume_usd = 9;
}Request Parameters
StreamTriggersRequest
Response Format
TriggerNotification
Field
Type
Description
Pool
Field
Type
Description
Example Usage
Connection Best Practices
Last updated
