4pass¶
Multi-Broker Automated Trading Platform¶
One platform. Multiple markets. Start free.
4pass connects TradingView alerts to your brokers for automated order execution—Taiwan, crypto, and US (planned)—with no desktop install and no upfront license. Built for scale and security so you focus on strategy, not infrastructure.
10K+ Concurrent Users Supported
897ms Worker Startup (Pool Claim)
96.6% Gross Margin at Scale
37 Technical Indicators
~80 Terraform-Managed Resources
5 Security Layers
Platform Overview¶
4pass is a multi-broker automated trading platform that enables retail and institutional traders to automate their strategies across multiple markets and brokers through a single unified interface.
graph LR
TV["TradingView<br/>Alerts"] -->|Webhook| API["FastAPI<br/>API Layer"]
UI["Vue.js<br/>Dashboard"] -->|REST API| API
API -->|SQS FIFO| Lambda["Lambda<br/>Orchestrator"]
Lambda -->|RunTask / Pool Claim| Worker["ECS Worker<br/>(Per-User)"]
Worker -->|SDK| Broker["Broker APIs<br/>Shioaji · Gate.io"]
API -->|Read/Write| DB["RDS Aurora<br/>PostgreSQL"]
API -->|Queue + State| Redis["ElastiCache<br/>Valkey"]
Worker -->|Queue + Heartbeat| Redis
What Makes 4pass Different¶
| Capability | Implementation | Advantage |
|---|---|---|
| Multi-Market Coverage | Taiwan futures/options + Crypto (BTC/USDT perpetuals) + US markets (planned) | Single platform for ~20 hr/day market coverage |
| Per-User Isolation | One ECS task per user with dedicated broker connection | Zero cross-user interference; fault isolation |
| Sub-Second Startup | SQS pool-claim from pre-warmed workers: 897ms end-to-end | Users never wait for infrastructure |
| Visual Strategy Builder | Vue Flow canvas → PineScript v6 code generation | No-code strategy creation with full PineScript power |
| Realistic Backtesting | Magnifier technique: intra-bar execution on higher timeframes | Avoids the "bar-close fill" illusion |
| Enterprise Security | RSA-4096 + AES-256-GCM + AWS KMS HSM | Private keys never leave FIPS 140-2 Level 3 hardware |
| Serverless Orchestration | 5 Lambda functions + 3 SQS queues | Zero single points of failure; unlimited scaling |
| Infrastructure as Code | ~80 Terraform-managed AWS resources | Reproducible; scaling is a tfvars change |
Why Traders & Teams Choose 4pass¶
- Start free, upgrade when ready — Basic tier includes simulation and strategy builder; no credit card required to try. Pro (NT$999/mo) unlocks real trading across all supported markets.
- One subscription, multiple markets — Taiwan futures/options, crypto perpetuals, and (soon) US equities from a single dashboard. No need to juggle separate tools or pay per market.
- TradingView-native — Use the charts and Pine Script you already know. Alerts hit 4pass in under a second; your broker receives the order with per-user isolation and full audit.
- Built for professionals and teams — Roadmap includes one webhook → multiple accounts (B2B/asset managers), in-app backtest, and native strategy execution so you can rely less on third-party platforms.
- Security you can trust — Credentials encrypted with keys in AWS KMS (FIPS 140-2 Level 3). WAF, rate limiting, and audit logs are standard so you and your clients stay protected.
Want the full picture? See Cost & competitive analysis and the roadmap.
Architecture at a Glance¶
graph LR
subgraph clients["Clients"]
TV["TradingView"]
UI["Dashboard"]
end
subgraph api["API Layer"]
ALB["ALB + WAF"]
FastAPI["FastAPI Routers"]
end
subgraph orchestration["Orchestration"]
SQS["SQS FIFO"]
Lambda["Lambda x5"]
end
subgraph workers["Workers"]
W["ECS Tasks<br/>Per-User"]
end
subgraph brokers["Brokers"]
B["Shioaji · Gate.io · Mock"]
end
subgraph data["Data"]
Valkey["Valkey"]
RDS["Aurora + Proxy"]
KMS["KMS"]
end
TV --> ALB --> FastAPI
UI --> ALB
FastAPI --> SQS --> Lambda --> W --> B
FastAPI --> RDS
FastAPI --> Valkey
W --> Valkey
FastAPI --> KMS
Documentation Sections¶
Architecture¶
System architecture designed for 10K+ concurrent users. ECS EC2 Capacity Providers, Lambda orchestration, managed data layer, and auto-scaling from 1 to 100K users.
Design¶
Visual strategy builder, PineScript v6 compiler, magnifier backtesting engine, multi-broker abstraction with factory auto-discovery, and the complete order execution lifecycle.
Security¶
Defense-in-depth with 5 security layers: transport, end-to-end encryption, authentication, webhook validation, and WAF. Real-time attack detection with email alerts.
Cost Analysis¶
Summary & pricing, infrastructure breakdown, projections to 100K users, optimization strategies, and competitive analysis (Taiwan + global). 96% gross margin; breakeven at 15 users.
DevOps¶
Three GitHub Actions CI/CD pipelines, multi-stage Docker builds, optimized 254 MB worker image, rolling ECS deployments with health verification, and OIDC authentication.
Future Roadmap¶
Overview by dimension (Infrastructure, System Architecture, System Features & Product, DevOps), timeline, and the path to 100K users.
Supported Markets¶
00 02 04 06 08 10 12 14 16 18 20 22 24 (UTC+8)
├─────────────────────── Crypto 24/7 ────────────────────────────────┤
├── TW Night ──┤ ├──── TW Night Session ────────┤
├── TW Day ──┤
├── US Market ────┤
Effective coverage: ~20 hours/day across all markets
| Market | Broker | Status | Instruments |
|---|---|---|---|
| Taiwan Futures & Options | Shioaji (SinoPac) | Production | TAIEX Futures, Options |
| Cryptocurrency | Gate.io | Production | BTC Perpetuals, USDT Perpetuals |
| US Stocks & Futures | TBD | Planned | Equities, Index Futures |
Technology Stack¶
| Layer | Technology | Purpose |
|---|---|---|
| Frontend | Vue 3, Tailwind CSS, Vue Flow | Dashboard, strategy builder |
| API | FastAPI, Gunicorn, Uvicorn | REST API, webhook handler |
| Compute | ECS EC2 Capacity Provider | API service + per-user workers |
| Orchestration | Lambda, SQS FIFO, EventBridge | Worker lifecycle, task dispatch |
| Cache / Queue | ElastiCache Valkey Serverless | Redis-compatible; queues, state, sessions |
| Database | RDS Aurora PostgreSQL + Proxy | Users, orders, credentials, audit |
| Encryption | KMS, AES-256-GCM, RSA-4096 | End-to-end credential protection |
| Networking | ALB, WAF, VPC, Route 53 | HTTPS, DDoS protection, DNS |
| IaC | Terraform (~80 resources) | Reproducible infrastructure |
| CI/CD | GitHub Actions, ECR, ECS | Automated deployment pipeline |
| Backtesting | vectorbt, pandas, numpy | Signal-based portfolio simulation |
| Compiler | Custom PineScript v6 parser | Strategy → vectorized Python |
Get Started¶
| Step | Action |
|---|---|
| 1 | Sign up and create an account at 4pass.io. |
| 2 | Link your TradingView alerts to your 4pass webhook URL (see Webhook Security). |
| 3 | Connect a broker (Shioaji or Gate.io); credentials are encrypted and never leave our secure layer. |
| 4 | Run in simulation first, then switch to real trading when you’re ready. |
Questions or feedback? We’d love to hear from you: luisleo52655@gmail.com.
4pass — Automated trading for every market.
Contact: luisleo52655@gmail.com