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

Aperta
#1,275 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
documentation

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

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

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

参考:

Lingua principale
TypeScript
Stelle
61
Fork
30
Merge medio
7h 45m
PR unite (30g)
17

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di longbridge/developers

Tutte le issue di longbridge/developers

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.