openpondai/agents/pair-trade
OpenTool app
typescript
import type { PairTradeConfig } from "./types";
export const TEMPLATE_CONFIG_VERSION = 14;
export const TEMPLATE_CONFIG_ENV_VAR = "OPENTOOL_PUBLIC_HL_PAIR_TRADE_CONFIG";
export const TEMPLATE_CONFIG_DEFAULTS: PairTradeConfig = {
configVersion: TEMPLATE_CONFIG_VERSION,
platform: "hyperliquid",
allocationMode: "target_notional",
legAAsset: "BTC",
legBAsset: "ETH",
legAMarketType: "spot",
legBMarketType: "perp",
legASide: "long",
longAsset: "BTC",
shortAsset: "ETH",
longMarketType: "spot",
shortMarketType: "perp",
targetNotionalUsd: 1000,
hedgeRatio: 1,
longTargetNotionalUsd: 1000,
shortTargetNotionalUsd: 1000,
legALeverage: 1,
legBLeverage: 1,
legALeverageMode: "cross",
legBLeverageMode: "cross",
maxPerRunUsd: 1000,
slippageBps: 20,
rebalanceDriftPct: 2,
environment: "mainnet",
};