@keystrokehq/polygon_io 0.1.0

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 (514) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/get-all-tickers.cjs +52 -0
  7. package/dist/actions/get-all-tickers.cjs.map +1 -0
  8. package/dist/actions/get-all-tickers.d.cts +9 -0
  9. package/dist/actions/get-all-tickers.d.cts.map +1 -0
  10. package/dist/actions/get-all-tickers.d.mts +9 -0
  11. package/dist/actions/get-all-tickers.d.mts.map +1 -0
  12. package/dist/actions/get-all-tickers.mjs +51 -0
  13. package/dist/actions/get-all-tickers.mjs.map +1 -0
  14. package/dist/actions/get-condition-codes.cjs +41 -0
  15. package/dist/actions/get-condition-codes.cjs.map +1 -0
  16. package/dist/actions/get-condition-codes.d.cts +9 -0
  17. package/dist/actions/get-condition-codes.d.cts.map +1 -0
  18. package/dist/actions/get-condition-codes.d.mts +9 -0
  19. package/dist/actions/get-condition-codes.d.mts.map +1 -0
  20. package/dist/actions/get-condition-codes.mjs +40 -0
  21. package/dist/actions/get-condition-codes.mjs.map +1 -0
  22. package/dist/actions/get-crypto-ema.cjs +70 -0
  23. package/dist/actions/get-crypto-ema.cjs.map +1 -0
  24. package/dist/actions/get-crypto-ema.d.cts +9 -0
  25. package/dist/actions/get-crypto-ema.d.cts.map +1 -0
  26. package/dist/actions/get-crypto-ema.d.mts +9 -0
  27. package/dist/actions/get-crypto-ema.d.mts.map +1 -0
  28. package/dist/actions/get-crypto-ema.mjs +69 -0
  29. package/dist/actions/get-crypto-ema.mjs.map +1 -0
  30. package/dist/actions/get-crypto-macd.cjs +49 -0
  31. package/dist/actions/get-crypto-macd.cjs.map +1 -0
  32. package/dist/actions/get-crypto-macd.d.cts +9 -0
  33. package/dist/actions/get-crypto-macd.d.cts.map +1 -0
  34. package/dist/actions/get-crypto-macd.d.mts +9 -0
  35. package/dist/actions/get-crypto-macd.d.mts.map +1 -0
  36. package/dist/actions/get-crypto-macd.mjs +48 -0
  37. package/dist/actions/get-crypto-macd.mjs.map +1 -0
  38. package/dist/actions/get-crypto-open-close.cjs +37 -0
  39. package/dist/actions/get-crypto-open-close.cjs.map +1 -0
  40. package/dist/actions/get-crypto-open-close.d.cts +9 -0
  41. package/dist/actions/get-crypto-open-close.d.cts.map +1 -0
  42. package/dist/actions/get-crypto-open-close.d.mts +9 -0
  43. package/dist/actions/get-crypto-open-close.d.mts.map +1 -0
  44. package/dist/actions/get-crypto-open-close.mjs +36 -0
  45. package/dist/actions/get-crypto-open-close.mjs.map +1 -0
  46. package/dist/actions/get-crypto-rsi.cjs +57 -0
  47. package/dist/actions/get-crypto-rsi.cjs.map +1 -0
  48. package/dist/actions/get-crypto-rsi.d.cts +9 -0
  49. package/dist/actions/get-crypto-rsi.d.cts.map +1 -0
  50. package/dist/actions/get-crypto-rsi.d.mts +9 -0
  51. package/dist/actions/get-crypto-rsi.d.mts.map +1 -0
  52. package/dist/actions/get-crypto-rsi.mjs +56 -0
  53. package/dist/actions/get-crypto-rsi.mjs.map +1 -0
  54. package/dist/actions/get-crypto-sma.cjs +57 -0
  55. package/dist/actions/get-crypto-sma.cjs.map +1 -0
  56. package/dist/actions/get-crypto-sma.d.cts +9 -0
  57. package/dist/actions/get-crypto-sma.d.cts.map +1 -0
  58. package/dist/actions/get-crypto-sma.d.mts +9 -0
  59. package/dist/actions/get-crypto-sma.d.mts.map +1 -0
  60. package/dist/actions/get-crypto-sma.mjs +56 -0
  61. package/dist/actions/get-crypto-sma.mjs.map +1 -0
  62. package/dist/actions/get-daily-open-close.cjs +31 -0
  63. package/dist/actions/get-daily-open-close.cjs.map +1 -0
  64. package/dist/actions/get-daily-open-close.d.cts +9 -0
  65. package/dist/actions/get-daily-open-close.d.cts.map +1 -0
  66. package/dist/actions/get-daily-open-close.d.mts +9 -0
  67. package/dist/actions/get-daily-open-close.d.mts.map +1 -0
  68. package/dist/actions/get-daily-open-close.mjs +28 -0
  69. package/dist/actions/get-daily-open-close.mjs.map +1 -0
  70. package/dist/actions/get-dividends.cjs +58 -0
  71. package/dist/actions/get-dividends.cjs.map +1 -0
  72. package/dist/actions/get-dividends.d.cts +9 -0
  73. package/dist/actions/get-dividends.d.cts.map +1 -0
  74. package/dist/actions/get-dividends.d.mts +9 -0
  75. package/dist/actions/get-dividends.d.mts.map +1 -0
  76. package/dist/actions/get-dividends.mjs +57 -0
  77. package/dist/actions/get-dividends.mjs.map +1 -0
  78. package/dist/actions/get-economy-inflation2.cjs +40 -0
  79. package/dist/actions/get-economy-inflation2.cjs.map +1 -0
  80. package/dist/actions/get-economy-inflation2.d.cts +9 -0
  81. package/dist/actions/get-economy-inflation2.d.cts.map +1 -0
  82. package/dist/actions/get-economy-inflation2.d.mts +9 -0
  83. package/dist/actions/get-economy-inflation2.d.mts.map +1 -0
  84. package/dist/actions/get-economy-inflation2.mjs +39 -0
  85. package/dist/actions/get-economy-inflation2.mjs.map +1 -0
  86. package/dist/actions/get-ema.cjs +58 -0
  87. package/dist/actions/get-ema.cjs.map +1 -0
  88. package/dist/actions/get-ema.d.cts +9 -0
  89. package/dist/actions/get-ema.d.cts.map +1 -0
  90. package/dist/actions/get-ema.d.mts +9 -0
  91. package/dist/actions/get-ema.d.mts.map +1 -0
  92. package/dist/actions/get-ema.mjs +57 -0
  93. package/dist/actions/get-ema.mjs.map +1 -0
  94. package/dist/actions/get-filing-file.cjs +24 -0
  95. package/dist/actions/get-filing-file.cjs.map +1 -0
  96. package/dist/actions/get-filing-file.d.cts +9 -0
  97. package/dist/actions/get-filing-file.d.cts.map +1 -0
  98. package/dist/actions/get-filing-file.d.mts +9 -0
  99. package/dist/actions/get-filing-file.d.mts.map +1 -0
  100. package/dist/actions/get-filing-file.mjs +23 -0
  101. package/dist/actions/get-filing-file.mjs.map +1 -0
  102. package/dist/actions/get-filing.cjs +38 -0
  103. package/dist/actions/get-filing.cjs.map +1 -0
  104. package/dist/actions/get-filing.d.cts +9 -0
  105. package/dist/actions/get-filing.d.cts.map +1 -0
  106. package/dist/actions/get-filing.d.mts +9 -0
  107. package/dist/actions/get-filing.d.mts.map +1 -0
  108. package/dist/actions/get-filing.mjs +37 -0
  109. package/dist/actions/get-filing.mjs.map +1 -0
  110. package/dist/actions/get-forex-ema.cjs +63 -0
  111. package/dist/actions/get-forex-ema.cjs.map +1 -0
  112. package/dist/actions/get-forex-ema.d.cts +9 -0
  113. package/dist/actions/get-forex-ema.d.cts.map +1 -0
  114. package/dist/actions/get-forex-ema.d.mts +9 -0
  115. package/dist/actions/get-forex-ema.d.mts.map +1 -0
  116. package/dist/actions/get-forex-ema.mjs +62 -0
  117. package/dist/actions/get-forex-ema.mjs.map +1 -0
  118. package/dist/actions/get-forex-macd.cjs +53 -0
  119. package/dist/actions/get-forex-macd.cjs.map +1 -0
  120. package/dist/actions/get-forex-macd.d.cts +9 -0
  121. package/dist/actions/get-forex-macd.d.cts.map +1 -0
  122. package/dist/actions/get-forex-macd.d.mts +9 -0
  123. package/dist/actions/get-forex-macd.d.mts.map +1 -0
  124. package/dist/actions/get-forex-macd.mjs +52 -0
  125. package/dist/actions/get-forex-macd.mjs.map +1 -0
  126. package/dist/actions/get-forex-real-time-currency-conversion.cjs +36 -0
  127. package/dist/actions/get-forex-real-time-currency-conversion.cjs.map +1 -0
  128. package/dist/actions/get-forex-real-time-currency-conversion.d.cts +9 -0
  129. package/dist/actions/get-forex-real-time-currency-conversion.d.cts.map +1 -0
  130. package/dist/actions/get-forex-real-time-currency-conversion.d.mts +9 -0
  131. package/dist/actions/get-forex-real-time-currency-conversion.d.mts.map +1 -0
  132. package/dist/actions/get-forex-real-time-currency-conversion.mjs +35 -0
  133. package/dist/actions/get-forex-real-time-currency-conversion.mjs.map +1 -0
  134. package/dist/actions/get-forex-rsi.cjs +57 -0
  135. package/dist/actions/get-forex-rsi.cjs.map +1 -0
  136. package/dist/actions/get-forex-rsi.d.cts +9 -0
  137. package/dist/actions/get-forex-rsi.d.cts.map +1 -0
  138. package/dist/actions/get-forex-rsi.d.mts +9 -0
  139. package/dist/actions/get-forex-rsi.d.mts.map +1 -0
  140. package/dist/actions/get-forex-rsi.mjs +56 -0
  141. package/dist/actions/get-forex-rsi.mjs.map +1 -0
  142. package/dist/actions/get-forex-sma.cjs +70 -0
  143. package/dist/actions/get-forex-sma.cjs.map +1 -0
  144. package/dist/actions/get-forex-sma.d.cts +9 -0
  145. package/dist/actions/get-forex-sma.d.cts.map +1 -0
  146. package/dist/actions/get-forex-sma.d.mts +9 -0
  147. package/dist/actions/get-forex-sma.d.mts.map +1 -0
  148. package/dist/actions/get-forex-sma.mjs +69 -0
  149. package/dist/actions/get-forex-sma.mjs.map +1 -0
  150. package/dist/actions/get-futures-quotes.cjs +42 -0
  151. package/dist/actions/get-futures-quotes.cjs.map +1 -0
  152. package/dist/actions/get-futures-quotes.d.cts +9 -0
  153. package/dist/actions/get-futures-quotes.d.cts.map +1 -0
  154. package/dist/actions/get-futures-quotes.d.mts +9 -0
  155. package/dist/actions/get-futures-quotes.d.mts.map +1 -0
  156. package/dist/actions/get-futures-quotes.mjs +41 -0
  157. package/dist/actions/get-futures-quotes.mjs.map +1 -0
  158. package/dist/actions/get-grouped-daily.cjs +44 -0
  159. package/dist/actions/get-grouped-daily.cjs.map +1 -0
  160. package/dist/actions/get-grouped-daily.d.cts +9 -0
  161. package/dist/actions/get-grouped-daily.d.cts.map +1 -0
  162. package/dist/actions/get-grouped-daily.d.mts +9 -0
  163. package/dist/actions/get-grouped-daily.d.mts.map +1 -0
  164. package/dist/actions/get-grouped-daily.mjs +43 -0
  165. package/dist/actions/get-grouped-daily.mjs.map +1 -0
  166. package/dist/actions/get-historic-forex-ticks.cjs +33 -0
  167. package/dist/actions/get-historic-forex-ticks.cjs.map +1 -0
  168. package/dist/actions/get-historic-forex-ticks.d.cts +9 -0
  169. package/dist/actions/get-historic-forex-ticks.d.cts.map +1 -0
  170. package/dist/actions/get-historic-forex-ticks.d.mts +9 -0
  171. package/dist/actions/get-historic-forex-ticks.d.mts.map +1 -0
  172. package/dist/actions/get-historic-forex-ticks.mjs +32 -0
  173. package/dist/actions/get-historic-forex-ticks.mjs.map +1 -0
  174. package/dist/actions/get-inflation-expectations.cjs +41 -0
  175. package/dist/actions/get-inflation-expectations.cjs.map +1 -0
  176. package/dist/actions/get-inflation-expectations.d.cts +9 -0
  177. package/dist/actions/get-inflation-expectations.d.cts.map +1 -0
  178. package/dist/actions/get-inflation-expectations.d.mts +9 -0
  179. package/dist/actions/get-inflation-expectations.d.mts.map +1 -0
  180. package/dist/actions/get-inflation-expectations.mjs +40 -0
  181. package/dist/actions/get-inflation-expectations.mjs.map +1 -0
  182. package/dist/actions/get-ipo-data.cjs +40 -0
  183. package/dist/actions/get-ipo-data.cjs.map +1 -0
  184. package/dist/actions/get-ipo-data.d.cts +9 -0
  185. package/dist/actions/get-ipo-data.d.cts.map +1 -0
  186. package/dist/actions/get-ipo-data.d.mts +9 -0
  187. package/dist/actions/get-ipo-data.d.mts.map +1 -0
  188. package/dist/actions/get-ipo-data.mjs +39 -0
  189. package/dist/actions/get-ipo-data.mjs.map +1 -0
  190. package/dist/actions/get-labor-market.cjs +38 -0
  191. package/dist/actions/get-labor-market.cjs.map +1 -0
  192. package/dist/actions/get-labor-market.d.cts +9 -0
  193. package/dist/actions/get-labor-market.d.cts.map +1 -0
  194. package/dist/actions/get-labor-market.d.mts +9 -0
  195. package/dist/actions/get-labor-market.d.mts.map +1 -0
  196. package/dist/actions/get-labor-market.mjs +37 -0
  197. package/dist/actions/get-labor-market.mjs.map +1 -0
  198. package/dist/actions/get-macd.cjs +49 -0
  199. package/dist/actions/get-macd.cjs.map +1 -0
  200. package/dist/actions/get-macd.d.cts +9 -0
  201. package/dist/actions/get-macd.d.cts.map +1 -0
  202. package/dist/actions/get-macd.d.mts +9 -0
  203. package/dist/actions/get-macd.d.mts.map +1 -0
  204. package/dist/actions/get-macd.mjs +48 -0
  205. package/dist/actions/get-macd.mjs.map +1 -0
  206. package/dist/actions/get-market-holidays.cjs +24 -0
  207. package/dist/actions/get-market-holidays.cjs.map +1 -0
  208. package/dist/actions/get-market-holidays.d.cts +9 -0
  209. package/dist/actions/get-market-holidays.d.cts.map +1 -0
  210. package/dist/actions/get-market-holidays.d.mts +9 -0
  211. package/dist/actions/get-market-holidays.d.mts.map +1 -0
  212. package/dist/actions/get-market-holidays.mjs +23 -0
  213. package/dist/actions/get-market-holidays.mjs.map +1 -0
  214. package/dist/actions/get-market-status.cjs +24 -0
  215. package/dist/actions/get-market-status.cjs.map +1 -0
  216. package/dist/actions/get-market-status.d.cts +9 -0
  217. package/dist/actions/get-market-status.d.cts.map +1 -0
  218. package/dist/actions/get-market-status.d.mts +9 -0
  219. package/dist/actions/get-market-status.d.mts.map +1 -0
  220. package/dist/actions/get-market-status.mjs +21 -0
  221. package/dist/actions/get-market-status.mjs.map +1 -0
  222. package/dist/actions/get-news.cjs +48 -0
  223. package/dist/actions/get-news.cjs.map +1 -0
  224. package/dist/actions/get-news.d.cts +9 -0
  225. package/dist/actions/get-news.d.cts.map +1 -0
  226. package/dist/actions/get-news.d.mts +9 -0
  227. package/dist/actions/get-news.d.mts.map +1 -0
  228. package/dist/actions/get-news.mjs +47 -0
  229. package/dist/actions/get-news.mjs.map +1 -0
  230. package/dist/actions/get-options-contract-overview.cjs +41 -0
  231. package/dist/actions/get-options-contract-overview.cjs.map +1 -0
  232. package/dist/actions/get-options-contract-overview.d.cts +9 -0
  233. package/dist/actions/get-options-contract-overview.d.cts.map +1 -0
  234. package/dist/actions/get-options-contract-overview.d.mts +9 -0
  235. package/dist/actions/get-options-contract-overview.d.mts.map +1 -0
  236. package/dist/actions/get-options-contract-overview.mjs +40 -0
  237. package/dist/actions/get-options-contract-overview.mjs.map +1 -0
  238. package/dist/actions/get-options-ema.cjs +62 -0
  239. package/dist/actions/get-options-ema.cjs.map +1 -0
  240. package/dist/actions/get-options-ema.d.cts +9 -0
  241. package/dist/actions/get-options-ema.d.cts.map +1 -0
  242. package/dist/actions/get-options-ema.d.mts +9 -0
  243. package/dist/actions/get-options-ema.d.mts.map +1 -0
  244. package/dist/actions/get-options-ema.mjs +61 -0
  245. package/dist/actions/get-options-ema.mjs.map +1 -0
  246. package/dist/actions/get-options-macd.cjs +49 -0
  247. package/dist/actions/get-options-macd.cjs.map +1 -0
  248. package/dist/actions/get-options-macd.d.cts +9 -0
  249. package/dist/actions/get-options-macd.d.cts.map +1 -0
  250. package/dist/actions/get-options-macd.d.mts +9 -0
  251. package/dist/actions/get-options-macd.d.mts.map +1 -0
  252. package/dist/actions/get-options-macd.mjs +48 -0
  253. package/dist/actions/get-options-macd.mjs.map +1 -0
  254. package/dist/actions/get-options-rsi.cjs +57 -0
  255. package/dist/actions/get-options-rsi.cjs.map +1 -0
  256. package/dist/actions/get-options-rsi.d.cts +9 -0
  257. package/dist/actions/get-options-rsi.d.cts.map +1 -0
  258. package/dist/actions/get-options-rsi.d.mts +9 -0
  259. package/dist/actions/get-options-rsi.d.mts.map +1 -0
  260. package/dist/actions/get-options-rsi.mjs +56 -0
  261. package/dist/actions/get-options-rsi.mjs.map +1 -0
  262. package/dist/actions/get-options-sma.cjs +71 -0
  263. package/dist/actions/get-options-sma.cjs.map +1 -0
  264. package/dist/actions/get-options-sma.d.cts +9 -0
  265. package/dist/actions/get-options-sma.d.cts.map +1 -0
  266. package/dist/actions/get-options-sma.d.mts +9 -0
  267. package/dist/actions/get-options-sma.d.mts.map +1 -0
  268. package/dist/actions/get-options-sma.mjs +70 -0
  269. package/dist/actions/get-options-sma.mjs.map +1 -0
  270. package/dist/actions/get-related-companies.cjs +22 -0
  271. package/dist/actions/get-related-companies.cjs.map +1 -0
  272. package/dist/actions/get-related-companies.d.cts +9 -0
  273. package/dist/actions/get-related-companies.d.cts.map +1 -0
  274. package/dist/actions/get-related-companies.d.mts +9 -0
  275. package/dist/actions/get-related-companies.d.mts.map +1 -0
  276. package/dist/actions/get-related-companies.mjs +21 -0
  277. package/dist/actions/get-related-companies.mjs.map +1 -0
  278. package/dist/actions/get-rsi.cjs +45 -0
  279. package/dist/actions/get-rsi.cjs.map +1 -0
  280. package/dist/actions/get-rsi.d.cts +9 -0
  281. package/dist/actions/get-rsi.d.cts.map +1 -0
  282. package/dist/actions/get-rsi.d.mts +9 -0
  283. package/dist/actions/get-rsi.d.mts.map +1 -0
  284. package/dist/actions/get-rsi.mjs +44 -0
  285. package/dist/actions/get-rsi.mjs.map +1 -0
  286. package/dist/actions/get-sma.cjs +45 -0
  287. package/dist/actions/get-sma.cjs.map +1 -0
  288. package/dist/actions/get-sma.d.cts +9 -0
  289. package/dist/actions/get-sma.d.cts.map +1 -0
  290. package/dist/actions/get-sma.d.mts +9 -0
  291. package/dist/actions/get-sma.d.mts.map +1 -0
  292. package/dist/actions/get-sma.mjs +44 -0
  293. package/dist/actions/get-sma.mjs.map +1 -0
  294. package/dist/actions/get-splits.cjs +39 -0
  295. package/dist/actions/get-splits.cjs.map +1 -0
  296. package/dist/actions/get-splits.d.cts +9 -0
  297. package/dist/actions/get-splits.d.cts.map +1 -0
  298. package/dist/actions/get-splits.d.mts +9 -0
  299. package/dist/actions/get-splits.d.mts.map +1 -0
  300. package/dist/actions/get-splits.mjs +38 -0
  301. package/dist/actions/get-splits.mjs.map +1 -0
  302. package/dist/actions/get-stocks-custom-bars.cjs +50 -0
  303. package/dist/actions/get-stocks-custom-bars.cjs.map +1 -0
  304. package/dist/actions/get-stocks-custom-bars.d.cts +9 -0
  305. package/dist/actions/get-stocks-custom-bars.d.cts.map +1 -0
  306. package/dist/actions/get-stocks-custom-bars.d.mts +9 -0
  307. package/dist/actions/get-stocks-custom-bars.d.mts.map +1 -0
  308. package/dist/actions/get-stocks-custom-bars.mjs +49 -0
  309. package/dist/actions/get-stocks-custom-bars.mjs.map +1 -0
  310. package/dist/actions/get-stocks-daily-market-summary.cjs +39 -0
  311. package/dist/actions/get-stocks-daily-market-summary.cjs.map +1 -0
  312. package/dist/actions/get-stocks-daily-market-summary.d.cts +9 -0
  313. package/dist/actions/get-stocks-daily-market-summary.d.cts.map +1 -0
  314. package/dist/actions/get-stocks-daily-market-summary.d.mts +9 -0
  315. package/dist/actions/get-stocks-daily-market-summary.d.mts.map +1 -0
  316. package/dist/actions/get-stocks-daily-market-summary.mjs +38 -0
  317. package/dist/actions/get-stocks-daily-market-summary.mjs.map +1 -0
  318. package/dist/actions/get-stocks-filings-risk-factors.cjs +51 -0
  319. package/dist/actions/get-stocks-filings-risk-factors.cjs.map +1 -0
  320. package/dist/actions/get-stocks-filings-risk-factors.d.cts +9 -0
  321. package/dist/actions/get-stocks-filings-risk-factors.d.cts.map +1 -0
  322. package/dist/actions/get-stocks-filings-risk-factors.d.mts +9 -0
  323. package/dist/actions/get-stocks-filings-risk-factors.d.mts.map +1 -0
  324. package/dist/actions/get-stocks-filings-risk-factors.mjs +50 -0
  325. package/dist/actions/get-stocks-filings-risk-factors.mjs.map +1 -0
  326. package/dist/actions/get-stocks-filings-sections.cjs +57 -0
  327. package/dist/actions/get-stocks-filings-sections.cjs.map +1 -0
  328. package/dist/actions/get-stocks-filings-sections.d.cts +9 -0
  329. package/dist/actions/get-stocks-filings-sections.d.cts.map +1 -0
  330. package/dist/actions/get-stocks-filings-sections.d.mts +9 -0
  331. package/dist/actions/get-stocks-filings-sections.d.mts.map +1 -0
  332. package/dist/actions/get-stocks-filings-sections.mjs +56 -0
  333. package/dist/actions/get-stocks-filings-sections.mjs.map +1 -0
  334. package/dist/actions/get-stocks-free-float.cjs +41 -0
  335. package/dist/actions/get-stocks-free-float.cjs.map +1 -0
  336. package/dist/actions/get-stocks-free-float.d.cts +9 -0
  337. package/dist/actions/get-stocks-free-float.d.cts.map +1 -0
  338. package/dist/actions/get-stocks-free-float.d.mts +9 -0
  339. package/dist/actions/get-stocks-free-float.d.mts.map +1 -0
  340. package/dist/actions/get-stocks-free-float.mjs +40 -0
  341. package/dist/actions/get-stocks-free-float.mjs.map +1 -0
  342. package/dist/actions/get-stocks-full-market-snapshot.cjs +68 -0
  343. package/dist/actions/get-stocks-full-market-snapshot.cjs.map +1 -0
  344. package/dist/actions/get-stocks-full-market-snapshot.d.cts +9 -0
  345. package/dist/actions/get-stocks-full-market-snapshot.d.cts.map +1 -0
  346. package/dist/actions/get-stocks-full-market-snapshot.d.mts +9 -0
  347. package/dist/actions/get-stocks-full-market-snapshot.d.mts.map +1 -0
  348. package/dist/actions/get-stocks-full-market-snapshot.mjs +67 -0
  349. package/dist/actions/get-stocks-full-market-snapshot.mjs.map +1 -0
  350. package/dist/actions/get-stocks-income-statements.cjs +92 -0
  351. package/dist/actions/get-stocks-income-statements.cjs.map +1 -0
  352. package/dist/actions/get-stocks-income-statements.d.cts +9 -0
  353. package/dist/actions/get-stocks-income-statements.d.cts.map +1 -0
  354. package/dist/actions/get-stocks-income-statements.d.mts +9 -0
  355. package/dist/actions/get-stocks-income-statements.d.mts.map +1 -0
  356. package/dist/actions/get-stocks-income-statements.mjs +91 -0
  357. package/dist/actions/get-stocks-income-statements.mjs.map +1 -0
  358. package/dist/actions/get-stocks-previous-day-bar.cjs +38 -0
  359. package/dist/actions/get-stocks-previous-day-bar.cjs.map +1 -0
  360. package/dist/actions/get-stocks-previous-day-bar.d.cts +9 -0
  361. package/dist/actions/get-stocks-previous-day-bar.d.cts.map +1 -0
  362. package/dist/actions/get-stocks-previous-day-bar.d.mts +9 -0
  363. package/dist/actions/get-stocks-previous-day-bar.d.mts.map +1 -0
  364. package/dist/actions/get-stocks-previous-day-bar.mjs +37 -0
  365. package/dist/actions/get-stocks-previous-day-bar.mjs.map +1 -0
  366. package/dist/actions/get-stocks-risk-factor-taxonomies.cjs +54 -0
  367. package/dist/actions/get-stocks-risk-factor-taxonomies.cjs.map +1 -0
  368. package/dist/actions/get-stocks-risk-factor-taxonomies.d.cts +9 -0
  369. package/dist/actions/get-stocks-risk-factor-taxonomies.d.cts.map +1 -0
  370. package/dist/actions/get-stocks-risk-factor-taxonomies.d.mts +9 -0
  371. package/dist/actions/get-stocks-risk-factor-taxonomies.d.mts.map +1 -0
  372. package/dist/actions/get-stocks-risk-factor-taxonomies.mjs +53 -0
  373. package/dist/actions/get-stocks-risk-factor-taxonomies.mjs.map +1 -0
  374. package/dist/actions/get-stocks-v1-dividends.cjs +62 -0
  375. package/dist/actions/get-stocks-v1-dividends.cjs.map +1 -0
  376. package/dist/actions/get-stocks-v1-dividends.d.cts +9 -0
  377. package/dist/actions/get-stocks-v1-dividends.d.cts.map +1 -0
  378. package/dist/actions/get-stocks-v1-dividends.d.mts +9 -0
  379. package/dist/actions/get-stocks-v1-dividends.d.mts.map +1 -0
  380. package/dist/actions/get-stocks-v1-dividends.mjs +61 -0
  381. package/dist/actions/get-stocks-v1-dividends.mjs.map +1 -0
  382. package/dist/actions/get-stocks-v1-short-interest.cjs +55 -0
  383. package/dist/actions/get-stocks-v1-short-interest.cjs.map +1 -0
  384. package/dist/actions/get-stocks-v1-short-interest.d.cts +9 -0
  385. package/dist/actions/get-stocks-v1-short-interest.d.cts.map +1 -0
  386. package/dist/actions/get-stocks-v1-short-interest.d.mts +9 -0
  387. package/dist/actions/get-stocks-v1-short-interest.d.mts.map +1 -0
  388. package/dist/actions/get-stocks-v1-short-interest.mjs +54 -0
  389. package/dist/actions/get-stocks-v1-short-interest.mjs.map +1 -0
  390. package/dist/actions/get-stocks-v1-short-volume.cjs +65 -0
  391. package/dist/actions/get-stocks-v1-short-volume.cjs.map +1 -0
  392. package/dist/actions/get-stocks-v1-short-volume.d.cts +9 -0
  393. package/dist/actions/get-stocks-v1-short-volume.d.cts.map +1 -0
  394. package/dist/actions/get-stocks-v1-short-volume.d.mts +9 -0
  395. package/dist/actions/get-stocks-v1-short-volume.d.mts.map +1 -0
  396. package/dist/actions/get-stocks-v1-short-volume.mjs +64 -0
  397. package/dist/actions/get-stocks-v1-short-volume.mjs.map +1 -0
  398. package/dist/actions/get-stocks-v1-splits.cjs +50 -0
  399. package/dist/actions/get-stocks-v1-splits.cjs.map +1 -0
  400. package/dist/actions/get-stocks-v1-splits.d.cts +9 -0
  401. package/dist/actions/get-stocks-v1-splits.d.cts.map +1 -0
  402. package/dist/actions/get-stocks-v1-splits.d.mts +9 -0
  403. package/dist/actions/get-stocks-v1-splits.d.mts.map +1 -0
  404. package/dist/actions/get-stocks-v1-splits.mjs +49 -0
  405. package/dist/actions/get-stocks-v1-splits.mjs.map +1 -0
  406. package/dist/actions/get-ticker-events.cjs +33 -0
  407. package/dist/actions/get-ticker-events.cjs.map +1 -0
  408. package/dist/actions/get-ticker-events.d.cts +9 -0
  409. package/dist/actions/get-ticker-events.d.cts.map +1 -0
  410. package/dist/actions/get-ticker-events.d.mts +9 -0
  411. package/dist/actions/get-ticker-events.d.mts.map +1 -0
  412. package/dist/actions/get-ticker-events.mjs +32 -0
  413. package/dist/actions/get-ticker-events.mjs.map +1 -0
  414. package/dist/actions/get-ticker-overview.cjs +57 -0
  415. package/dist/actions/get-ticker-overview.cjs.map +1 -0
  416. package/dist/actions/get-ticker-overview.d.cts +9 -0
  417. package/dist/actions/get-ticker-overview.d.cts.map +1 -0
  418. package/dist/actions/get-ticker-overview.d.mts +9 -0
  419. package/dist/actions/get-ticker-overview.d.mts.map +1 -0
  420. package/dist/actions/get-ticker-overview.mjs +56 -0
  421. package/dist/actions/get-ticker-overview.mjs.map +1 -0
  422. package/dist/actions/get-ticker-types.cjs +24 -0
  423. package/dist/actions/get-ticker-types.cjs.map +1 -0
  424. package/dist/actions/get-ticker-types.d.cts +9 -0
  425. package/dist/actions/get-ticker-types.d.cts.map +1 -0
  426. package/dist/actions/get-ticker-types.d.mts +9 -0
  427. package/dist/actions/get-ticker-types.d.mts.map +1 -0
  428. package/dist/actions/get-ticker-types.mjs +23 -0
  429. package/dist/actions/get-ticker-types.mjs.map +1 -0
  430. package/dist/actions/get-treasury-yields.cjs +45 -0
  431. package/dist/actions/get-treasury-yields.cjs.map +1 -0
  432. package/dist/actions/get-treasury-yields.d.cts +9 -0
  433. package/dist/actions/get-treasury-yields.d.cts.map +1 -0
  434. package/dist/actions/get-treasury-yields.d.mts +9 -0
  435. package/dist/actions/get-treasury-yields.d.mts.map +1 -0
  436. package/dist/actions/get-treasury-yields.mjs +44 -0
  437. package/dist/actions/get-treasury-yields.mjs.map +1 -0
  438. package/dist/actions/index.cjs +121 -0
  439. package/dist/actions/index.d.cts +61 -0
  440. package/dist/actions/index.d.mts +61 -0
  441. package/dist/actions/index.mjs +61 -0
  442. package/dist/actions/list-exchanges.cjs +42 -0
  443. package/dist/actions/list-exchanges.cjs.map +1 -0
  444. package/dist/actions/list-exchanges.d.cts +9 -0
  445. package/dist/actions/list-exchanges.d.cts.map +1 -0
  446. package/dist/actions/list-exchanges.d.mts +9 -0
  447. package/dist/actions/list-exchanges.d.mts.map +1 -0
  448. package/dist/actions/list-exchanges.mjs +41 -0
  449. package/dist/actions/list-exchanges.mjs.map +1 -0
  450. package/dist/actions/list-filing-files.cjs +46 -0
  451. package/dist/actions/list-filing-files.cjs.map +1 -0
  452. package/dist/actions/list-filing-files.d.cts +9 -0
  453. package/dist/actions/list-filing-files.d.cts.map +1 -0
  454. package/dist/actions/list-filing-files.d.mts +9 -0
  455. package/dist/actions/list-filing-files.d.mts.map +1 -0
  456. package/dist/actions/list-filing-files.mjs +45 -0
  457. package/dist/actions/list-filing-files.mjs.map +1 -0
  458. package/dist/actions/list-filings.cjs +62 -0
  459. package/dist/actions/list-filings.cjs.map +1 -0
  460. package/dist/actions/list-filings.d.cts +9 -0
  461. package/dist/actions/list-filings.d.cts.map +1 -0
  462. package/dist/actions/list-filings.d.mts +9 -0
  463. package/dist/actions/list-filings.d.mts.map +1 -0
  464. package/dist/actions/list-filings.mjs +61 -0
  465. package/dist/actions/list-filings.mjs.map +1 -0
  466. package/dist/actions/list-options-contracts.cjs +57 -0
  467. package/dist/actions/list-options-contracts.cjs.map +1 -0
  468. package/dist/actions/list-options-contracts.d.cts +9 -0
  469. package/dist/actions/list-options-contracts.d.cts.map +1 -0
  470. package/dist/actions/list-options-contracts.d.mts +9 -0
  471. package/dist/actions/list-options-contracts.d.mts.map +1 -0
  472. package/dist/actions/list-options-contracts.mjs +56 -0
  473. package/dist/actions/list-options-contracts.mjs.map +1 -0
  474. package/dist/actions/polygon-last-quote-for-a-symbol.cjs +30 -0
  475. package/dist/actions/polygon-last-quote-for-a-symbol.cjs.map +1 -0
  476. package/dist/actions/polygon-last-quote-for-a-symbol.d.cts +9 -0
  477. package/dist/actions/polygon-last-quote-for-a-symbol.d.cts.map +1 -0
  478. package/dist/actions/polygon-last-quote-for-a-symbol.d.mts +9 -0
  479. package/dist/actions/polygon-last-quote-for-a-symbol.d.mts.map +1 -0
  480. package/dist/actions/polygon-last-quote-for-a-symbol.mjs +29 -0
  481. package/dist/actions/polygon-last-quote-for-a-symbol.mjs.map +1 -0
  482. package/dist/actions/polygon-last-trade-for-a-currency-pair.cjs +30 -0
  483. package/dist/actions/polygon-last-trade-for-a-currency-pair.cjs.map +1 -0
  484. package/dist/actions/polygon-last-trade-for-a-currency-pair.d.cts +9 -0
  485. package/dist/actions/polygon-last-trade-for-a-currency-pair.d.cts.map +1 -0
  486. package/dist/actions/polygon-last-trade-for-a-currency-pair.d.mts +9 -0
  487. package/dist/actions/polygon-last-trade-for-a-currency-pair.d.mts.map +1 -0
  488. package/dist/actions/polygon-last-trade-for-a-currency-pair.mjs +29 -0
  489. package/dist/actions/polygon-last-trade-for-a-currency-pair.mjs.map +1 -0
  490. package/dist/app.cjs +9 -0
  491. package/dist/app.cjs.map +1 -0
  492. package/dist/app.d.cts +5 -0
  493. package/dist/app.d.cts.map +1 -0
  494. package/dist/app.d.mts +5 -0
  495. package/dist/app.d.mts.map +1 -0
  496. package/dist/app.mjs +10 -0
  497. package/dist/app.mjs.map +1 -0
  498. package/dist/catalog.cjs +15 -0
  499. package/dist/catalog.cjs.map +1 -0
  500. package/dist/catalog.d.cts +14 -0
  501. package/dist/catalog.d.cts.map +1 -0
  502. package/dist/catalog.d.mts +14 -0
  503. package/dist/catalog.d.mts.map +1 -0
  504. package/dist/catalog.mjs +15 -0
  505. package/dist/catalog.mjs.map +1 -0
  506. package/dist/execute.cjs +18 -0
  507. package/dist/execute.cjs.map +1 -0
  508. package/dist/execute.mjs +18 -0
  509. package/dist/execute.mjs.map +1 -0
  510. package/dist/index.cjs +126 -0
  511. package/dist/index.d.cts +63 -0
  512. package/dist/index.d.mts +63 -0
  513. package/dist/index.mjs +64 -0
  514. package/package.json +49 -0
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-ema.d.ts
4
+ declare const PolygonIoGetEmaInput: z.ZodTypeAny;
5
+ declare const PolygonIoGetEmaOutput: z.ZodTypeAny;
6
+ declare const polygonIoGetEma: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { polygonIoGetEma };
9
+ //# sourceMappingURL=get-ema.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-ema.d.cts","names":[],"sources":["../../src/actions/get-ema.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UASyD;AAAA,cAwBjF,qBAAA,EAAuB,CAAA,CAAE,UAKpC;AAAA,cAEW,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-ema.d.ts
4
+ declare const PolygonIoGetEmaInput: z.ZodTypeAny;
5
+ declare const PolygonIoGetEmaOutput: z.ZodTypeAny;
6
+ declare const polygonIoGetEma: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { polygonIoGetEma };
9
+ //# sourceMappingURL=get-ema.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-ema.d.mts","names":[],"sources":["../../src/actions/get-ema.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UASyD;AAAA,cAwBjF,qBAAA,EAAuB,CAAA,CAAE,UAKpC;AAAA,cAEW,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,57 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-ema.ts
4
+ const PolygonIoGetEmaInput = z.object({
5
+ limit: z.number().int().default(100).describe("Maximum number of results to return (1-5000). Defaults to 100.").optional(),
6
+ order: z.enum(["asc", "desc"]).default("desc").describe("Sort order for results. Defaults to 'desc'.").optional(),
7
+ window: z.number().int().describe("Number of periods to calculate the EMA (must be ≥1)."),
8
+ adjusted: z.boolean().default(true).describe("Whether to adjust results for splits/dividends. Defaults to True.").optional(),
9
+ timespan: z.string().describe("The timespan for each period (e.g., 'day', 'minute', 'hour')."),
10
+ series_type: z.enum([
11
+ "open",
12
+ "high",
13
+ "low",
14
+ "close"
15
+ ]).default("close").describe("Price series to use. Defaults to 'close'.").optional(),
16
+ stock_ticker: z.string().describe("The stock ticker symbol."),
17
+ expand_underlying: z.boolean().default(false).describe("Include underlying price data. Defaults to False.").optional()
18
+ }).describe("Parameters to retrieve the Exponential Moving Average (EMA) for a stock ticker.");
19
+ const PolygonIoGetEma_EMAValueSchema = z.object({
20
+ value: z.number().describe("EMA value at the given timestamp."),
21
+ timestamp: z.number().int().describe("UNIX timestamp in milliseconds for the EMA value.")
22
+ });
23
+ const PolygonIoGetEma_UnderlyingBarSchema = z.object({
24
+ T: z.string().describe("The ticker symbol.").nullable().optional(),
25
+ c: z.number().describe("Closing price.").nullable().optional(),
26
+ h: z.number().describe("Highest price.").nullable().optional(),
27
+ l: z.number().describe("Lowest price.").nullable().optional(),
28
+ n: z.number().int().describe("Number of transactions.").nullable().optional(),
29
+ o: z.number().describe("Opening price.").nullable().optional(),
30
+ t: z.number().int().describe("UNIX timestamp in milliseconds.").nullable().optional(),
31
+ v: z.number().describe("Trading volume.").nullable().optional(),
32
+ vw: z.number().describe("Volume weighted average price.").nullable().optional()
33
+ }).describe("Underlying aggregates bar data when expand_underlying is True.");
34
+ const PolygonIoGetEma_UnderlyingDataSchema = z.object({
35
+ url: z.string().describe("URL to fetch underlying price data.").nullable().optional(),
36
+ aggregates: z.array(PolygonIoGetEma_UnderlyingBarSchema).describe("List of aggregate bars when expand_underlying is True.").nullable().optional()
37
+ }).describe("Underlying data structure containing URL and optionally aggregates.");
38
+ const PolygonIoGetEma_EMAResultsSchema = z.object({
39
+ values: z.array(PolygonIoGetEma_EMAValueSchema).describe("List of EMA indicator values for each period.").nullable().optional(),
40
+ underlying: PolygonIoGetEma_UnderlyingDataSchema.nullable().optional()
41
+ }).describe("Results structure for EMA API response.");
42
+ const polygonIoGetEma = action("POLYGON_IO_GET_EMA", {
43
+ slug: "polygon_io-get-ema",
44
+ name: "Get Exponential Moving Average",
45
+ description: "Tool to retrieve the Exponential Moving Average for a stock ticker. Use when you need EMA values across a specific timespan with optional underlying data.",
46
+ input: PolygonIoGetEmaInput,
47
+ output: z.object({
48
+ status: z.string().describe("Status of the request (e.g., 'OK').").nullable().optional(),
49
+ results: PolygonIoGetEma_EMAResultsSchema.nullable().optional(),
50
+ next_url: z.string().describe("URL to fetch the next page of EMA results, if pagination applies.").nullable().optional(),
51
+ request_id: z.string().describe("Unique request identifier.").nullable().optional()
52
+ })
53
+ });
54
+ //#endregion
55
+ export { polygonIoGetEma };
56
+
57
+ //# sourceMappingURL=get-ema.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-ema.mjs","names":[],"sources":["../../src/actions/get-ema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetEmaInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of results to return (1-5000). Defaults to 100.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Sort order for results. Defaults to 'desc'.\").optional(),\n window: z.number().int().describe(\"Number of periods to calculate the EMA (must be ≥1).\"),\n adjusted: z.boolean().default(true).describe(\"Whether to adjust results for splits/dividends. Defaults to True.\").optional(),\n timespan: z.string().describe(\"The timespan for each period (e.g., 'day', 'minute', 'hour').\"),\n series_type: z.enum([\"open\", \"high\", \"low\", \"close\"]).default(\"close\").describe(\"Price series to use. Defaults to 'close'.\").optional(),\n stock_ticker: z.string().describe(\"The stock ticker symbol.\"),\n expand_underlying: z.boolean().default(false).describe(\"Include underlying price data. Defaults to False.\").optional(),\n}).describe(\"Parameters to retrieve the Exponential Moving Average (EMA) for a stock ticker.\");\nconst PolygonIoGetEma_EMAValueSchema: z.ZodTypeAny = z.object({\n value: z.number().describe(\"EMA value at the given timestamp.\"),\n timestamp: z.number().int().describe(\"UNIX timestamp in milliseconds for the EMA value.\"),\n});\nconst PolygonIoGetEma_UnderlyingBarSchema: z.ZodTypeAny = z.object({\n T: z.string().describe(\"The ticker symbol.\").nullable().optional(),\n c: z.number().describe(\"Closing price.\").nullable().optional(),\n h: z.number().describe(\"Highest price.\").nullable().optional(),\n l: z.number().describe(\"Lowest price.\").nullable().optional(),\n n: z.number().int().describe(\"Number of transactions.\").nullable().optional(),\n o: z.number().describe(\"Opening price.\").nullable().optional(),\n t: z.number().int().describe(\"UNIX timestamp in milliseconds.\").nullable().optional(),\n v: z.number().describe(\"Trading volume.\").nullable().optional(),\n vw: z.number().describe(\"Volume weighted average price.\").nullable().optional(),\n}).describe(\"Underlying aggregates bar data when expand_underlying is True.\");\nconst PolygonIoGetEma_UnderlyingDataSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to fetch underlying price data.\").nullable().optional(),\n aggregates: z.array(PolygonIoGetEma_UnderlyingBarSchema).describe(\"List of aggregate bars when expand_underlying is True.\").nullable().optional(),\n}).describe(\"Underlying data structure containing URL and optionally aggregates.\");\nconst PolygonIoGetEma_EMAResultsSchema: z.ZodTypeAny = z.object({\n values: z.array(PolygonIoGetEma_EMAValueSchema).describe(\"List of EMA indicator values for each period.\").nullable().optional(),\n underlying: PolygonIoGetEma_UnderlyingDataSchema.nullable().optional(),\n}).describe(\"Results structure for EMA API response.\");\nexport const PolygonIoGetEmaOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the request (e.g., 'OK').\").nullable().optional(),\n results: PolygonIoGetEma_EMAResultsSchema.nullable().optional(),\n next_url: z.string().describe(\"URL to fetch the next page of EMA results, if pagination applies.\").nullable().optional(),\n request_id: z.string().describe(\"Unique request identifier.\").nullable().optional(),\n});\n\nexport const polygonIoGetEma = action(\"POLYGON_IO_GET_EMA\", {\n slug: \"polygon_io-get-ema\",\n name: \"Get Exponential Moving Average\",\n description: \"Tool to retrieve the Exponential Moving Average for a stock ticker. Use when you need EMA values across a specific timespan with optional underlying data.\",\n input: PolygonIoGetEmaInput,\n output: PolygonIoGetEmaOutput,\n});\n"],"mappings":"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"}
@@ -0,0 +1,24 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-filing-file.ts
4
+ const PolygonIoGetFilingFileInput = zod.z.object({
5
+ file_id: zod.z.string().describe("The unique identifier for the file within the filing, e.g., 'readvantage10q_12312025.htm' or 'ex31.htm'. Use the filename from the LIST_FILING_FILES action."),
6
+ filing_id: zod.z.string().describe("The unique identifier for the SEC filing, e.g., '0002057381-26-000010'. This is the filing accession number.")
7
+ }).describe("Parameters to retrieve a specific file from an SEC filing.");
8
+ const PolygonIoGetFilingFile_FileDownloadableSchema = zod.z.object({
9
+ name: zod.z.string().describe("Name of the file"),
10
+ s3url: zod.z.string().describe("S3 URL of the downloaded file."),
11
+ mimetype: zod.z.string().describe("Mime type of the file.")
12
+ });
13
+ const PolygonIoGetFilingFileOutput = zod.z.object({ content: PolygonIoGetFilingFile_FileDownloadableSchema.nullable() }).describe("Response containing the downloaded file content from an SEC filing.");
14
+ const polygonIoGetFilingFile = require_action.action("POLYGON_IO_GET_FILING_FILE", {
15
+ slug: "polygon_io-get-filing-file",
16
+ name: "Get SEC Filing File",
17
+ description: "Tool to download a specific file from an SEC filing. Use when you need to access individual documents from a company's SEC filings, such as 10-Q, 10-K, or other submission files. Returns the raw file content (HTML, XML, XBRL, etc.).",
18
+ input: PolygonIoGetFilingFileInput,
19
+ output: PolygonIoGetFilingFileOutput
20
+ });
21
+ //#endregion
22
+ exports.polygonIoGetFilingFile = polygonIoGetFilingFile;
23
+
24
+ //# sourceMappingURL=get-filing-file.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-filing-file.cjs","names":["z","action"],"sources":["../../src/actions/get-filing-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetFilingFileInput: z.ZodTypeAny = z.object({\n file_id: z.string().describe(\"The unique identifier for the file within the filing, e.g., 'readvantage10q_12312025.htm' or 'ex31.htm'. Use the filename from the LIST_FILING_FILES action.\"),\n filing_id: z.string().describe(\"The unique identifier for the SEC filing, e.g., '0002057381-26-000010'. This is the filing accession number.\"),\n}).describe(\"Parameters to retrieve a specific file from an SEC filing.\");\nconst PolygonIoGetFilingFile_FileDownloadableSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the file\"),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\"),\n mimetype: z.string().describe(\"Mime type of the file.\"),\n});\nexport const PolygonIoGetFilingFileOutput: z.ZodTypeAny = z.object({\n content: PolygonIoGetFilingFile_FileDownloadableSchema.nullable(),\n}).describe(\"Response containing the downloaded file content from an SEC filing.\");\n\nexport const polygonIoGetFilingFile = action(\"POLYGON_IO_GET_FILING_FILE\", {\n slug: \"polygon_io-get-filing-file\",\n name: \"Get SEC Filing File\",\n description: \"Tool to download a specific file from an SEC filing. Use when you need to access individual documents from a company's SEC filings, such as 10-Q, 10-K, or other submission files. Returns the raw file content (HTML, XML, XBRL, etc.).\",\n input: PolygonIoGetFilingFileInput,\n output: PolygonIoGetFilingFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J;CAC3L,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;AAC/I,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACxD,CAAC;AACD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,SAAS,8CAA8C,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAEjF,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-filing-file.d.ts
4
+ declare const PolygonIoGetFilingFileInput: z.ZodTypeAny;
5
+ declare const PolygonIoGetFilingFileOutput: z.ZodTypeAny;
6
+ declare const polygonIoGetFilingFile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { polygonIoGetFilingFile };
9
+ //# sourceMappingURL=get-filing-file.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-filing-file.d.cts","names":[],"sources":["../../src/actions/get-filing-file.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAG6B;AAAA,cAM5D,4BAAA,EAA8B,CAAA,CAAE,UAEqC;AAAA,cAErE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-filing-file.d.ts
4
+ declare const PolygonIoGetFilingFileInput: z.ZodTypeAny;
5
+ declare const PolygonIoGetFilingFileOutput: z.ZodTypeAny;
6
+ declare const polygonIoGetFilingFile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { polygonIoGetFilingFile };
9
+ //# sourceMappingURL=get-filing-file.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-filing-file.d.mts","names":[],"sources":["../../src/actions/get-filing-file.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAG6B;AAAA,cAM5D,4BAAA,EAA8B,CAAA,CAAE,UAEqC;AAAA,cAErE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,23 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-filing-file.ts
4
+ const PolygonIoGetFilingFileInput = z.object({
5
+ file_id: z.string().describe("The unique identifier for the file within the filing, e.g., 'readvantage10q_12312025.htm' or 'ex31.htm'. Use the filename from the LIST_FILING_FILES action."),
6
+ filing_id: z.string().describe("The unique identifier for the SEC filing, e.g., '0002057381-26-000010'. This is the filing accession number.")
7
+ }).describe("Parameters to retrieve a specific file from an SEC filing.");
8
+ const PolygonIoGetFilingFile_FileDownloadableSchema = z.object({
9
+ name: z.string().describe("Name of the file"),
10
+ s3url: z.string().describe("S3 URL of the downloaded file."),
11
+ mimetype: z.string().describe("Mime type of the file.")
12
+ });
13
+ const polygonIoGetFilingFile = action("POLYGON_IO_GET_FILING_FILE", {
14
+ slug: "polygon_io-get-filing-file",
15
+ name: "Get SEC Filing File",
16
+ description: "Tool to download a specific file from an SEC filing. Use when you need to access individual documents from a company's SEC filings, such as 10-Q, 10-K, or other submission files. Returns the raw file content (HTML, XML, XBRL, etc.).",
17
+ input: PolygonIoGetFilingFileInput,
18
+ output: z.object({ content: PolygonIoGetFilingFile_FileDownloadableSchema.nullable() }).describe("Response containing the downloaded file content from an SEC filing.")
19
+ });
20
+ //#endregion
21
+ export { polygonIoGetFilingFile };
22
+
23
+ //# sourceMappingURL=get-filing-file.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-filing-file.mjs","names":[],"sources":["../../src/actions/get-filing-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetFilingFileInput: z.ZodTypeAny = z.object({\n file_id: z.string().describe(\"The unique identifier for the file within the filing, e.g., 'readvantage10q_12312025.htm' or 'ex31.htm'. Use the filename from the LIST_FILING_FILES action.\"),\n filing_id: z.string().describe(\"The unique identifier for the SEC filing, e.g., '0002057381-26-000010'. This is the filing accession number.\"),\n}).describe(\"Parameters to retrieve a specific file from an SEC filing.\");\nconst PolygonIoGetFilingFile_FileDownloadableSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the file\"),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\"),\n mimetype: z.string().describe(\"Mime type of the file.\"),\n});\nexport const PolygonIoGetFilingFileOutput: z.ZodTypeAny = z.object({\n content: PolygonIoGetFilingFile_FileDownloadableSchema.nullable(),\n}).describe(\"Response containing the downloaded file content from an SEC filing.\");\n\nexport const polygonIoGetFilingFile = action(\"POLYGON_IO_GET_FILING_FILE\", {\n slug: \"polygon_io-get-filing-file\",\n name: \"Get SEC Filing File\",\n description: \"Tool to download a specific file from an SEC filing. Use when you need to access individual documents from a company's SEC filings, such as 10-Q, 10-K, or other submission files. Returns the raw file content (HTML, XML, XBRL, etc.).\",\n input: PolygonIoGetFilingFileInput,\n output: PolygonIoGetFilingFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J;CAC3L,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;AAC/I,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,gDAA8D,EAAE,OAAO;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACxD,CAAC;AAKD,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwD,EAAE,OAAO,EACjE,SAAS,8CAA8C,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
@@ -0,0 +1,38 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-filing.ts
4
+ const PolygonIoGetFilingInput = zod.z.object({ filing_id: zod.z.string().describe("The unique filing ID (accession number format: XXXXXXXXXX-XX-XXXXXX). Example: '0002057381-26-000010'") }).describe("Parameters to retrieve a single SEC filing by filing ID.");
5
+ const PolygonIoGetFiling_FilingTypeSchema = zod.z.enum(["10-K", "10-Q"]).describe("Enumeration of supported SEC filing types.");
6
+ const PolygonIoGetFiling_FilingEntitySchema = zod.z.object({
7
+ cik: zod.z.string().describe("Central Index Key (CIK) of the entity.").nullable().optional(),
8
+ ticker: zod.z.string().describe("Ticker symbol of the entity.").nullable().optional(),
9
+ company_name: zod.z.string().describe("Name of the company.").nullable().optional()
10
+ }).describe("Entity information related to the filing (e.g., document filers).");
11
+ const PolygonIoGetFiling_FilingSchema = zod.z.object({
12
+ id: zod.z.string().describe("Unique identifier for the filing."),
13
+ type: PolygonIoGetFiling_FilingTypeSchema.nullable(),
14
+ entities: zod.z.array(PolygonIoGetFiling_FilingEntitySchema).describe("Entities related to the filing (e.g., the document filers)."),
15
+ source_url: zod.z.string().describe("The source URL is a link back to the upstream source for this filing document."),
16
+ files_count: zod.z.number().int().describe("The number of files associated with the filing."),
17
+ filing_date: zod.z.string().describe("The date when the filing was filed in YYYYMMDD format."),
18
+ download_url: zod.z.string().describe("URL to download the filing document.").nullable().optional(),
19
+ accession_number: zod.z.string().describe("Filing Accession Number."),
20
+ acceptance_datetime: zod.z.string().describe("The datetime when the filing was accepted by EDGAR in EST (format: YYYYMMDDHHMMSS).").nullable().optional(),
21
+ period_of_report_date: zod.z.string().describe("The period of report for the filing in YYYYMMDD format.")
22
+ }).describe("Detailed information about a single SEC filing.");
23
+ const PolygonIoGetFilingOutput = zod.z.object({
24
+ status: zod.z.string().describe("Status of the response (e.g., 'OK').").nullable().optional(),
25
+ results: PolygonIoGetFiling_FilingSchema.nullable().optional(),
26
+ request_id: zod.z.string().describe("Unique identifier for the request.").nullable().optional()
27
+ }).describe("Response containing detailed SEC filing information.");
28
+ const polygonIoGetFiling = require_action.action("POLYGON_IO_GET_FILING", {
29
+ slug: "polygon_io-get-filing",
30
+ name: "Get SEC Filing",
31
+ description: "Tool to retrieve detailed information about a specific SEC filing by filing ID. Use when you need to access full filing details including accession number, filing type, dates, source URLs, and associated entities.",
32
+ input: PolygonIoGetFilingInput,
33
+ output: PolygonIoGetFilingOutput
34
+ });
35
+ //#endregion
36
+ exports.polygonIoGetFiling = polygonIoGetFiling;
37
+
38
+ //# sourceMappingURL=get-filing.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-filing.cjs","names":["z","action"],"sources":["../../src/actions/get-filing.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetFilingInput: z.ZodTypeAny = z.object({\n filing_id: z.string().describe(\"The unique filing ID (accession number format: XXXXXXXXXX-XX-XXXXXX). Example: '0002057381-26-000010'\"),\n}).describe(\"Parameters to retrieve a single SEC filing by filing ID.\");\nconst PolygonIoGetFiling_FilingTypeSchema: z.ZodTypeAny = z.enum([\"10-K\", \"10-Q\"]).describe(\"Enumeration of supported SEC filing types.\");\nconst PolygonIoGetFiling_FilingEntitySchema: z.ZodTypeAny = z.object({\n cik: z.string().describe(\"Central Index Key (CIK) of the entity.\").nullable().optional(),\n ticker: z.string().describe(\"Ticker symbol of the entity.\").nullable().optional(),\n company_name: z.string().describe(\"Name of the company.\").nullable().optional(),\n}).describe(\"Entity information related to the filing (e.g., document filers).\");\nconst PolygonIoGetFiling_FilingSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the filing.\"),\n type: PolygonIoGetFiling_FilingTypeSchema.nullable(),\n entities: z.array(PolygonIoGetFiling_FilingEntitySchema).describe(\"Entities related to the filing (e.g., the document filers).\"),\n source_url: z.string().describe(\"The source URL is a link back to the upstream source for this filing document.\"),\n files_count: z.number().int().describe(\"The number of files associated with the filing.\"),\n filing_date: z.string().describe(\"The date when the filing was filed in YYYYMMDD format.\"),\n download_url: z.string().describe(\"URL to download the filing document.\").nullable().optional(),\n accession_number: z.string().describe(\"Filing Accession Number.\"),\n acceptance_datetime: z.string().describe(\"The datetime when the filing was accepted by EDGAR in EST (format: YYYYMMDDHHMMSS).\").nullable().optional(),\n period_of_report_date: z.string().describe(\"The period of report for the filing in YYYYMMDD format.\"),\n}).describe(\"Detailed information about a single SEC filing.\");\nexport const PolygonIoGetFilingOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the response (e.g., 'OK').\").nullable().optional(),\n results: PolygonIoGetFiling_FilingSchema.nullable().optional(),\n request_id: z.string().describe(\"Unique identifier for the request.\").nullable().optional(),\n}).describe(\"Response containing detailed SEC filing information.\");\n\nexport const polygonIoGetFiling = action(\"POLYGON_IO_GET_FILING\", {\n slug: \"polygon_io-get-filing\",\n name: \"Get SEC Filing\",\n description: \"Tool to retrieve detailed information about a specific SEC filing by filing ID. Use when you need to access full filing details including accession number, filing type, dates, source URLs, and associated entities.\",\n input: PolygonIoGetFilingInput,\n output: PolygonIoGetFilingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACxI,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,sCAAoDA,IAAAA,EAAE,KAAK,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxI,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,kCAAgDA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC3D,MAAM,oCAAoC,SAAS;CACnD,UAAUA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,6DAA6D;CAC/H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACzF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAChE,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AACtG,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,SAAS,gCAAgC,SAAS,CAAC,CAAC,SAAS;CAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-filing.d.ts
4
+ declare const PolygonIoGetFilingInput: z.ZodTypeAny;
5
+ declare const PolygonIoGetFilingOutput: z.ZodTypeAny;
6
+ declare const polygonIoGetFiling: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { polygonIoGetFiling };
9
+ //# sourceMappingURL=get-filing.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-filing.d.cts","names":[],"sources":["../../src/actions/get-filing.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAE+B;AAAA,cAmB1D,wBAAA,EAA0B,CAAA,CAAE,UAI0B;AAAA,cAEtD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-filing.d.ts
4
+ declare const PolygonIoGetFilingInput: z.ZodTypeAny;
5
+ declare const PolygonIoGetFilingOutput: z.ZodTypeAny;
6
+ declare const polygonIoGetFiling: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { polygonIoGetFiling };
9
+ //# sourceMappingURL=get-filing.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-filing.d.mts","names":[],"sources":["../../src/actions/get-filing.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAE+B;AAAA,cAmB1D,wBAAA,EAA0B,CAAA,CAAE,UAI0B;AAAA,cAEtD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,37 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-filing.ts
4
+ const PolygonIoGetFilingInput = z.object({ filing_id: z.string().describe("The unique filing ID (accession number format: XXXXXXXXXX-XX-XXXXXX). Example: '0002057381-26-000010'") }).describe("Parameters to retrieve a single SEC filing by filing ID.");
5
+ const PolygonIoGetFiling_FilingTypeSchema = z.enum(["10-K", "10-Q"]).describe("Enumeration of supported SEC filing types.");
6
+ const PolygonIoGetFiling_FilingEntitySchema = z.object({
7
+ cik: z.string().describe("Central Index Key (CIK) of the entity.").nullable().optional(),
8
+ ticker: z.string().describe("Ticker symbol of the entity.").nullable().optional(),
9
+ company_name: z.string().describe("Name of the company.").nullable().optional()
10
+ }).describe("Entity information related to the filing (e.g., document filers).");
11
+ const PolygonIoGetFiling_FilingSchema = z.object({
12
+ id: z.string().describe("Unique identifier for the filing."),
13
+ type: PolygonIoGetFiling_FilingTypeSchema.nullable(),
14
+ entities: z.array(PolygonIoGetFiling_FilingEntitySchema).describe("Entities related to the filing (e.g., the document filers)."),
15
+ source_url: z.string().describe("The source URL is a link back to the upstream source for this filing document."),
16
+ files_count: z.number().int().describe("The number of files associated with the filing."),
17
+ filing_date: z.string().describe("The date when the filing was filed in YYYYMMDD format."),
18
+ download_url: z.string().describe("URL to download the filing document.").nullable().optional(),
19
+ accession_number: z.string().describe("Filing Accession Number."),
20
+ acceptance_datetime: z.string().describe("The datetime when the filing was accepted by EDGAR in EST (format: YYYYMMDDHHMMSS).").nullable().optional(),
21
+ period_of_report_date: z.string().describe("The period of report for the filing in YYYYMMDD format.")
22
+ }).describe("Detailed information about a single SEC filing.");
23
+ const polygonIoGetFiling = action("POLYGON_IO_GET_FILING", {
24
+ slug: "polygon_io-get-filing",
25
+ name: "Get SEC Filing",
26
+ description: "Tool to retrieve detailed information about a specific SEC filing by filing ID. Use when you need to access full filing details including accession number, filing type, dates, source URLs, and associated entities.",
27
+ input: PolygonIoGetFilingInput,
28
+ output: z.object({
29
+ status: z.string().describe("Status of the response (e.g., 'OK').").nullable().optional(),
30
+ results: PolygonIoGetFiling_FilingSchema.nullable().optional(),
31
+ request_id: z.string().describe("Unique identifier for the request.").nullable().optional()
32
+ }).describe("Response containing detailed SEC filing information.")
33
+ });
34
+ //#endregion
35
+ export { polygonIoGetFiling };
36
+
37
+ //# sourceMappingURL=get-filing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-filing.mjs","names":[],"sources":["../../src/actions/get-filing.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetFilingInput: z.ZodTypeAny = z.object({\n filing_id: z.string().describe(\"The unique filing ID (accession number format: XXXXXXXXXX-XX-XXXXXX). Example: '0002057381-26-000010'\"),\n}).describe(\"Parameters to retrieve a single SEC filing by filing ID.\");\nconst PolygonIoGetFiling_FilingTypeSchema: z.ZodTypeAny = z.enum([\"10-K\", \"10-Q\"]).describe(\"Enumeration of supported SEC filing types.\");\nconst PolygonIoGetFiling_FilingEntitySchema: z.ZodTypeAny = z.object({\n cik: z.string().describe(\"Central Index Key (CIK) of the entity.\").nullable().optional(),\n ticker: z.string().describe(\"Ticker symbol of the entity.\").nullable().optional(),\n company_name: z.string().describe(\"Name of the company.\").nullable().optional(),\n}).describe(\"Entity information related to the filing (e.g., document filers).\");\nconst PolygonIoGetFiling_FilingSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the filing.\"),\n type: PolygonIoGetFiling_FilingTypeSchema.nullable(),\n entities: z.array(PolygonIoGetFiling_FilingEntitySchema).describe(\"Entities related to the filing (e.g., the document filers).\"),\n source_url: z.string().describe(\"The source URL is a link back to the upstream source for this filing document.\"),\n files_count: z.number().int().describe(\"The number of files associated with the filing.\"),\n filing_date: z.string().describe(\"The date when the filing was filed in YYYYMMDD format.\"),\n download_url: z.string().describe(\"URL to download the filing document.\").nullable().optional(),\n accession_number: z.string().describe(\"Filing Accession Number.\"),\n acceptance_datetime: z.string().describe(\"The datetime when the filing was accepted by EDGAR in EST (format: YYYYMMDDHHMMSS).\").nullable().optional(),\n period_of_report_date: z.string().describe(\"The period of report for the filing in YYYYMMDD format.\"),\n}).describe(\"Detailed information about a single SEC filing.\");\nexport const PolygonIoGetFilingOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the response (e.g., 'OK').\").nullable().optional(),\n results: PolygonIoGetFiling_FilingSchema.nullable().optional(),\n request_id: z.string().describe(\"Unique identifier for the request.\").nullable().optional(),\n}).describe(\"Response containing detailed SEC filing information.\");\n\nexport const polygonIoGetFiling = action(\"POLYGON_IO_GET_FILING\", {\n slug: \"polygon_io-get-filing\",\n name: \"Get SEC Filing\",\n description: \"Tool to retrieve detailed information about a specific SEC filing by filing ID. Use when you need to access full filing details including accession number, filing type, dates, source URLs, and associated entities.\",\n input: PolygonIoGetFilingInput,\n output: PolygonIoGetFilingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO,EAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACxI,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,sCAAoD,EAAE,KAAK,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxI,MAAM,wCAAsD,EAAE,OAAO;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,kCAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC3D,MAAM,oCAAoC,SAAS;CACnD,UAAU,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,6DAA6D;CAC/H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;CAChH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;CACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACzF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAChE,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AACtG,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAO7D,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXoD,EAAE,OAAO;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,SAAS,gCAAgC,SAAS,CAAC,CAAC,SAAS;EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
@@ -0,0 +1,63 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-forex-ema.ts
4
+ const PolygonIoGetForexEmaInput = zod.z.object({
5
+ limit: zod.z.number().int().default(10).describe("Limit the number of results returned. Defaults to 10. Maximum is 5000.").optional(),
6
+ order: zod.z.enum(["asc", "desc"]).default("desc").describe("The order in which to return the results, ordered by timestamp. 'asc' for ascending/oldest first, 'desc' for descending/newest first. Defaults to 'desc'.").optional(),
7
+ window: zod.z.number().int().default(50).describe("The window size used to calculate the exponential moving average (EMA). For example, a window size of 10 with daily aggregates would result in a 10 day moving average. Defaults to 50.").optional(),
8
+ adjusted: zod.z.boolean().default(true).describe("Whether or not the aggregates used to calculate the exponential moving average are adjusted for splits. By default, aggregates are adjusted. Set this to false to get results that are NOT adjusted for splits. Defaults to True.").optional(),
9
+ timespan: zod.z.enum([
10
+ "minute",
11
+ "hour",
12
+ "day",
13
+ "week",
14
+ "month",
15
+ "quarter",
16
+ "year"
17
+ ]).default("day").describe("The size of the aggregate time window. Defaults to 'day'.").optional(),
18
+ timestamp: zod.z.string().describe("Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.").optional(),
19
+ series_type: zod.z.enum([
20
+ "open",
21
+ "high",
22
+ "low",
23
+ "close"
24
+ ]).default("close").describe("The price in the aggregate which will be used to calculate the exponential moving average. Defaults to 'close'.").optional(),
25
+ forex_ticker: zod.z.string().describe("The forex ticker symbol in format C:FROMTO (e.g., 'C:EURUSD', 'C:GBPJPY'). Must include the 'C:' prefix for forex currency pairs."),
26
+ expand_underlying: zod.z.boolean().default(false).describe("Whether or not to include the aggregates used to calculate this indicator in the response. Defaults to False.").optional()
27
+ }).describe("Parameters to retrieve the Exponential Moving Average (EMA) for a forex pair.");
28
+ const PolygonIoGetForexEma_EMAValueSchema = zod.z.object({
29
+ value: zod.z.number().describe("The EMA indicator value for this period."),
30
+ timestamp: zod.z.number().int().describe("The Unix millisecond timestamp from the last aggregate used in this calculation.")
31
+ });
32
+ const PolygonIoGetForexEma_AggregateBarSchema = zod.z.object({
33
+ c: zod.z.number().describe("The close price for the aggregate window.").nullable().optional(),
34
+ h: zod.z.number().describe("The high price for the aggregate window.").nullable().optional(),
35
+ l: zod.z.number().describe("The low price for the aggregate window.").nullable().optional(),
36
+ n: zod.z.number().int().describe("The number of transactions in the aggregate window.").nullable().optional(),
37
+ o: zod.z.number().describe("The open price for the aggregate window.").nullable().optional(),
38
+ t: zod.z.number().int().describe("The Unix millisecond timestamp for the start of the aggregate window.").nullable().optional(),
39
+ v: zod.z.number().describe("The volume for the aggregate window.").nullable().optional(),
40
+ vw: zod.z.number().describe("The volume weighted average price for the aggregate window.").nullable().optional()
41
+ });
42
+ const PolygonIoGetForexEma_UnderlyingDataSchema = zod.z.object({ aggregates: zod.z.array(PolygonIoGetForexEma_AggregateBarSchema).describe("Array of aggregate objects containing price and volume data.").nullable().optional() });
43
+ const PolygonIoGetForexEma_EMAResultsSchema = zod.z.object({
44
+ values: zod.z.array(PolygonIoGetForexEma_EMAValueSchema).describe("Array of EMA indicator values.").nullable().optional(),
45
+ underlying: PolygonIoGetForexEma_UnderlyingDataSchema.nullable().optional()
46
+ });
47
+ const PolygonIoGetForexEmaOutput = zod.z.object({
48
+ status: zod.z.string().describe("The status of this request's response (e.g., 'OK', 'ERROR').").nullable().optional(),
49
+ results: PolygonIoGetForexEma_EMAResultsSchema.nullable().optional(),
50
+ next_url: zod.z.string().describe("If present, this value can be used to fetch the next page of data.").nullable().optional(),
51
+ request_id: zod.z.string().describe("A request id assigned by the server.").nullable().optional()
52
+ });
53
+ const polygonIoGetForexEma = require_action.action("POLYGON_IO_GET_FOREX_EMA", {
54
+ slug: "polygon_io-get-forex-ema",
55
+ name: "Get Forex EMA",
56
+ description: "Tool to calculate Exponential Moving Average (EMA) technical indicator for a forex pair. Use when you need trend analysis or moving average calculations for currency pairs.",
57
+ input: PolygonIoGetForexEmaInput,
58
+ output: PolygonIoGetForexEmaOutput
59
+ });
60
+ //#endregion
61
+ exports.polygonIoGetForexEma = polygonIoGetForexEma;
62
+
63
+ //# sourceMappingURL=get-forex-ema.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-forex-ema.cjs","names":["z","action"],"sources":["../../src/actions/get-forex-ema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetForexEmaInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(10).describe(\"Limit the number of results returned. Defaults to 10. Maximum is 5000.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"The order in which to return the results, ordered by timestamp. 'asc' for ascending/oldest first, 'desc' for descending/newest first. Defaults to 'desc'.\").optional(),\n window: z.number().int().default(50).describe(\"The window size used to calculate the exponential moving average (EMA). For example, a window size of 10 with daily aggregates would result in a 10 day moving average. Defaults to 50.\").optional(),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the exponential moving average are adjusted for splits. By default, aggregates are adjusted. Set this to false to get results that are NOT adjusted for splits. Defaults to True.\").optional(),\n timespan: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\"]).default(\"day\").describe(\"The size of the aggregate time window. Defaults to 'day'.\").optional(),\n timestamp: z.string().describe(\"Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.\").optional(),\n series_type: z.enum([\"open\", \"high\", \"low\", \"close\"]).default(\"close\").describe(\"The price in the aggregate which will be used to calculate the exponential moving average. Defaults to 'close'.\").optional(),\n forex_ticker: z.string().describe(\"The forex ticker symbol in format C:FROMTO (e.g., 'C:EURUSD', 'C:GBPJPY'). Must include the 'C:' prefix for forex currency pairs.\"),\n expand_underlying: z.boolean().default(false).describe(\"Whether or not to include the aggregates used to calculate this indicator in the response. Defaults to False.\").optional(),\n}).describe(\"Parameters to retrieve the Exponential Moving Average (EMA) for a forex pair.\");\nconst PolygonIoGetForexEma_EMAValueSchema: z.ZodTypeAny = z.object({\n value: z.number().describe(\"The EMA indicator value for this period.\"),\n timestamp: z.number().int().describe(\"The Unix millisecond timestamp from the last aggregate used in this calculation.\"),\n});\nconst PolygonIoGetForexEma_AggregateBarSchema: z.ZodTypeAny = z.object({\n c: z.number().describe(\"The close price for the aggregate window.\").nullable().optional(),\n h: z.number().describe(\"The high price for the aggregate window.\").nullable().optional(),\n l: z.number().describe(\"The low price for the aggregate window.\").nullable().optional(),\n n: z.number().int().describe(\"The number of transactions in the aggregate window.\").nullable().optional(),\n o: z.number().describe(\"The open price for the aggregate window.\").nullable().optional(),\n t: z.number().int().describe(\"The Unix millisecond timestamp for the start of the aggregate window.\").nullable().optional(),\n v: z.number().describe(\"The volume for the aggregate window.\").nullable().optional(),\n vw: z.number().describe(\"The volume weighted average price for the aggregate window.\").nullable().optional(),\n});\nconst PolygonIoGetForexEma_UnderlyingDataSchema: z.ZodTypeAny = z.object({\n aggregates: z.array(PolygonIoGetForexEma_AggregateBarSchema).describe(\"Array of aggregate objects containing price and volume data.\").nullable().optional(),\n});\nconst PolygonIoGetForexEma_EMAResultsSchema: z.ZodTypeAny = z.object({\n values: z.array(PolygonIoGetForexEma_EMAValueSchema).describe(\"Array of EMA indicator values.\").nullable().optional(),\n underlying: PolygonIoGetForexEma_UnderlyingDataSchema.nullable().optional(),\n});\nexport const PolygonIoGetForexEmaOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK', 'ERROR').\").nullable().optional(),\n results: PolygonIoGetForexEma_EMAResultsSchema.nullable().optional(),\n next_url: z.string().describe(\"If present, this value can be used to fetch the next page of data.\").nullable().optional(),\n request_id: z.string().describe(\"A request id assigned by the server.\").nullable().optional(),\n});\n\nexport const polygonIoGetForexEma = action(\"POLYGON_IO_GET_FOREX_EMA\", {\n slug: \"polygon_io-get-forex-ema\",\n name: \"Get Forex EMA\",\n description: \"Tool to calculate Exponential Moving Average (EMA) technical indicator for a forex pair. Use when you need trend analysis or moving average calculations for currency pairs.\",\n input: PolygonIoGetForexEmaInput,\n output: PolygonIoGetForexEmaOutput,\n});\n"],"mappings":"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"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-forex-ema.d.ts
4
+ declare const PolygonIoGetForexEmaInput: z.ZodTypeAny;
5
+ declare const PolygonIoGetForexEmaOutput: z.ZodTypeAny;
6
+ declare const polygonIoGetForexEma: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { polygonIoGetForexEma };
9
+ //# sourceMappingURL=get-forex-ema.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-forex-ema.d.cts","names":[],"sources":["../../src/actions/get-forex-ema.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAUkD;AAAA,cAsB/E,0BAAA,EAA4B,CAAA,CAAE,UAKzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-forex-ema.d.ts
4
+ declare const PolygonIoGetForexEmaInput: z.ZodTypeAny;
5
+ declare const PolygonIoGetForexEmaOutput: z.ZodTypeAny;
6
+ declare const polygonIoGetForexEma: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { polygonIoGetForexEma };
9
+ //# sourceMappingURL=get-forex-ema.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-forex-ema.d.mts","names":[],"sources":["../../src/actions/get-forex-ema.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAUkD;AAAA,cAsB/E,0BAAA,EAA4B,CAAA,CAAE,UAKzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,62 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-forex-ema.ts
4
+ const PolygonIoGetForexEmaInput = z.object({
5
+ limit: z.number().int().default(10).describe("Limit the number of results returned. Defaults to 10. Maximum is 5000.").optional(),
6
+ order: z.enum(["asc", "desc"]).default("desc").describe("The order in which to return the results, ordered by timestamp. 'asc' for ascending/oldest first, 'desc' for descending/newest first. Defaults to 'desc'.").optional(),
7
+ window: z.number().int().default(50).describe("The window size used to calculate the exponential moving average (EMA). For example, a window size of 10 with daily aggregates would result in a 10 day moving average. Defaults to 50.").optional(),
8
+ adjusted: z.boolean().default(true).describe("Whether or not the aggregates used to calculate the exponential moving average are adjusted for splits. By default, aggregates are adjusted. Set this to false to get results that are NOT adjusted for splits. Defaults to True.").optional(),
9
+ timespan: z.enum([
10
+ "minute",
11
+ "hour",
12
+ "day",
13
+ "week",
14
+ "month",
15
+ "quarter",
16
+ "year"
17
+ ]).default("day").describe("The size of the aggregate time window. Defaults to 'day'.").optional(),
18
+ timestamp: z.string().describe("Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.").optional(),
19
+ series_type: z.enum([
20
+ "open",
21
+ "high",
22
+ "low",
23
+ "close"
24
+ ]).default("close").describe("The price in the aggregate which will be used to calculate the exponential moving average. Defaults to 'close'.").optional(),
25
+ forex_ticker: z.string().describe("The forex ticker symbol in format C:FROMTO (e.g., 'C:EURUSD', 'C:GBPJPY'). Must include the 'C:' prefix for forex currency pairs."),
26
+ expand_underlying: z.boolean().default(false).describe("Whether or not to include the aggregates used to calculate this indicator in the response. Defaults to False.").optional()
27
+ }).describe("Parameters to retrieve the Exponential Moving Average (EMA) for a forex pair.");
28
+ const PolygonIoGetForexEma_EMAValueSchema = z.object({
29
+ value: z.number().describe("The EMA indicator value for this period."),
30
+ timestamp: z.number().int().describe("The Unix millisecond timestamp from the last aggregate used in this calculation.")
31
+ });
32
+ const PolygonIoGetForexEma_AggregateBarSchema = z.object({
33
+ c: z.number().describe("The close price for the aggregate window.").nullable().optional(),
34
+ h: z.number().describe("The high price for the aggregate window.").nullable().optional(),
35
+ l: z.number().describe("The low price for the aggregate window.").nullable().optional(),
36
+ n: z.number().int().describe("The number of transactions in the aggregate window.").nullable().optional(),
37
+ o: z.number().describe("The open price for the aggregate window.").nullable().optional(),
38
+ t: z.number().int().describe("The Unix millisecond timestamp for the start of the aggregate window.").nullable().optional(),
39
+ v: z.number().describe("The volume for the aggregate window.").nullable().optional(),
40
+ vw: z.number().describe("The volume weighted average price for the aggregate window.").nullable().optional()
41
+ });
42
+ const PolygonIoGetForexEma_UnderlyingDataSchema = z.object({ aggregates: z.array(PolygonIoGetForexEma_AggregateBarSchema).describe("Array of aggregate objects containing price and volume data.").nullable().optional() });
43
+ const PolygonIoGetForexEma_EMAResultsSchema = z.object({
44
+ values: z.array(PolygonIoGetForexEma_EMAValueSchema).describe("Array of EMA indicator values.").nullable().optional(),
45
+ underlying: PolygonIoGetForexEma_UnderlyingDataSchema.nullable().optional()
46
+ });
47
+ const polygonIoGetForexEma = action("POLYGON_IO_GET_FOREX_EMA", {
48
+ slug: "polygon_io-get-forex-ema",
49
+ name: "Get Forex EMA",
50
+ description: "Tool to calculate Exponential Moving Average (EMA) technical indicator for a forex pair. Use when you need trend analysis or moving average calculations for currency pairs.",
51
+ input: PolygonIoGetForexEmaInput,
52
+ output: z.object({
53
+ status: z.string().describe("The status of this request's response (e.g., 'OK', 'ERROR').").nullable().optional(),
54
+ results: PolygonIoGetForexEma_EMAResultsSchema.nullable().optional(),
55
+ next_url: z.string().describe("If present, this value can be used to fetch the next page of data.").nullable().optional(),
56
+ request_id: z.string().describe("A request id assigned by the server.").nullable().optional()
57
+ })
58
+ });
59
+ //#endregion
60
+ export { polygonIoGetForexEma };
61
+
62
+ //# sourceMappingURL=get-forex-ema.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-forex-ema.mjs","names":[],"sources":["../../src/actions/get-forex-ema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetForexEmaInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(10).describe(\"Limit the number of results returned. Defaults to 10. Maximum is 5000.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"The order in which to return the results, ordered by timestamp. 'asc' for ascending/oldest first, 'desc' for descending/newest first. Defaults to 'desc'.\").optional(),\n window: z.number().int().default(50).describe(\"The window size used to calculate the exponential moving average (EMA). For example, a window size of 10 with daily aggregates would result in a 10 day moving average. Defaults to 50.\").optional(),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the exponential moving average are adjusted for splits. By default, aggregates are adjusted. Set this to false to get results that are NOT adjusted for splits. Defaults to True.\").optional(),\n timespan: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\"]).default(\"day\").describe(\"The size of the aggregate time window. Defaults to 'day'.\").optional(),\n timestamp: z.string().describe(\"Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.\").optional(),\n series_type: z.enum([\"open\", \"high\", \"low\", \"close\"]).default(\"close\").describe(\"The price in the aggregate which will be used to calculate the exponential moving average. Defaults to 'close'.\").optional(),\n forex_ticker: z.string().describe(\"The forex ticker symbol in format C:FROMTO (e.g., 'C:EURUSD', 'C:GBPJPY'). Must include the 'C:' prefix for forex currency pairs.\"),\n expand_underlying: z.boolean().default(false).describe(\"Whether or not to include the aggregates used to calculate this indicator in the response. Defaults to False.\").optional(),\n}).describe(\"Parameters to retrieve the Exponential Moving Average (EMA) for a forex pair.\");\nconst PolygonIoGetForexEma_EMAValueSchema: z.ZodTypeAny = z.object({\n value: z.number().describe(\"The EMA indicator value for this period.\"),\n timestamp: z.number().int().describe(\"The Unix millisecond timestamp from the last aggregate used in this calculation.\"),\n});\nconst PolygonIoGetForexEma_AggregateBarSchema: z.ZodTypeAny = z.object({\n c: z.number().describe(\"The close price for the aggregate window.\").nullable().optional(),\n h: z.number().describe(\"The high price for the aggregate window.\").nullable().optional(),\n l: z.number().describe(\"The low price for the aggregate window.\").nullable().optional(),\n n: z.number().int().describe(\"The number of transactions in the aggregate window.\").nullable().optional(),\n o: z.number().describe(\"The open price for the aggregate window.\").nullable().optional(),\n t: z.number().int().describe(\"The Unix millisecond timestamp for the start of the aggregate window.\").nullable().optional(),\n v: z.number().describe(\"The volume for the aggregate window.\").nullable().optional(),\n vw: z.number().describe(\"The volume weighted average price for the aggregate window.\").nullable().optional(),\n});\nconst PolygonIoGetForexEma_UnderlyingDataSchema: z.ZodTypeAny = z.object({\n aggregates: z.array(PolygonIoGetForexEma_AggregateBarSchema).describe(\"Array of aggregate objects containing price and volume data.\").nullable().optional(),\n});\nconst PolygonIoGetForexEma_EMAResultsSchema: z.ZodTypeAny = z.object({\n values: z.array(PolygonIoGetForexEma_EMAValueSchema).describe(\"Array of EMA indicator values.\").nullable().optional(),\n underlying: PolygonIoGetForexEma_UnderlyingDataSchema.nullable().optional(),\n});\nexport const PolygonIoGetForexEmaOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK', 'ERROR').\").nullable().optional(),\n results: PolygonIoGetForexEma_EMAResultsSchema.nullable().optional(),\n next_url: z.string().describe(\"If present, this value can be used to fetch the next page of data.\").nullable().optional(),\n request_id: z.string().describe(\"A request id assigned by the server.\").nullable().optional(),\n});\n\nexport const polygonIoGetForexEma = action(\"POLYGON_IO_GET_FOREX_EMA\", {\n slug: \"polygon_io-get-forex-ema\",\n name: \"Get Forex EMA\",\n description: \"Tool to calculate Exponential Moving Average (EMA) technical indicator for a forex pair. Use when you need trend analysis or moving average calculations for currency pairs.\",\n input: PolygonIoGetForexEmaInput,\n output: PolygonIoGetForexEmaOutput,\n});\n"],"mappings":"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"}
@@ -0,0 +1,53 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-forex-macd.ts
4
+ const PolygonIoGetForexMacdInput = zod.z.object({
5
+ limit: zod.z.number().int().default(10).describe("Maximum number of results to return. Must be between 1 and 5000. Defaults to 10.").optional(),
6
+ order: zod.z.enum(["asc", "desc"]).default("desc").describe("The order in which to return results, ordered by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'desc'.").optional(),
7
+ adjusted: zod.z.boolean().default(true).describe("Whether the aggregates used to calculate MACD are adjusted for splits. Defaults to True.").optional(),
8
+ timespan: zod.z.string().describe("The size of the aggregate time window (e.g., 'day', 'hour', 'minute')."),
9
+ timestamp: zod.z.string().describe("Filter by timestamp. Can be a date in YYYY-MM-DD format or a millisecond timestamp.").optional(),
10
+ long_window: zod.z.number().int().describe("The long window size (number of periods) used to calculate MACD data. Typically 26."),
11
+ series_type: zod.z.enum([
12
+ "open",
13
+ "high",
14
+ "low",
15
+ "close"
16
+ ]).default("close").describe("The price field in the aggregate which will be used to calculate MACD. Defaults to 'close'.").optional(),
17
+ forex_ticker: zod.z.string().describe("The forex ticker symbol in format C:FROMTO (e.g., 'C:EURUSD', 'C:GBPJPY'). Must include the 'C:' prefix for forex currency pairs."),
18
+ short_window: zod.z.number().int().describe("The short window size (number of periods) used to calculate MACD data. Typically 12."),
19
+ timestamp_gt: zod.z.string().describe("Range filter - only include results where timestamp is greater than this value. Format: YYYY-MM-DD or millisecond timestamp.").optional(),
20
+ timestamp_lt: zod.z.string().describe("Range filter - only include results where timestamp is less than this value. Format: YYYY-MM-DD or millisecond timestamp.").optional(),
21
+ signal_window: zod.z.number().int().describe("The window size (number of periods) used to calculate the MACD signal line. Typically 9."),
22
+ timestamp_gte: zod.z.string().describe("Range filter - only include results where timestamp is greater than or equal to this value. Format: YYYY-MM-DD or millisecond timestamp.").optional(),
23
+ timestamp_lte: zod.z.string().describe("Range filter - only include results where timestamp is less than or equal to this value. Format: YYYY-MM-DD or millisecond timestamp.").optional(),
24
+ expand_underlying: zod.z.boolean().default(false).describe("Whether to include the underlying aggregates used to calculate this indicator in the response. Defaults to False.").optional()
25
+ }).describe("Parameters to retrieve the Moving Average Convergence/Divergence (MACD) for a forex pair.");
26
+ const PolygonIoGetForexMacd_MACDValueSchema = zod.z.object({
27
+ value: zod.z.number().describe("The MACD value (difference between short EMA and long EMA) at this timestamp."),
28
+ signal: zod.z.number().describe("The MACD signal line value (EMA of MACD values) at this timestamp."),
29
+ histogram: zod.z.number().describe("The histogram value (difference between MACD value and signal line: value - signal). Indicates momentum direction and strength."),
30
+ timestamp: zod.z.number().int().describe("The Unix millisecond timestamp for this MACD data point.")
31
+ });
32
+ const PolygonIoGetForexMacd_UnderlyingSchema = zod.z.object({ url: zod.z.string().describe("URL to fetch the underlying aggregate bars used for MACD calculation.") });
33
+ const PolygonIoGetForexMacd_MACDResultsSchema = zod.z.object({
34
+ values: zod.z.array(PolygonIoGetForexMacd_MACDValueSchema).describe("Array of MACD data points with values, signals, and histograms.").nullable().optional(),
35
+ underlying: PolygonIoGetForexMacd_UnderlyingSchema.nullable().optional()
36
+ });
37
+ const PolygonIoGetForexMacdOutput = zod.z.object({
38
+ status: zod.z.string().describe("The status of this request's response (e.g., 'OK').").nullable().optional(),
39
+ results: PolygonIoGetForexMacd_MACDResultsSchema.nullable().optional(),
40
+ next_url: zod.z.string().describe("If present, this URL can be used to fetch the next page of data.").nullable().optional(),
41
+ request_id: zod.z.string().describe("A request ID assigned by the server.").nullable().optional()
42
+ });
43
+ const polygonIoGetForexMacd = require_action.action("POLYGON_IO_GET_FOREX_MACD", {
44
+ slug: "polygon_io-get-forex-macd",
45
+ name: "Get Forex MACD",
46
+ description: "Tool to calculate Moving Average Convergence/Divergence (MACD) technical indicator for a forex pair. Use when you need momentum analysis, trend identification, or trading signal generation for currency pairs.",
47
+ input: PolygonIoGetForexMacdInput,
48
+ output: PolygonIoGetForexMacdOutput
49
+ });
50
+ //#endregion
51
+ exports.polygonIoGetForexMacd = polygonIoGetForexMacd;
52
+
53
+ //# sourceMappingURL=get-forex-macd.cjs.map