CasesBlogPricingContactPrivate AINEWGet My Plan
CASE STUDY · TRADING AUTOMATION · AI RISK MANAGEMENT

Claude Screens Every Trade. A Tap on Telegram Approves It.

Every signal gets a real-time Claude AI risk check — position size, volatility, portfolio exposure — then goes to the trader on Telegram for final approval. Tap to execute or skip. No response in 30 seconds defaults to no trade. Every decision logged to Telegram and Postgres.

<3s
AI risk-check loop
0
Unauthorized trades
100%
Decisions audited
Build an AI-Guarded Bot →
Pythonn8nClaude 3.5Deribit API
All cases
March 13, 2026 · 3 min read
The Bot That Asks Permission Before Every Trade.

Results

0
Signals Analyzed
Over the first 2 months of live trading
0
Erroneous Executions
Every approved trade matched trader intent
0.8s
Avg Claude Analysis Time
Risk check completes before the Telegram alert is even read
0%
Signals Rejected by AI
Overtrading protection — blocked before reaching the trader

Tech Stack

Py
Python 3.12 + asyncio
Persistent WebSocket handling, non-blocking event loop across simultaneous API calls and timer resets
DB
Deribit WebSocket API
Real-time tick data subscriptions — eliminates 300–800ms REST polling latency on fast triggers
n8n
n8n (self-hosted, Docker)
AI pipeline runs independently from Python engine — prompt, model, data sources updatable without bot redeployment
AI
Claude 3.5 Sonnet
Instruction-following at temp 0.1 returns valid JSON reliably
OR
OpenRouter
Model-agnostic gateway — switch to GPT-4o or Gemini with one field change, no code rewrite
CP
CryptoPanic API
Aggregates 40+ crypto sources in a single call — no scraping, no RSS, no missed stories

BOTTOM LINE

Your automation needs a second opinion before it acts.

We build n8n workflows, AI agents, and operational automations for teams that need their systems to make judgment calls — not just execute instructions. Deployed in 2–3 weeks.

Get a Free Assessment →

Frequently Asked Questions

Does Claude execute trades on its own?

No — Claude only analyzes and recommends. The bot generates a trade signal from market conditions, then passes the full context — current price, volatility, position size, portfolio exposure — to Claude AI for a real-time risk assessment. Claude's recommendation and confidence score go to the trader on Telegram. Execution only happens through the trader's own confirmed Telegram account — no order is ever placed without a human tap.

How fast is the risk-check loop?

Under 3 seconds — 2.8 seconds on average across the first two months of live trading. That's how long it takes Claude to fetch context, run the risk assessment, and return a recommendation, all before the Telegram alert is even fully read. The trader's own approve/reject tap adds roughly 8 seconds on top, since the human step is deliberately in the loop.

Does this work on exchanges other than Deribit?

The current deployment is built for Deribit's options and perpetuals. The same architecture adapts to Binance, Bybit, or OKX — the signal logic and Claude integration are exchange-agnostic. The order execution module is swapped per exchange API during deployment, typically a 4–6 hour change.

What happens if the trader doesn't respond in time?

The trade is skipped automatically. Every Telegram approval request has a 30-second window — no response defaults to no trade, every time. Capital preservation takes priority over trade opportunity; the system is designed to fail safe, not fail open.

How do I audit AI decisions after the fact?

A PostgreSQL dashboard logs every signal, decision, and executed trade with timestamps, Claude's reasoning text, and P&L per position. A weekly Telegram digest summarises win rate, risk-adjusted return, and flagged edge cases. The owner can query historical decisions at any time to audit the AI's reasoning.


Related Resources

Anton Lavoshnyk
Anton Lavoshnyk
Founder, OpsPilots

Deploys n8n workflows, AI agents, and RAG systems for B2B teams. Turns repetitive operations into self-running systems.

LinkedInFacebook
No Call Required · Short Audit · Plan in 2 Hours

Skip the trial-and-error. We've already mapped what works.

Answer 5 questions about your current workflow — we identify which processes to automate and send you a specific deployment plan within 2 hours. No call required.

Get My Workflow Analysis →