[ 01 ] / ZEROZERO LATENCY
Traditional VPS setups route every request through centralized servers. Hoox deploys your trading logic to Cloudflare's 275+ edge locations, executing milliseconds from exchange APIs worldwide. When markets move fast, milliseconds determine profit or loss. Smart Placement automatically routes each worker to the optimal data center nearest to its target exchange API, reducing latency by an additional 30-60% compared to standard edge routing.
Your algorithms run in V8 isolates that cold-start in under 5ms, with requests routed to the nearest edge node automatically. No server provisioning, no capacity planning, no single point of failure. The platform supports sub-50ms latency to every major exchange endpoint globally — Tokyo, Singapore, London, New York, and Frankfurt simultaneously.
[ 02 ] / SERVICESERVICE BINDINGS
Forget HTTP overhead between services. Cloudflare Service Bindings enable direct function invocation between Workers with microsecond latency. No public internet routing, no TLS handshakes, no DNS resolution delays. All 10 workers communicate through a mesh of 11 Service Bindings — every internal call completes in under 1ms with zero network overhead.
The hoox gateway calls trade-worker directly via binding, not HTTP. This architectural choice eliminates the latency penalty of traditional microservice communication. Internal workers have zero public endpoints — they simply can't be reached from the internet, eliminating entire categories of attack vectors. The only public-facing endpoint is the hoox gateway itself, which validates every request before forwarding via bindings.
[ 03 ] / AUTONOMOUSAUTONOMOUS AI
The agent-worker isn't just monitoring — it's actively managing risk. Running on 5-minute cron cycles, it analyzes positions, adjusts trailing stops based on real-time volatility, and triggers kill-switches before catastrophic drawdowns. The RAG-powered Telegram assistant lets you query your entire trading history with natural language — /search, /ask, and /latest commands powered by Vectorize semantic search across 5 AI providers.
Multi-provider LLM gateway with automatic fallback: Workers AI, OpenAI, Anthropic, Google, Azure, Groq. AI-generated market summaries delivered to Telegram in real-time. No single point of failure in the intelligence pipeline — if the primary provider is down, the next is tried transparently. Vectorize embeddings enable semantic search across trade history, market data, and documentation for context-aware answers.
[ 04 ] / BULLETPROOFBULLETPROOF SECURITY
Zero Trust from the ground up. Internal workers have no public HTTP endpoints — they're accessible only via Service Bindings from authorized workers. API keys are injected directly into V8 isolate runtime, never exposed in environment variables or request logs. WAF rules managed via hoox waf command, IP allowlists stored in CONFIG_KV propagate globally within seconds.
The hoox gateway validates webhook signatures, enforces IP allowlists from CONFIG_KV, and rate-limits before any request reaches the execution layer. Secrets are managed through Cloudflare's encrypted Secrets Store. Email signals are validated through Mailgun webhook signatures. Every external entry point — webhook, email, Telegram command, API call — is authenticated, authorized, and audited before any trade execution occurs.
[ 05 ] / FAULTFAULT TOLERANCE
Each worker is an independent isolate. If telegram-worker fails, trade execution continues unaffected. If d1-worker experiences latency, the gateway queues operations. Graceful degradation is built into every service boundary. The analytics-worker tracks every failure for post-mortem analysis, and the report-worker generates compliance-ready PDFs of all system activity.
Automatic retries with exponential backoff, circuit breakers for external APIs, and comprehensive error logging to R2 storage. Durable Objects provide idempotent trade execution — no duplicate orders on webhook retries. Queue failover ensures signals are never lost even during transient worker failures. Email-worker supports multiple signal parsing patterns configurable via KV. Every component has a redundant fallback path designed to keep the system operational.