Regime Shift Trader
ElizaOS agent that detects regime changes and executes trades via natural language commands. Framework: ElizaOS + TypeScript.
Live Output Preview
If you ran this bot right now, the API would return:
# Live API output — June 17, 2026 Market Regime: Trending Safety Score: 94.4 (HIGH) Composite Signals: BTC: sell (score: -0.287)\n ETH: neutral (score: -0.069)\n SOL: neutral (score: 0.003)\n HYPE: buy (score: 0.114)\n # The bot would use this data to make trading decisions
Complete Source Code
Copy this code and run — no API key required:
// ElizaOS Agent: Trade Regime Shifts
// This agent monitors market regimes and executes trades on transitions
import {{ Agent, Action }} from "@eliza-os/core";
const BASE = "https://algotick.dev";
const regimeTrader = new Agent({{
name: "Regime Shift Trader",
description: "Monitors HMM regime transitions and trades accordingly",
actions: [
new Action({{
name: "check_regime",
description: "Check current market regime for all coins",
handler: async () => {{
const resp = await fetch(`${{BASE}}/v3/signals/regime`);
const data = await resp.json();
return data.regimes.map((r: any) =>
`${{r.coin}}: ${{r.regime_label}} (confidence: ${{r.confidence_score}})`
).join("\n");
}}
}}),
new Action({{
name: "get_composite_signal",
description: "Get composite trading signal for a specific coin",
handler: async ({{ coin }}) => {{
const resp = await fetch(
`${{BASE}}/v1/signals/composite`
);
const data = await resp.json();
const sig = data.signals.find((s: any) => s.coin === coin);
return sig
? `${{coin}}: ${{sig.regime}} (score: ${{sig.composite_score}})`
: `No signal for ${{coin}}`;
}}
}}),
new Action({{
name: "execute_trade",
description: "Execute a trade based on regime analysis",
handler: async ({{ coin, direction, reason }}) => {{
// Connect to your exchange API here
return `[SIMULATED] ${{direction}} ${{coin}}: ${{reason}}`;
}}
}})
]
}});
Setup Instructions
- Install dependencies:
pip install requests(Python) ornpm install node-fetch(TypeScript) - Run the script and monitor the output
- Connect your exchange API for live trading
API Endpoints Used
Framework
ElizaOS + TypeScript
Data Source
Algo Tick API
# No API key required. All endpoints used by this template:
curl https://algotick.dev/v3/signals/regime
curl https://algotick.dev/v1/signals/composite
curl https://algotick.dev/v3/signals/safety
curl https://algotick.dev/v1/signals/volatility?coin=BTCDon't just stare at the dashboard. Automate it.
Every metric on this page is available via our sub-millisecond API.
Build trading bots, backtest strategies, and power AI agents with institutional-grade data.