Technical Contract Clarification: Longport capital_flow Unit, Currency, Scale, and Turnover Compatibility
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
审查官方 CLI 文档以及 issue 中引用的 QuoteContext.capital_flow、quote 和 candlestick 接口,同时审查 SDK 和 Hosted MCP 路径。当一份权威的、带版本的声明确认序列语义、单位、货币、缩放、兼容性及任何转换,或指出该契约记录在何处时,工作即告完成。
由索引模型根据 Issue 内容生成。
描述
Hello Longport Technical Support,
We are integrating the official Longport Hosted MCP capital_flow output into a fail-closed, read-only validation workflow.
The official CLI documentation states that each bar represents the net inflow for that minute. We have also verified from the official CLI, MCP, and SDK source paths that the returned Decimal value is passed through without a visible accumulation or scaling transformation.
However, we do not want to infer a monetary contract from observed values or implementation behavior. We therefore need authoritative clarification of the following points:
- Series semantics
Does each CapitalFlowLine.inflow returned by QuoteContext.capital_flow(symbol) represent the net inflow for that individual minute, rather than a cumulative intraday value?
Does this same semantic contract apply to the value exposed through the official SDK, CLI, and Hosted MCP capital_flow tool?
- Monetary unit and scale
What is the exact monetary unit of CapitalFlowLine.inflow?
For example, is the returned Decimal already expressed in the major currency unit, or is there an implicit minor-unit or other numeric scale?
Please specify any required multiplier or divisor.
- Currency
Is capital_flow denominated in the security's quote currency?
Specifically, would:
AAPL.US capital flow be denominated in USD; and
700.HK capital flow be denominated in HKD?
Is this rule guaranteed for all supported securities/markets?
- capital_distribution compatibility
For the same symbol, do the monetary values returned by capital_flow and capital_distribution use exactly the same:
monetary unit,
numeric scale, and
currency?
- turnover dimensional compatibility
Does the turnover field returned by the official quote and candlestick interfaces use the same monetary unit, scale, and currency contract as capital_flow.inflow?
In particular, is the following expression dimensionally valid without any additional unit or currency conversion?
sum(CapitalFlowLine.inflow) / turnover
- Hidden transformations
Is there any implicit multiplier, divisor, denomination conversion, currency conversion, or other numeric transformation between the underlying provider value and the value exposed by:
QuoteContext.capital_flow → official SDK → official CLI / Hosted MCP?
If possible, please provide or identify the authoritative and versioned documentation, schema, source contract, or technical specification that guarantees these answers.
If no published specification currently exists, a written confirmation from the Longport technical team stating the applicable contract and the affected API/SDK versions would also be very helpful.
This request contains no access token, refresh token, account identifier, cookie, Authorization header, or other credential.
Thank you.
- 主要语言
- TypeScript
- 星标
- 61
- 派生
- 30
- 平均合并
- 7 小时 27 分钟
- 30 天内合并 PR
- 19
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
longbridge/developers 的其他 Issue
-
最新版的Python 4.3.2 sdk 根本跑不通这个代码啊可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
longbridge/developers#1109 ·
维护者通常 1 天内回复
-
难度 4/5 1-2 天 新手友好度 35/100
longbridge/developers#1310 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
longbridge/developers#1309 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
longbridge/developers#1308 · 3 条评论 ·
维护者通常 1 天内回复
-
SDK5.2.2: clarify HK candle endpoints, daily trading-date labels and revision/adjustment semantics未关闭
难度 4/5 3-5 天 新手友好度 48/100
longbridge/developers#1302 · 1 条评论 ·
维护者通常 1 天内回复
查看 longbridge/developers 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
home-assistant/frontend#55841 ·
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 76/100
lingdojo/kana-dojo#33905 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
bug(semester-planning): the edit application dialog cannot save with an empty «Annet fra bedriften»未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
blocklist removal
难度 2/5 1-3 小时 新手友好度 66/100
MetaMask/eth-phishing-detect#311215 ·
维护者通常 1 天内回复
-
Explore filter: multi-select value list with allowNewOptions stops accepting values and drops earlier ones可能已有人在做 @isaac-jaynes-imperva 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
apache/superset#46146 · 1 条评论 ·
维护者通常 2 天内回复