Python SDK 5.2.0 深度源时间与断流状态:如何区分盘口未变和旧缓存
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
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 未提供,请明确边界及推荐保守做法,并给适用版本或最小合成示例。
参考:
- 固定 5.2.0 类型:https://github.com/longbridge/openapi/blob/b2f749a3c68cc4f05642b37fc790fb711d2dfb13/python/src/quote/types.rs
- 本地缓存契约:https://github.com/longbridge/openapi/blob/b2f749a3c68cc4f05642b37fc790fb711d2dfb13/python/pysrc/longbridge/openapi.pyi#L4012
- 深度推送:https://open.longbridge.com/zh-CN/docs/quote/push/depth
- 报价 timestamp:https://open.longbridge.com/zh-CN/docs/quote/push/quote
#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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của longbridge/developers
-
最新版的Python 4.3.2 sdk 根本跑不通这个代码啊Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
longbridge/developers#1109 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
longbridge/developers#1314 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 45/100
longbridge/developers#1312 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 35/100
longbridge/developers#1310 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
LONGBRIDGE AI模型选择Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
longbridge/developers#1309 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của longbridge/developers
Issue tương tự
-
Absenderzeile über dem Anschriftfeld wird bei Angeboten und Rechnungen am Ende abgeschnittenĐang mởfehler
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Azure/azure-functions-nodejs-extensions#180 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
laaielichter/Threesmith#28 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 2 ngày
-
iso-bmff: add IsoBoxReadView.readUint64 and IsoBoxWriteView.writeUint64 for exact 64-bit fieldsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
streaming-video-technology-alliance/common-media-library#611 ·
Maintainer thường phản hồi trong vòng 1 ngày