Metadata-Version: 2.4
Name: aptis-onboarding-ui
Version: 0.1.1
Summary: Companion web UI for deploying and monitoring Aptis plugin strategies
Author: Richard Chung
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: fastapi>=0.100.0
Requires-Dist: uvicorn>=0.23.0
Requires-Dist: httpx>=0.24.0

# Aptis Onboarding UI

Companion web app for deploying and monitoring Aptis plugin strategies.

## Install

```bash
pip install aptis-onboarding-ui
```

## Run

```bash
# Connect to EC2 platform
APTIS_API_URL=http://test1.aptisgrptest.com:8082 aptis-ui

# Or default — uses test1.aptisgrptest.com:8082
aptis-ui
```

Opens at `http://localhost:5173`.

## Screens

| Screen | What it does |
|--------|-------------|
| **Connect** | Enter platform URL + API key, loads live strategy state |
| **Strategies** | View all registered strategies with config and schedule |
| **Templates** | Browse and clone 4 starter templates |
| **Create** | Form wizard — generates a `.py` file with manifest headers |
| **Deploy** | Drag-and-drop `.py` upload, manifest validation, one-click deploy |
| **Monitor** | Live positions, P&L, and recent trades per strategy |

## Development

```bash
cd onboarding-ui/ui
npm install
npm run dev        # dev server with hot reload on :5173
npm run build      # builds into ../aptis_onboarding_ui/dist/
```

## Platform endpoints used

| Screen | Endpoint |
|--------|----------|
| Connect | `GET /api/v1/strategy/strategies` |
| Deploy | `POST /api/v1/strategy/plugin/deploy` |
| Monitor | `GET /api/v1/strategy/positions` + `/pnl` + `/trades` |
| Scheduler | `GET http://localhost:8765/status` |
