|
|
1 kuukausi sitten | |
|---|---|---|
| src | 1 kuukausi sitten | |
| tests | 1 kuukausi sitten | |
| .gitignore | 1 kuukausi sitten | |
| DB_SCHEME.md | 1 kuukausi sitten | |
| PROJECT.md | 1 kuukausi sitten | |
| README.md | 1 kuukausi sitten | |
| app.py | 1 kuukausi sitten | |
| bitstamp_api_docs.md | 1 kuukausi sitten | |
| bitstamp_websocket_api.md | 1 kuukausi sitten | |
| killserver.sh | 1 kuukausi sitten | |
| pyproject.toml | 1 kuukausi sitten | |
| requirements.txt | 1 kuukausi sitten | |
| restart.sh | 1 kuukausi sitten | |
| run.sh | 1 kuukausi sitten | |
| tests.sh | 1 kuukausi sitten |
Execution MCP for Trader27.
This service is the order-and-account layer of the stack. It owns exchange access, account metadata, balances, fee schedules, precision/step rules, and the actual order lifecycle.
This folder is the starting scaffold. The architecture and intent are captured in trader27.md and will be expanded into:
GET / shows a minimal landing page with linksGET /dashboard shows the HTML dashboardname field is the arbitrary label you choose for that accountThis project is intended to stay lightweight at the FastMCP boundary and push exchange-specific details into adapter modules.
A local copy of the Bitstamp WebSocket API docs lives at bitstamp_websocket_api.md in the project root. Use that as the primary reference for live market data, private streams, and reconnect behavior.
The older REST reference file is still present too, but the websocket doc is the one to follow for the next integration step.
The app now persists Bitstamp metadata tables and refreshes them on startup, then once a day in the background:
GET /api/v2/currencies/GET /api/v2/markets/These are stored in SQLite for reuse across restarts.
The app also starts a Bitstamp websocket loop at startup and reconnects on failure.
It subscribes to public live_trades_[market] channels for markets inferred from held assets in enabled Bitstamp accounts.
Latest prices are persisted in SQLite for later valuation work.