investing 0.1.299 → 0.1.300

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 (286) hide show
  1. package/README.md +167 -123
  2. package/THIRD_PARTY_NOTICES.md +144 -0
  3. package/dist/{archiver-web.es-B69gABHP.js → archiver-web.es-DsFxZAB7.js} +1 -1
  4. package/dist/{archiver-web.es-fg4bLLZa.cjs → archiver-web.es-MxNXqbwK.cjs} +1 -1
  5. package/dist/db/index.d.ts +189 -0
  6. package/dist/db/index.d.ts.map +1 -1
  7. package/dist/db/schema.d.ts +200 -0
  8. package/dist/db/schema.d.ts.map +1 -1
  9. package/dist/index-CyMoEmLc.js +15 -0
  10. package/dist/index-zBNBdqd1.cjs +13 -0
  11. package/dist/index.d.ts +2 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/index.mjs +1 -1
  15. package/dist/leaders/zulu.d.ts +35 -5
  16. package/dist/leaders/zulu.d.ts.map +1 -1
  17. package/dist/live-data/dukascopy-client.d.ts +19 -2
  18. package/dist/live-data/dukascopy-client.d.ts.map +1 -1
  19. package/dist/llm/debate-generator.d.ts +7 -0
  20. package/dist/llm/debate-generator.d.ts.map +1 -1
  21. package/dist/prediction/analysis/polymarket-wallet-trust.d.ts +60 -0
  22. package/dist/prediction/analysis/polymarket-wallet-trust.d.ts.map +1 -0
  23. package/dist/prediction/analysis/position-reconstruction.d.ts +130 -0
  24. package/dist/prediction/analysis/position-reconstruction.d.ts.map +1 -0
  25. package/dist/prediction/analysis/position-settlement.d.ts +99 -0
  26. package/dist/prediction/analysis/position-settlement.d.ts.map +1 -0
  27. package/dist/prediction/analysis/r-multiple.d.ts +159 -0
  28. package/dist/prediction/analysis/r-multiple.d.ts.map +1 -0
  29. package/dist/prediction/analysis/trust-score.d.ts +158 -0
  30. package/dist/prediction/analysis/trust-score.d.ts.map +1 -0
  31. package/dist/prediction/api/analytics.d.ts.map +1 -1
  32. package/dist/prediction/api/leaderboard.d.ts +29 -11
  33. package/dist/prediction/api/leaderboard.d.ts.map +1 -1
  34. package/dist/prediction/api/markets.d.ts.map +1 -1
  35. package/dist/prediction/api/prices.d.ts.map +1 -1
  36. package/dist/prediction/db/markets.d.ts +13 -0
  37. package/dist/prediction/db/markets.d.ts.map +1 -1
  38. package/dist/prediction/db/trade-history.d.ts +35 -0
  39. package/dist/prediction/db/trade-history.d.ts.map +1 -1
  40. package/dist/prediction/index.d.ts +7 -0
  41. package/dist/prediction/index.d.ts.map +1 -1
  42. package/dist/prediction/sync/incremental-markets.d.ts.map +1 -1
  43. package/dist/prediction/sync/leaderboard.d.ts +1 -1
  44. package/dist/prediction/sync/leaderboard.d.ts.map +1 -1
  45. package/dist/prediction/sync/markets.d.ts +2 -2
  46. package/dist/prediction/sync/markets.d.ts.map +1 -1
  47. package/dist/prediction/sync/orchestration.d.ts +1 -1
  48. package/dist/prediction/sync/refill-limits.d.ts +9 -0
  49. package/dist/prediction/sync/refill-limits.d.ts.map +1 -0
  50. package/dist/prediction/sync/refill.d.ts +34 -0
  51. package/dist/prediction/sync/refill.d.ts.map +1 -0
  52. package/dist/prediction/sync/trade-history.d.ts.map +1 -1
  53. package/dist/prediction/utils/token-ids.d.ts +17 -0
  54. package/dist/prediction/utils/token-ids.d.ts.map +1 -0
  55. package/dist/prediction-markets/adapters/trading-agents.d.ts +21 -0
  56. package/dist/prediction-markets/adapters/trading-agents.d.ts.map +1 -0
  57. package/dist/prediction-markets/agents/bookmaker-agent.d.ts.map +1 -0
  58. package/dist/prediction-markets/agents/event-analysis-agent.d.ts.map +1 -0
  59. package/dist/{predictos → prediction-markets}/agents/index.d.ts +5 -1
  60. package/dist/prediction-markets/agents/index.d.ts.map +1 -0
  61. package/dist/prediction-markets/agents/kalshi-momentum-agent.d.ts +7 -0
  62. package/dist/prediction-markets/agents/kalshi-momentum-agent.d.ts.map +1 -0
  63. package/dist/prediction-markets/agents/mapper-agent.d.ts.map +1 -0
  64. package/dist/{predictos → prediction-markets}/agents/polyfactual-research.d.ts +1 -1
  65. package/dist/prediction-markets/agents/polyfactual-research.d.ts.map +1 -0
  66. package/dist/prediction-markets/agents/polymarket-position-tracker.d.ts.map +1 -0
  67. package/dist/{predictos → prediction-markets}/agents/polymarket-put-order.d.ts +1 -1
  68. package/dist/prediction-markets/agents/polymarket-put-order.d.ts.map +1 -0
  69. package/dist/prediction-markets/agents/polymarket-updown-15-limit-order-bot.d.ts.map +1 -0
  70. package/dist/prediction-markets/agents/x402-seller.d.ts.map +1 -0
  71. package/dist/prediction-markets/ai/callBlockRun.d.ts.map +1 -0
  72. package/dist/prediction-markets/ai/callGrok.d.ts.map +1 -0
  73. package/dist/prediction-markets/ai/callOpenAI.d.ts.map +1 -0
  74. package/dist/prediction-markets/ai/http.d.ts.map +1 -0
  75. package/dist/{predictos → prediction-markets}/ai/index.d.ts +1 -1
  76. package/dist/prediction-markets/ai/index.d.ts.map +1 -0
  77. package/dist/prediction-markets/ai/prompts/analyzeEventMarkets.d.ts.map +1 -0
  78. package/dist/prediction-markets/ai/prompts/arbitrageAnalysis.d.ts.map +1 -0
  79. package/dist/prediction-markets/ai/prompts/bookmakerAnalysis.d.ts.map +1 -0
  80. package/dist/prediction-markets/ai/prompts/searchQueryGenerator.d.ts.map +1 -0
  81. package/dist/prediction-markets/ai/types.d.ts.map +1 -0
  82. package/dist/prediction-markets/arbitrage.d.ts.map +1 -0
  83. package/dist/{predictos → prediction-markets}/clients/polyfactual.d.ts +1 -1
  84. package/dist/prediction-markets/clients/polyfactual.d.ts.map +1 -0
  85. package/dist/{predictos → prediction-markets}/clients/polymarket.d.ts +1 -1
  86. package/dist/prediction-markets/clients/polymarket.d.ts.map +1 -0
  87. package/dist/{predictos → prediction-markets}/clients/x402.d.ts +1 -1
  88. package/dist/prediction-markets/clients/x402.d.ts.map +1 -0
  89. package/dist/{predictos → prediction-markets}/data/kalshi.d.ts +1 -1
  90. package/dist/prediction-markets/data/kalshi.d.ts.map +1 -0
  91. package/dist/{predictos → prediction-markets}/data/polymarket.d.ts +1 -1
  92. package/dist/prediction-markets/data/polymarket.d.ts.map +1 -0
  93. package/dist/prediction-markets/events.d.ts.map +1 -0
  94. package/dist/prediction-markets/execution/paper.d.ts +19 -0
  95. package/dist/prediction-markets/execution/paper.d.ts.map +1 -0
  96. package/dist/prediction-markets/index.cjs +1 -0
  97. package/dist/{predictos → prediction-markets}/index.d.ts +8 -5
  98. package/dist/prediction-markets/index.d.ts.map +1 -0
  99. package/dist/prediction-markets/index.mjs +1 -0
  100. package/dist/prediction-markets/kalshi-momentum.LICENSE +21 -0
  101. package/dist/prediction-markets/strategies/btc15m-fusion.d.ts +27 -0
  102. package/dist/prediction-markets/strategies/btc15m-fusion.d.ts.map +1 -0
  103. package/dist/prediction-markets/strategies/copy-trade-sizing.d.ts +27 -0
  104. package/dist/prediction-markets/strategies/copy-trade-sizing.d.ts.map +1 -0
  105. package/dist/prediction-markets/strategies/gabagool.d.ts +26 -0
  106. package/dist/prediction-markets/strategies/gabagool.d.ts.map +1 -0
  107. package/dist/prediction-markets/strategies/kalshi-momentum.d.ts +13 -0
  108. package/dist/prediction-markets/strategies/kalshi-momentum.d.ts.map +1 -0
  109. package/dist/{predictos → prediction-markets}/types.d.ts +121 -6
  110. package/dist/prediction-markets/types.d.ts.map +1 -0
  111. package/dist/prediction-markets/validation.d.ts +5 -0
  112. package/dist/prediction-markets/validation.d.ts.map +1 -0
  113. package/dist/scripted-llm-B-UTs08L.js +1 -0
  114. package/dist/scripted-llm-CmDVkhyH.cjs +1 -0
  115. package/dist/stocks/index.d.ts +2 -1
  116. package/dist/stocks/index.d.ts.map +1 -1
  117. package/dist/stocks/quote-cache-service.d.ts +11 -2
  118. package/dist/stocks/quote-cache-service.d.ts.map +1 -1
  119. package/dist/stocks/strategies/bb-rsi-breakout.d.ts +63 -0
  120. package/dist/stocks/strategies/bb-rsi-breakout.d.ts.map +1 -0
  121. package/dist/stocks/strategies/ema-crossover.d.ts +51 -0
  122. package/dist/stocks/strategies/ema-crossover.d.ts.map +1 -0
  123. package/dist/stocks/unified-quote-service.d.ts +15 -6
  124. package/dist/stocks/unified-quote-service.d.ts.map +1 -1
  125. package/dist/stocks/yahoo-finance-wrapper.d.ts +75 -6
  126. package/dist/stocks/yahoo-finance-wrapper.d.ts.map +1 -1
  127. package/dist/strategy-signals/data/fixture-data-provider.d.ts +8 -0
  128. package/dist/strategy-signals/data/fixture-data-provider.d.ts.map +1 -0
  129. package/dist/strategy-signals/data/openbb-mapping.d.ts +7 -0
  130. package/dist/strategy-signals/data/openbb-mapping.d.ts.map +1 -0
  131. package/dist/strategy-signals/demo.d.ts +446 -0
  132. package/dist/strategy-signals/demo.d.ts.map +1 -0
  133. package/dist/strategy-signals/execution.d.ts +18 -0
  134. package/dist/strategy-signals/execution.d.ts.map +1 -0
  135. package/dist/strategy-signals/fixtures/openbb-data/bars.d.ts +10 -0
  136. package/dist/strategy-signals/fixtures/openbb-data/bars.d.ts.map +1 -0
  137. package/dist/strategy-signals/index.d.ts +36 -0
  138. package/dist/strategy-signals/index.d.ts.map +1 -0
  139. package/dist/strategy-signals/indicators/spread-aware-momentum.d.ts +31 -0
  140. package/dist/strategy-signals/indicators/spread-aware-momentum.d.ts.map +1 -0
  141. package/dist/strategy-signals/proposal.d.ts +10 -0
  142. package/dist/strategy-signals/proposal.d.ts.map +1 -0
  143. package/dist/strategy-signals/report.d.ts +6 -0
  144. package/dist/strategy-signals/report.d.ts.map +1 -0
  145. package/dist/strategy-signals/risk-gate.d.ts +3 -0
  146. package/dist/strategy-signals/risk-gate.d.ts.map +1 -0
  147. package/dist/strategy-signals/sources/btc15m-fusion.d.ts +16 -0
  148. package/dist/strategy-signals/sources/btc15m-fusion.d.ts.map +1 -0
  149. package/dist/strategy-signals/sources/copy-trade-sizing.d.ts +15 -0
  150. package/dist/strategy-signals/sources/copy-trade-sizing.d.ts.map +1 -0
  151. package/dist/strategy-signals/sources/gabagool.d.ts +12 -0
  152. package/dist/strategy-signals/sources/gabagool.d.ts.map +1 -0
  153. package/dist/strategy-signals/sources/hedge-fund-technicals.d.ts +42 -0
  154. package/dist/strategy-signals/sources/hedge-fund-technicals.d.ts.map +1 -0
  155. package/dist/strategy-signals/sources/kalshi-momentum.d.ts +10 -0
  156. package/dist/strategy-signals/sources/kalshi-momentum.d.ts.map +1 -0
  157. package/dist/strategy-signals/sources/kalshi-vibe-guards.d.ts +15 -0
  158. package/dist/strategy-signals/sources/kalshi-vibe-guards.d.ts.map +1 -0
  159. package/dist/strategy-signals/sources/kalshi-vibe.d.ts +11 -0
  160. package/dist/strategy-signals/sources/kalshi-vibe.d.ts.map +1 -0
  161. package/dist/strategy-signals/sources/red-flags.d.ts +13 -0
  162. package/dist/strategy-signals/sources/red-flags.d.ts.map +1 -0
  163. package/dist/strategy-signals/sources/spread-aware-momentum.d.ts +11 -0
  164. package/dist/strategy-signals/sources/spread-aware-momentum.d.ts.map +1 -0
  165. package/dist/strategy-signals/survival-posture.d.ts +13 -0
  166. package/dist/strategy-signals/survival-posture.d.ts.map +1 -0
  167. package/dist/strategy-signals/types.d.ts +138 -0
  168. package/dist/strategy-signals/types.d.ts.map +1 -0
  169. package/dist/strategy-signals/validate.d.ts +15 -0
  170. package/dist/strategy-signals/validate.d.ts.map +1 -0
  171. package/dist/strategy-signals/venues/kalshi-venue-mapping.d.ts +3 -0
  172. package/dist/strategy-signals/venues/kalshi-venue-mapping.d.ts.map +1 -0
  173. package/dist/strategy-signals/venues/mock-equity-broker.d.ts +16 -0
  174. package/dist/strategy-signals/venues/mock-equity-broker.d.ts.map +1 -0
  175. package/dist/strategy-signals/venues/mock-venue.d.ts +14 -0
  176. package/dist/strategy-signals/venues/mock-venue.d.ts.map +1 -0
  177. package/dist/strategy-signals/venues/pmxt-venue-mapping.d.ts +7 -0
  178. package/dist/strategy-signals/venues/pmxt-venue-mapping.d.ts.map +1 -0
  179. package/dist/trading-agents/agents/debate-facilitator.d.ts +3 -3
  180. package/dist/trading-agents/agents/debate-facilitator.d.ts.map +1 -1
  181. package/dist/trading-agents/agents/fund-manager.d.ts +4 -2
  182. package/dist/trading-agents/agents/fund-manager.d.ts.map +1 -1
  183. package/dist/trading-agents/agents/improved-researchers.d.ts +3 -3
  184. package/dist/trading-agents/agents/improved-researchers.d.ts.map +1 -1
  185. package/dist/trading-agents/agents/market-analyst.d.ts +2 -2
  186. package/dist/trading-agents/agents/market-analyst.d.ts.map +1 -1
  187. package/dist/trading-agents/agents/news-analyst.d.ts +2 -2
  188. package/dist/trading-agents/agents/news-analyst.d.ts.map +1 -1
  189. package/dist/trading-agents/agents/researchers.d.ts +4 -4
  190. package/dist/trading-agents/agents/researchers.d.ts.map +1 -1
  191. package/dist/trading-agents/agents/risk-judge.d.ts +13 -0
  192. package/dist/trading-agents/agents/risk-judge.d.ts.map +1 -0
  193. package/dist/trading-agents/agents/risk-team.d.ts +4 -4
  194. package/dist/trading-agents/agents/risk-team.d.ts.map +1 -1
  195. package/dist/trading-agents/agents/trader.d.ts +2 -2
  196. package/dist/trading-agents/agents/trader.d.ts.map +1 -1
  197. package/dist/trading-agents/graph/trading-graph.d.ts +28 -2
  198. package/dist/trading-agents/graph/trading-graph.d.ts.map +1 -1
  199. package/dist/trading-agents/index.cjs +1 -0
  200. package/dist/trading-agents/index.d.ts +4 -0
  201. package/dist/trading-agents/index.d.ts.map +1 -1
  202. package/dist/trading-agents/index.mjs +1 -0
  203. package/dist/trading-agents/types/index.d.ts +27 -4
  204. package/dist/trading-agents/types/index.d.ts.map +1 -1
  205. package/dist/trading-agents/utils/llm-client.d.ts +4 -1
  206. package/dist/trading-agents/utils/llm-client.d.ts.map +1 -1
  207. package/dist/trading-agents/utils/parse-final-line.d.ts +7 -0
  208. package/dist/trading-agents/utils/parse-final-line.d.ts.map +1 -0
  209. package/dist/trading-agents/utils/scripted-llm.d.ts +17 -0
  210. package/dist/trading-agents/utils/scripted-llm.d.ts.map +1 -0
  211. package/dist/trading-agents/utils/strategy-prompt.d.ts +6 -0
  212. package/dist/trading-agents/utils/strategy-prompt.d.ts.map +1 -0
  213. package/dist/trading-agents-Bh9OORHe.js +1 -0
  214. package/dist/trading-agents-C8M7tbB0.cjs +1 -0
  215. package/dist/validate-C1MS8RhG.js +1 -0
  216. package/dist/validate-DBxPUXqH.cjs +1 -0
  217. package/package.json +21 -50
  218. package/dist/bookmakerAnalysis-Bfo1zUVm.js +0 -1
  219. package/dist/bookmakerAnalysis-CHn1W8uX.cjs +0 -1
  220. package/dist/callGrok-D0D7zBHK.js +0 -1
  221. package/dist/callGrok-DWO719mN.cjs +0 -1
  222. package/dist/events-BJOyGWeU.cjs +0 -1
  223. package/dist/events-OvBb8rgy.js +0 -1
  224. package/dist/index-D7fsk2gy.js +0 -15
  225. package/dist/index-_V1Ql5Es.cjs +0 -13
  226. package/dist/polymarket-updown-15-limit-order-bot-DCC8HE9Z.cjs +0 -1
  227. package/dist/polymarket-updown-15-limit-order-bot-Dv5oGAF4.js +0 -1
  228. package/dist/predictos/agents/bookmaker-agent.d.ts.map +0 -1
  229. package/dist/predictos/agents/event-analysis-agent.d.ts.map +0 -1
  230. package/dist/predictos/agents/index.d.ts.map +0 -1
  231. package/dist/predictos/agents/index.js +0 -1
  232. package/dist/predictos/agents/index.mjs +0 -1
  233. package/dist/predictos/agents/mapper-agent.d.ts.map +0 -1
  234. package/dist/predictos/agents/polyfactual-research.d.ts.map +0 -1
  235. package/dist/predictos/agents/polymarket-position-tracker.d.ts.map +0 -1
  236. package/dist/predictos/agents/polymarket-put-order.d.ts.map +0 -1
  237. package/dist/predictos/agents/polymarket-updown-15-limit-order-bot.d.ts.map +0 -1
  238. package/dist/predictos/agents/x402-seller.d.ts.map +0 -1
  239. package/dist/predictos/ai/callBlockRun.d.ts.map +0 -1
  240. package/dist/predictos/ai/callGrok.d.ts.map +0 -1
  241. package/dist/predictos/ai/callOpenAI.d.ts.map +0 -1
  242. package/dist/predictos/ai/http.d.ts.map +0 -1
  243. package/dist/predictos/ai/index.d.ts.map +0 -1
  244. package/dist/predictos/ai/index.js +0 -1
  245. package/dist/predictos/ai/index.mjs +0 -1
  246. package/dist/predictos/ai/prompts/analyzeEventMarkets.d.ts.map +0 -1
  247. package/dist/predictos/ai/prompts/arbitrageAnalysis.d.ts.map +0 -1
  248. package/dist/predictos/ai/prompts/bookmakerAnalysis.d.ts.map +0 -1
  249. package/dist/predictos/ai/prompts/searchQueryGenerator.d.ts.map +0 -1
  250. package/dist/predictos/ai/types.d.ts.map +0 -1
  251. package/dist/predictos/arbitrage.d.ts.map +0 -1
  252. package/dist/predictos/arbitrage.js +0 -1
  253. package/dist/predictos/arbitrage.mjs +0 -1
  254. package/dist/predictos/clients/polyfactual.d.ts.map +0 -1
  255. package/dist/predictos/clients/polymarket.d.ts.map +0 -1
  256. package/dist/predictos/clients/x402.d.ts.map +0 -1
  257. package/dist/predictos/data/kalshi.d.ts.map +0 -1
  258. package/dist/predictos/data/kalshi.js +0 -1
  259. package/dist/predictos/data/kalshi.mjs +0 -1
  260. package/dist/predictos/data/polymarket.d.ts.map +0 -1
  261. package/dist/predictos/data/polymarket.js +0 -1
  262. package/dist/predictos/data/polymarket.mjs +0 -1
  263. package/dist/predictos/events.d.ts.map +0 -1
  264. package/dist/predictos/index.d.ts.map +0 -1
  265. package/dist/predictos/index.js +0 -1
  266. package/dist/predictos/index.mjs +0 -1
  267. package/dist/predictos/types.d.ts.map +0 -1
  268. package/dist/searchQueryGenerator-DIIs9xw5.js +0 -1
  269. package/dist/searchQueryGenerator-rCVblXJS.cjs +0 -1
  270. /package/dist/{predictos → prediction-markets}/agents/bookmaker-agent.d.ts +0 -0
  271. /package/dist/{predictos → prediction-markets}/agents/event-analysis-agent.d.ts +0 -0
  272. /package/dist/{predictos → prediction-markets}/agents/mapper-agent.d.ts +0 -0
  273. /package/dist/{predictos → prediction-markets}/agents/polymarket-position-tracker.d.ts +0 -0
  274. /package/dist/{predictos → prediction-markets}/agents/polymarket-updown-15-limit-order-bot.d.ts +0 -0
  275. /package/dist/{predictos → prediction-markets}/agents/x402-seller.d.ts +0 -0
  276. /package/dist/{predictos → prediction-markets}/ai/callBlockRun.d.ts +0 -0
  277. /package/dist/{predictos → prediction-markets}/ai/callGrok.d.ts +0 -0
  278. /package/dist/{predictos → prediction-markets}/ai/callOpenAI.d.ts +0 -0
  279. /package/dist/{predictos → prediction-markets}/ai/http.d.ts +0 -0
  280. /package/dist/{predictos → prediction-markets}/ai/prompts/analyzeEventMarkets.d.ts +0 -0
  281. /package/dist/{predictos → prediction-markets}/ai/prompts/arbitrageAnalysis.d.ts +0 -0
  282. /package/dist/{predictos → prediction-markets}/ai/prompts/bookmakerAnalysis.d.ts +0 -0
  283. /package/dist/{predictos → prediction-markets}/ai/prompts/searchQueryGenerator.d.ts +0 -0
  284. /package/dist/{predictos → prediction-markets}/ai/types.d.ts +0 -0
  285. /package/dist/{predictos → prediction-markets}/arbitrage.d.ts +0 -0
  286. /package/dist/{predictos → prediction-markets}/events.d.ts +0 -0
package/README.md CHANGED
@@ -4,30 +4,26 @@
4
4
 
5
5
  <!-- template-git-repo:badges:start -->
6
6
  <p align="center">
7
- <a href="https://qwksearch.com/api"><img src="https://img.shields.io/badge/Docs-blue?logo=ReadTheDocs&logoColor=white" alt="Documentation" /></a>
7
+ <a href="https://docs.autoinvestment.broker/"><img src="https://img.shields.io/badge/Docs-blue?logo=ReadTheDocs&logoColor=white" alt="Documentation" /></a>
8
8
  <br />
9
- <a href="https://github.com/OpenSourceAGI/qwksearch-research-agent/stargazers"><img src="https://img.shields.io/github/stars/OpenSourceAGI/qwksearch-research-agent" alt="GitHub Stars" /></a>
9
+ <a href="https://github.com/OpenSourceAGI/ai-broker-investing-agent/stargazers"><img src="https://img.shields.io/github/stars/OpenSourceAGI/ai-broker-investing-agent" alt="GitHub Stars" /></a>
10
10
  <a href="https://www.npmjs.com/package/investing"><img src="https://img.shields.io/npm/dm/investing.svg" alt="NPM Monthly Downloads" /></a>
11
11
  <a href="https://www.npmjs.com/package/investing"><img src="https://img.shields.io/npm/v/investing.svg" alt="npm version" /></a>
12
12
  <a href="https://www.npmjs.com/package/investing"><img src="https://img.shields.io/npm/dt/investing.svg" alt="NPM Total Downloads" /></a>
13
13
  <a href="https://www.npmjs.com/package/investing"><img src="https://img.shields.io/npm/types/investing" alt="TypeScript types" /></a>
14
14
  <a href="https://packagephobia.com/result?p=investing"><img src="https://packagephobia.com/badge?p=investing" alt="Install size" /></a>
15
15
  <br />
16
- <a href="https://github.com/OpenSourceAGI/qwksearch-research-agent/issues"><img src="https://img.shields.io/github/issues/OpenSourceAGI/qwksearch-research-agent?logo=github" alt="GitHub Issues" /></a>
17
- <a href="https://github.com/OpenSourceAGI/qwksearch-research-agent/pulls"><img src="https://img.shields.io/github/issues-pr/OpenSourceAGI/qwksearch-research-agent?logo=github&label=PRs" alt="Open Pull Requests" /></a>
18
- <a href="https://github.com/OpenSourceAGI/qwksearch-research-agent/pulls?q=is%3Apr+is%3Aclosed"><img src="https://img.shields.io/github/issues-pr-closed/OpenSourceAGI/qwksearch-research-agent?logo=github&label=PRs%20merged&color=8957e5" alt="Merged Pull Requests" /></a>
19
- <a href="https://github.com/OpenSourceAGI/qwksearch-research-agent/discussions"><img src="https://img.shields.io/github/discussions/OpenSourceAGI/qwksearch-research-agent" alt="GitHub Discussions" /></a>
20
- <a href="https://github.com/OpenSourceAGI/qwksearch-research-agent/commits/master/"><img src="https://img.shields.io/github/last-commit/OpenSourceAGI/qwksearch-research-agent.svg" alt="GitHub last commit" /></a>
16
+ <a href="https://github.com/OpenSourceAGI/ai-broker-investing-agent/issues"><img src="https://img.shields.io/github/issues/OpenSourceAGI/ai-broker-investing-agent?logo=github" alt="GitHub Issues" /></a>
17
+ <a href="https://github.com/OpenSourceAGI/ai-broker-investing-agent/pulls"><img src="https://img.shields.io/github/issues-pr/OpenSourceAGI/ai-broker-investing-agent?logo=github&label=PRs" alt="Open Pull Requests" /></a>
18
+ <a href="https://github.com/OpenSourceAGI/ai-broker-investing-agent/pulls?q=is%3Apr+is%3Aclosed"><img src="https://img.shields.io/github/issues-pr-closed/OpenSourceAGI/ai-broker-investing-agent?logo=github&label=PRs%20merged&color=8957e5" alt="Merged Pull Requests" /></a>
19
+ <a href="https://github.com/OpenSourceAGI/ai-broker-investing-agent/discussions"><img src="https://img.shields.io/github/discussions/OpenSourceAGI/ai-broker-investing-agent" alt="GitHub Discussions" /></a>
20
+ <a href="https://github.com/OpenSourceAGI/ai-broker-investing-agent/commits/main/"><img src="https://img.shields.io/github/last-commit/OpenSourceAGI/ai-broker-investing-agent.svg" alt="GitHub last commit" /></a>
21
21
  <br />
22
- <a href="https://stackblitz.com/github/OpenSourceAGI/qwksearch-research-agent/tree/master/packages/investing"><img height="20px" src="https://developer.stackblitz.com/img/open_in_stackblitz.svg" alt="Open in StackBlitz" /></a>
22
+ <a href="https://stackblitz.com/github/OpenSourceAGI/ai-broker-investing-agent/tree/main/packages/investing"><img height="20px" src="https://developer.stackblitz.com/img/open_in_stackblitz.svg" alt="Open in StackBlitz" /></a>
23
23
  <img src="https://img.shields.io/badge/Bun-14151A?logo=bun&logoColor=white" alt="Bun" /> <img src="https://img.shields.io/badge/TypeScript-3178C6?logo=typescript&logoColor=white" alt="TypeScript" /> <img src="https://img.shields.io/badge/Drizzle%20ORM-C5F74F?logo=drizzle&logoColor=white" alt="Drizzle ORM" /> <img src="https://img.shields.io/badge/Zod-3E67B1?logo=zod&logoColor=white" alt="Zod" /> <img src="https://img.shields.io/badge/Vite-646CFF?logo=vite&logoColor=white" alt="Vite" /> <img src="https://img.shields.io/badge/Vitest-6E9F18?logo=vitest&logoColor=white" alt="Vitest" />
24
24
  </p>
25
25
  <!-- template-git-repo:badges:end -->
26
26
 
27
- <!-- skills:install:start -->
28
- **🤖 Agent skill** — `npx skills@latest add https://github.com/OpenSourceAGI/qwksearch-research-agent --skill investing` ([what it covers](../../skills/investing/SKILL.md))
29
- <!-- skills:install:end -->
30
-
31
27
  # Investing Library
32
28
 
33
29
  A comprehensive TypeScript/JavaScript library for investment analysis, trading automation, and financial data processing. This package provides reusable utilities for building investment applications, trading bots, and financial analysis tools.
@@ -37,14 +33,98 @@ A comprehensive TypeScript/JavaScript library for investment analysis, trading a
37
33
  - 🤖 **Trading Agents** - Multi-agent framework for automated trading strategies
38
34
  - 📊 **Stock Data** - Fetch and analyze stock data from Yahoo Finance, SEC filings, and more
39
35
  - 💹 **Prediction Markets** - Polymarket integration for prediction market data
40
- - 🔮 **PredictOS Core** - Multi-agent prediction-market analysis, Kalshi/Polymarket
41
- data clients, and cross-platform arbitrage (merged in from the `predictos` package)
42
36
  - 🔌 **Alpaca Trading API** - Easy-to-use wrapper for Alpaca trading platform
43
37
  - 📈 **Technical Analysis** - Algorithmic trading strategies and indicators
44
38
  - 🎯 **Social Trading** - Track and analyze top traders and strategies
45
39
  - 🧠 **AI-Powered Analysis** - LLM-based investment research and debate generation
46
40
  - 📦 **Data Files** - Pre-packaged stock indexes, sector information, and market data
47
41
 
42
+ ## Third-party strategy signals
43
+
44
+ The source integration connects all ten vendored project folders to the agent
45
+ pipeline through pure sources, venue/data mappings and a survival risk posture.
46
+ The [integration overview](../../devdocs/third-party-trading-bots-overview.md)
47
+ records each project's runtime, license, native assessment and operational scope.
48
+ Full notices ship in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
49
+
50
+ From the repository root, run the credential-free paper demo in Docker:
51
+
52
+ ```bash
53
+ bash devdocs/third-party-integration/harness/run.sh install
54
+ bash devdocs/third-party-integration/harness/run.sh demo
55
+ ```
56
+
57
+ The image uses pinned Bun 1.3.11 with Node/native build prerequisites. Dependencies
58
+ live in container-only volumes; the staged repository excludes credentials and
59
+ host node_modules. Tests and the demo run with `--network=none`.
60
+
61
+ The demo first prints a readable summary: six numbered stages per run (strategy,
62
+ normalized signal, research input, Trader, Portfolio Manager, execution). It then
63
+ prints the full JSON trace: signals → report → proposal → Trader → risk debate → judge →
64
+ verdict → Fund Manager → approval → fill → account snapshots. It includes momentum
65
+ BUY/SELL, Vibe YES/NO, BTC bullish/bearish, copy sizing, sequential Gabagool targets,
66
+ PyKalshi and pmxt mappings, OpenBB-backed stock BUY/SELL and Defensive sizing.
67
+ The pmxt fixture opts into explicitly synthetic quotes; a point price is not a
68
+ live executable quote. Models are scripted and all prices/forecasts are fixtures.
69
+
70
+ Source consumers can opt into the new stage with the fourth graph argument and
71
+ the third `propagate` argument:
72
+
73
+ ```typescript
74
+ // Source-level example inside packages/investing. Avoid src/index.ts: it loads
75
+ // native dependencies and dotenv. Built package/subpath imports remain broken.
76
+ import { TradingAgentsGraph } from './src/trading-agents/graph/trading-graph'
77
+ import { kalshiMomentumSource } from './src/strategy-signals/sources/kalshi-momentum'
78
+
79
+ const graph = new TradingAgentsGraph([], false, undefined, {
80
+ llm: { deep: suppliedLLM, quick: suppliedLLM },
81
+ riskReview: true,
82
+ riskLimits: { maxPositionPerMarket: 50, maxOpenPositions: 5 },
83
+ })
84
+ const context = { account: venue.snapshot(), evaluationTime }
85
+ const strategySignals = kalshiMomentumSource.run({ ticks }, context)
86
+ const result = await graph.propagate(market.title, evaluationTime.slice(0, 10), {
87
+ instrument: { type: 'event', venue: venue.venue, marketId: market.marketId },
88
+ strategySignals,
89
+ account: context.account,
90
+ evaluationTime,
91
+ event: market,
92
+ sources: { [kalshiMomentumSource.id]: kalshiMomentumSource },
93
+ })
94
+ if (result.state.approval) await venue.execute(result.state.approval)
95
+ ```
96
+
97
+ The caller supplies the LLM, current venue/account, market and evaluation time. With `riskReview: true`, an `account` snapshot is required for stocks too: without one the gate cannot check cash or holdings, so the run ends at HOLD.
98
+ Register each executable source so its freshness and guards can run; unregistered
99
+ third-party proposals fail closed. Event runs skip stock analysts. Fixture stock
100
+ runs select no external analysts and execute an Alpaca-shaped order against
101
+ `MockEquityBroker` after a cash/share preflight. Existing callers without `run`
102
+ retain byte-identical prompts; risk review is opt-in.
103
+
104
+ Every executable result binds to one selected `proposalId`. BLOCK means HOLD;
105
+ REDUCE supplies a whole-number cap. Final quantity is the minimum of the proposal,
106
+ common/source risk caps, judge cap and Fund Manager quantity. Invalid model output
107
+ or model errors cannot grant approval. Red flags remain advisory input. Forecast
108
+ guards/Kelly apply only to genuine forecasts, never a substituted market price.
109
+
110
+ Gabagool portfolio targets execute one leg per call, recomputed from actual
111
+ holdings and fill costs. A rejected leg does not create a holding. Strategy prices
112
+ retain decimal-cent precision; the paper execution bridge rejects unsupported
113
+ sub-cent prices. Fractional weighted average costs are valid account values.
114
+ Survival multipliers (1 / 1 / 0.75 / 0.5 / 0) are new demo policy, not upstream rules.
115
+
116
+ Verification commands are `run.sh test`, `test-root`, `tsc`, `build`, `coverage`
117
+ and `pack`. The type gate permits only reproduced pre-existing diagnostic
118
+ identities/occurrences; it does not claim a clean TypeScript build. Coverage is
119
+ reported for the new module and changed graph/risk-judge files.
120
+
121
+ **Scope:** source-level fixture/paper execution only. Built exports, the web app
122
+ and Workers runtime are not validated by this demo. Live broker/venue execution,
123
+ an execution ledger, portfolio versioning and concurrency control are outside
124
+ this integration. Current snapshots must be refreshed and callers must serialize
125
+ execution. See the [workflow](../../devdocs/third-party-integration/skills/integrate-trading-bot/SKILL.md)
126
+ to add a source, mapping or posture.
127
+
48
128
  ## Installation
49
129
 
50
130
  ```bash
@@ -117,36 +197,68 @@ const leaders = await fetchLeaderboard({
117
197
  });
118
198
  ```
119
199
 
120
- ### PredictOS — Prediction-Market Analysis & Arbitrage
200
+ ### Kalshi Momentum Paper Agent
121
201
 
122
- ```typescript
123
- import {
124
- runEventAnalysisAgent,
125
- findArbitrage,
126
- getEvents,
127
- } from "investing/predictos";
202
+ The prediction-markets package includes a deterministic TypeScript port of the
203
+ momentum rules from PyKalshi's MIT-licensed
204
+ `kalshi-bot-api/examples/momentum_bot.py`. It consumes recorded ticks and uses
205
+ an in-memory paper executor, so it never connects to Kalshi, submits orders, or
206
+ requires credentials.
128
207
 
129
- const url = "https://polymarket.com/event/will-x-happen-by-2026";
208
+ Run the included replay from `packages/investing`:
130
209
 
131
- // Resolve a Polymarket / Kalshi / Jupiter event URL into its raw markets
132
- const event = await getEvents({ url });
210
+ ```bash
211
+ bun run demo:kalshi-momentum
212
+ ```
133
213
 
134
- // Analyze those markets for alpha and a predicted winner
135
- const { analysis } = await runEventAnalysisAgent({
136
- markets: event.markets,
137
- eventIdentifier: event.eventIdentifier,
138
- pmType: event.pmType,
139
- model: "grok-4-fast",
140
- tools: ["x_search"], // Grok models only
214
+ ```typescript
215
+ import { runKalshiMomentumPaperAgent } from "investing/prediction-markets";
216
+
217
+ const result = runKalshiMomentumPaperAgent({
218
+ initialCashCents: 10_000,
219
+ ticks: [50, 51, 52, 53, 58].map((yesPriceCents, index) => ({
220
+ ticker: "DEMO-KALSHI-MARKET",
221
+ timestamp: new Date(Date.UTC(2026, 0, 1, 0, index)).toISOString(),
222
+ yesPriceCents,
223
+ })),
141
224
  });
142
225
 
143
- // Look for the same event mispriced on the other venue
144
- const arb = await findArbitrage({ url, model: "grok-4-fast" });
226
+ console.log(result.report);
145
227
  ```
146
228
 
147
- Every entry point takes a typed `request` object and an optional second
148
- `config` (`AIConfig` / `DataConfig`) that falls back to `process.env`. Missing
149
- required fields **throw** rather than returning an error result.
229
+ Prices are integer cents per contract. A YES tick of `53` implies a NO price
230
+ of `47`. Trade `action` (`BUY`, `SELL`, `HOLD`) is separate from the binary
231
+ `outcome` (`YES`, `NO`): selling YES closes YES contracts and does not mean
232
+ buying NO.
233
+
234
+ Configuration controls `lookback`, `momentumThreshold`, `positionSize`,
235
+ `profitTargetCents`, `stopLossCents`, and `maxPosition`. The defaults preserve
236
+ the upstream example: three consecutive moves, 10 contracts, a 5-cent target,
237
+ a 3-cent stop, and a 50-contract limit. The paper executor fills immediately at
238
+ the recorded outcome price with no fees or slippage and reports cash, open
239
+ positions, and realized/unrealized P&L.
240
+
241
+ This replay is a strategy demonstration, not a backtest or live execution
242
+ system. It assumes complementary YES/NO prices, does not model an order book,
243
+ partial fills, fees, latency, settlement, or market resolution, and does not
244
+ enable the existing unimplemented Kalshi live mapper.
245
+
246
+ The recorded demo also runs actionable intents through the existing
247
+ strategy-signal graph, research judge, Trader, risk review and proposal-bound
248
+ FundManager before this same paper executor. It requires no keys or services.
249
+ The original synchronous API remains direct strategy/paper replay.
250
+
251
+ For graph review, use `runKalshiMomentumPaperAgentWithResearch` and
252
+ `reviewPredictionMarketIntent`. Configure the existing graph with
253
+ `riskReview: true`, and pass `{ fundManagerReview: true }` to the review
254
+ adapter to require unchanged explicit approval. MODIFY, missing approval or
255
+ a changed quantity becomes HOLD for this replay; the executor retains its
256
+ own cash, inventory and combined market-position checks.
257
+
258
+ After building, run `node scripts/verify-prediction-market-build.mjs` to check
259
+ actual ESM/CommonJS subpaths and the packaged MIT notice. See the
260
+ [walkthrough](../../devdocs/prediction-markets-agent-system-walkthrough.md) for
261
+ the full flow and the recorded result of $100.50 cash and $0.50 realized P&L.
150
262
 
151
263
  ### Trading Agents Framework
152
264
 
@@ -252,7 +364,7 @@ Get Polymarket leaderboard of top traders.
252
364
  - `limit` - Number of results (default: 20)
253
365
  - `category` - Market category (default: 'overall')
254
366
 
255
- ### PredictOS Core
367
+ ### Prediction-Market Agents & Arbitrage
256
368
 
257
369
  ```typescript
258
370
  import {
@@ -261,80 +373,26 @@ import {
261
373
  runMapperAgent,
262
374
  findArbitrage,
263
375
  getEvents,
264
- } from "investing/predictos";
376
+ } from "investing/prediction-markets";
265
377
  ```
266
378
 
267
- > Adapted from [PredictOS](https://github.com/PredictionXBT/PredictOS) by
268
- > **PredictionXBT** (MIT licensed, © 2025). The original code shipped as
269
- > Deno/Supabase edge functions; here it is refactored into plain, typed,
270
- > dependency-light library functions with no HTTP/CORS layer. It lived in a
271
- > sibling `predictos` package until that package was merged into `investing`.
272
- > See [`NOTICE`](./NOTICE) and
273
- > [`LICENSE-PredictOS-MIT`](./LICENSE-PredictOS-MIT).
274
-
275
- #### What it covers
276
-
277
- - **AI provider clients** — OpenAI (Responses API), Grok/xAI (Responses API,
278
- with optional `x_search` / `web_search` tools), and BlockRun (x402
279
- wallet-based micropayments across 20+ models), plus the analysis prompt
280
- builders (`analyzeEventMarkets`, `bookmakerAnalysis`, `arbitrageAnalysis`,
281
- `searchQueryGenerator`).
282
- - **Market data clients** — Kalshi via the DFlow API
283
- (`investing/predictos/data/kalshi`) and Polymarket via the Dome API
284
- (`investing/predictos/data/polymarket`).
285
- - **Multi-agent pipeline** (`investing/predictos/agents`):
286
- - `runEventAnalysisAgent` — analyzes an event's markets for alpha and a
287
- predicted winner.
288
- - `runBookmakerAgent` — aggregates multiple agent analyses (and optional
289
- external data sources) into a single consolidated assessment.
290
- - `runMapperAgent` — turns an analysis into Polymarket order parameters
291
- (pure logic; Kalshi mapping not yet implemented).
292
- - **Cross-platform arbitrage** (`investing/predictos/arbitrage`) —
293
- `findArbitrage` parses a Polymarket/Kalshi URL, generates a search query with
294
- AI, searches the other platform, and evaluates whether the same event is
295
- mispriced across venues.
296
- - **Event fetching** (`getEvents`) — resolves a Polymarket/Kalshi/Jupiter URL
297
- into its raw markets (Kalshi via DFlow, Polymarket via the Gamma API).
298
-
299
- #### Subpath exports
300
-
301
- | Import | Contents |
302
- | --- | --- |
303
- | `investing/predictos` | Everything (barrel) |
304
- | `investing/predictos/ai` | AI clients + prompt builders |
305
- | `investing/predictos/data/kalshi` | Kalshi (DFlow) data client |
306
- | `investing/predictos/data/polymarket` | Polymarket (Dome) data client |
307
- | `investing/predictos/agents` | `runEventAnalysisAgent`, `runBookmakerAgent`, `runMapperAgent` |
308
- | `investing/predictos/arbitrage` | `findArbitrage` |
309
-
310
- The barrel re-exports the Kalshi (DFlow) client at the top level. The Polymarket
311
- (Dome) client exposes Kalshi helpers under the same names, so the barrel renames
312
- those two to `getDomeKalshiMarketsByEvent` / `buildDomeKalshiMarketUrl` — import
313
- from `investing/predictos/data/polymarket` for their original names. The
314
- Gamma/CLOB trading client, Polyfactual and x402 are namespaced on the barrel as
315
- `polymarketClob`, `polyfactual` and `x402` for the same reason.
316
-
317
- #### Refactor notes (Deno → Node)
318
-
319
- - Deno HTTP handlers (`Deno.serve`, `new Response(...)`, CORS headers) were
320
- removed. Each endpoint is now a plain exported async function taking typed
321
- parameters and returning a typed result; validation failures `throw`.
322
- - `Deno.env.get("X")` was replaced with config/options objects
323
- (`AIConfig`, `DataConfig`, per-call `apiKey`/`walletKey`) that fall back to
324
- `process.env` (`OPENAI_API_KEY`, `XAI_API_KEY`, `BLOCKRUN_WALLET_KEY`,
325
- `DOME_API_KEY`, `DFLOW_API_KEY`). No secrets are hardcoded.
326
- - Remote (`https://...`) and `npm:` import specifiers were replaced with normal
327
- package imports (`ethers`). The global `fetch` (Node 18+) is used throughout.
328
- - Prompt text and analysis logic are preserved verbatim.
329
-
330
- #### Not ported (yet)
331
-
332
- Intentionally left out of the core port — noted for future work: the Next.js
333
- `terminal/` frontend, the Python alpha-hunter examples, the **pay.sh** payment
334
- serving flows, **Irys** verifiable-agent storage, wallet-tracking websockets, and
335
- on-chain order execution (the mapper produces order parameters, but placing
336
- orders is out of scope). The BlockRun client *is* ported (it only needs `ethers`
337
- + `fetch`), but its on-chain micropayment flow is untested in this environment.
379
+ Multi-agent analysis over Polymarket and Kalshi, refactored from Deno/Supabase
380
+ edge functions into plain typed async functions (MIT, see
381
+ `src/prediction-markets/LICENSE`):
382
+
383
+ - **AI clients** — OpenAI, Grok/xAI and BlockRun (x402 micropayments), plus the
384
+ analysis prompt builders.
385
+ - **Market data** — Kalshi via DFlow and Polymarket via Dome/Gamma.
386
+ - `runEventAnalysisAgent` — analyzes an event's markets for alpha and a
387
+ predicted winner.
388
+ - `runBookmakerAgent` — aggregates several agent analyses into one assessment.
389
+ - `runMapperAgent` — turns an analysis into Polymarket order parameters.
390
+ - `findArbitrage` — finds the same event on the other venue and checks whether
391
+ it is mispriced across venues.
392
+ - `getEvents` — resolves a Polymarket/Kalshi URL into its raw markets.
393
+
394
+ Keys are read from options, falling back to `OPENAI_API_KEY`, `XAI_API_KEY`,
395
+ `BLOCKRUN_WALLET_KEY`, `DOME_API_KEY` and `DFLOW_API_KEY`.
338
396
 
339
397
  ### Trading Agents
340
398
 
@@ -415,12 +473,6 @@ ALPACA_SECRET=your_secret_here
415
473
  # OpenAI for AI-powered analysis
416
474
  OPENAI_API_KEY=your_openai_key
417
475
 
418
- # PredictOS: prediction-market analysis and data
419
- XAI_API_KEY=your_xai_key # Grok/xAI
420
- BLOCKRUN_WALLET_KEY=your_wallet_key # BlockRun x402 micropayments
421
- DOME_API_KEY=your_dome_key # Polymarket market data
422
- DFLOW_API_KEY=your_dflow_key # Kalshi market data
423
-
424
476
  # Optional: Alternative LLM providers
425
477
  ANTHROPIC_API_KEY=your_anthropic_key
426
478
  GOOGLE_API_KEY=your_google_key
@@ -533,15 +585,7 @@ See the `/examples` directory for complete working examples:
533
585
 
534
586
  - [GitHub Repository](https://github.com/vtempest/ai-broker-investment-agent)
535
587
  - [Documentation](https://invest.vtempest.com/docs)
536
- - [Agent skill](../../skills/investing/SKILL.md)
537
588
  - [Examples](./examples)
538
589
 
539
- ## Credits
540
-
541
- The `predictos` module is a derivative work of
542
- [PredictOS](https://github.com/PredictionXBT/PredictOS) — all original design and
543
- logic © 2025 PredictionXBT, MIT licensed. See [`NOTICE`](./NOTICE) and
544
- [`LICENSE-PredictOS-MIT`](./LICENSE-PredictOS-MIT).
545
-
546
590
  - [GitHub Issues](https://github.com/vtempest/ai-broker-investment-agent/issues)
547
591
  - [Documentation](https://invest.vtempest.com/docs)
@@ -0,0 +1,144 @@
1
+ # Third-party notices
2
+
3
+ Vendored reference commit: `b877b41`. Paths below are relative to `third-party-trading-bots/`. Runtime code does not import those projects. These notices are included in the published package through its `files` list.
4
+
5
+ ## PyKalshi momentum and market mapping
6
+
7
+ Existing momentum core and strategy-signals momentum/market adapters.
8
+
9
+ - `kalshi-bot-api/examples/momentum_bot.py` — git blob `1cb14aa8719543a2a6b6bdb75f8e694125353191`.
10
+ - `kalshi-bot-api/pykalshi/models.py` — git blob `67db90124f6dde4e08f0194a10811a3f3562fb99`.
11
+ - `kalshi-bot-api/LICENSE` — git blob `c13f99117e366fd54b4c097b67ca34dfb1fb8ba1`.
12
+
13
+ ```text
14
+ MIT License
15
+
16
+ Copyright (c) 2024
17
+
18
+ Permission is hereby granted, free of charge, to any person obtaining a copy
19
+ of this software and associated documentation files (the "Software"), to deal
20
+ in the Software without restriction, including without limitation the rights
21
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
22
+ copies of the Software, and to permit persons to whom the Software is
23
+ furnished to do so, subject to the following conditions:
24
+
25
+ The above copyright notice and this permission notice shall be included in all
26
+ copies or substantial portions of the Software.
27
+
28
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
31
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
33
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34
+ SOFTWARE.
35
+ ```
36
+
37
+ ## Kalshi Vibe forecast math and guards
38
+
39
+ Translated Kelly/sizing and entry-gate math in strategy-signals/sources/kalshi-vibe*.ts.
40
+
41
+ - `Kalshi-Vibe-Bot/backend/src/decision_engine/strategy_math.py` — git blob `e02a3251a7ee6f63097eba77f4b6a2060cdee58e`.
42
+ - `Kalshi-Vibe-Bot/backend/src/decision_engine/strategy_gates.py` — git blob `191d0af680d92b3293cf96873692309f8e2bbec4`.
43
+ - `Kalshi-Vibe-Bot/LICENSE` — git blob `c61ca81ca0f2dc1120f2d4b96bc43f4ea19619b0`.
44
+
45
+ ```text
46
+ MIT License
47
+
48
+ Copyright (c) 2026 K-Jeez
49
+
50
+ Permission is hereby granted, free of charge, to any person obtaining a copy
51
+ of this software and associated documentation files (the "Software"), to deal
52
+ in the Software without restriction, including without limitation the rights
53
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
54
+ copies of the Software, and to permit persons to whom the Software is
55
+ furnished to do so, subject to the following conditions:
56
+
57
+ The above copyright notice and this permission notice shall be included in all
58
+ copies or substantial portions of the Software.
59
+
60
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
61
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
62
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
63
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
64
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
65
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
66
+ SOFTWARE.
67
+ ```
68
+
69
+ ## pmxt market model mapping
70
+
71
+ Public market-model adapter in strategy-signals/venues/pmxt-venue-mapping.ts; no SDK runtime imported.
72
+
73
+ - `polymarket-exec-api/core/src/types.ts` — git blob `e291f5161d39332791b13bea7ee371cc96eb9f93`.
74
+ - `polymarket-exec-api/LICENSE` — git blob `ebdb1ded0878ebcb1820eece701c3561ab15ab17`.
75
+
76
+ ```text
77
+ MIT License
78
+
79
+ Copyright (c) 2026 pmxt.dev
80
+
81
+ Permission is hereby granted, free of charge, to any person obtaining a copy
82
+ of this software and associated documentation files (the "Software"), to deal
83
+ in the Software without restriction, including without limitation the rights
84
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
85
+ copies of the Software, and to permit persons to whom the Software is
86
+ furnished to do so, subject to the following conditions:
87
+
88
+ The above copyright notice and this permission notice shall be included in all
89
+ copies or substantial portions of the Software.
90
+
91
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
92
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
93
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
94
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
95
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
96
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
97
+ SOFTWARE.
98
+ ```
99
+
100
+ ## Prediction Markets Trading Bot Toolkits sizing
101
+
102
+ Translated copy-trade sizing in prediction-markets/strategies/copy-trade-sizing.ts and its source adapter.
103
+
104
+ - `Prediction-Markets-Trading-Bot-Toolkits/src/service/strategy.rs` — git blob `2d6cd20831c2bbeed88634255b707802681dc589`.
105
+ - `Prediction-Markets-Trading-Bot-Toolkits/LICENSE` — git blob `ba609116a40941e8b9d2b177a823c1cd4687d5a0`.
106
+
107
+ ```text
108
+ MIT License
109
+
110
+ Copyright (c) 2025 HarrierOnChain
111
+
112
+ Permission is hereby granted, free of charge, to any person obtaining a copy
113
+ of this software and associated documentation files (the "Software"), to deal
114
+ in the Software without restriction, including without limitation the rights
115
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
116
+ copies of the Software, and to permit persons to whom the Software is
117
+ furnished to do so, subject to the following conditions:
118
+
119
+ The above copyright notice and this permission notice shall be included in all
120
+ copies or substantial portions of the Software.
121
+
122
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
123
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
124
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
125
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
126
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
127
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
128
+ SOFTWARE.
129
+ ```
130
+
131
+ ## Independently implemented contributions
132
+
133
+ The following implementations use observed behavior or public input/output contracts as references. No vendored source code was translated into them because the vendored notice evidence was incomplete. Reference hashes identify the behavior reviewed; they do not establish a license grant.
134
+
135
+ | Contribution | Reference at b877b41 | Reference blob | Notice evidence / approach |
136
+ |---|---|---|---|
137
+ | Gabagool sequential portfolio targets | `poly-bot-gabagool/src/order-builder/copytrade.ts` | `012cc0183270f8887c94842e436aa002c76da43f` | ISC metadata, no complete notice; independent strategy and adapter |
138
+ | BTC fusion | `Polymarket-BTC-15-Minute-Trading-Bot/core/strategy_brain/fusion_engine/signal_fusion.py` | `a0ea422f6a3c900f014551e9af45d4d46658b899` | MIT badge without holder/notice; independent fusion and guards |
139
+ | Hedge-fund technicals | `ai-hedge-fund/src/agents/technicals.py` | `8bcdbd9edd042bc4902ef973cc67c334e0842720` | No matching backend notice; independent mathematical implementation, pinned against original Python reference outputs |
140
+ | Red flags | `debate-agents/red_flag_detector.py` | `b4d95312305ceffe1802a7f41a9ed7600f291df6` | No license evidence; independent typed advisory rules |
141
+ | Survival posture | `poly-bot-openclaw/core/survival/SurvivalManager.js` | `16ecbf7a2d87c67e2d12313b9413eb1dd166e746` | ISC metadata without complete notice; independent state transitions; numeric size multipliers are new demo policy |
142
+ | OpenBB historical bars | `fin-data-api-python/app/provider/standard_models/equity_historical.py` | `c7f6d433559711365a555a71e33ff00991cb0fa4` | No matching complete notice; independent public data-contract mapping |
143
+
144
+ Upstream full applications, providers, schedulers, wallets and services are not bundled through these integrations. The package's own license declaration remains as defined in package.json.