Spaces:
Paused
Paused
Download main.py from mossoo/nexus-quant-bot: direct link, hf CLI and curl.
- Browser
- Download file 664 Bytes
-
https://huggingface.co/spaces/mossoo/nexus-quant-bot/resolve/main/main.py
- Command line
-
hf download hf://spaces/mossoo/nexus-quant-bot/main.py
-
curl -L -o main.py https://huggingface.co/spaces/mossoo/nexus-quant-bot/resolve/main/main.py
664 Bytes
| import os | |
| import sys | |
| import io | |
| if sys.platform == 'win32': | |
| sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace') | |
| sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding='utf-8', errors='replace') | |
| import uvicorn | |
| if __name__ == '__main__': | |
| port = int(os.environ.get("PORT", 8000)) | |
| print("=" * 65) | |
| print(">> NEXUS AI - 3D QUANT TRADING BOT (TAKASHI KOTEGAWA BNF)") | |
| print(">> Connected to Binance Free High-Speed Public WebSocket Streams") | |
| print(f">> 3D Cyberpunk Dashboard: http://0.0.0.0:{port}") | |
| print("=" * 65) | |
| uvicorn.run("python_engine.server:app", host="0.0.0.0", port=port, reload=False) | |