@dsh-ft/dsh-fft-paper-trading 0.7.1 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/README.md +1 -1
  2. package/README.zh.md +1 -1
  3. package/lib/client.js +1 -1
  4. package/package.json +1 -4
  5. package/node_modules/@ftshare-lab/dsh-kline/CHANGELOG.md +0 -611
  6. package/node_modules/@ftshare-lab/dsh-kline/LICENSE +0 -21
  7. package/node_modules/@ftshare-lab/dsh-kline/PROVENANCE.md +0 -13
  8. package/node_modules/@ftshare-lab/dsh-kline/README.en.md +0 -171
  9. package/node_modules/@ftshare-lab/dsh-kline/README.md +0 -171
  10. package/node_modules/@ftshare-lab/dsh-kline/chart_service.py +0 -687
  11. package/node_modules/@ftshare-lab/dsh-kline/config/basic-symbols.json +0 -570
  12. package/node_modules/@ftshare-lab/dsh-kline/config/dsh-kline.patch.yml +0 -4
  13. package/node_modules/@ftshare-lab/dsh-kline/config/dsh-tool-catalog.json +0 -3875
  14. package/node_modules/@ftshare-lab/dsh-kline/cordis.patch.yml +0 -33
  15. package/node_modules/@ftshare-lab/dsh-kline/core/__init__.py +0 -0
  16. package/node_modules/@ftshare-lab/dsh-kline/core/adjustment.py +0 -16
  17. package/node_modules/@ftshare-lab/dsh-kline/core/calc.py +0 -691
  18. package/node_modules/@ftshare-lab/dsh-kline/core/rows.py +0 -228
  19. package/node_modules/@ftshare-lab/dsh-kline/core/ta_engine.py +0 -99
  20. package/node_modules/@ftshare-lab/dsh-kline/lib/candle-sequence.js +0 -15
  21. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-adjustment.js +0 -7
  22. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-annotations.js +0 -33
  23. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-applications.js +0 -171
  24. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-context.js +0 -164
  25. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-observation.js +0 -251
  26. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-service-status.js +0 -82
  27. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-source-status.js +0 -39
  28. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-sources.js +0 -354
  29. package/node_modules/@ftshare-lab/dsh-kline/lib/client.js +0 -17581
  30. package/node_modules/@ftshare-lab/dsh-kline/lib/drawing-feedback.js +0 -284
  31. package/node_modules/@ftshare-lab/dsh-kline/lib/fibonacci.js +0 -18
  32. package/node_modules/@ftshare-lab/dsh-kline/lib/ftshare-settings-bridge.js +0 -159
  33. package/node_modules/@ftshare-lab/dsh-kline/lib/index.js +0 -279
  34. package/node_modules/@ftshare-lab/dsh-kline/lib/labeled-polyline.js +0 -17
  35. package/node_modules/@ftshare-lab/dsh-kline/lib/pattern-groups.js +0 -91
  36. package/node_modules/@ftshare-lab/dsh-kline/lib/price-bands.js +0 -55
  37. package/node_modules/@ftshare-lab/dsh-kline/lib/price-series.js +0 -47
  38. package/node_modules/@ftshare-lab/dsh-kline/lib/price-sticks.js +0 -32
  39. package/node_modules/@ftshare-lab/dsh-kline/lib/types/candle-sequence.d.ts +0 -2
  40. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-adjustment.d.ts +0 -2
  41. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-annotations.d.ts +0 -4
  42. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-applications.d.ts +0 -26
  43. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-context.d.ts +0 -14
  44. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-observation.d.ts +0 -8
  45. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-service-status.d.ts +0 -22
  46. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-source-status.d.ts +0 -47
  47. package/node_modules/@ftshare-lab/dsh-kline/lib/types/chart-sources.d.ts +0 -25
  48. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/BetterSidebarTab.d.ts +0 -12
  49. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/ClassicShell.d.ts +0 -4
  50. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/KlineContent.d.ts +0 -37
  51. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/PanelHost.d.ts +0 -25
  52. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/chart-apply.d.ts +0 -13
  53. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/chart-context.d.ts +0 -23
  54. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/chart-handoff.d.ts +0 -5
  55. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/chart-session-resolver.d.ts +0 -2
  56. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/client-context.d.ts +0 -16
  57. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/conversation.d.ts +0 -43
  58. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/default-tab.d.ts +0 -3
  59. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/embed.d.ts +0 -37
  60. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/generated-view.d.ts +0 -2
  61. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/horizontal-lines.d.ts +0 -1
  62. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/host-options.d.ts +0 -38
  63. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/host-panels.d.ts +0 -55
  64. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/index.d.ts +0 -4
  65. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/mode-preferences.d.ts +0 -25
  66. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/native-sidebar-contract.d.ts +0 -52
  67. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/native-sidebar-register.d.ts +0 -46
  68. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/native-sidebar-services.d.ts +0 -45
  69. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/native-sidebar.d.ts +0 -47
  70. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/sidebar-integration.d.ts +0 -12
  71. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/ui-onboarding.d.ts +0 -7
  72. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/version.d.ts +0 -1
  73. package/node_modules/@ftshare-lab/dsh-kline/lib/types/drawing-feedback.d.ts +0 -5
  74. package/node_modules/@ftshare-lab/dsh-kline/lib/types/fibonacci.d.ts +0 -5
  75. package/node_modules/@ftshare-lab/dsh-kline/lib/types/ftshare-settings-bridge.d.ts +0 -50
  76. package/node_modules/@ftshare-lab/dsh-kline/lib/types/index.d.ts +0 -26
  77. package/node_modules/@ftshare-lab/dsh-kline/lib/types/labeled-polyline.d.ts +0 -11
  78. package/node_modules/@ftshare-lab/dsh-kline/lib/types/pattern-groups.d.ts +0 -2
  79. package/node_modules/@ftshare-lab/dsh-kline/lib/types/price-bands.d.ts +0 -3
  80. package/node_modules/@ftshare-lab/dsh-kline/lib/types/price-series.d.ts +0 -5
  81. package/node_modules/@ftshare-lab/dsh-kline/lib/types/price-sticks.d.ts +0 -3
  82. package/node_modules/@ftshare-lab/dsh-kline/package.json +0 -157
  83. package/node_modules/@ftshare-lab/dsh-kline/requirements.txt +0 -6
  84. package/node_modules/@ftshare-lab/dsh-kline/scripts/bootstrap.sh +0 -5
  85. package/node_modules/@ftshare-lab/dsh-kline/scripts/dsh-bootstrap.mjs +0 -179
  86. package/node_modules/@ftshare-lab/dsh-kline/scripts/dsh-mcp-plugin.mjs +0 -27
  87. package/node_modules/@ftshare-lab/dsh-kline/scripts/run-dsh-kline.mjs +0 -658
  88. package/node_modules/@ftshare-lab/dsh-kline/scripts/run-dsh-kline.sh +0 -5
  89. package/node_modules/@ftshare-lab/dsh-kline/server.py +0 -1755
  90. package/node_modules/@ftshare-lab/dsh-kline/tools/__init__.py +0 -0
  91. package/node_modules/@ftshare-lab/dsh-kline/tools/annotations.py +0 -119
  92. package/node_modules/@ftshare-lab/dsh-kline/tools/automatic_analysis.py +0 -158
  93. package/node_modules/@ftshare-lab/dsh-kline/tools/baostock_source.py +0 -176
  94. package/node_modules/@ftshare-lab/dsh-kline/tools/calc.py +0 -39
  95. package/node_modules/@ftshare-lab/dsh-kline/tools/channel_candidates.py +0 -260
  96. package/node_modules/@ftshare-lab/dsh-kline/tools/channel_preview.py +0 -82
  97. package/node_modules/@ftshare-lab/dsh-kline/tools/channels.py +0 -104
  98. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_applications.py +0 -204
  99. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_context.py +0 -186
  100. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_edits.py +0 -363
  101. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_functions.py +0 -451
  102. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_indicators.py +0 -65
  103. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_measurements.py +0 -84
  104. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_source_status.py +0 -32
  105. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_sources.py +0 -31
  106. package/node_modules/@ftshare-lab/dsh-kline/tools/closed_daily.py +0 -68
  107. package/node_modules/@ftshare-lab/dsh-kline/tools/draw.py +0 -410
  108. package/node_modules/@ftshare-lab/dsh-kline/tools/drawing_feedback.py +0 -45
  109. package/node_modules/@ftshare-lab/dsh-kline/tools/drawing_interaction.py +0 -117
  110. package/node_modules/@ftshare-lab/dsh-kline/tools/drawing_verification.py +0 -141
  111. package/node_modules/@ftshare-lab/dsh-kline/tools/fetch.py +0 -4680
  112. package/node_modules/@ftshare-lab/dsh-kline/tools/fibonacci.py +0 -83
  113. package/node_modules/@ftshare-lab/dsh-kline/tools/foreign_daily.py +0 -185
  114. package/node_modules/@ftshare-lab/dsh-kline/tools/free_sources.py +0 -483
  115. package/node_modules/@ftshare-lab/dsh-kline/tools/lines.py +0 -91
  116. package/node_modules/@ftshare-lab/dsh-kline/tools/nine_count.py +0 -66
  117. package/node_modules/@ftshare-lab/dsh-kline/tools/pattern_groups.py +0 -103
  118. package/node_modules/@ftshare-lab/dsh-kline/tools/pivots.py +0 -60
  119. package/node_modules/@ftshare-lab/dsh-kline/tools/polylines.py +0 -131
  120. package/node_modules/@ftshare-lab/dsh-kline/tools/price_bands.py +0 -165
  121. package/node_modules/@ftshare-lab/dsh-kline/tools/price_patterns.py +0 -311
  122. package/node_modules/@ftshare-lab/dsh-kline/tools/price_series.py +0 -162
  123. package/node_modules/@ftshare-lab/dsh-kline/tools/price_sticks.py +0 -114
  124. package/node_modules/@ftshare-lab/dsh-kline/tools/range_candidates.py +0 -170
  125. package/node_modules/@ftshare-lab/dsh-kline/tools/recent_drawing_candidates.py +0 -123
  126. package/node_modules/@ftshare-lab/dsh-kline/tools/rectangles.py +0 -76
  127. package/node_modules/@ftshare-lab/dsh-kline/tools/regression_channels.py +0 -87
  128. package/node_modules/@ftshare-lab/dsh-kline/tools/ta_functions.py +0 -228
  129. package/node_modules/@ftshare-lab/dsh-kline/tools/trend_lines.py +0 -106
  130. package/node_modules/@ftshare-lab/dsh-kline/tools/watchlist.py +0 -149
  131. package/node_modules/@ftshare-lab/dsh-kline/view/ft-logo.jpg +0 -0
  132. package/node_modules/@ftshare-lab/dsh-kline/view/vendor/klinecharts.min.js +0 -7
package/README.md CHANGED
@@ -62,7 +62,7 @@ Market data comes from FTShare in two tiers:
62
62
  - **API key configured**: real-time quotes.
63
63
  - **No API key**: the free tier. Quotes use the latest close — during the session that is the previous trading day's close — and minute bars and the real-time endpoints are unavailable. The anonymous quota is limited: once it runs out, quotes pause. You can keep trading with a hand-entered reference price, and quotes resume automatically when the quota recovers (about 24 hours, rolling).
64
64
 
65
- Configure the API key in DSH under “Settings → Financial Terminal”; request one at <https://ftai.chat/ftshare>.
65
+ Configure the API key in DSH under “Settings → Financial Terminal”; request one at [the FTShare website](https://ftai.chat/ftshare?utm_source=dsh-fft&utm_medium=AI&utm_campaign=dsh).
66
66
 
67
67
  The panel header shows the data-source state (live / free / unavailable / invalid); when quotes are unavailable it says why and offers “Get API key” or “Retry”. When the trading calendar degrades to “Monday to Friday”, the panel flags it (holidays then count as trading days, and T+1, pending-order expiry and settlement are estimated on business days).
68
68
 
package/README.zh.md CHANGED
@@ -62,7 +62,7 @@ dsh plugin add @dsh-ft/dsh-fft-paper-trading
62
62
  - **已配置 API Key**:实时行情。
63
63
  - **未配置 API Key**:免费档,报价取最近一个收盘价(盘中等于上一交易日收盘),分钟线与实时接口不可用;匿名额度有限,用尽后行情暂停,可用手填参考价继续交易,额度恢复后自动恢复(滚动约 24 小时)。
64
64
 
65
- API Key 在 DSH「设置 → 金融终端」中配置,申请地址:<https://ftai.chat/ftshare>。
65
+ API Key 在 DSH「设置 → 金融终端」中配置,申请地址:[FTShare 官网](https://ftai.chat/ftshare?utm_source=dsh-fft&utm_medium=AI&utm_campaign=dsh)。
66
66
 
67
67
  面板顶栏会显示数据源状态(正常 / 免费 / 无 / 无效);行情不可用时会说明原因并给出「获取 API Key」或「重试」入口。交易日历降级为「周一至周五」时面板会标注(此时节假日会被当作交易日,T+1、挂单过期与结算按工作日估算)。
68
68
 
package/lib/client.js CHANGED
@@ -9,7 +9,7 @@ window.__ModuleLoader__.load({
9
9
 
10
10
  const ROUTE = '/api/ft-paper-trading'
11
11
  /** Release number stamped into the Feedback link title at build time. */
12
- const PAPER_VERSION = '0.7.1'
12
+ const PAPER_VERSION = '0.7.3'
13
13
  /** Public repository; the panel links out and collects nothing itself. */
14
14
  const ISSUE_NEW = 'https://github.com/gigaflw/dsh-fft-paper-trading/issues/new'
15
15
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-ft/dsh-fft-paper-trading",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "A-share and commodity futures paper trading for DeepSeek Harness: local ledger, batch orders, review, and FTShare quotes.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -53,9 +53,6 @@
53
53
  "@dsh-ft/dsh-fft-ftshare": "^0.4.2",
54
54
  "@ftshare-lab/dsh-kline": ">=0.6.11"
55
55
  },
56
- "bundledDependencies": [
57
- "@ftshare-lab/dsh-kline"
58
- ],
59
56
  "peerDependencies": {
60
57
  "@deepseek-ai/cordis": "^4.0.2",
61
58
  "@deepseek-ai/dsh-tools": ">=0.2.0-rc.2",