Python trade reads: preserve history pagination and expose account-wide attached inventory/account identity
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Issue で指定されている Python SDK のメソッド、TradeContext.history_orders()、today_orders(is_attached=True)、および OrderDetail.attached_orders から始めてください。これらの動作を、説明されている REST および push の契約と比較します。完了の条件は、サポート対象の API が履歴のページネーションを維持し、アカウント全体の attached-order の完全な境界を提供し、安定した読み取り専用のアカウント識別情報を公開または文書化することです。
索引モデルが issue の本文から書いたものです。
説明
Summary
For safety-oriented, read-only account qualification, the Python SDK currently cannot prove three independent facts that the REST and push contracts partly expose.
Environment
- Longbridge Python SDK: 4.4.3 and 4.5.0
- Python: CPython 3.12
- Operating system: Windows
- Account environment: PAPER
- Broker mutations performed: None
No order was submitted, replaced, or cancelled during qualification.
Observed contract gaps
1. History pagination is discarded by the Python SDK
The History Orders REST response includes a has_more pagination field. However, Python's TradeContext.history_orders() returns only List[Order].
As a result, the response-envelope boundary is unavailable to Python clients.
2. Attached orders cannot be enumerated account-wide
today_orders(is_attached=True) is an exact-order lookup mode. The official changelog states that is_attached has no effect unless an order_id is also supplied.
history_orders() has no attached-only selector.
Walking OrderDetail.attached_orders for already-observed parents therefore cannot prove that no attached-only order exists outside the observed parent set.
3. Generic trade reads lack a stable native account identifier
Generic read results such as the following do not carry a stable broker-native account identifier:
- account balances;
- stock positions;
- today's orders;
- historical orders.
PushOrderChanged.account_no exists, but it requires a future order event. It is not a harmless current-state account read.
Why this matters
A broker safety and recovery controller must distinguish between these separate claims:
- Current holdings are empty.
- No working parent order was observed.
- The complete account-wide order inventory is known.
- Every result belongs to the exact intended PAPER account.
Without these boundaries, a safety-oriented client must remain fail-closed even when the account appears flat and idle.
Requested contract
Could Longbridge provide or document any of the following?
- A backwards-compatible Python history result that preserves
has_more, or exposes an explicit next-page or cursor boundary. - A paginated, account-wide current-order inventory containing both parent and attached orders, or an attached-only enumeration with an explicit completeness boundary.
- A harmless, read-only account identity endpoint or field that can be correlated with generic PAPER trade reads.
If an existing supported API already provides any of these guarantees, documentation of that API would also resolve the corresponding gap.
Raw account values, credentials, and order IDs are intentionally omitted from this report.
- 主要言語
- TypeScript
- スター
- 61
- フォーク
- 30
- 平均マージ
- 7時間 45分
- マージ済み PR(30日)
- 17
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
longbridge/developers のほかの issue
-
最新版的Python 4.3.2 sdk 根本跑不通这个代码啊対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
longbridge/developers#1109 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
longbridge/developers#1314 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 1〜2日 初心者へのやさしさ 45/100
longbridge/developers#1312 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 1〜2日 初心者へのやさしさ 35/100
longbridge/developers#1310 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
LONGBRIDGE AI模型选择オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
longbridge/developers#1309 ·
メンテナーはふだん 1 日以内に返信
longbridge/developers の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
WalletConnect/walletconnect-monorepo#7392 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
fehler
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Azure/azure-functions-nodejs-extensions#180 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
laaielichter/Threesmith#28 ·
メンテナーはふだん 1 日以内に返信