31ece2e99a
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
19 lines
431 B
Python
19 lines
431 B
Python
from pathlib import Path
|
|
import json
|
|
import sys
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
if str(ROOT) not in sys.path:
|
|
sys.path.insert(0, str(ROOT))
|
|
|
|
from src.main import run_closed_loop
|
|
|
|
|
|
def main() -> None:
|
|
result = run_closed_loop(instrument_id=1, timeframe="1m", backtest_limit=100, run_execution=True)
|
|
print(json.dumps(result, default=str, ensure_ascii=False, indent=2))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|