Spaces:
Running
Running
Deploy Aureon OS (deploy/selfhost stack: nginx edge + fusion API x2 + console + HNC organ + redis + postgres; paper mode) (part 19)
da0ce7b verified Download scripts/diagnostics/check_capital.py from GaryLeckey/aureon-os: direct link, hf CLI and curl.
- Browser
- Download file 769 Bytes
-
https://huggingface.co/spaces/GaryLeckey/aureon-os/resolve/main/scripts/diagnostics/check_capital.py
- Command line
-
hf download hf://spaces/GaryLeckey/aureon-os/scripts/diagnostics/check_capital.py
-
curl -L -o check_capital.py https://huggingface.co/spaces/GaryLeckey/aureon-os/resolve/main/scripts/diagnostics/check_capital.py
769 Bytes
| from aureon_baton_link import link_system as _baton_link; _baton_link(__name__) | |
| import os | |
| import json | |
| from capital_client import CapitalClient | |
| def main(): | |
| print("--- CAPITAL.COM DIAGNOSTIC ---") | |
| client = CapitalClient() | |
| if client.enabled and client.cst: | |
| print("✅ Connected") | |
| print("\n--- RAW POSITION DATA ---") | |
| res = client._request('GET', '/positions') | |
| positions = res.json().get('positions', []) | |
| if positions: | |
| # Print FIRST position completely to see structure | |
| print(json.dumps(positions[0], indent=2)) | |
| else: | |
| print("No positions found.") | |
| else: | |
| print("❌ Not connected") | |
| if __name__ == "__main__": | |
| main() | |