Initialize AI Exchange closed-loop trading system repository.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
from pathlib import Path
|
||||
import os
|
||||
import sys
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(ROOT))
|
||||
|
||||
from src.api.server import serve_api
|
||||
|
||||
|
||||
def main() -> None:
|
||||
host = os.getenv("AI_ICT_API_HOST", "0.0.0.0")
|
||||
port = int(os.getenv("AI_ICT_API_PORT", "8000"))
|
||||
serve_api(host=host, port=port)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user