KiwiTon Investments Backend API
Backend service for Google Ads revenue tracking and Alpaca trading automation.
API Endpoints
Authentication
- POST /api/auth/login - User authentication
Account
- GET /api/account - Get account information
- GET /api/account/activities - Get account activities
- GET /api/account/portfolio-history - Get portfolio history
Orders
- GET /api/orders - List orders
- POST /api/orders - Submit a new order
- DELETE /api/orders - Cancel all orders
- GET/PATCH/DELETE /api/orders/[orderId] - Manage specific order
Positions
- GET /api/positions - Get all open positions
- DELETE /api/positions - Close all positions
- GET/DELETE /api/positions/[symbol] - Manage specific position
Market Data
- GET /api/market/bars - Get historical bars
- GET /api/market/quotes - Get latest quotes
- GET /api/market/snapshots - Get market snapshots
- GET /api/market/news - Get news articles
Trading
- POST /api/trading/execute - Execute a trade signal
- GET /api/trading/status - Get trading system status
- GET/POST /api/trading/config - Manage trading configuration
- GET /api/trading/history - Get trading history
Status
✅ Backend Running
Version: 1.0.0