Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

lean live deploy skips the localhost host rewrite and symbol map mount for brokerage settings

Đang mở
#690 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 7 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, python
Lĩnh vực
cli

Hướng nghiên cứu

Start with lean/components/docker/lean_runner.py, reading get_basic_docker_config and _mount_common_directories to understand how the existing top-level settings are handled. Compare those paths with the selected environment settings used by lean live deploy; done means the environment's localhost host is rewritten and its symbol map file is mounted.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Expected Behavior

lean live deploy with the Terminal Link brokerage (renamed to Quant Bridge in #685) rewrites a localhost / 127.0.0.1 server host to host.docker.internal. It also mounts the symbol map file from data/symbol-properties. lean data download and lean backtest already do both.

Actual Behavior

For lean live deploy neither happens. The Lean container gets "terminal-link-server-host": "localhost", so it can't reach a server running on the user's machine. The symbol map file isn't mounted either, and terminal-link-symbol-map-file keeps its relative value.

LeanRunner only checks the top level of the Lean config (lean/components/docker/lean_runner.py: the server host loop in get_basic_docker_config and files_to_mount in _mount_common_directories). lean live deploy writes the brokerage and live data provider settings into lean_config["environments"][<environment>] instead, so the checks never find them.

Potential Solution

Apply the host rewrite and the file mounts to the selected environment's entries as well as the top-level ones.

Reproducing the Problem
  1. lean live deploy "<project>" --brokerage "Terminal Link" --data-provider-live "Terminal Link" --terminal-link-server-host localhost ... (with all the other required --terminal-link-* options)
  2. Look at the config passed to the container: environments["lean-cli"]["terminal-link-server-host"] is still localhost, and only config.json is mounted.
  3. For comparison, lean data download --data-provider-historical "Terminal Link" ... --terminal-link-server-host localhost passes host.docker.internal and mounts /Files/terminal-link-symbol-map-file.
System Information

lean-cli master (1873571).

Checklist
  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
Ngôn ngữ chính
Python
Star
329
Fork
169
Merge trung bình
5 ngày 16 giờ
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của QuantConnect/lean-cli

Tất cả issue của QuantConnect/lean-cli

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.