@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.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/get-all-tickers.cjs +52 -0
- package/dist/actions/get-all-tickers.cjs.map +1 -0
- package/dist/actions/get-all-tickers.d.cts +9 -0
- package/dist/actions/get-all-tickers.d.cts.map +1 -0
- package/dist/actions/get-all-tickers.d.mts +9 -0
- package/dist/actions/get-all-tickers.d.mts.map +1 -0
- package/dist/actions/get-all-tickers.mjs +51 -0
- package/dist/actions/get-all-tickers.mjs.map +1 -0
- package/dist/actions/get-condition-codes.cjs +41 -0
- package/dist/actions/get-condition-codes.cjs.map +1 -0
- package/dist/actions/get-condition-codes.d.cts +9 -0
- package/dist/actions/get-condition-codes.d.cts.map +1 -0
- package/dist/actions/get-condition-codes.d.mts +9 -0
- package/dist/actions/get-condition-codes.d.mts.map +1 -0
- package/dist/actions/get-condition-codes.mjs +40 -0
- package/dist/actions/get-condition-codes.mjs.map +1 -0
- package/dist/actions/get-crypto-ema.cjs +70 -0
- package/dist/actions/get-crypto-ema.cjs.map +1 -0
- package/dist/actions/get-crypto-ema.d.cts +9 -0
- package/dist/actions/get-crypto-ema.d.cts.map +1 -0
- package/dist/actions/get-crypto-ema.d.mts +9 -0
- package/dist/actions/get-crypto-ema.d.mts.map +1 -0
- package/dist/actions/get-crypto-ema.mjs +69 -0
- package/dist/actions/get-crypto-ema.mjs.map +1 -0
- package/dist/actions/get-crypto-macd.cjs +49 -0
- package/dist/actions/get-crypto-macd.cjs.map +1 -0
- package/dist/actions/get-crypto-macd.d.cts +9 -0
- package/dist/actions/get-crypto-macd.d.cts.map +1 -0
- package/dist/actions/get-crypto-macd.d.mts +9 -0
- package/dist/actions/get-crypto-macd.d.mts.map +1 -0
- package/dist/actions/get-crypto-macd.mjs +48 -0
- package/dist/actions/get-crypto-macd.mjs.map +1 -0
- package/dist/actions/get-crypto-open-close.cjs +37 -0
- package/dist/actions/get-crypto-open-close.cjs.map +1 -0
- package/dist/actions/get-crypto-open-close.d.cts +9 -0
- package/dist/actions/get-crypto-open-close.d.cts.map +1 -0
- package/dist/actions/get-crypto-open-close.d.mts +9 -0
- package/dist/actions/get-crypto-open-close.d.mts.map +1 -0
- package/dist/actions/get-crypto-open-close.mjs +36 -0
- package/dist/actions/get-crypto-open-close.mjs.map +1 -0
- package/dist/actions/get-crypto-rsi.cjs +57 -0
- package/dist/actions/get-crypto-rsi.cjs.map +1 -0
- package/dist/actions/get-crypto-rsi.d.cts +9 -0
- package/dist/actions/get-crypto-rsi.d.cts.map +1 -0
- package/dist/actions/get-crypto-rsi.d.mts +9 -0
- package/dist/actions/get-crypto-rsi.d.mts.map +1 -0
- package/dist/actions/get-crypto-rsi.mjs +56 -0
- package/dist/actions/get-crypto-rsi.mjs.map +1 -0
- package/dist/actions/get-crypto-sma.cjs +57 -0
- package/dist/actions/get-crypto-sma.cjs.map +1 -0
- package/dist/actions/get-crypto-sma.d.cts +9 -0
- package/dist/actions/get-crypto-sma.d.cts.map +1 -0
- package/dist/actions/get-crypto-sma.d.mts +9 -0
- package/dist/actions/get-crypto-sma.d.mts.map +1 -0
- package/dist/actions/get-crypto-sma.mjs +56 -0
- package/dist/actions/get-crypto-sma.mjs.map +1 -0
- package/dist/actions/get-daily-open-close.cjs +31 -0
- package/dist/actions/get-daily-open-close.cjs.map +1 -0
- package/dist/actions/get-daily-open-close.d.cts +9 -0
- package/dist/actions/get-daily-open-close.d.cts.map +1 -0
- package/dist/actions/get-daily-open-close.d.mts +9 -0
- package/dist/actions/get-daily-open-close.d.mts.map +1 -0
- package/dist/actions/get-daily-open-close.mjs +28 -0
- package/dist/actions/get-daily-open-close.mjs.map +1 -0
- package/dist/actions/get-dividends.cjs +58 -0
- package/dist/actions/get-dividends.cjs.map +1 -0
- package/dist/actions/get-dividends.d.cts +9 -0
- package/dist/actions/get-dividends.d.cts.map +1 -0
- package/dist/actions/get-dividends.d.mts +9 -0
- package/dist/actions/get-dividends.d.mts.map +1 -0
- package/dist/actions/get-dividends.mjs +57 -0
- package/dist/actions/get-dividends.mjs.map +1 -0
- package/dist/actions/get-economy-inflation2.cjs +40 -0
- package/dist/actions/get-economy-inflation2.cjs.map +1 -0
- package/dist/actions/get-economy-inflation2.d.cts +9 -0
- package/dist/actions/get-economy-inflation2.d.cts.map +1 -0
- package/dist/actions/get-economy-inflation2.d.mts +9 -0
- package/dist/actions/get-economy-inflation2.d.mts.map +1 -0
- package/dist/actions/get-economy-inflation2.mjs +39 -0
- package/dist/actions/get-economy-inflation2.mjs.map +1 -0
- package/dist/actions/get-ema.cjs +58 -0
- package/dist/actions/get-ema.cjs.map +1 -0
- package/dist/actions/get-ema.d.cts +9 -0
- package/dist/actions/get-ema.d.cts.map +1 -0
- package/dist/actions/get-ema.d.mts +9 -0
- package/dist/actions/get-ema.d.mts.map +1 -0
- package/dist/actions/get-ema.mjs +57 -0
- package/dist/actions/get-ema.mjs.map +1 -0
- package/dist/actions/get-filing-file.cjs +24 -0
- package/dist/actions/get-filing-file.cjs.map +1 -0
- package/dist/actions/get-filing-file.d.cts +9 -0
- package/dist/actions/get-filing-file.d.cts.map +1 -0
- package/dist/actions/get-filing-file.d.mts +9 -0
- package/dist/actions/get-filing-file.d.mts.map +1 -0
- package/dist/actions/get-filing-file.mjs +23 -0
- package/dist/actions/get-filing-file.mjs.map +1 -0
- package/dist/actions/get-filing.cjs +38 -0
- package/dist/actions/get-filing.cjs.map +1 -0
- package/dist/actions/get-filing.d.cts +9 -0
- package/dist/actions/get-filing.d.cts.map +1 -0
- package/dist/actions/get-filing.d.mts +9 -0
- package/dist/actions/get-filing.d.mts.map +1 -0
- package/dist/actions/get-filing.mjs +37 -0
- package/dist/actions/get-filing.mjs.map +1 -0
- package/dist/actions/get-forex-ema.cjs +63 -0
- package/dist/actions/get-forex-ema.cjs.map +1 -0
- package/dist/actions/get-forex-ema.d.cts +9 -0
- package/dist/actions/get-forex-ema.d.cts.map +1 -0
- package/dist/actions/get-forex-ema.d.mts +9 -0
- package/dist/actions/get-forex-ema.d.mts.map +1 -0
- package/dist/actions/get-forex-ema.mjs +62 -0
- package/dist/actions/get-forex-ema.mjs.map +1 -0
- package/dist/actions/get-forex-macd.cjs +53 -0
- package/dist/actions/get-forex-macd.cjs.map +1 -0
- package/dist/actions/get-forex-macd.d.cts +9 -0
- package/dist/actions/get-forex-macd.d.cts.map +1 -0
- package/dist/actions/get-forex-macd.d.mts +9 -0
- package/dist/actions/get-forex-macd.d.mts.map +1 -0
- package/dist/actions/get-forex-macd.mjs +52 -0
- package/dist/actions/get-forex-macd.mjs.map +1 -0
- package/dist/actions/get-forex-real-time-currency-conversion.cjs +36 -0
- package/dist/actions/get-forex-real-time-currency-conversion.cjs.map +1 -0
- package/dist/actions/get-forex-real-time-currency-conversion.d.cts +9 -0
- package/dist/actions/get-forex-real-time-currency-conversion.d.cts.map +1 -0
- package/dist/actions/get-forex-real-time-currency-conversion.d.mts +9 -0
- package/dist/actions/get-forex-real-time-currency-conversion.d.mts.map +1 -0
- package/dist/actions/get-forex-real-time-currency-conversion.mjs +35 -0
- package/dist/actions/get-forex-real-time-currency-conversion.mjs.map +1 -0
- package/dist/actions/get-forex-rsi.cjs +57 -0
- package/dist/actions/get-forex-rsi.cjs.map +1 -0
- package/dist/actions/get-forex-rsi.d.cts +9 -0
- package/dist/actions/get-forex-rsi.d.cts.map +1 -0
- package/dist/actions/get-forex-rsi.d.mts +9 -0
- package/dist/actions/get-forex-rsi.d.mts.map +1 -0
- package/dist/actions/get-forex-rsi.mjs +56 -0
- package/dist/actions/get-forex-rsi.mjs.map +1 -0
- package/dist/actions/get-forex-sma.cjs +70 -0
- package/dist/actions/get-forex-sma.cjs.map +1 -0
- package/dist/actions/get-forex-sma.d.cts +9 -0
- package/dist/actions/get-forex-sma.d.cts.map +1 -0
- package/dist/actions/get-forex-sma.d.mts +9 -0
- package/dist/actions/get-forex-sma.d.mts.map +1 -0
- package/dist/actions/get-forex-sma.mjs +69 -0
- package/dist/actions/get-forex-sma.mjs.map +1 -0
- package/dist/actions/get-futures-quotes.cjs +42 -0
- package/dist/actions/get-futures-quotes.cjs.map +1 -0
- package/dist/actions/get-futures-quotes.d.cts +9 -0
- package/dist/actions/get-futures-quotes.d.cts.map +1 -0
- package/dist/actions/get-futures-quotes.d.mts +9 -0
- package/dist/actions/get-futures-quotes.d.mts.map +1 -0
- package/dist/actions/get-futures-quotes.mjs +41 -0
- package/dist/actions/get-futures-quotes.mjs.map +1 -0
- package/dist/actions/get-grouped-daily.cjs +44 -0
- package/dist/actions/get-grouped-daily.cjs.map +1 -0
- package/dist/actions/get-grouped-daily.d.cts +9 -0
- package/dist/actions/get-grouped-daily.d.cts.map +1 -0
- package/dist/actions/get-grouped-daily.d.mts +9 -0
- package/dist/actions/get-grouped-daily.d.mts.map +1 -0
- package/dist/actions/get-grouped-daily.mjs +43 -0
- package/dist/actions/get-grouped-daily.mjs.map +1 -0
- package/dist/actions/get-historic-forex-ticks.cjs +33 -0
- package/dist/actions/get-historic-forex-ticks.cjs.map +1 -0
- package/dist/actions/get-historic-forex-ticks.d.cts +9 -0
- package/dist/actions/get-historic-forex-ticks.d.cts.map +1 -0
- package/dist/actions/get-historic-forex-ticks.d.mts +9 -0
- package/dist/actions/get-historic-forex-ticks.d.mts.map +1 -0
- package/dist/actions/get-historic-forex-ticks.mjs +32 -0
- package/dist/actions/get-historic-forex-ticks.mjs.map +1 -0
- package/dist/actions/get-inflation-expectations.cjs +41 -0
- package/dist/actions/get-inflation-expectations.cjs.map +1 -0
- package/dist/actions/get-inflation-expectations.d.cts +9 -0
- package/dist/actions/get-inflation-expectations.d.cts.map +1 -0
- package/dist/actions/get-inflation-expectations.d.mts +9 -0
- package/dist/actions/get-inflation-expectations.d.mts.map +1 -0
- package/dist/actions/get-inflation-expectations.mjs +40 -0
- package/dist/actions/get-inflation-expectations.mjs.map +1 -0
- package/dist/actions/get-ipo-data.cjs +40 -0
- package/dist/actions/get-ipo-data.cjs.map +1 -0
- package/dist/actions/get-ipo-data.d.cts +9 -0
- package/dist/actions/get-ipo-data.d.cts.map +1 -0
- package/dist/actions/get-ipo-data.d.mts +9 -0
- package/dist/actions/get-ipo-data.d.mts.map +1 -0
- package/dist/actions/get-ipo-data.mjs +39 -0
- package/dist/actions/get-ipo-data.mjs.map +1 -0
- package/dist/actions/get-labor-market.cjs +38 -0
- package/dist/actions/get-labor-market.cjs.map +1 -0
- package/dist/actions/get-labor-market.d.cts +9 -0
- package/dist/actions/get-labor-market.d.cts.map +1 -0
- package/dist/actions/get-labor-market.d.mts +9 -0
- package/dist/actions/get-labor-market.d.mts.map +1 -0
- package/dist/actions/get-labor-market.mjs +37 -0
- package/dist/actions/get-labor-market.mjs.map +1 -0
- package/dist/actions/get-macd.cjs +49 -0
- package/dist/actions/get-macd.cjs.map +1 -0
- package/dist/actions/get-macd.d.cts +9 -0
- package/dist/actions/get-macd.d.cts.map +1 -0
- package/dist/actions/get-macd.d.mts +9 -0
- package/dist/actions/get-macd.d.mts.map +1 -0
- package/dist/actions/get-macd.mjs +48 -0
- package/dist/actions/get-macd.mjs.map +1 -0
- package/dist/actions/get-market-holidays.cjs +24 -0
- package/dist/actions/get-market-holidays.cjs.map +1 -0
- package/dist/actions/get-market-holidays.d.cts +9 -0
- package/dist/actions/get-market-holidays.d.cts.map +1 -0
- package/dist/actions/get-market-holidays.d.mts +9 -0
- package/dist/actions/get-market-holidays.d.mts.map +1 -0
- package/dist/actions/get-market-holidays.mjs +23 -0
- package/dist/actions/get-market-holidays.mjs.map +1 -0
- package/dist/actions/get-market-status.cjs +24 -0
- package/dist/actions/get-market-status.cjs.map +1 -0
- package/dist/actions/get-market-status.d.cts +9 -0
- package/dist/actions/get-market-status.d.cts.map +1 -0
- package/dist/actions/get-market-status.d.mts +9 -0
- package/dist/actions/get-market-status.d.mts.map +1 -0
- package/dist/actions/get-market-status.mjs +21 -0
- package/dist/actions/get-market-status.mjs.map +1 -0
- package/dist/actions/get-news.cjs +48 -0
- package/dist/actions/get-news.cjs.map +1 -0
- package/dist/actions/get-news.d.cts +9 -0
- package/dist/actions/get-news.d.cts.map +1 -0
- package/dist/actions/get-news.d.mts +9 -0
- package/dist/actions/get-news.d.mts.map +1 -0
- package/dist/actions/get-news.mjs +47 -0
- package/dist/actions/get-news.mjs.map +1 -0
- package/dist/actions/get-options-contract-overview.cjs +41 -0
- package/dist/actions/get-options-contract-overview.cjs.map +1 -0
- package/dist/actions/get-options-contract-overview.d.cts +9 -0
- package/dist/actions/get-options-contract-overview.d.cts.map +1 -0
- package/dist/actions/get-options-contract-overview.d.mts +9 -0
- package/dist/actions/get-options-contract-overview.d.mts.map +1 -0
- package/dist/actions/get-options-contract-overview.mjs +40 -0
- package/dist/actions/get-options-contract-overview.mjs.map +1 -0
- package/dist/actions/get-options-ema.cjs +62 -0
- package/dist/actions/get-options-ema.cjs.map +1 -0
- package/dist/actions/get-options-ema.d.cts +9 -0
- package/dist/actions/get-options-ema.d.cts.map +1 -0
- package/dist/actions/get-options-ema.d.mts +9 -0
- package/dist/actions/get-options-ema.d.mts.map +1 -0
- package/dist/actions/get-options-ema.mjs +61 -0
- package/dist/actions/get-options-ema.mjs.map +1 -0
- package/dist/actions/get-options-macd.cjs +49 -0
- package/dist/actions/get-options-macd.cjs.map +1 -0
- package/dist/actions/get-options-macd.d.cts +9 -0
- package/dist/actions/get-options-macd.d.cts.map +1 -0
- package/dist/actions/get-options-macd.d.mts +9 -0
- package/dist/actions/get-options-macd.d.mts.map +1 -0
- package/dist/actions/get-options-macd.mjs +48 -0
- package/dist/actions/get-options-macd.mjs.map +1 -0
- package/dist/actions/get-options-rsi.cjs +57 -0
- package/dist/actions/get-options-rsi.cjs.map +1 -0
- package/dist/actions/get-options-rsi.d.cts +9 -0
- package/dist/actions/get-options-rsi.d.cts.map +1 -0
- package/dist/actions/get-options-rsi.d.mts +9 -0
- package/dist/actions/get-options-rsi.d.mts.map +1 -0
- package/dist/actions/get-options-rsi.mjs +56 -0
- package/dist/actions/get-options-rsi.mjs.map +1 -0
- package/dist/actions/get-options-sma.cjs +71 -0
- package/dist/actions/get-options-sma.cjs.map +1 -0
- package/dist/actions/get-options-sma.d.cts +9 -0
- package/dist/actions/get-options-sma.d.cts.map +1 -0
- package/dist/actions/get-options-sma.d.mts +9 -0
- package/dist/actions/get-options-sma.d.mts.map +1 -0
- package/dist/actions/get-options-sma.mjs +70 -0
- package/dist/actions/get-options-sma.mjs.map +1 -0
- package/dist/actions/get-related-companies.cjs +22 -0
- package/dist/actions/get-related-companies.cjs.map +1 -0
- package/dist/actions/get-related-companies.d.cts +9 -0
- package/dist/actions/get-related-companies.d.cts.map +1 -0
- package/dist/actions/get-related-companies.d.mts +9 -0
- package/dist/actions/get-related-companies.d.mts.map +1 -0
- package/dist/actions/get-related-companies.mjs +21 -0
- package/dist/actions/get-related-companies.mjs.map +1 -0
- package/dist/actions/get-rsi.cjs +45 -0
- package/dist/actions/get-rsi.cjs.map +1 -0
- package/dist/actions/get-rsi.d.cts +9 -0
- package/dist/actions/get-rsi.d.cts.map +1 -0
- package/dist/actions/get-rsi.d.mts +9 -0
- package/dist/actions/get-rsi.d.mts.map +1 -0
- package/dist/actions/get-rsi.mjs +44 -0
- package/dist/actions/get-rsi.mjs.map +1 -0
- package/dist/actions/get-sma.cjs +45 -0
- package/dist/actions/get-sma.cjs.map +1 -0
- package/dist/actions/get-sma.d.cts +9 -0
- package/dist/actions/get-sma.d.cts.map +1 -0
- package/dist/actions/get-sma.d.mts +9 -0
- package/dist/actions/get-sma.d.mts.map +1 -0
- package/dist/actions/get-sma.mjs +44 -0
- package/dist/actions/get-sma.mjs.map +1 -0
- package/dist/actions/get-splits.cjs +39 -0
- package/dist/actions/get-splits.cjs.map +1 -0
- package/dist/actions/get-splits.d.cts +9 -0
- package/dist/actions/get-splits.d.cts.map +1 -0
- package/dist/actions/get-splits.d.mts +9 -0
- package/dist/actions/get-splits.d.mts.map +1 -0
- package/dist/actions/get-splits.mjs +38 -0
- package/dist/actions/get-splits.mjs.map +1 -0
- package/dist/actions/get-stocks-custom-bars.cjs +50 -0
- package/dist/actions/get-stocks-custom-bars.cjs.map +1 -0
- package/dist/actions/get-stocks-custom-bars.d.cts +9 -0
- package/dist/actions/get-stocks-custom-bars.d.cts.map +1 -0
- package/dist/actions/get-stocks-custom-bars.d.mts +9 -0
- package/dist/actions/get-stocks-custom-bars.d.mts.map +1 -0
- package/dist/actions/get-stocks-custom-bars.mjs +49 -0
- package/dist/actions/get-stocks-custom-bars.mjs.map +1 -0
- package/dist/actions/get-stocks-daily-market-summary.cjs +39 -0
- package/dist/actions/get-stocks-daily-market-summary.cjs.map +1 -0
- package/dist/actions/get-stocks-daily-market-summary.d.cts +9 -0
- package/dist/actions/get-stocks-daily-market-summary.d.cts.map +1 -0
- package/dist/actions/get-stocks-daily-market-summary.d.mts +9 -0
- package/dist/actions/get-stocks-daily-market-summary.d.mts.map +1 -0
- package/dist/actions/get-stocks-daily-market-summary.mjs +38 -0
- package/dist/actions/get-stocks-daily-market-summary.mjs.map +1 -0
- package/dist/actions/get-stocks-filings-risk-factors.cjs +51 -0
- package/dist/actions/get-stocks-filings-risk-factors.cjs.map +1 -0
- package/dist/actions/get-stocks-filings-risk-factors.d.cts +9 -0
- package/dist/actions/get-stocks-filings-risk-factors.d.cts.map +1 -0
- package/dist/actions/get-stocks-filings-risk-factors.d.mts +9 -0
- package/dist/actions/get-stocks-filings-risk-factors.d.mts.map +1 -0
- package/dist/actions/get-stocks-filings-risk-factors.mjs +50 -0
- package/dist/actions/get-stocks-filings-risk-factors.mjs.map +1 -0
- package/dist/actions/get-stocks-filings-sections.cjs +57 -0
- package/dist/actions/get-stocks-filings-sections.cjs.map +1 -0
- package/dist/actions/get-stocks-filings-sections.d.cts +9 -0
- package/dist/actions/get-stocks-filings-sections.d.cts.map +1 -0
- package/dist/actions/get-stocks-filings-sections.d.mts +9 -0
- package/dist/actions/get-stocks-filings-sections.d.mts.map +1 -0
- package/dist/actions/get-stocks-filings-sections.mjs +56 -0
- package/dist/actions/get-stocks-filings-sections.mjs.map +1 -0
- package/dist/actions/get-stocks-free-float.cjs +41 -0
- package/dist/actions/get-stocks-free-float.cjs.map +1 -0
- package/dist/actions/get-stocks-free-float.d.cts +9 -0
- package/dist/actions/get-stocks-free-float.d.cts.map +1 -0
- package/dist/actions/get-stocks-free-float.d.mts +9 -0
- package/dist/actions/get-stocks-free-float.d.mts.map +1 -0
- package/dist/actions/get-stocks-free-float.mjs +40 -0
- package/dist/actions/get-stocks-free-float.mjs.map +1 -0
- package/dist/actions/get-stocks-full-market-snapshot.cjs +68 -0
- package/dist/actions/get-stocks-full-market-snapshot.cjs.map +1 -0
- package/dist/actions/get-stocks-full-market-snapshot.d.cts +9 -0
- package/dist/actions/get-stocks-full-market-snapshot.d.cts.map +1 -0
- package/dist/actions/get-stocks-full-market-snapshot.d.mts +9 -0
- package/dist/actions/get-stocks-full-market-snapshot.d.mts.map +1 -0
- package/dist/actions/get-stocks-full-market-snapshot.mjs +67 -0
- package/dist/actions/get-stocks-full-market-snapshot.mjs.map +1 -0
- package/dist/actions/get-stocks-income-statements.cjs +92 -0
- package/dist/actions/get-stocks-income-statements.cjs.map +1 -0
- package/dist/actions/get-stocks-income-statements.d.cts +9 -0
- package/dist/actions/get-stocks-income-statements.d.cts.map +1 -0
- package/dist/actions/get-stocks-income-statements.d.mts +9 -0
- package/dist/actions/get-stocks-income-statements.d.mts.map +1 -0
- package/dist/actions/get-stocks-income-statements.mjs +91 -0
- package/dist/actions/get-stocks-income-statements.mjs.map +1 -0
- package/dist/actions/get-stocks-previous-day-bar.cjs +38 -0
- package/dist/actions/get-stocks-previous-day-bar.cjs.map +1 -0
- package/dist/actions/get-stocks-previous-day-bar.d.cts +9 -0
- package/dist/actions/get-stocks-previous-day-bar.d.cts.map +1 -0
- package/dist/actions/get-stocks-previous-day-bar.d.mts +9 -0
- package/dist/actions/get-stocks-previous-day-bar.d.mts.map +1 -0
- package/dist/actions/get-stocks-previous-day-bar.mjs +37 -0
- package/dist/actions/get-stocks-previous-day-bar.mjs.map +1 -0
- package/dist/actions/get-stocks-risk-factor-taxonomies.cjs +54 -0
- package/dist/actions/get-stocks-risk-factor-taxonomies.cjs.map +1 -0
- package/dist/actions/get-stocks-risk-factor-taxonomies.d.cts +9 -0
- package/dist/actions/get-stocks-risk-factor-taxonomies.d.cts.map +1 -0
- package/dist/actions/get-stocks-risk-factor-taxonomies.d.mts +9 -0
- package/dist/actions/get-stocks-risk-factor-taxonomies.d.mts.map +1 -0
- package/dist/actions/get-stocks-risk-factor-taxonomies.mjs +53 -0
- package/dist/actions/get-stocks-risk-factor-taxonomies.mjs.map +1 -0
- package/dist/actions/get-stocks-v1-dividends.cjs +62 -0
- package/dist/actions/get-stocks-v1-dividends.cjs.map +1 -0
- package/dist/actions/get-stocks-v1-dividends.d.cts +9 -0
- package/dist/actions/get-stocks-v1-dividends.d.cts.map +1 -0
- package/dist/actions/get-stocks-v1-dividends.d.mts +9 -0
- package/dist/actions/get-stocks-v1-dividends.d.mts.map +1 -0
- package/dist/actions/get-stocks-v1-dividends.mjs +61 -0
- package/dist/actions/get-stocks-v1-dividends.mjs.map +1 -0
- package/dist/actions/get-stocks-v1-short-interest.cjs +55 -0
- package/dist/actions/get-stocks-v1-short-interest.cjs.map +1 -0
- package/dist/actions/get-stocks-v1-short-interest.d.cts +9 -0
- package/dist/actions/get-stocks-v1-short-interest.d.cts.map +1 -0
- package/dist/actions/get-stocks-v1-short-interest.d.mts +9 -0
- package/dist/actions/get-stocks-v1-short-interest.d.mts.map +1 -0
- package/dist/actions/get-stocks-v1-short-interest.mjs +54 -0
- package/dist/actions/get-stocks-v1-short-interest.mjs.map +1 -0
- package/dist/actions/get-stocks-v1-short-volume.cjs +65 -0
- package/dist/actions/get-stocks-v1-short-volume.cjs.map +1 -0
- package/dist/actions/get-stocks-v1-short-volume.d.cts +9 -0
- package/dist/actions/get-stocks-v1-short-volume.d.cts.map +1 -0
- package/dist/actions/get-stocks-v1-short-volume.d.mts +9 -0
- package/dist/actions/get-stocks-v1-short-volume.d.mts.map +1 -0
- package/dist/actions/get-stocks-v1-short-volume.mjs +64 -0
- package/dist/actions/get-stocks-v1-short-volume.mjs.map +1 -0
- package/dist/actions/get-stocks-v1-splits.cjs +50 -0
- package/dist/actions/get-stocks-v1-splits.cjs.map +1 -0
- package/dist/actions/get-stocks-v1-splits.d.cts +9 -0
- package/dist/actions/get-stocks-v1-splits.d.cts.map +1 -0
- package/dist/actions/get-stocks-v1-splits.d.mts +9 -0
- package/dist/actions/get-stocks-v1-splits.d.mts.map +1 -0
- package/dist/actions/get-stocks-v1-splits.mjs +49 -0
- package/dist/actions/get-stocks-v1-splits.mjs.map +1 -0
- package/dist/actions/get-ticker-events.cjs +33 -0
- package/dist/actions/get-ticker-events.cjs.map +1 -0
- package/dist/actions/get-ticker-events.d.cts +9 -0
- package/dist/actions/get-ticker-events.d.cts.map +1 -0
- package/dist/actions/get-ticker-events.d.mts +9 -0
- package/dist/actions/get-ticker-events.d.mts.map +1 -0
- package/dist/actions/get-ticker-events.mjs +32 -0
- package/dist/actions/get-ticker-events.mjs.map +1 -0
- package/dist/actions/get-ticker-overview.cjs +57 -0
- package/dist/actions/get-ticker-overview.cjs.map +1 -0
- package/dist/actions/get-ticker-overview.d.cts +9 -0
- package/dist/actions/get-ticker-overview.d.cts.map +1 -0
- package/dist/actions/get-ticker-overview.d.mts +9 -0
- package/dist/actions/get-ticker-overview.d.mts.map +1 -0
- package/dist/actions/get-ticker-overview.mjs +56 -0
- package/dist/actions/get-ticker-overview.mjs.map +1 -0
- package/dist/actions/get-ticker-types.cjs +24 -0
- package/dist/actions/get-ticker-types.cjs.map +1 -0
- package/dist/actions/get-ticker-types.d.cts +9 -0
- package/dist/actions/get-ticker-types.d.cts.map +1 -0
- package/dist/actions/get-ticker-types.d.mts +9 -0
- package/dist/actions/get-ticker-types.d.mts.map +1 -0
- package/dist/actions/get-ticker-types.mjs +23 -0
- package/dist/actions/get-ticker-types.mjs.map +1 -0
- package/dist/actions/get-treasury-yields.cjs +45 -0
- package/dist/actions/get-treasury-yields.cjs.map +1 -0
- package/dist/actions/get-treasury-yields.d.cts +9 -0
- package/dist/actions/get-treasury-yields.d.cts.map +1 -0
- package/dist/actions/get-treasury-yields.d.mts +9 -0
- package/dist/actions/get-treasury-yields.d.mts.map +1 -0
- package/dist/actions/get-treasury-yields.mjs +44 -0
- package/dist/actions/get-treasury-yields.mjs.map +1 -0
- package/dist/actions/index.cjs +121 -0
- package/dist/actions/index.d.cts +61 -0
- package/dist/actions/index.d.mts +61 -0
- package/dist/actions/index.mjs +61 -0
- package/dist/actions/list-exchanges.cjs +42 -0
- package/dist/actions/list-exchanges.cjs.map +1 -0
- package/dist/actions/list-exchanges.d.cts +9 -0
- package/dist/actions/list-exchanges.d.cts.map +1 -0
- package/dist/actions/list-exchanges.d.mts +9 -0
- package/dist/actions/list-exchanges.d.mts.map +1 -0
- package/dist/actions/list-exchanges.mjs +41 -0
- package/dist/actions/list-exchanges.mjs.map +1 -0
- package/dist/actions/list-filing-files.cjs +46 -0
- package/dist/actions/list-filing-files.cjs.map +1 -0
- package/dist/actions/list-filing-files.d.cts +9 -0
- package/dist/actions/list-filing-files.d.cts.map +1 -0
- package/dist/actions/list-filing-files.d.mts +9 -0
- package/dist/actions/list-filing-files.d.mts.map +1 -0
- package/dist/actions/list-filing-files.mjs +45 -0
- package/dist/actions/list-filing-files.mjs.map +1 -0
- package/dist/actions/list-filings.cjs +62 -0
- package/dist/actions/list-filings.cjs.map +1 -0
- package/dist/actions/list-filings.d.cts +9 -0
- package/dist/actions/list-filings.d.cts.map +1 -0
- package/dist/actions/list-filings.d.mts +9 -0
- package/dist/actions/list-filings.d.mts.map +1 -0
- package/dist/actions/list-filings.mjs +61 -0
- package/dist/actions/list-filings.mjs.map +1 -0
- package/dist/actions/list-options-contracts.cjs +57 -0
- package/dist/actions/list-options-contracts.cjs.map +1 -0
- package/dist/actions/list-options-contracts.d.cts +9 -0
- package/dist/actions/list-options-contracts.d.cts.map +1 -0
- package/dist/actions/list-options-contracts.d.mts +9 -0
- package/dist/actions/list-options-contracts.d.mts.map +1 -0
- package/dist/actions/list-options-contracts.mjs +56 -0
- package/dist/actions/list-options-contracts.mjs.map +1 -0
- package/dist/actions/polygon-last-quote-for-a-symbol.cjs +30 -0
- package/dist/actions/polygon-last-quote-for-a-symbol.cjs.map +1 -0
- package/dist/actions/polygon-last-quote-for-a-symbol.d.cts +9 -0
- package/dist/actions/polygon-last-quote-for-a-symbol.d.cts.map +1 -0
- package/dist/actions/polygon-last-quote-for-a-symbol.d.mts +9 -0
- package/dist/actions/polygon-last-quote-for-a-symbol.d.mts.map +1 -0
- package/dist/actions/polygon-last-quote-for-a-symbol.mjs +29 -0
- package/dist/actions/polygon-last-quote-for-a-symbol.mjs.map +1 -0
- package/dist/actions/polygon-last-trade-for-a-currency-pair.cjs +30 -0
- package/dist/actions/polygon-last-trade-for-a-currency-pair.cjs.map +1 -0
- package/dist/actions/polygon-last-trade-for-a-currency-pair.d.cts +9 -0
- package/dist/actions/polygon-last-trade-for-a-currency-pair.d.cts.map +1 -0
- package/dist/actions/polygon-last-trade-for-a-currency-pair.d.mts +9 -0
- package/dist/actions/polygon-last-trade-for-a-currency-pair.d.mts.map +1 -0
- package/dist/actions/polygon-last-trade-for-a-currency-pair.mjs +29 -0
- package/dist/actions/polygon-last-trade-for-a-currency-pair.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +126 -0
- package/dist/index.d.cts +63 -0
- package/dist/index.d.mts +63 -0
- package/dist/index.mjs +64 -0
- package/package.json +49 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-crypto-sma.ts
|
|
4
|
+
const PolygonIoGetCryptoSmaInput = z.object({
|
|
5
|
+
limit: z.number().int().default(5e3).describe("Limit the number of base aggregates queried to create the aggregate results. Min: 1, Max: 50000. Defaults to 5000.").optional(),
|
|
6
|
+
order: z.enum(["asc", "desc"]).default("desc").describe("The order in which to return the results, ordered by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'desc'.").optional(),
|
|
7
|
+
window: z.number().int().describe("The window size (number of periods) used to calculate the SMA. For example, 50 for a 50-period moving average."),
|
|
8
|
+
adjusted: z.boolean().default(true).describe("Whether or not the aggregates used to calculate the SMA are 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
|
+
]).describe("The size of the aggregate time window. Options: minute, hour, day, week, month, quarter, year."),
|
|
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 SMA. Options: open, high, low, close. Defaults to 'close'.").optional(),
|
|
25
|
+
"timestamp.gt": z.string().describe("Filter for timestamps greater than the specified value.").optional(),
|
|
26
|
+
"timestamp.lt": z.string().describe("Filter for timestamps less than the specified value.").optional(),
|
|
27
|
+
crypto_ticker: z.string().describe("The cryptocurrency ticker symbol in the format X:BTCUSD, X:ETHUSD, etc. Must include the 'X:' prefix for cryptocurrency pairs."),
|
|
28
|
+
"timestamp.gte": z.string().describe("Filter for timestamps greater than or equal to the specified value.").optional(),
|
|
29
|
+
"timestamp.lte": z.string().describe("Filter for timestamps less than or equal to the specified value.").optional(),
|
|
30
|
+
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()
|
|
31
|
+
}).describe("Parameters to retrieve the Simple Moving Average (SMA) for a cryptocurrency ticker.");
|
|
32
|
+
const PolygonIoGetCryptoSma_SMAValueSchema = z.object({
|
|
33
|
+
value: z.number().describe("The Simple Moving Average indicator value for this period."),
|
|
34
|
+
timestamp: z.number().int().describe("The Unix millisecond timestamp for the start of the aggregate window.")
|
|
35
|
+
});
|
|
36
|
+
const PolygonIoGetCryptoSma_UnderlyingSchema = z.object({ url: z.string().describe("The URL which can be used to request the underlying aggregates used in this request.") });
|
|
37
|
+
const PolygonIoGetCryptoSma_SMAResultsSchema = z.object({
|
|
38
|
+
values: z.array(PolygonIoGetCryptoSma_SMAValueSchema).describe("An array of SMA value objects with timestamps and indicator values.").nullable().optional(),
|
|
39
|
+
underlying: PolygonIoGetCryptoSma_UnderlyingSchema.nullable().optional()
|
|
40
|
+
});
|
|
41
|
+
const polygonIoGetCryptoSma = action("POLYGON_IO_GET_CRYPTO_SMA", {
|
|
42
|
+
slug: "polygon_io-get-crypto-sma",
|
|
43
|
+
name: "Get Crypto SMA",
|
|
44
|
+
description: "Tool to calculate Simple Moving Average (SMA) technical indicator for a cryptocurrency ticker. Use when you need trend analysis, support/resistance levels, or trading signal generation for crypto pairs.",
|
|
45
|
+
input: PolygonIoGetCryptoSmaInput,
|
|
46
|
+
output: z.object({
|
|
47
|
+
status: z.string().describe("The status of this request's response (e.g., 'OK').").nullable().optional(),
|
|
48
|
+
results: PolygonIoGetCryptoSma_SMAResultsSchema.nullable().optional(),
|
|
49
|
+
next_url: z.string().describe("If present, this value can be used to fetch the next page of data.").nullable().optional(),
|
|
50
|
+
request_id: z.string().describe("A request ID assigned by the server for tracking.").nullable().optional()
|
|
51
|
+
})
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
export { polygonIoGetCryptoSma };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=get-crypto-sma.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-crypto-sma.mjs","names":[],"sources":["../../src/actions/get-crypto-sma.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetCryptoSmaInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(5000).describe(\"Limit the number of base aggregates queried to create the aggregate results. Min: 1, Max: 50000. Defaults to 5000.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"The order in which to return the results, ordered by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'desc'.\").optional(),\n window: z.number().int().describe(\"The window size (number of periods) used to calculate the SMA. For example, 50 for a 50-period moving average.\"),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the SMA are adjusted for splits. Defaults to True.\").optional(),\n timespan: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\"]).describe(\"The size of the aggregate time window. Options: minute, hour, day, week, month, quarter, year.\"),\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 SMA. Options: open, high, low, close. Defaults to 'close'.\").optional(),\n \"timestamp.gt\": z.string().describe(\"Filter for timestamps greater than the specified value.\").optional(),\n \"timestamp.lt\": z.string().describe(\"Filter for timestamps less than the specified value.\").optional(),\n crypto_ticker: z.string().describe(\"The cryptocurrency ticker symbol in the format X:BTCUSD, X:ETHUSD, etc. Must include the 'X:' prefix for cryptocurrency pairs.\"),\n \"timestamp.gte\": z.string().describe(\"Filter for timestamps greater than or equal to the specified value.\").optional(),\n \"timestamp.lte\": z.string().describe(\"Filter for timestamps less than or equal to the specified value.\").optional(),\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 Simple Moving Average (SMA) for a cryptocurrency ticker.\");\nconst PolygonIoGetCryptoSma_SMAValueSchema: z.ZodTypeAny = z.object({\n value: z.number().describe(\"The Simple Moving Average indicator value for this period.\"),\n timestamp: z.number().int().describe(\"The Unix millisecond timestamp for the start of the aggregate window.\"),\n});\nconst PolygonIoGetCryptoSma_UnderlyingSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL which can be used to request the underlying aggregates used in this request.\"),\n});\nconst PolygonIoGetCryptoSma_SMAResultsSchema: z.ZodTypeAny = z.object({\n values: z.array(PolygonIoGetCryptoSma_SMAValueSchema).describe(\"An array of SMA value objects with timestamps and indicator values.\").nullable().optional(),\n underlying: PolygonIoGetCryptoSma_UnderlyingSchema.nullable().optional(),\n});\nexport const PolygonIoGetCryptoSmaOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\").nullable().optional(),\n results: PolygonIoGetCryptoSma_SMAResultsSchema.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 for tracking.\").nullable().optional(),\n});\n\nexport const polygonIoGetCryptoSma = action(\"POLYGON_IO_GET_CRYPTO_SMA\", {\n slug: \"polygon_io-get-crypto-sma\",\n name: \"Get Crypto SMA\",\n description: \"Tool to calculate Simple Moving Average (SMA) technical indicator for a cryptocurrency ticker. Use when you need trend analysis, support/resistance levels, or trading signal generation for crypto pairs.\",\n input: PolygonIoGetCryptoSmaInput,\n output: PolygonIoGetCryptoSmaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC9K,OAAO,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CACjN,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gHAAgH;CAClJ,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC5J,UAAU,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;EAAQ;EAAS;EAAW;CAAM,CAAC,CAAC,CAAC,SAAS,gGAAgG;CACzL,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACpI,aAAa,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAO;CAAO,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CACtN,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACxG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACrG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;CACnK,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACrH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,mBAAmB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;AACnL,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,uCAAqD,EAAE,OAAO;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACvF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE;AAC9G,CAAC;AACD,MAAM,yCAAuD,EAAE,OAAO,EACpE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,EACjH,CAAC;AACD,MAAM,yCAAuD,EAAE,OAAO;CACpE,QAAQ,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,YAAY,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC;AAQD,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZuD,EAAE,OAAO;EAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,SAAS,uCAAuC,SAAS,CAAC,CAAC,SAAS;EACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-daily-open-close.ts
|
|
4
|
+
const PolygonIoGetDailyOpenCloseInput = zod.z.object({
|
|
5
|
+
date: zod.z.string().describe("The date of the requested open/close in the format YYYY-MM-DD (e.g., '2023-03-10', '2026-02-13')."),
|
|
6
|
+
adjusted: zod.z.boolean().default(true).describe("Whether or not the results are adjusted for splits. Default is true.").optional(),
|
|
7
|
+
stocks_ticker: zod.z.string().describe("The ticker symbol of the stock (e.g., 'AAPL', 'TSLA', 'MSFT'). Must be a valid stock ticker.")
|
|
8
|
+
}).describe("Parameters for retrieving daily open, close, after-hours, and pre-market prices for a stock.");
|
|
9
|
+
const PolygonIoGetDailyOpenCloseOutput = zod.z.object({
|
|
10
|
+
low: zod.z.number().describe("The lowest price for the symbol on the given date."),
|
|
11
|
+
from: zod.z.string().describe("The requested date in YYYY-MM-DD format."),
|
|
12
|
+
high: zod.z.number().describe("The highest price for the symbol on the given date."),
|
|
13
|
+
open: zod.z.number().describe("The open price for the symbol on the given date."),
|
|
14
|
+
close: zod.z.number().describe("The close price for the symbol on the given date."),
|
|
15
|
+
status: zod.z.string().describe("The status of this request's response (e.g., 'OK')."),
|
|
16
|
+
symbol: zod.z.string().describe("The exchange symbol that this item is traded under."),
|
|
17
|
+
volume: zod.z.number().describe("The trading volume for the symbol on the given date.").nullable().optional(),
|
|
18
|
+
preMarket: zod.z.number().describe("The open value of the ticker symbol in pre-market trading.").nullable().optional(),
|
|
19
|
+
afterHours: zod.z.number().describe("The close value of the ticker symbol in after hours trading.").nullable().optional()
|
|
20
|
+
}).describe("Response containing daily open, close, high, low, after-hours, and pre-market prices for a stock.");
|
|
21
|
+
const polygonIoGetDailyOpenClose = require_action.action("POLYGON_IO_GET_DAILY_OPEN_CLOSE", {
|
|
22
|
+
slug: "polygon_io-get-daily-open-close",
|
|
23
|
+
name: "Get Daily Open/Close",
|
|
24
|
+
description: "Tool to get the daily open, close, after-hours, and pre-market prices for a stock on a specific date. Use when you need historical OHLC data for a specific trading day, including pre-market and after-hours information.",
|
|
25
|
+
input: PolygonIoGetDailyOpenCloseInput,
|
|
26
|
+
output: PolygonIoGetDailyOpenCloseOutput
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
exports.polygonIoGetDailyOpenClose = polygonIoGetDailyOpenClose;
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=get-daily-open-close.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-daily-open-close.cjs","names":["z","action"],"sources":["../../src/actions/get-daily-open-close.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetDailyOpenCloseInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"The date of the requested open/close in the format YYYY-MM-DD (e.g., '2023-03-10', '2026-02-13').\"),\n adjusted: z.boolean().default(true).describe(\"Whether or not the results are adjusted for splits. Default is true.\").optional(),\n stocks_ticker: z.string().describe(\"The ticker symbol of the stock (e.g., 'AAPL', 'TSLA', 'MSFT'). Must be a valid stock ticker.\"),\n}).describe(\"Parameters for retrieving daily open, close, after-hours, and pre-market prices for a stock.\");\nexport const PolygonIoGetDailyOpenCloseOutput: z.ZodTypeAny = z.object({\n low: z.number().describe(\"The lowest price for the symbol on the given date.\"),\n from: z.string().describe(\"The requested date in YYYY-MM-DD format.\"),\n high: z.number().describe(\"The highest price for the symbol on the given date.\"),\n open: z.number().describe(\"The open price for the symbol on the given date.\"),\n close: z.number().describe(\"The close price for the symbol on the given date.\"),\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\"),\n symbol: z.string().describe(\"The exchange symbol that this item is traded under.\"),\n volume: z.number().describe(\"The trading volume for the symbol on the given date.\").nullable().optional(),\n preMarket: z.number().describe(\"The open value of the ticker symbol in pre-market trading.\").nullable().optional(),\n afterHours: z.number().describe(\"The close value of the ticker symbol in after hours trading.\").nullable().optional(),\n}).describe(\"Response containing daily open, close, high, low, after-hours, and pre-market prices for a stock.\");\n\nexport const polygonIoGetDailyOpenClose = action(\"POLYGON_IO_GET_DAILY_OPEN_CLOSE\", {\n slug: \"polygon_io-get-daily-open-close\",\n name: \"Get Daily Open/Close\",\n description: \"Tool to get the daily open, close, after-hours, and pre-market prices for a stock on a specific date. Use when you need historical OHLC data for a specific trading day, including pre-market and after-hours information.\",\n input: PolygonIoGetDailyOpenCloseInput,\n output: PolygonIoGetDailyOpenCloseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG;CAC7H,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC9H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F;AACnI,CAAC,CAAC,CAAC,SAAS,8FAA8F;AAC1G,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAE/G,MAAa,6BAA6BC,eAAAA,OAAO,mCAAmC;CAClF,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-daily-open-close.d.ts
|
|
4
|
+
declare const PolygonIoGetDailyOpenCloseInput: z.ZodTypeAny;
|
|
5
|
+
declare const PolygonIoGetDailyOpenCloseOutput: z.ZodTypeAny;
|
|
6
|
+
declare const polygonIoGetDailyOpenClose: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { polygonIoGetDailyOpenClose };
|
|
9
|
+
//# sourceMappingURL=get-daily-open-close.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-daily-open-close.d.cts","names":[],"sources":["../../src/actions/get-daily-open-close.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAI2D;AAAA,cAC9F,gCAAA,EAAkC,CAAA,CAAE,UAW+D;AAAA,cAEnG,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-daily-open-close.d.ts
|
|
4
|
+
declare const PolygonIoGetDailyOpenCloseInput: z.ZodTypeAny;
|
|
5
|
+
declare const PolygonIoGetDailyOpenCloseOutput: z.ZodTypeAny;
|
|
6
|
+
declare const polygonIoGetDailyOpenClose: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { polygonIoGetDailyOpenClose };
|
|
9
|
+
//# sourceMappingURL=get-daily-open-close.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-daily-open-close.d.mts","names":[],"sources":["../../src/actions/get-daily-open-close.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAI2D;AAAA,cAC9F,gCAAA,EAAkC,CAAA,CAAE,UAW+D;AAAA,cAEnG,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const polygonIoGetDailyOpenClose = action("POLYGON_IO_GET_DAILY_OPEN_CLOSE", {
|
|
4
|
+
slug: "polygon_io-get-daily-open-close",
|
|
5
|
+
name: "Get Daily Open/Close",
|
|
6
|
+
description: "Tool to get the daily open, close, after-hours, and pre-market prices for a stock on a specific date. Use when you need historical OHLC data for a specific trading day, including pre-market and after-hours information.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
date: z.string().describe("The date of the requested open/close in the format YYYY-MM-DD (e.g., '2023-03-10', '2026-02-13')."),
|
|
9
|
+
adjusted: z.boolean().default(true).describe("Whether or not the results are adjusted for splits. Default is true.").optional(),
|
|
10
|
+
stocks_ticker: z.string().describe("The ticker symbol of the stock (e.g., 'AAPL', 'TSLA', 'MSFT'). Must be a valid stock ticker.")
|
|
11
|
+
}).describe("Parameters for retrieving daily open, close, after-hours, and pre-market prices for a stock."),
|
|
12
|
+
output: z.object({
|
|
13
|
+
low: z.number().describe("The lowest price for the symbol on the given date."),
|
|
14
|
+
from: z.string().describe("The requested date in YYYY-MM-DD format."),
|
|
15
|
+
high: z.number().describe("The highest price for the symbol on the given date."),
|
|
16
|
+
open: z.number().describe("The open price for the symbol on the given date."),
|
|
17
|
+
close: z.number().describe("The close price for the symbol on the given date."),
|
|
18
|
+
status: z.string().describe("The status of this request's response (e.g., 'OK')."),
|
|
19
|
+
symbol: z.string().describe("The exchange symbol that this item is traded under."),
|
|
20
|
+
volume: z.number().describe("The trading volume for the symbol on the given date.").nullable().optional(),
|
|
21
|
+
preMarket: z.number().describe("The open value of the ticker symbol in pre-market trading.").nullable().optional(),
|
|
22
|
+
afterHours: z.number().describe("The close value of the ticker symbol in after hours trading.").nullable().optional()
|
|
23
|
+
}).describe("Response containing daily open, close, high, low, after-hours, and pre-market prices for a stock.")
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { polygonIoGetDailyOpenClose };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=get-daily-open-close.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-daily-open-close.mjs","names":[],"sources":["../../src/actions/get-daily-open-close.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetDailyOpenCloseInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"The date of the requested open/close in the format YYYY-MM-DD (e.g., '2023-03-10', '2026-02-13').\"),\n adjusted: z.boolean().default(true).describe(\"Whether or not the results are adjusted for splits. Default is true.\").optional(),\n stocks_ticker: z.string().describe(\"The ticker symbol of the stock (e.g., 'AAPL', 'TSLA', 'MSFT'). Must be a valid stock ticker.\"),\n}).describe(\"Parameters for retrieving daily open, close, after-hours, and pre-market prices for a stock.\");\nexport const PolygonIoGetDailyOpenCloseOutput: z.ZodTypeAny = z.object({\n low: z.number().describe(\"The lowest price for the symbol on the given date.\"),\n from: z.string().describe(\"The requested date in YYYY-MM-DD format.\"),\n high: z.number().describe(\"The highest price for the symbol on the given date.\"),\n open: z.number().describe(\"The open price for the symbol on the given date.\"),\n close: z.number().describe(\"The close price for the symbol on the given date.\"),\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\"),\n symbol: z.string().describe(\"The exchange symbol that this item is traded under.\"),\n volume: z.number().describe(\"The trading volume for the symbol on the given date.\").nullable().optional(),\n preMarket: z.number().describe(\"The open value of the ticker symbol in pre-market trading.\").nullable().optional(),\n afterHours: z.number().describe(\"The close value of the ticker symbol in after hours trading.\").nullable().optional(),\n}).describe(\"Response containing daily open, close, high, low, after-hours, and pre-market prices for a stock.\");\n\nexport const polygonIoGetDailyOpenClose = action(\"POLYGON_IO_GET_DAILY_OPEN_CLOSE\", {\n slug: \"polygon_io-get-daily-open-close\",\n name: \"Get Daily Open/Close\",\n description: \"Tool to get the daily open, close, after-hours, and pre-market prices for a stock on a specific date. Use when you need historical OHLC data for a specific trading day, including pre-market and after-hours information.\",\n input: PolygonIoGetDailyOpenCloseInput,\n output: PolygonIoGetDailyOpenCloseOutput,\n});\n"],"mappings":";;AAsBA,MAAa,6BAA6B,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtB2D,EAAE,OAAO;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG;EAC7H,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC9H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F;CACnI,CAAC,CAAC,CAAC,SAAS,8FAkBH;CACP,QAlB4D,EAAE,OAAO;EACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,SAAS,mGAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-dividends.ts
|
|
4
|
+
const PolygonIoGetDividendsInput = zod.z.object({
|
|
5
|
+
sort: zod.z.string().describe("Field to sort by; only 'ex_dividend_date' is supported.").optional(),
|
|
6
|
+
limit: zod.z.number().int().describe("Limit number of results (1-1000).").optional(),
|
|
7
|
+
order: zod.z.enum(["asc", "desc"]).describe("Order of sorting: 'asc' or 'desc'.").optional(),
|
|
8
|
+
ticker: zod.z.string().describe("Case-sensitive ticker symbol, e.g., 'AAPL'.").optional(),
|
|
9
|
+
pay_date: zod.z.string().describe("Filter by payment date (YYYY-MM-DD).").optional(),
|
|
10
|
+
frequency: zod.z.union([
|
|
11
|
+
zod.z.literal(0),
|
|
12
|
+
zod.z.literal(1),
|
|
13
|
+
zod.z.literal(2),
|
|
14
|
+
zod.z.literal(4),
|
|
15
|
+
zod.z.literal(12),
|
|
16
|
+
zod.z.literal(24),
|
|
17
|
+
zod.z.literal(52)
|
|
18
|
+
]).describe("Number of dividend payments per year. 0=one-time, 1=annually, 2=bi-annually, 4=quarterly, 12=monthly, 24=bi-monthly, 52=weekly.").optional(),
|
|
19
|
+
cash_amount: zod.z.number().describe("Filter by cash amount of the dividend per share.").optional(),
|
|
20
|
+
record_date: zod.z.string().describe("Filter by record date (YYYY-MM-DD).").optional(),
|
|
21
|
+
dividend_type: zod.z.enum([
|
|
22
|
+
"CD",
|
|
23
|
+
"SC",
|
|
24
|
+
"LT",
|
|
25
|
+
"ST"
|
|
26
|
+
]).describe("Type of dividend: 'CD' for consistent cash, 'SC' for special cash, 'LT' for long-term capital gain, 'ST' for short-term capital gain.").optional(),
|
|
27
|
+
declaration_date: zod.z.string().describe("Filter by declaration date (YYYY-MM-DD).").optional(),
|
|
28
|
+
ex_dividend_date: zod.z.string().describe("Filter by ex-dividend date (YYYY-MM-DD).").optional()
|
|
29
|
+
}).describe("Parameters to filter historical cash dividend distributions for a ticker.");
|
|
30
|
+
const PolygonIoGetDividends_DividendSchema = zod.z.object({
|
|
31
|
+
id: zod.z.string().describe("Unique identifier of the dividend event."),
|
|
32
|
+
ticker: zod.z.string().describe("Ticker symbol for the dividend event."),
|
|
33
|
+
currency: zod.z.string().describe("Currency code in which the dividend is paid, e.g., 'USD'.").nullable().optional(),
|
|
34
|
+
pay_date: zod.z.string().describe("Date the dividend is paid (YYYY-MM-DD).").nullable().optional(),
|
|
35
|
+
frequency: zod.z.number().int().describe("Number of times per year the dividend is paid.").nullable().optional(),
|
|
36
|
+
cash_amount: zod.z.number().describe("Cash amount of the dividend per share.").nullable().optional(),
|
|
37
|
+
record_date: zod.z.string().describe("Date by which shares must be held to receive the dividend (YYYY-MM-DD).").nullable().optional(),
|
|
38
|
+
dividend_type: zod.z.string().describe("Type of dividend: 'CD', 'SC', 'LT', or 'ST'.").nullable().optional(),
|
|
39
|
+
declaration_date: zod.z.string().describe("Date the dividend was declared (YYYY-MM-DD).").nullable().optional(),
|
|
40
|
+
ex_dividend_date: zod.z.string().describe("Date the stock trades ex-dividend (YYYY-MM-DD).").nullable().optional()
|
|
41
|
+
});
|
|
42
|
+
const PolygonIoGetDividendsOutput = zod.z.object({
|
|
43
|
+
count: zod.z.number().int().describe("Number of results returned in this response.").nullable().optional(),
|
|
44
|
+
status: zod.z.string().describe("Response status string, e.g., 'OK'.").nullable().optional(),
|
|
45
|
+
results: zod.z.array(PolygonIoGetDividends_DividendSchema).describe("List of dividend event objects.").nullable().optional(),
|
|
46
|
+
next_url: zod.z.string().describe("URL to fetch the next page of results, if any.").nullable().optional()
|
|
47
|
+
});
|
|
48
|
+
const polygonIoGetDividends = require_action.action("POLYGON_IO_GET_DIVIDENDS", {
|
|
49
|
+
slug: "polygon_io-get-dividends",
|
|
50
|
+
name: "Get Dividends",
|
|
51
|
+
description: "Tool to retrieve a historical record of cash dividend distributions for a given ticker. Use when analyzing dividend payments by date, amount, and frequency.",
|
|
52
|
+
input: PolygonIoGetDividendsInput,
|
|
53
|
+
output: PolygonIoGetDividendsOutput
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
exports.polygonIoGetDividends = polygonIoGetDividends;
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=get-dividends.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-dividends.cjs","names":["z","action"],"sources":["../../src/actions/get-dividends.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetDividendsInput: z.ZodTypeAny = z.object({\n sort: z.string().describe(\"Field to sort by; only 'ex_dividend_date' is supported.\").optional(),\n limit: z.number().int().describe(\"Limit number of results (1-1000).\").optional(),\n order: z.enum([\"asc\", \"desc\"]).describe(\"Order of sorting: 'asc' or 'desc'.\").optional(),\n ticker: z.string().describe(\"Case-sensitive ticker symbol, e.g., 'AAPL'.\").optional(),\n pay_date: z.string().describe(\"Filter by payment date (YYYY-MM-DD).\").optional(),\n frequency: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(4), z.literal(12), z.literal(24), z.literal(52)]).describe(\"Number of dividend payments per year. 0=one-time, 1=annually, 2=bi-annually, 4=quarterly, 12=monthly, 24=bi-monthly, 52=weekly.\").optional(),\n cash_amount: z.number().describe(\"Filter by cash amount of the dividend per share.\").optional(),\n record_date: z.string().describe(\"Filter by record date (YYYY-MM-DD).\").optional(),\n dividend_type: z.enum([\"CD\", \"SC\", \"LT\", \"ST\"]).describe(\"Type of dividend: 'CD' for consistent cash, 'SC' for special cash, 'LT' for long-term capital gain, 'ST' for short-term capital gain.\").optional(),\n declaration_date: z.string().describe(\"Filter by declaration date (YYYY-MM-DD).\").optional(),\n ex_dividend_date: z.string().describe(\"Filter by ex-dividend date (YYYY-MM-DD).\").optional(),\n}).describe(\"Parameters to filter historical cash dividend distributions for a ticker.\");\nconst PolygonIoGetDividends_DividendSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the dividend event.\"),\n ticker: z.string().describe(\"Ticker symbol for the dividend event.\"),\n currency: z.string().describe(\"Currency code in which the dividend is paid, e.g., 'USD'.\").nullable().optional(),\n pay_date: z.string().describe(\"Date the dividend is paid (YYYY-MM-DD).\").nullable().optional(),\n frequency: z.number().int().describe(\"Number of times per year the dividend is paid.\").nullable().optional(),\n cash_amount: z.number().describe(\"Cash amount of the dividend per share.\").nullable().optional(),\n record_date: z.string().describe(\"Date by which shares must be held to receive the dividend (YYYY-MM-DD).\").nullable().optional(),\n dividend_type: z.string().describe(\"Type of dividend: 'CD', 'SC', 'LT', or 'ST'.\").nullable().optional(),\n declaration_date: z.string().describe(\"Date the dividend was declared (YYYY-MM-DD).\").nullable().optional(),\n ex_dividend_date: z.string().describe(\"Date the stock trades ex-dividend (YYYY-MM-DD).\").nullable().optional(),\n});\nexport const PolygonIoGetDividendsOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of results returned in this response.\").nullable().optional(),\n status: z.string().describe(\"Response status string, e.g., 'OK'.\").nullable().optional(),\n results: z.array(PolygonIoGetDividends_DividendSchema).describe(\"List of dividend event objects.\").nullable().optional(),\n next_url: z.string().describe(\"URL to fetch the next page of results, if any.\").nullable().optional(),\n});\n\nexport const polygonIoGetDividends = action(\"POLYGON_IO_GET_DIVIDENDS\", {\n slug: \"polygon_io-get-dividends\",\n name: \"Get Dividends\",\n description: \"Tool to retrieve a historical record of cash dividend distributions for a given ticker. Use when analyzing d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AS;CACrG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,SAASA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,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-dividends.d.ts
|
|
4
|
+
declare const PolygonIoGetDividendsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PolygonIoGetDividendsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const polygonIoGetDividends: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { polygonIoGetDividends };
|
|
9
|
+
//# sourceMappingURL=get-dividends.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-dividends.d.cts","names":[],"sources":["../../src/actions/get-dividends.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAY6C;AAAA,cAa3E,2BAAA,EAA6B,CAAA,CAAE,UAK1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-dividends.d.ts
|
|
4
|
+
declare const PolygonIoGetDividendsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PolygonIoGetDividendsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const polygonIoGetDividends: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { polygonIoGetDividends };
|
|
9
|
+
//# sourceMappingURL=get-dividends.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-dividends.d.mts","names":[],"sources":["../../src/actions/get-dividends.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAY6C;AAAA,cAa3E,2BAAA,EAA6B,CAAA,CAAE,UAK1C;AAAA,cAEW,qBAAA,gCAAqB,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-dividends.ts
|
|
4
|
+
const PolygonIoGetDividendsInput = z.object({
|
|
5
|
+
sort: z.string().describe("Field to sort by; only 'ex_dividend_date' is supported.").optional(),
|
|
6
|
+
limit: z.number().int().describe("Limit number of results (1-1000).").optional(),
|
|
7
|
+
order: z.enum(["asc", "desc"]).describe("Order of sorting: 'asc' or 'desc'.").optional(),
|
|
8
|
+
ticker: z.string().describe("Case-sensitive ticker symbol, e.g., 'AAPL'.").optional(),
|
|
9
|
+
pay_date: z.string().describe("Filter by payment date (YYYY-MM-DD).").optional(),
|
|
10
|
+
frequency: z.union([
|
|
11
|
+
z.literal(0),
|
|
12
|
+
z.literal(1),
|
|
13
|
+
z.literal(2),
|
|
14
|
+
z.literal(4),
|
|
15
|
+
z.literal(12),
|
|
16
|
+
z.literal(24),
|
|
17
|
+
z.literal(52)
|
|
18
|
+
]).describe("Number of dividend payments per year. 0=one-time, 1=annually, 2=bi-annually, 4=quarterly, 12=monthly, 24=bi-monthly, 52=weekly.").optional(),
|
|
19
|
+
cash_amount: z.number().describe("Filter by cash amount of the dividend per share.").optional(),
|
|
20
|
+
record_date: z.string().describe("Filter by record date (YYYY-MM-DD).").optional(),
|
|
21
|
+
dividend_type: z.enum([
|
|
22
|
+
"CD",
|
|
23
|
+
"SC",
|
|
24
|
+
"LT",
|
|
25
|
+
"ST"
|
|
26
|
+
]).describe("Type of dividend: 'CD' for consistent cash, 'SC' for special cash, 'LT' for long-term capital gain, 'ST' for short-term capital gain.").optional(),
|
|
27
|
+
declaration_date: z.string().describe("Filter by declaration date (YYYY-MM-DD).").optional(),
|
|
28
|
+
ex_dividend_date: z.string().describe("Filter by ex-dividend date (YYYY-MM-DD).").optional()
|
|
29
|
+
}).describe("Parameters to filter historical cash dividend distributions for a ticker.");
|
|
30
|
+
const PolygonIoGetDividends_DividendSchema = z.object({
|
|
31
|
+
id: z.string().describe("Unique identifier of the dividend event."),
|
|
32
|
+
ticker: z.string().describe("Ticker symbol for the dividend event."),
|
|
33
|
+
currency: z.string().describe("Currency code in which the dividend is paid, e.g., 'USD'.").nullable().optional(),
|
|
34
|
+
pay_date: z.string().describe("Date the dividend is paid (YYYY-MM-DD).").nullable().optional(),
|
|
35
|
+
frequency: z.number().int().describe("Number of times per year the dividend is paid.").nullable().optional(),
|
|
36
|
+
cash_amount: z.number().describe("Cash amount of the dividend per share.").nullable().optional(),
|
|
37
|
+
record_date: z.string().describe("Date by which shares must be held to receive the dividend (YYYY-MM-DD).").nullable().optional(),
|
|
38
|
+
dividend_type: z.string().describe("Type of dividend: 'CD', 'SC', 'LT', or 'ST'.").nullable().optional(),
|
|
39
|
+
declaration_date: z.string().describe("Date the dividend was declared (YYYY-MM-DD).").nullable().optional(),
|
|
40
|
+
ex_dividend_date: z.string().describe("Date the stock trades ex-dividend (YYYY-MM-DD).").nullable().optional()
|
|
41
|
+
});
|
|
42
|
+
const polygonIoGetDividends = action("POLYGON_IO_GET_DIVIDENDS", {
|
|
43
|
+
slug: "polygon_io-get-dividends",
|
|
44
|
+
name: "Get Dividends",
|
|
45
|
+
description: "Tool to retrieve a historical record of cash dividend distributions for a given ticker. Use when analyzing dividend payments by date, amount, and frequency.",
|
|
46
|
+
input: PolygonIoGetDividendsInput,
|
|
47
|
+
output: z.object({
|
|
48
|
+
count: z.number().int().describe("Number of results returned in this response.").nullable().optional(),
|
|
49
|
+
status: z.string().describe("Response status string, e.g., 'OK'.").nullable().optional(),
|
|
50
|
+
results: z.array(PolygonIoGetDividends_DividendSchema).describe("List of dividend event objects.").nullable().optional(),
|
|
51
|
+
next_url: z.string().describe("URL to fetch the next page of results, if any.").nullable().optional()
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
export { polygonIoGetDividends };
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=get-dividends.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-dividends.mjs","names":[],"sources":["../../src/actions/get-dividends.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetDividendsInput: z.ZodTypeAny = z.object({\n sort: z.string().describe(\"Field to sort by; only 'ex_dividend_date' is supported.\").optional(),\n limit: z.number().int().describe(\"Limit number of results (1-1000).\").optional(),\n order: z.enum([\"asc\", \"desc\"]).describe(\"Order of sorting: 'asc' or 'desc'.\").optional(),\n ticker: z.string().describe(\"Case-sensitive ticker symbol, e.g., 'AAPL'.\").optional(),\n pay_date: z.string().describe(\"Filter by payment date (YYYY-MM-DD).\").optional(),\n frequency: z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(4), z.literal(12), z.literal(24), z.literal(52)]).describe(\"Number of dividend payments per year. 0=one-time, 1=annually, 2=bi-annually, 4=quarterly, 12=monthly, 24=bi-monthly, 52=weekly.\").optional(),\n cash_amount: z.number().describe(\"Filter by cash amount of the dividend per share.\").optional(),\n record_date: z.string().describe(\"Filter by record date (YYYY-MM-DD).\").optional(),\n dividend_type: z.enum([\"CD\", \"SC\", \"LT\", \"ST\"]).describe(\"Type of dividend: 'CD' for consistent cash, 'SC' for special cash, 'LT' for long-term capital gain, 'ST' for short-term capital gain.\").optional(),\n declaration_date: z.string().describe(\"Filter by declaration date (YYYY-MM-DD).\").optional(),\n ex_dividend_date: z.string().describe(\"Filter by ex-dividend date (YYYY-MM-DD).\").optional(),\n}).describe(\"Parameters to filter historical cash dividend distributions for a ticker.\");\nconst PolygonIoGetDividends_DividendSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the dividend event.\"),\n ticker: z.string().describe(\"Ticker symbol for the dividend event.\"),\n currency: z.string().describe(\"Currency code in which the dividend is paid, e.g., 'USD'.\").nullable().optional(),\n pay_date: z.string().describe(\"Date the dividend is paid (YYYY-MM-DD).\").nullable().optional(),\n frequency: z.number().int().describe(\"Number of times per year the dividend is paid.\").nullable().optional(),\n cash_amount: z.number().describe(\"Cash amount of the dividend per share.\").nullable().optional(),\n record_date: z.string().describe(\"Date by which shares must be held to receive the dividend (YYYY-MM-DD).\").nullable().optional(),\n dividend_type: z.string().describe(\"Type of dividend: 'CD', 'SC', 'LT', or 'ST'.\").nullable().optional(),\n declaration_date: z.string().describe(\"Date the dividend was declared (YYYY-MM-DD).\").nullable().optional(),\n ex_dividend_date: z.string().describe(\"Date the stock trades ex-dividend (YYYY-MM-DD).\").nullable().optional(),\n});\nexport const PolygonIoGetDividendsOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of results returned in this response.\").nullable().optional(),\n status: z.string().describe(\"Response status string, e.g., 'OK'.\").nullable().optional(),\n results: z.array(PolygonIoGetDividends_DividendSchema).describe(\"List of dividend event objects.\").nullable().optional(),\n next_url: z.string().describe(\"URL to fetch the next page of results, if any.\").nullable().optional(),\n});\n\nexport const polygonIoGetDividends = action(\"POLYGON_IO_GET_DIVIDENDS\", {\n slug: \"polygon_io-get-dividends\",\n name: \"Get Dividends\",\n description: \"Tool to retrieve a historical record of cash dividend distributions for a given ticker. Use when analyzing dividend payments by date, amount, and frequency.\",\n input: PolygonIoGetDividendsInput,\n output: PolygonIoGetDividendsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,WAAW,EAAE,MAAM;EAAC,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,EAAE;EAAG,EAAE,QAAQ,EAAE;EAAG,EAAE,QAAQ,EAAE;CAAC,CAAC,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC/Q,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC9F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,eAAe,EAAE,KAAK;EAAC;EAAM;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC3M,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC3F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CA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,MAAM,oCAAoC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-economy-inflation2.ts
|
|
4
|
+
const PolygonIoGetEconomyInflation2Input = zod.z.object({
|
|
5
|
+
date: zod.z.string().describe("Specific observation date in YYYY-MM-DD format. If not provided, returns recent observations.").optional(),
|
|
6
|
+
sort: zod.z.string().describe("Sort order for results. Use 'date.asc' for ascending or 'date.desc' for descending. Defaults to 'date.asc'.").optional(),
|
|
7
|
+
limit: zod.z.number().int().describe("Maximum results to return. Defaults to 100, maximum is 50,000.").optional(),
|
|
8
|
+
"date.gt": zod.z.string().describe("Filter for dates greater than the specified date in YYYY-MM-DD format").optional(),
|
|
9
|
+
"date.lt": zod.z.string().describe("Filter for dates less than the specified date in YYYY-MM-DD format").optional(),
|
|
10
|
+
"date.gte": zod.z.string().describe("Filter for dates greater than or equal to the specified date in YYYY-MM-DD format").optional(),
|
|
11
|
+
"date.lte": zod.z.string().describe("Filter for dates less than or equal to the specified date in YYYY-MM-DD format").optional(),
|
|
12
|
+
"date.any_of": zod.z.string().describe("Match multiple comma-separated dates, e.g., '2024-01-01,2024-02-01'").optional()
|
|
13
|
+
}).describe("Parameters to retrieve inflation indicators with comprehensive date filtering.");
|
|
14
|
+
const PolygonIoGetEconomyInflation2_InflationResultSchema = zod.z.object({
|
|
15
|
+
cpi: zod.z.number().describe("Consumer Price Index (CPI) for All Urban Consumers — a standard measure of headline inflation based on a fixed basket of goods and services (not seasonally adjusted)").nullable().optional(),
|
|
16
|
+
pce: zod.z.number().describe("Personal Consumption Expenditures (PCE) Price Index — a broader measure of inflation used by the Federal Reserve, reflecting actual consumer spending patterns with updated basket weights").nullable().optional(),
|
|
17
|
+
date: zod.z.string().describe("Calendar date of the observation in YYYY-MM-DD format").nullable().optional(),
|
|
18
|
+
cpi_core: zod.z.number().describe("Core Consumer Price Index — the CPI excluding food and energy, used to understand underlying inflation trends without short-term volatility").nullable().optional(),
|
|
19
|
+
pce_core: zod.z.number().describe("Core PCE Price Index — excludes food and energy prices from the PCE index, and is the Fed's preferred measure of underlying inflation").nullable().optional(),
|
|
20
|
+
pce_spending: zod.z.number().describe("Nominal Personal Consumption Expenditures — total dollar value of consumer spending in the U.S. economy, reported in billions of dollars").nullable().optional(),
|
|
21
|
+
cpi_year_over_year: zod.z.number().describe("Year-over-year percentage change in the headline CPI — the most commonly cited inflation rate in public discourse and economic policy").nullable().optional()
|
|
22
|
+
}).describe("Inflation observation data for a specific date.");
|
|
23
|
+
const PolygonIoGetEconomyInflation2Output = zod.z.object({
|
|
24
|
+
count: zod.z.number().int().describe("Number of results returned in this response").nullable().optional(),
|
|
25
|
+
status: zod.z.string().describe("Status of the response (e.g., 'OK')").nullable().optional(),
|
|
26
|
+
results: zod.z.array(PolygonIoGetEconomyInflation2_InflationResultSchema).describe("Array containing inflation data observations").nullable().optional(),
|
|
27
|
+
next_url: zod.z.string().describe("If present, this value can be used to fetch the next page of results").nullable().optional(),
|
|
28
|
+
request_id: zod.z.string().describe("Unique identifier assigned by the server for this request").nullable().optional()
|
|
29
|
+
}).describe("Response containing inflation data and metadata.");
|
|
30
|
+
const polygonIoGetEconomyInflation2 = require_action.action("POLYGON_IO_GET_ECONOMY_INFLATION2", {
|
|
31
|
+
slug: "polygon_io-get-economy-inflation2",
|
|
32
|
+
name: "Get Economy Inflation Indicators (Enhanced)",
|
|
33
|
+
description: "Tool to retrieve key indicators of realized inflation including CPI and PCE price indexes with comprehensive date filtering. Use when analyzing inflation trends with specific date ranges, economic conditions, or historical price changes going back to 1947.",
|
|
34
|
+
input: PolygonIoGetEconomyInflation2Input,
|
|
35
|
+
output: PolygonIoGetEconomyInflation2Output
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.polygonIoGetEconomyInflation2 = polygonIoGetEconomyInflation2;
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=get-economy-inflation2.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-economy-inflation2.cjs","names":["z","action"],"sources":["../../src/actions/get-economy-inflation2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetEconomyInflation2Input: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Specific observation date in YYYY-MM-DD format. If not provided, returns recent observations.\").optional(),\n sort: z.string().describe(\"Sort order for results. Use 'date.asc' for ascending or 'date.desc' for descending. Defaults to 'date.asc'.\").optional(),\n limit: z.number().int().describe(\"Maximum results to return. Defaults to 100, maximum is 50,000.\").optional(),\n \"date.gt\": z.string().describe(\"Filter for dates greater than the specified date in YYYY-MM-DD format\").optional(),\n \"date.lt\": z.string().describe(\"Filter for dates less than the specified date in YYYY-MM-DD format\").optional(),\n \"date.gte\": z.string().describe(\"Filter for dates greater than or equal to the specified date in YYYY-MM-DD format\").optional(),\n \"date.lte\": z.string().describe(\"Filter for dates less than or equal to the specified date in YYYY-MM-DD format\").optional(),\n \"date.any_of\": z.string().describe(\"Match multiple comma-separated dates, e.g., '2024-01-01,2024-02-01'\").optional(),\n}).describe(\"Parameters to retrieve inflation indicators with comprehensive date filtering.\");\nconst PolygonIoGetEconomyInflation2_InflationResultSchema: z.ZodTypeAny = z.object({\n cpi: z.number().describe(\"Consumer Price Index (CPI) for All Urban Consumers — a standard measure of headline inflation based on a fixed basket of goods and services (not seasonally adjusted)\").nullable().optional(),\n pce: z.number().describe(\"Personal Consumption Expenditures (PCE) Price Index — a broader measure of inflation used by the Federal Reserve, reflecting actual consumer spending patterns with updated basket weights\").nullable().optional(),\n date: z.string().describe(\"Calendar date of the observation in YYYY-MM-DD format\").nullable().optional(),\n cpi_core: z.number().describe(\"Core Consumer Price Index — the CPI excluding food and energy, used to understand underlying inflation trends without short-term volatility\").nullable().optional(),\n pce_core: z.number().describe(\"Core PCE Price Index — excludes food and energy prices from the PCE index, and is the Fed's preferred measure of underlying inflation\").nullable().optional(),\n pce_spending: z.number().describe(\"Nominal Personal Consumption Expenditures — total dollar value of consumer spending in the U.S. economy, reported in billions of dollars\").nullable().optional(),\n cpi_year_over_year: z.number().describe(\"Year-over-year percentage change in the headline CPI — the most commonly cited inflation rate in public discourse and economic policy\").nullable().optional(),\n}).describe(\"Inflation observation data for a specific date.\");\nexport const PolygonIoGetEconomyInflation2Output: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of results returned in this response\").nullable().optional(),\n status: z.string().describe(\"Status of the response (e.g., 'OK')\").nullable().optional(),\n results: z.array(PolygonIoGetEconomyInflation2_InflationResultSchema).describe(\"Array containing inflation data observations\").nullable().optional(),\n next_url: z.string().describe(\"If present, this value can be used to fetch the next page of results\").nullable().optional(),\n request_id: z.string().describe(\"Unique identifier assigned by the server for this request\").nullable().optional(),\n}).describe(\"Response containing inflation data and metadata.\");\n\nexport const polygonIoGetEconomyInflation2 = action(\"POLYGON_IO_GET_ECONOMY_INFLATION2\", {\n slug: \"polygon_io-get-economy-inflation2\",\n name: \"Get Economy Inflation Indicators (Enhanced)\",\n description: \"Tool to retrieve key indicators of realized inflation including CPI and PCE price indexes with comprehensive date filtering. Use when analyzing inflation trends with specific date ranges, economic conditions, or historical price changes going back to 1947.\",\n input: PolygonIoGetEconomyInflation2Input,\n output: PolygonIoGetEconomyInflation2Output,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACpI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAClJ,OAAOA,IA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CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,SAASA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,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-economy-inflation2.d.ts
|
|
4
|
+
declare const PolygonIoGetEconomyInflation2Input: z.ZodTypeAny;
|
|
5
|
+
declare const PolygonIoGetEconomyInflation2Output: z.ZodTypeAny;
|
|
6
|
+
declare const polygonIoGetEconomyInflation2: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { polygonIoGetEconomyInflation2 };
|
|
9
|
+
//# sourceMappingURL=get-economy-inflation2.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-economy-inflation2.d.cts","names":[],"sources":["../../src/actions/get-economy-inflation2.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAS0C;AAAA,cAUhF,mCAAA,EAAqC,CAAA,CAAE,UAMW;AAAA,cAElD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-economy-inflation2.d.ts
|
|
4
|
+
declare const PolygonIoGetEconomyInflation2Input: z.ZodTypeAny;
|
|
5
|
+
declare const PolygonIoGetEconomyInflation2Output: z.ZodTypeAny;
|
|
6
|
+
declare const polygonIoGetEconomyInflation2: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { polygonIoGetEconomyInflation2 };
|
|
9
|
+
//# sourceMappingURL=get-economy-inflation2.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-economy-inflation2.d.mts","names":[],"sources":["../../src/actions/get-economy-inflation2.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAS0C;AAAA,cAUhF,mCAAA,EAAqC,CAAA,CAAE,UAMW;AAAA,cAElD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-economy-inflation2.ts
|
|
4
|
+
const PolygonIoGetEconomyInflation2Input = z.object({
|
|
5
|
+
date: z.string().describe("Specific observation date in YYYY-MM-DD format. If not provided, returns recent observations.").optional(),
|
|
6
|
+
sort: z.string().describe("Sort order for results. Use 'date.asc' for ascending or 'date.desc' for descending. Defaults to 'date.asc'.").optional(),
|
|
7
|
+
limit: z.number().int().describe("Maximum results to return. Defaults to 100, maximum is 50,000.").optional(),
|
|
8
|
+
"date.gt": z.string().describe("Filter for dates greater than the specified date in YYYY-MM-DD format").optional(),
|
|
9
|
+
"date.lt": z.string().describe("Filter for dates less than the specified date in YYYY-MM-DD format").optional(),
|
|
10
|
+
"date.gte": z.string().describe("Filter for dates greater than or equal to the specified date in YYYY-MM-DD format").optional(),
|
|
11
|
+
"date.lte": z.string().describe("Filter for dates less than or equal to the specified date in YYYY-MM-DD format").optional(),
|
|
12
|
+
"date.any_of": z.string().describe("Match multiple comma-separated dates, e.g., '2024-01-01,2024-02-01'").optional()
|
|
13
|
+
}).describe("Parameters to retrieve inflation indicators with comprehensive date filtering.");
|
|
14
|
+
const PolygonIoGetEconomyInflation2_InflationResultSchema = z.object({
|
|
15
|
+
cpi: z.number().describe("Consumer Price Index (CPI) for All Urban Consumers — a standard measure of headline inflation based on a fixed basket of goods and services (not seasonally adjusted)").nullable().optional(),
|
|
16
|
+
pce: z.number().describe("Personal Consumption Expenditures (PCE) Price Index — a broader measure of inflation used by the Federal Reserve, reflecting actual consumer spending patterns with updated basket weights").nullable().optional(),
|
|
17
|
+
date: z.string().describe("Calendar date of the observation in YYYY-MM-DD format").nullable().optional(),
|
|
18
|
+
cpi_core: z.number().describe("Core Consumer Price Index — the CPI excluding food and energy, used to understand underlying inflation trends without short-term volatility").nullable().optional(),
|
|
19
|
+
pce_core: z.number().describe("Core PCE Price Index — excludes food and energy prices from the PCE index, and is the Fed's preferred measure of underlying inflation").nullable().optional(),
|
|
20
|
+
pce_spending: z.number().describe("Nominal Personal Consumption Expenditures — total dollar value of consumer spending in the U.S. economy, reported in billions of dollars").nullable().optional(),
|
|
21
|
+
cpi_year_over_year: z.number().describe("Year-over-year percentage change in the headline CPI — the most commonly cited inflation rate in public discourse and economic policy").nullable().optional()
|
|
22
|
+
}).describe("Inflation observation data for a specific date.");
|
|
23
|
+
const polygonIoGetEconomyInflation2 = action("POLYGON_IO_GET_ECONOMY_INFLATION2", {
|
|
24
|
+
slug: "polygon_io-get-economy-inflation2",
|
|
25
|
+
name: "Get Economy Inflation Indicators (Enhanced)",
|
|
26
|
+
description: "Tool to retrieve key indicators of realized inflation including CPI and PCE price indexes with comprehensive date filtering. Use when analyzing inflation trends with specific date ranges, economic conditions, or historical price changes going back to 1947.",
|
|
27
|
+
input: PolygonIoGetEconomyInflation2Input,
|
|
28
|
+
output: z.object({
|
|
29
|
+
count: z.number().int().describe("Number of results returned in this response").nullable().optional(),
|
|
30
|
+
status: z.string().describe("Status of the response (e.g., 'OK')").nullable().optional(),
|
|
31
|
+
results: z.array(PolygonIoGetEconomyInflation2_InflationResultSchema).describe("Array containing inflation data observations").nullable().optional(),
|
|
32
|
+
next_url: z.string().describe("If present, this value can be used to fetch the next page of results").nullable().optional(),
|
|
33
|
+
request_id: z.string().describe("Unique identifier assigned by the server for this request").nullable().optional()
|
|
34
|
+
}).describe("Response containing inflation data and metadata.")
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { polygonIoGetEconomyInflation2 };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=get-economy-inflation2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-economy-inflation2.mjs","names":[],"sources":["../../src/actions/get-economy-inflation2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetEconomyInflation2Input: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Specific observation date in YYYY-MM-DD format. If not provided, returns recent observations.\").optional(),\n sort: z.string().describe(\"Sort order for results. Use 'date.asc' for ascending or 'date.desc' for descending. Defaults to 'date.asc'.\").optional(),\n limit: z.number().int().describe(\"Maximum results to return. Defaults to 100, maximum is 50,000.\").optional(),\n \"date.gt\": z.string().describe(\"Filter for dates greater than the specified date in YYYY-MM-DD format\").optional(),\n \"date.lt\": z.string().describe(\"Filter for dates less than the specified date in YYYY-MM-DD format\").optional(),\n \"date.gte\": z.string().describe(\"Filter for dates greater than or equal to the specified date in YYYY-MM-DD format\").optional(),\n \"date.lte\": z.string().describe(\"Filter for dates less than or equal to the specified date in YYYY-MM-DD format\").optional(),\n \"date.any_of\": z.string().describe(\"Match multiple comma-separated dates, e.g., '2024-01-01,2024-02-01'\").optional(),\n}).describe(\"Parameters to retrieve inflation indicators with comprehensive date filtering.\");\nconst PolygonIoGetEconomyInflation2_InflationResultSchema: z.ZodTypeAny = z.object({\n cpi: z.number().describe(\"Consumer Price Index (CPI) for All Urban Consumers — a standard measure of headline inflation based on a fixed basket of goods and services (not seasonally adjusted)\").nullable().optional(),\n pce: z.number().describe(\"Personal Consumption Expenditures (PCE) Price Index — a broader measure of inflation used by the Federal Reserve, reflecting actual consumer spending patterns with updated basket weights\").nullable().optional(),\n date: z.string().describe(\"Calendar date of the observation in YYYY-MM-DD format\").nullable().optional(),\n cpi_core: z.number().describe(\"Core Consumer Price Index — the CPI excluding food and energy, used to understand underlying inflation trends without short-term volatility\").nullable().optional(),\n pce_core: z.number().describe(\"Core PCE Price Index — excludes food and energy prices from the PCE index, and is the Fed's preferred measure of underlying inflation\").nullable().optional(),\n pce_spending: z.number().describe(\"Nominal Personal Consumption Expenditures — total dollar value of consumer spending in the U.S. economy, reported in billions of dollars\").nullable().optional(),\n cpi_year_over_year: z.number().describe(\"Year-over-year percentage change in the headline CPI — the most commonly cited inflation rate in public discourse and economic policy\").nullable().optional(),\n}).describe(\"Inflation observation data for a specific date.\");\nexport const PolygonIoGetEconomyInflation2Output: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of results returned in this response\").nullable().optional(),\n status: z.string().describe(\"Status of the response (e.g., 'OK')\").nullable().optional(),\n results: z.array(PolygonIoGetEconomyInflation2_InflationResultSchema).describe(\"Array containing inflation data observations\").nullable().optional(),\n next_url: z.string().describe(\"If present, this value can be used to fetch the next page of results\").nullable().optional(),\n request_id: z.string().describe(\"Unique identifier assigned by the server for this request\").nullable().optional(),\n}).describe(\"Response containing inflation data and metadata.\");\n\nexport const polygonIoGetEconomyInflation2 = action(\"POLYGON_IO_GET_ECONOMY_INFLATION2\", {\n slug: \"polygon_io-get-economy-inflation2\",\n name: \"Get Economy Inflation Indicators (Enhanced)\",\n description: \"Tool to retrieve key indicators of realized inflation including CPI and PCE price indexes with comprehensive date filtering. Use when analyzing inflation trends with specific date ranges, economic conditions, or historical price changes going back to 1947.\",\n input: PolygonIoGetEconomyInflation2Input,\n output: PolygonIoGetEconomyInflation2Output,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACpI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAClJ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACjH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC9G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC9H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC3H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAM,sDAAoE,EAAE,OAAO;CACjF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uKAAuK,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtN,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAA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4
|
+
const PolygonIoGetEmaInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().default(100).describe("Maximum number of results to return (1-5000). Defaults to 100.").optional(),
|
|
6
|
+
order: zod.z.enum(["asc", "desc"]).default("desc").describe("Sort order for results. Defaults to 'desc'.").optional(),
|
|
7
|
+
window: zod.z.number().int().describe("Number of periods to calculate the EMA (must be ≥1)."),
|
|
8
|
+
adjusted: zod.z.boolean().default(true).describe("Whether to adjust results for splits/dividends. Defaults to True.").optional(),
|
|
9
|
+
timespan: zod.z.string().describe("The timespan for each period (e.g., 'day', 'minute', 'hour')."),
|
|
10
|
+
series_type: zod.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: zod.z.string().describe("The stock ticker symbol."),
|
|
17
|
+
expand_underlying: zod.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 = zod.z.object({
|
|
20
|
+
value: zod.z.number().describe("EMA value at the given timestamp."),
|
|
21
|
+
timestamp: zod.z.number().int().describe("UNIX timestamp in milliseconds for the EMA value.")
|
|
22
|
+
});
|
|
23
|
+
const PolygonIoGetEma_UnderlyingBarSchema = zod.z.object({
|
|
24
|
+
T: zod.z.string().describe("The ticker symbol.").nullable().optional(),
|
|
25
|
+
c: zod.z.number().describe("Closing price.").nullable().optional(),
|
|
26
|
+
h: zod.z.number().describe("Highest price.").nullable().optional(),
|
|
27
|
+
l: zod.z.number().describe("Lowest price.").nullable().optional(),
|
|
28
|
+
n: zod.z.number().int().describe("Number of transactions.").nullable().optional(),
|
|
29
|
+
o: zod.z.number().describe("Opening price.").nullable().optional(),
|
|
30
|
+
t: zod.z.number().int().describe("UNIX timestamp in milliseconds.").nullable().optional(),
|
|
31
|
+
v: zod.z.number().describe("Trading volume.").nullable().optional(),
|
|
32
|
+
vw: zod.z.number().describe("Volume weighted average price.").nullable().optional()
|
|
33
|
+
}).describe("Underlying aggregates bar data when expand_underlying is True.");
|
|
34
|
+
const PolygonIoGetEma_UnderlyingDataSchema = zod.z.object({
|
|
35
|
+
url: zod.z.string().describe("URL to fetch underlying price data.").nullable().optional(),
|
|
36
|
+
aggregates: zod.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 = zod.z.object({
|
|
39
|
+
values: zod.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 PolygonIoGetEmaOutput = zod.z.object({
|
|
43
|
+
status: zod.z.string().describe("Status of the request (e.g., 'OK').").nullable().optional(),
|
|
44
|
+
results: PolygonIoGetEma_EMAResultsSchema.nullable().optional(),
|
|
45
|
+
next_url: zod.z.string().describe("URL to fetch the next page of EMA results, if pagination applies.").nullable().optional(),
|
|
46
|
+
request_id: zod.z.string().describe("Unique request identifier.").nullable().optional()
|
|
47
|
+
});
|
|
48
|
+
const polygonIoGetEma = require_action.action("POLYGON_IO_GET_EMA", {
|
|
49
|
+
slug: "polygon_io-get-ema",
|
|
50
|
+
name: "Get Exponential Moving Average",
|
|
51
|
+
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.",
|
|
52
|
+
input: PolygonIoGetEmaInput,
|
|
53
|
+
output: PolygonIoGetEmaOutput
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
exports.polygonIoGetEma = polygonIoGetEma;
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=get-ema.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-ema.cjs","names":["z","action"],"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":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACzH,OAAOA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CA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