bitcain.net Documentation
Welcome
Developer documentation for bitcain.net — an AI-powered cryptocurrency trading platform with autonomous agent systems, edge computing, and self-improving infrastructure.
Documentation is auto-generated from source code. If it can be auto-generated, it is never hand-written.
Platform at a Glance
| Metric | Count |
|---|---|
| API Endpoints | 42 across 10 categories |
| Cloudflare Workers | 21 edge services |
| Terraform Modules | 5 (Cloudflare, GCP, Entra, GitHub, Supabase) |
| Database Tables | 210 across 14 schema groups |
Sections
API Reference
Interactive REST API docs generated from the FastAPI OpenAPI spec. Includes request/response schemas, authentication details, and endpoint descriptions for trading, portfolio management, AI analysis, and more.
Cloudflare Workers
Catalog of all Cloudflare Workers powering the platform edge. Routes, cron triggers, KV/R2/D1/Queue bindings, Durable Objects, and environment configuration — all parsed from wrangler.toml configs.
Infrastructure
Terraform module documentation generated from the control-plane repository. Covers DNS, SSL/TLS, WAF, Cloudflare Zero Trust Access, GCP identity federation, Entra ID, and Supabase project settings.
Database
Supabase Cloud schema documentation with 210 tables across 14 domain groups. Includes column definitions, types, RLS policies, and indexes — all queried from the live database.
For Agents and Bots
This documentation is designed for consumption by humans, AI agents, and automated systems:
- Sitemap:
/sitemap.xmlfor crawlers - Structured data: Each page has machine-readable frontmatter metadata
- Search API:
GET /api/search?query=...returns JSON search results
Source of Truth
| Source | Generator | Output |
|---|---|---|
| FastAPI Pydantic models | fumadocs-openapi | API Reference |
Terraform .tf files | terraform-docs CLI | Infrastructure |
| Supabase Cloud | SQL schema export | Database |
wrangler.toml configs | Worker catalog script | Workers |
Platform Services
| Service | URL |
|---|---|
| Main Site | bitcain.net |
| AI Agent Bot | bot.bitcain.net |
| API Server | api.bitcain.net |
| Documentation | docs.bitcain.net |