openpondai/agents/price-trigger-bot
OpenTool app
1Branch0Tags
typescript
export type PriceTriggerCondition =
| "above"
| "below"
| "crosses-above"
| "crosses-below";
export type PriceTriggerActionSide = "buy" | "sell";
export type PriceTriggerTarget = {
symbol: string;
weight: number;
};
export type PriceTriggerRule = {
id: string;
sourceSymbol: string;
condition: PriceTriggerCondition;
threshold: number;
actionSide: PriceTriggerActionSide;
targets: PriceTriggerTarget[];
};
export type PriceTriggerScheduleConfig = {
cron: string;
enabled: boolean;
notifyEmail: boolean;
};
export type PriceTriggerExecutionConfig = {
enabled: boolean;
environment: "mainnet" | "testnet";
leverage?: number;
slippageBps: number;
};
export type PriceTriggerConfig = {
configVersion?: number;
platform: "hyperliquid";
ruleType: "price-trigger";
allocationMode: "fixed";
asset: string;
amountUsd: number;
maxPerRunUsd: number;
schedule: PriceTriggerScheduleConfig;
execution?: PriceTriggerExecutionConfig;
rules: PriceTriggerRule[];
};