bitcain docs

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

MetricCount
API Endpoints42 across 10 categories
Cloudflare Workers21 edge services
Terraform Modules5 (Cloudflare, GCP, Entra, GitHub, Supabase)
Database Tables210 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.xml for crawlers
  • Structured data: Each page has machine-readable frontmatter metadata
  • Search API: GET /api/search?query=... returns JSON search results

Source of Truth

SourceGeneratorOutput
FastAPI Pydantic modelsfumadocs-openapiAPI Reference
Terraform .tf filesterraform-docs CLIInfrastructure
Supabase CloudSQL schema exportDatabase
wrangler.toml configsWorker catalog scriptWorkers

Platform Services

ServiceURL
Main Sitebitcain.net
AI Agent Botbot.bitcain.net
API Serverapi.bitcain.net
Documentationdocs.bitcain.net

On this page