Python SDK 5.2.0 深度源时间与断流状态:如何区分盘口未变和旧缓存

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

Hướng nghiên cứu

Start with the linked Python SDK 5.2.0 type definition in python/src/quote/types.rs and the realtime_depth() cache contract in python/pysrc/longbridge/openapi.pyi, then compare them with the depth and quote push documentation linked in the issue. Document which read-only fields, callbacks, or interfaces expose depth source time, sequence, connection state, or heartbeat, and state the limits of 5.2.0 with a conservative recommendation. Done means the behavior and applicable version are clearly documented, with a minimal synthetic example if supported.

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

Mô tả

仅咨询 Python SDK 5.2.0、美股正股的公开行情契约,以下均为合成场景,没有真实或模拟账户调用。

已核该版本:depth()/set_on_depth() 的 Python 深度对象不带源时间或 sequence,realtime_depth() 返回本地缓存;Quote/PushQuote 的 timestamp 文档含义是最新成交时间。

合成例:bid/ask 长时间相同、订阅没有新回调,或连接断开后重连,realtime_depth() 仍可返回原数据。官方推荐用哪些只读字段、回调或接口区分“正常盘口未变”与“断流/旧缓存”,并获得深度最后的源更新时间?是否可读深度事件时间/序列、连接状态或行情心跳?若 5.2.0 未提供,请明确边界及推荐保守做法,并给适用版本或最小合成示例。

参考:

#1275 已解决 Depth.volume 单位,本题不重复该单位问题,也不涉及交易恢复或任何账户操作。

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

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.