1Branch0Tags
GL
glucryptoReserve only trade targets in price trigger profil...
4a63a6312 days ago20Commits
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[]; };