美股正股 Depth.volume 单位:股/手、SDK换算及各时段一致性

Đang mở
#1,275 1 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 1 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
48/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
documentation

Hướng nghiên cứu

Start with the referenced quote/api.proto in the longbridge/openapi-protobufs repo to see the field comment for Depth volume, then trace how the Python SDK's QuoteContext.depth() and set_on_depth() pass that value through (any lot-size or x100 conversion). Compare against the two docs pages, quote/pull/depth and quote/push/depth, and check whether behavior differs pre-market, in-session, after-hours and overnight. Done when the unit, conversion rule and version dependency are stated authoritatively and the docs pages are updated to say so.

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

Mô tả

请确认美股正股(xxx.US)在 Python SDK 中的以下字段定义:

  1. QuoteContext.depth() 与 set_on_depth() 回调中的 Depth.volume,单位是股数还是手数?
  2. 若单位为手,每单位固定为 100 股,还是按 static_info.lot_size 计算?
  3. SDK 是否已进行单位换算?查询与推送的单位和换算行为是否一致?
  4. 盘前、盘中、盘后及夜盘的单位是否一致?上述行为是否依赖 SDK 版本?

公开文档当前写的是“挂单量”,单位不清楚。烦请提供官方字段说明。

参考:

Ngôn ngữ chính
TypeScript
Star
61
Fork
30
Merge trung bình
7 giờ 27 phút
Pull request đã merge (30 ngày)
19

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

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 longbridge/developers

Tất cả issue của longbridge/developers

Issue tương tự

Thêm issue về TypeScript

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.