Universe generation drops stored entries for coins absent from current output

Đang mở Phù hợp với người mới
#19 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
86/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ệ
csharp
Lĩnh vực
data

Hướng nghiên cứu

Bắt đầu với GenerateUniverseFiles trong CoinGeckoDataDownloader.cs và theo dõi cách hàm truyền _processedUniverseFolder đến SaveContentToFile. Thêm một kiểm thử hồi quy thông qua GenerateUniverseFiles bằng thiết lập được cung cấp, với một đồng coin đã lưu nhưng không có trong đầu ra hiện tại. Hoàn tất khi hàng đã lưu được giữ lại, hàng của đồng coin được tải về được cập nhật và kiểm thử chạy thành công.

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

Mô tả

Problem

GenerateUniverseFiles drops stored universe entries for coins that have no output coin file in the current run. It returns true after writing the incomplete universe.

This is reproducible on master (0b89b5a).

Reproduction
  1. Construct CoinGeckoUniverseDataDownloader with distinct, empty destination and processed directories.
  2. Write processed/universe/20260808.csv containing:
    BTC,64879.756,21708815799.29,1301953613966.19
    ETH,3000,10000000000,360000000000
    
  3. Write only destination/eth.csv, containing:
    20260808,3001,10000000000,360100000000
    
  4. Call GenerateUniverseFiles().

Observed: it returns true, and destination/universe/20260808.csv contains only:

ETH,3001,10000000000,360100000000

The stored BTC row is absent.

Cause and expected result

GenerateUniverseFiles passes _processedUniverseFolder to SaveContentToFile, but the helper appends another universe component. It looks for processed/universe/universe/20260808.csv, so it never reads the existing file.

Preserve the stored BTC row and replace the ETH row with its fetched value. Add a regression through GenerateUniverseFiles, with a coin absent from the current output, so the production caller's directory arguments are exercised. Suggestion: make the helper and caller agree on whether the processed directory already includes universe.

Ngôn ngữ chính
C#
Star
5
Fork
9
Merge trung bình
3 ngày 8 giờ
Pull request đã merge (30 ngày)
1

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.DataSource.CoinGecko

Tất cả issue của QuantConnect/Lean.DataSource.CoinGecko

Issue tương tự

Thêm issue về C#

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.