@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,69 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-forex-sma.ts
|
|
4
|
+
const PolygonIoGetForexSmaInput = z.object({
|
|
5
|
+
limit: z.number().int().default(10).describe("Limit the number of results returned. Defaults to 10. Maximum is 5000.").optional(),
|
|
6
|
+
order: z.enum(["asc", "desc"]).default("desc").describe("The order in which to return the results, ordered by timestamp. 'asc' for ascending/oldest first, 'desc' for descending/newest first. Defaults to 'desc'.").optional(),
|
|
7
|
+
window: z.number().int().default(50).describe("The window size used to calculate the SMA. For example, a window of 10 with daily aggregates equals a 10-day moving average. Defaults to 50.").optional(),
|
|
8
|
+
adjusted: z.boolean().default(true).describe("Whether or not the aggregates used to calculate the 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
|
+
]).default("day").describe("The size of the aggregate time window. Defaults to 'day'.").optional(),
|
|
18
|
+
timestamp: z.string().describe("Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.").optional(),
|
|
19
|
+
series_type: z.enum([
|
|
20
|
+
"open",
|
|
21
|
+
"high",
|
|
22
|
+
"low",
|
|
23
|
+
"close"
|
|
24
|
+
]).default("close").describe("The price in the aggregate which will be used to calculate the SMA. Defaults to 'close'.").optional(),
|
|
25
|
+
forex_ticker: z.string().describe("The forex ticker symbol in format C:FROMTO (e.g., 'C:EURUSD', 'C:GBPJPY'). Must include the 'C:' prefix for forex currency pairs."),
|
|
26
|
+
"timestamp.gt": z.string().describe("Filter for timestamps greater than the specified value. Format: YYYY-MM-DD or millisecond timestamp.").optional(),
|
|
27
|
+
"timestamp.lt": z.string().describe("Filter for timestamps less than the specified value. Format: YYYY-MM-DD or millisecond timestamp.").optional(),
|
|
28
|
+
"timestamp.gte": z.string().describe("Filter for timestamps greater than or equal to the specified value. Format: YYYY-MM-DD or millisecond timestamp.").optional(),
|
|
29
|
+
"timestamp.lte": z.string().describe("Filter for timestamps less than or equal to the specified value. Format: YYYY-MM-DD or millisecond timestamp.").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 forex pair.");
|
|
32
|
+
const PolygonIoGetForexSma_SMAValueSchema = z.object({
|
|
33
|
+
value: z.number().describe("The SMA indicator value for this period."),
|
|
34
|
+
timestamp: z.number().int().describe("The Unix millisecond timestamp from the last aggregate used in this calculation.")
|
|
35
|
+
});
|
|
36
|
+
const PolygonIoGetForexSma_AggregateBarSchema = z.object({
|
|
37
|
+
c: z.number().describe("The close price for the aggregate window.").nullable().optional(),
|
|
38
|
+
h: z.number().describe("The high price for the aggregate window.").nullable().optional(),
|
|
39
|
+
l: z.number().describe("The low price for the aggregate window.").nullable().optional(),
|
|
40
|
+
n: z.number().int().describe("The number of transactions in the aggregate window.").nullable().optional(),
|
|
41
|
+
o: z.number().describe("The open price for the aggregate window.").nullable().optional(),
|
|
42
|
+
t: z.number().int().describe("The Unix millisecond timestamp for the end of the aggregate window.").nullable().optional(),
|
|
43
|
+
v: z.number().describe("The trading volume for the aggregate window.").nullable().optional(),
|
|
44
|
+
vw: z.number().describe("The volume weighted average price for the aggregate window.").nullable().optional()
|
|
45
|
+
});
|
|
46
|
+
const PolygonIoGetForexSma_UnderlyingDataSchema = z.object({
|
|
47
|
+
url: z.string().describe("The URL which can be used to request the underlying aggregates used in this request.").nullable().optional(),
|
|
48
|
+
aggregates: z.array(PolygonIoGetForexSma_AggregateBarSchema).describe("Array of aggregate objects containing price and volume data.").nullable().optional()
|
|
49
|
+
});
|
|
50
|
+
const PolygonIoGetForexSma_SMAResultsSchema = z.object({
|
|
51
|
+
values: z.array(PolygonIoGetForexSma_SMAValueSchema).describe("Array of SMA indicator values.").nullable().optional(),
|
|
52
|
+
underlying: PolygonIoGetForexSma_UnderlyingDataSchema.nullable().optional()
|
|
53
|
+
});
|
|
54
|
+
const polygonIoGetForexSma = action("POLYGON_IO_GET_FOREX_SMA", {
|
|
55
|
+
slug: "polygon_io-get-forex-sma",
|
|
56
|
+
name: "Get Forex SMA",
|
|
57
|
+
description: "Tool to calculate Simple Moving Average (SMA) technical indicator for a forex pair. Use when you need trend analysis or moving average calculations for currency pairs.",
|
|
58
|
+
input: PolygonIoGetForexSmaInput,
|
|
59
|
+
output: z.object({
|
|
60
|
+
status: z.string().describe("The status of this request's response (e.g., 'OK', 'ERROR').").nullable().optional(),
|
|
61
|
+
results: PolygonIoGetForexSma_SMAResultsSchema.nullable().optional(),
|
|
62
|
+
next_url: z.string().describe("If present, this value can be used to fetch the next page of data.").nullable().optional(),
|
|
63
|
+
request_id: z.string().describe("A request id assigned by the server.").nullable().optional()
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
//#endregion
|
|
67
|
+
export { polygonIoGetForexSma };
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=get-forex-sma.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-forex-sma.mjs","names":[],"sources":["../../src/actions/get-forex-sma.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetForexSmaInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(10).describe(\"Limit the number of results returned. Defaults to 10. Maximum is 5000.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"The order in which to return the results, ordered by timestamp. 'asc' for ascending/oldest first, 'desc' for descending/newest first. Defaults to 'desc'.\").optional(),\n window: z.number().int().default(50).describe(\"The window size used to calculate the SMA. For example, a window of 10 with daily aggregates equals a 10-day moving average. Defaults to 50.\").optional(),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the SMA are adjusted for splits. Defaults to True.\").optional(),\n timespan: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\"]).default(\"day\").describe(\"The size of the aggregate time window. Defaults to 'day'.\").optional(),\n timestamp: z.string().describe(\"Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.\").optional(),\n series_type: z.enum([\"open\", \"high\", \"low\", \"close\"]).default(\"close\").describe(\"The price in the aggregate which will be used to calculate the SMA. Defaults to 'close'.\").optional(),\n forex_ticker: z.string().describe(\"The forex ticker symbol in format C:FROMTO (e.g., 'C:EURUSD', 'C:GBPJPY'). Must include the 'C:' prefix for forex currency pairs.\"),\n \"timestamp.gt\": z.string().describe(\"Filter for timestamps greater than the specified value. Format: YYYY-MM-DD or millisecond timestamp.\").optional(),\n \"timestamp.lt\": z.string().describe(\"Filter for timestamps less than the specified value. Format: YYYY-MM-DD or millisecond timestamp.\").optional(),\n \"timestamp.gte\": z.string().describe(\"Filter for timestamps greater than or equal to the specified value. Format: YYYY-MM-DD or millisecond timestamp.\").optional(),\n \"timestamp.lte\": z.string().describe(\"Filter for timestamps less than or equal to the specified value. Format: YYYY-MM-DD or millisecond timestamp.\").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 forex pair.\");\nconst PolygonIoGetForexSma_SMAValueSchema: z.ZodTypeAny = z.object({\n value: z.number().describe(\"The SMA indicator value for this period.\"),\n timestamp: z.number().int().describe(\"The Unix millisecond timestamp from the last aggregate used in this calculation.\"),\n});\nconst PolygonIoGetForexSma_AggregateBarSchema: z.ZodTypeAny = z.object({\n c: z.number().describe(\"The close price for the aggregate window.\").nullable().optional(),\n h: z.number().describe(\"The high price for the aggregate window.\").nullable().optional(),\n l: z.number().describe(\"The low price for the aggregate window.\").nullable().optional(),\n n: z.number().int().describe(\"The number of transactions in the aggregate window.\").nullable().optional(),\n o: z.number().describe(\"The open price for the aggregate window.\").nullable().optional(),\n t: z.number().int().describe(\"The Unix millisecond timestamp for the end of the aggregate window.\").nullable().optional(),\n v: z.number().describe(\"The trading volume for the aggregate window.\").nullable().optional(),\n vw: z.number().describe(\"The volume weighted average price for the aggregate window.\").nullable().optional(),\n});\nconst PolygonIoGetForexSma_UnderlyingDataSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL which can be used to request the underlying aggregates used in this request.\").nullable().optional(),\n aggregates: z.array(PolygonIoGetForexSma_AggregateBarSchema).describe(\"Array of aggregate objects containing price and volume data.\").nullable().optional(),\n});\nconst PolygonIoGetForexSma_SMAResultsSchema: z.ZodTypeAny = z.object({\n values: z.array(PolygonIoGetForexSma_SMAValueSchema).describe(\"Array of SMA indicator values.\").nullable().optional(),\n underlying: PolygonIoGetForexSma_UnderlyingDataSchema.nullable().optional(),\n});\nexport const PolygonIoGetForexSmaOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK', 'ERROR').\").nullable().optional(),\n results: PolygonIoGetForexSma_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.\").nullable().optional(),\n});\n\nexport const polygonIoGetForexSma = action(\"POLYGON_IO_GET_FOREX_SMA\", {\n slug: \"polygon_io-get-forex-sma\",\n name: \"Get Forex SMA\",\n description: \"Tool to calculate Simple Moving Average (SMA) technical indicator for a forex pair. Use when you need trend analysis or moving average calculations for currency pairs.\",\n input: PolygonIoGetForexSmaInput,\n output: PolygonIoGetForexSmaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAChI,OAAO,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,2JAA2J,CAAC,CAAC,SAAS;CAC9N,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CACvM,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,QAAQ,KAAK,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC9K,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,0FAA0F,CAAC,CAAC,SAAS;CACrL,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CACrK,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACrJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CAClJ,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,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F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,YAAY,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5J,CAAC;AACD,MAAM,wCAAsD,EAAE,OAAO;CACnE,QAAQ,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC;AAQD,MAAa,uBAAuB,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,SAAS,sCAAsC,SAAS,CAAC,CAAC,SAAS;EACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-futures-quotes.ts
|
|
4
|
+
const PolygonIoGetFuturesQuotesInput = zod.z.object({
|
|
5
|
+
sort: zod.z.string().describe("Sort field used for ordering results. Use dotted notation (e.g., 'timestamp', 'ticker').").optional(),
|
|
6
|
+
limit: zod.z.number().int().describe("Limit the number of results returned per page. Default: 1000, Maximum: 50000.").optional(),
|
|
7
|
+
order: zod.z.enum(["asc", "desc"]).describe("Order results based on the sort field. 'asc' for ascending, 'desc' for descending.").optional(),
|
|
8
|
+
timestamp: zod.z.string().describe("Query by trade timestamp. Either a date with the format YYYY-MM-DD or a nanosecond timestamp.").optional(),
|
|
9
|
+
futures_ticker: zod.z.string().describe("The futures contract ticker symbol including base symbol and contract expiration (e.g., 'GCJ25' for Gold April 2025, 'ESZ5' for E-mini S&P 500 December 2025).")
|
|
10
|
+
}).describe("Parameters for retrieving futures quote data.");
|
|
11
|
+
const PolygonIoGetFuturesQuotes_FuturesQuoteSchema = zod.z.object({
|
|
12
|
+
tape: zod.z.number().int().describe("The tape where this quote was recorded.").nullable().optional(),
|
|
13
|
+
ask_size: zod.z.number().describe("The ask size. This represents the number of futures contracts available at the given ask price.").nullable().optional(),
|
|
14
|
+
bid_size: zod.z.number().describe("The bid size. This represents the number of futures contracts available at the given bid price.").nullable().optional(),
|
|
15
|
+
ask_price: zod.z.number().describe("The ask price for the futures contract. Expressed per unit of the underlying asset.").nullable().optional(),
|
|
16
|
+
bid_price: zod.z.number().describe("The bid price for the futures contract. Expressed per unit of the underlying asset.").nullable().optional(),
|
|
17
|
+
conditions: zod.z.array(zod.z.number().int()).describe("An array of condition codes for this quote.").nullable().optional(),
|
|
18
|
+
indicators: zod.z.array(zod.z.number().int()).describe("An array of indicator values for this quote.").nullable().optional(),
|
|
19
|
+
ask_exchange: zod.z.number().int().describe("The exchange ID where the ask quote originated.").nullable().optional(),
|
|
20
|
+
bid_exchange: zod.z.number().int().describe("The exchange ID where the bid quote originated.").nullable().optional(),
|
|
21
|
+
sip_timestamp: zod.z.number().int().describe("The SIP (Securities Information Processor) timestamp in Unix milliseconds or nanoseconds.").nullable().optional(),
|
|
22
|
+
sequence_number: zod.z.number().int().describe("The sequence number of this quote.").nullable().optional(),
|
|
23
|
+
participant_timestamp: zod.z.number().int().describe("The participant timestamp in Unix milliseconds or nanoseconds.").nullable().optional()
|
|
24
|
+
}).describe("Individual futures quote containing bid/ask data.");
|
|
25
|
+
const PolygonIoGetFuturesQuotesOutput = zod.z.object({
|
|
26
|
+
count: zod.z.number().int().describe("The number of results returned in this response.").nullable().optional(),
|
|
27
|
+
status: zod.z.string().describe("The status of this request's response (e.g., 'OK', 'ERROR').").nullable().optional(),
|
|
28
|
+
results: zod.z.array(PolygonIoGetFuturesQuotes_FuturesQuoteSchema).describe("An array of quote objects.").nullable().optional(),
|
|
29
|
+
next_url: zod.z.string().describe("If present, this value can be used to fetch the next page of data.").nullable().optional(),
|
|
30
|
+
request_id: zod.z.string().describe("A unique identifier for the request.").nullable().optional()
|
|
31
|
+
}).describe("Response containing futures quote data with bid/ask information.");
|
|
32
|
+
const polygonIoGetFuturesQuotes = require_action.action("POLYGON_IO_GET_FUTURES_QUOTES", {
|
|
33
|
+
slug: "polygon_io-get-futures-quotes",
|
|
34
|
+
name: "Get Futures Quotes",
|
|
35
|
+
description: "Tool to get real-time quote information for futures contracts with bid/ask prices, sizes, and timestamps. Use when you need to analyze current or historical quote data for futures trading decisions.",
|
|
36
|
+
input: PolygonIoGetFuturesQuotesInput,
|
|
37
|
+
output: PolygonIoGetFuturesQuotesOutput
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
exports.polygonIoGetFuturesQuotes = polygonIoGetFuturesQuotes;
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=get-futures-quotes.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-futures-quotes.cjs","names":["z","action"],"sources":["../../src/actions/get-futures-quotes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetFuturesQuotesInput: z.ZodTypeAny = z.object({\n sort: z.string().describe(\"Sort field used for ordering results. Use dotted notation (e.g., 'timestamp', 'ticker').\").optional(),\n limit: z.number().int().describe(\"Limit the number of results returned per page. Default: 1000, Maximum: 50000.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).describe(\"Order results based on the sort field. 'asc' for ascending, 'desc' for descending.\").optional(),\n timestamp: z.string().describe(\"Query by trade timestamp. Either a date with the format YYYY-MM-DD or a nanosecond timestamp.\").optional(),\n futures_ticker: z.string().describe(\"The futures contract ticker symbol including base symbol and contract expiration (e.g., 'GCJ25' for Gold April 2025, 'ESZ5' for E-mini S&P 500 December 2025).\"),\n}).describe(\"Parameters for retrieving futures quote data.\");\nconst PolygonIoGetFuturesQuotes_FuturesQuoteSchema: z.ZodTypeAny = z.object({\n tape: z.number().int().describe(\"The tape where this quote was recorded.\").nullable().optional(),\n ask_size: z.number().describe(\"The ask size. This represents the number of futures contracts available at the given ask price.\").nullable().optional(),\n bid_size: z.number().describe(\"The bid size. This represents the number of futures contracts available at the given bid price.\").nullable().optional(),\n ask_price: z.number().describe(\"The ask price for the futures contract. Expressed per unit of the underlying asset.\").nullable().optional(),\n bid_price: z.number().describe(\"The bid price for the futures contract. Expressed per unit of the underlying asset.\").nullable().optional(),\n conditions: z.array(z.number().int()).describe(\"An array of condition codes for this quote.\").nullable().optional(),\n indicators: z.array(z.number().int()).describe(\"An array of indicator values for this quote.\").nullable().optional(),\n ask_exchange: z.number().int().describe(\"The exchange ID where the ask quote originated.\").nullable().optional(),\n bid_exchange: z.number().int().describe(\"The exchange ID where the bid quote originated.\").nullable().optional(),\n sip_timestamp: z.number().int().describe(\"The SIP (Securities Information Processor) timestamp in Unix milliseconds or nanoseconds.\").nullable().optional(),\n sequence_number: z.number().int().describe(\"The sequence number of this quote.\").nullable().optional(),\n participant_timestamp: z.number().int().describe(\"The participant timestamp in Unix milliseconds or nanoseconds.\").nullable().optional(),\n}).describe(\"Individual futures quote containing bid/ask data.\");\nexport const PolygonIoGetFuturesQuotesOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"The number of results returned in this response.\").nullable().optional(),\n status: z.string().describe(\"The status of this request's response (e.g., 'OK', 'ERROR').\").nullable().optional(),\n results: z.array(PolygonIoGetFuturesQuotes_FuturesQuoteSchema).describe(\"An array of quote objects.\").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 unique identifier for the request.\").nullable().optional(),\n}).describe(\"Response containing futures quote data with bid/ask information.\");\n\nexport const polygonIoGetFuturesQuotes = action(\"POLYGON_IO_GET_FUTURES_QUOTES\", {\n slug: \"polygon_io-get-futures-quotes\",\n name: \"Get Futures Quotes\",\n description: \"Tool to get real-time quote information for futures contracts with bid/ask prices, sizes, and timestamps. Use when you need to analyze current or historical quote data for futures trading decisions.\",\n input: PolygonIoGetFuturesQuotesInput,\n output: PolygonIoGetFuturesQuotesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC/H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC3H,OAAOA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CACvI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACzI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;AACtM,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,WAAWA,IAAA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IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9E,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,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-futures-quotes.d.ts
|
|
4
|
+
declare const PolygonIoGetFuturesQuotesInput: z.ZodTypeAny;
|
|
5
|
+
declare const PolygonIoGetFuturesQuotesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const polygonIoGetFuturesQuotes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { polygonIoGetFuturesQuotes };
|
|
9
|
+
//# sourceMappingURL=get-futures-quotes.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-futures-quotes.d.cts","names":[],"sources":["../../src/actions/get-futures-quotes.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAMa;AAAA,cAe/C,+BAAA,EAAiC,CAAA,CAAE,UAM+B;AAAA,cAElE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-futures-quotes.d.ts
|
|
4
|
+
declare const PolygonIoGetFuturesQuotesInput: z.ZodTypeAny;
|
|
5
|
+
declare const PolygonIoGetFuturesQuotesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const polygonIoGetFuturesQuotes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { polygonIoGetFuturesQuotes };
|
|
9
|
+
//# sourceMappingURL=get-futures-quotes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-futures-quotes.d.mts","names":[],"sources":["../../src/actions/get-futures-quotes.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAMa;AAAA,cAe/C,+BAAA,EAAiC,CAAA,CAAE,UAM+B;AAAA,cAElE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-futures-quotes.ts
|
|
4
|
+
const PolygonIoGetFuturesQuotesInput = z.object({
|
|
5
|
+
sort: z.string().describe("Sort field used for ordering results. Use dotted notation (e.g., 'timestamp', 'ticker').").optional(),
|
|
6
|
+
limit: z.number().int().describe("Limit the number of results returned per page. Default: 1000, Maximum: 50000.").optional(),
|
|
7
|
+
order: z.enum(["asc", "desc"]).describe("Order results based on the sort field. 'asc' for ascending, 'desc' for descending.").optional(),
|
|
8
|
+
timestamp: z.string().describe("Query by trade timestamp. Either a date with the format YYYY-MM-DD or a nanosecond timestamp.").optional(),
|
|
9
|
+
futures_ticker: z.string().describe("The futures contract ticker symbol including base symbol and contract expiration (e.g., 'GCJ25' for Gold April 2025, 'ESZ5' for E-mini S&P 500 December 2025).")
|
|
10
|
+
}).describe("Parameters for retrieving futures quote data.");
|
|
11
|
+
const PolygonIoGetFuturesQuotes_FuturesQuoteSchema = z.object({
|
|
12
|
+
tape: z.number().int().describe("The tape where this quote was recorded.").nullable().optional(),
|
|
13
|
+
ask_size: z.number().describe("The ask size. This represents the number of futures contracts available at the given ask price.").nullable().optional(),
|
|
14
|
+
bid_size: z.number().describe("The bid size. This represents the number of futures contracts available at the given bid price.").nullable().optional(),
|
|
15
|
+
ask_price: z.number().describe("The ask price for the futures contract. Expressed per unit of the underlying asset.").nullable().optional(),
|
|
16
|
+
bid_price: z.number().describe("The bid price for the futures contract. Expressed per unit of the underlying asset.").nullable().optional(),
|
|
17
|
+
conditions: z.array(z.number().int()).describe("An array of condition codes for this quote.").nullable().optional(),
|
|
18
|
+
indicators: z.array(z.number().int()).describe("An array of indicator values for this quote.").nullable().optional(),
|
|
19
|
+
ask_exchange: z.number().int().describe("The exchange ID where the ask quote originated.").nullable().optional(),
|
|
20
|
+
bid_exchange: z.number().int().describe("The exchange ID where the bid quote originated.").nullable().optional(),
|
|
21
|
+
sip_timestamp: z.number().int().describe("The SIP (Securities Information Processor) timestamp in Unix milliseconds or nanoseconds.").nullable().optional(),
|
|
22
|
+
sequence_number: z.number().int().describe("The sequence number of this quote.").nullable().optional(),
|
|
23
|
+
participant_timestamp: z.number().int().describe("The participant timestamp in Unix milliseconds or nanoseconds.").nullable().optional()
|
|
24
|
+
}).describe("Individual futures quote containing bid/ask data.");
|
|
25
|
+
const polygonIoGetFuturesQuotes = action("POLYGON_IO_GET_FUTURES_QUOTES", {
|
|
26
|
+
slug: "polygon_io-get-futures-quotes",
|
|
27
|
+
name: "Get Futures Quotes",
|
|
28
|
+
description: "Tool to get real-time quote information for futures contracts with bid/ask prices, sizes, and timestamps. Use when you need to analyze current or historical quote data for futures trading decisions.",
|
|
29
|
+
input: PolygonIoGetFuturesQuotesInput,
|
|
30
|
+
output: z.object({
|
|
31
|
+
count: z.number().int().describe("The number of results returned in this response.").nullable().optional(),
|
|
32
|
+
status: z.string().describe("The status of this request's response (e.g., 'OK', 'ERROR').").nullable().optional(),
|
|
33
|
+
results: z.array(PolygonIoGetFuturesQuotes_FuturesQuoteSchema).describe("An array of quote objects.").nullable().optional(),
|
|
34
|
+
next_url: z.string().describe("If present, this value can be used to fetch the next page of data.").nullable().optional(),
|
|
35
|
+
request_id: z.string().describe("A unique identifier for the request.").nullable().optional()
|
|
36
|
+
}).describe("Response containing futures quote data with bid/ask information.")
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { polygonIoGetFuturesQuotes };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=get-futures-quotes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-futures-quotes.mjs","names":[],"sources":["../../src/actions/get-futures-quotes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetFuturesQuotesInput: z.ZodTypeAny = z.object({\n sort: z.string().describe(\"Sort field used for ordering results. Use dotted notation (e.g., 'timestamp', 'ticker').\").optional(),\n limit: z.number().int().describe(\"Limit the number of results returned per page. Default: 1000, Maximum: 50000.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).describe(\"Order results based on the sort field. 'asc' for ascending, 'desc' for descending.\").optional(),\n timestamp: z.string().describe(\"Query by trade timestamp. Either a date with the format YYYY-MM-DD or a nanosecond timestamp.\").optional(),\n futures_ticker: z.string().describe(\"The futures contract ticker symbol including base symbol and contract expiration (e.g., 'GCJ25' for Gold April 2025, 'ESZ5' for E-mini S&P 500 December 2025).\"),\n}).describe(\"Parameters for retrieving futures quote data.\");\nconst PolygonIoGetFuturesQuotes_FuturesQuoteSchema: z.ZodTypeAny = z.object({\n tape: z.number().int().describe(\"The tape where this quote was recorded.\").nullable().optional(),\n ask_size: z.number().describe(\"The ask size. This represents the number of futures contracts available at the given ask price.\").nullable().optional(),\n bid_size: z.number().describe(\"The bid size. This represents the number of futures contracts available at the given bid price.\").nullable().optional(),\n ask_price: z.number().describe(\"The ask price for the futures contract. Expressed per unit of the underlying asset.\").nullable().optional(),\n bid_price: z.number().describe(\"The bid price for the futures contract. Expressed per unit of the underlying asset.\").nullable().optional(),\n conditions: z.array(z.number().int()).describe(\"An array of condition codes for this quote.\").nullable().optional(),\n indicators: z.array(z.number().int()).describe(\"An array of indicator values for this quote.\").nullable().optional(),\n ask_exchange: z.number().int().describe(\"The exchange ID where the ask quote originated.\").nullable().optional(),\n bid_exchange: z.number().int().describe(\"The exchange ID where the bid quote originated.\").nullable().optional(),\n sip_timestamp: z.number().int().describe(\"The SIP (Securities Information Processor) timestamp in Unix milliseconds or nanoseconds.\").nullable().optional(),\n sequence_number: z.number().int().describe(\"The sequence number of this quote.\").nullable().optional(),\n participant_timestamp: z.number().int().describe(\"The participant timestamp in Unix milliseconds or nanoseconds.\").nullable().optional(),\n}).describe(\"Individual futures quote containing bid/ask data.\");\nexport const PolygonIoGetFuturesQuotesOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"The number of results returned in this response.\").nullable().optional(),\n status: z.string().describe(\"The status of this request's response (e.g., 'OK', 'ERROR').\").nullable().optional(),\n results: z.array(PolygonIoGetFuturesQuotes_FuturesQuoteSchema).describe(\"An array of quote objects.\").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 unique identifier for the request.\").nullable().optional(),\n}).describe(\"Response containing futures quote data with bid/ask information.\");\n\nexport const polygonIoGetFuturesQuotes = action(\"POLYGON_IO_GET_FUTURES_QUOTES\", {\n slug: \"polygon_io-get-futures-quotes\",\n name: \"Get Futures Quotes\",\n description: \"Tool to get real-time quote information for futures contracts with bid/ask prices, sizes, and timestamps. Use when you need to analyze current or historical quote data for futures trading decisions.\",\n input: PolygonIoGetFuturesQuotesInput,\n output: PolygonIoGetFuturesQuotesOutput,\n});\n"],"mappings":";;;AAIA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actions/get-grouped-daily.ts
|
|
4
|
+
const PolygonIoGetGroupedDailyInput = zod.z.object({
|
|
5
|
+
date: zod.z.string().describe("The date to get aggregate bars for in YYYY-MM-DD format (e.g., '2026-02-13')."),
|
|
6
|
+
locale: zod.z.enum(["us", "global"]).describe("The locale of the aggregates. Specify 'us' for US market or 'global' for global markets."),
|
|
7
|
+
market: zod.z.enum([
|
|
8
|
+
"stocks",
|
|
9
|
+
"crypto",
|
|
10
|
+
"fx"
|
|
11
|
+
]).describe("The market type. Options are 'stocks', 'crypto', or 'fx'."),
|
|
12
|
+
adjusted: zod.z.boolean().default(true).describe("Whether results are adjusted for splits. Set to false for unadjusted results. Defaults to true.").optional()
|
|
13
|
+
}).describe("Parameters for retrieving grouped daily OHLCV data for an entire market.");
|
|
14
|
+
const PolygonIoGetGroupedDaily_AggregateItemSchema = zod.z.object({
|
|
15
|
+
T: zod.z.string().describe("Ticker symbol / exchange symbol"),
|
|
16
|
+
c: zod.z.number().describe("Close price for the symbol in the given time period"),
|
|
17
|
+
h: zod.z.number().describe("Highest price for the symbol in the given time period"),
|
|
18
|
+
l: zod.z.number().describe("Lowest price for the symbol in the given time period"),
|
|
19
|
+
n: zod.z.number().int().describe("Number of transactions in the aggregate window").nullable().optional(),
|
|
20
|
+
o: zod.z.number().describe("Open price for the symbol in the given time period"),
|
|
21
|
+
t: zod.z.number().int().describe("Unix millisecond timestamp for the end of the aggregate window"),
|
|
22
|
+
v: zod.z.number().describe("Trading volume of the symbol in the given time period"),
|
|
23
|
+
vw: zod.z.number().describe("Volume weighted average price (VWAP)").nullable().optional(),
|
|
24
|
+
otc: zod.z.boolean().describe("Whether this aggregate is for an OTC ticker. Field is omitted if false.").nullable().optional()
|
|
25
|
+
}).describe("Aggregate OHLCV data for a single ticker.");
|
|
26
|
+
const PolygonIoGetGroupedDailyOutput = zod.z.object({
|
|
27
|
+
status: zod.z.string().describe("Status of this request's response (e.g., 'OK')"),
|
|
28
|
+
results: zod.z.array(PolygonIoGetGroupedDaily_AggregateItemSchema).describe("Array of aggregate data objects for each ticker. May be empty if no data is available for the given date.").nullable().optional(),
|
|
29
|
+
adjusted: zod.z.boolean().describe("Whether this response was adjusted for splits"),
|
|
30
|
+
queryCount: zod.z.number().int().describe("Number of aggregates used to generate the response"),
|
|
31
|
+
request_id: zod.z.string().describe("Request ID assigned by the server"),
|
|
32
|
+
resultsCount: zod.z.number().int().describe("Total number of results for this request")
|
|
33
|
+
}).describe("Response containing grouped daily bars for the entire market.");
|
|
34
|
+
const polygonIoGetGroupedDaily = require_action.action("POLYGON_IO_GET_GROUPED_DAILY", {
|
|
35
|
+
slug: "polygon_io-get-grouped-daily",
|
|
36
|
+
name: "Get Grouped Daily Market Summary",
|
|
37
|
+
description: "Tool to retrieve daily OHLCV data for the entire market for a given date. Use when you need grouped daily aggregate bars for all tickers in a specific market (stocks, crypto, or fx) and locale.",
|
|
38
|
+
input: PolygonIoGetGroupedDailyInput,
|
|
39
|
+
output: PolygonIoGetGroupedDailyOutput
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.polygonIoGetGroupedDaily = polygonIoGetGroupedDaily;
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=get-grouped-daily.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-grouped-daily.cjs","names":["z","action"],"sources":["../../src/actions/get-grouped-daily.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetGroupedDailyInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"The date to get aggregate bars for in YYYY-MM-DD format (e.g., '2026-02-13').\"),\n locale: z.enum([\"us\", \"global\"]).describe(\"The locale of the aggregates. Specify 'us' for US market or 'global' for global markets.\"),\n market: z.enum([\"stocks\", \"crypto\", \"fx\"]).describe(\"The market type. Options are 'stocks', 'crypto', or 'fx'.\"),\n adjusted: z.boolean().default(true).describe(\"Whether results are adjusted for splits. Set to false for unadjusted results. Defaults to true.\").optional(),\n}).describe(\"Parameters for retrieving grouped daily OHLCV data for an entire market.\");\nconst PolygonIoGetGroupedDaily_AggregateItemSchema: z.ZodTypeAny = z.object({\n T: z.string().describe(\"Ticker symbol / exchange symbol\"),\n c: z.number().describe(\"Close price for the symbol in the given time period\"),\n h: z.number().describe(\"Highest price for the symbol in the given time period\"),\n l: z.number().describe(\"Lowest price for the symbol in the given time period\"),\n n: z.number().int().describe(\"Number of transactions in the aggregate window\").nullable().optional(),\n o: z.number().describe(\"Open price for the symbol in the given time period\"),\n t: z.number().int().describe(\"Unix millisecond timestamp for the end of the aggregate window\"),\n v: z.number().describe(\"Trading volume of the symbol in the given time period\"),\n vw: z.number().describe(\"Volume weighted average price (VWAP)\").nullable().optional(),\n otc: z.boolean().describe(\"Whether this aggregate is for an OTC ticker. Field is omitted if false.\").nullable().optional(),\n}).describe(\"Aggregate OHLCV data for a single ticker.\");\nexport const PolygonIoGetGroupedDailyOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of this request's response (e.g., 'OK')\"),\n results: z.array(PolygonIoGetGroupedDaily_AggregateItemSchema).describe(\"Array of aggregate data objects for each ticker. May be empty if no data is available for the given date.\").nullable().optional(),\n adjusted: z.boolean().describe(\"Whether this response was adjusted for splits\"),\n queryCount: z.number().int().describe(\"Number of aggregates used to generate the response\"),\n request_id: z.string().describe(\"Request ID assigned by the server\"),\n resultsCount: z.number().int().describe(\"Total number of results for this request\"),\n}).describe(\"Response containing grouped daily bars for the entire market.\");\n\nexport const polygonIoGetGroupedDaily = action(\"POLYGON_IO_GET_GROUPED_DAILY\", {\n slug: \"polygon_io-get-grouped-daily\",\n name: \"Get Grouped Daily Market Summary\",\n description: \"Tool to retrieve daily OHLCV data for the entire market for a given date. Use when you need grouped daily aggregate bars for all tickers in a specific market (stocks, crypto, or fx) and locale.\",\n input: PolygonIoGetGroupedDailyInput,\n output: PolygonIoGetGroupedDailyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA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,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC5E,SAASA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzM,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACnE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;AACpF,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,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-grouped-daily.d.ts
|
|
4
|
+
declare const PolygonIoGetGroupedDailyInput: z.ZodTypeAny;
|
|
5
|
+
declare const PolygonIoGetGroupedDailyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const polygonIoGetGroupedDaily: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { polygonIoGetGroupedDaily };
|
|
9
|
+
//# sourceMappingURL=get-grouped-daily.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-grouped-daily.d.cts","names":[],"sources":["../../src/actions/get-grouped-daily.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAKyC;AAAA,cAa1E,8BAAA,EAAgC,CAAA,CAAE,UAO6B;AAAA,cAE/D,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-grouped-daily.d.ts
|
|
4
|
+
declare const PolygonIoGetGroupedDailyInput: z.ZodTypeAny;
|
|
5
|
+
declare const PolygonIoGetGroupedDailyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const polygonIoGetGroupedDaily: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { polygonIoGetGroupedDaily };
|
|
9
|
+
//# sourceMappingURL=get-grouped-daily.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-grouped-daily.d.mts","names":[],"sources":["../../src/actions/get-grouped-daily.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAKyC;AAAA,cAa1E,8BAAA,EAAgC,CAAA,CAAE,UAO6B;AAAA,cAE/D,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-grouped-daily.ts
|
|
4
|
+
const PolygonIoGetGroupedDailyInput = z.object({
|
|
5
|
+
date: z.string().describe("The date to get aggregate bars for in YYYY-MM-DD format (e.g., '2026-02-13')."),
|
|
6
|
+
locale: z.enum(["us", "global"]).describe("The locale of the aggregates. Specify 'us' for US market or 'global' for global markets."),
|
|
7
|
+
market: z.enum([
|
|
8
|
+
"stocks",
|
|
9
|
+
"crypto",
|
|
10
|
+
"fx"
|
|
11
|
+
]).describe("The market type. Options are 'stocks', 'crypto', or 'fx'."),
|
|
12
|
+
adjusted: z.boolean().default(true).describe("Whether results are adjusted for splits. Set to false for unadjusted results. Defaults to true.").optional()
|
|
13
|
+
}).describe("Parameters for retrieving grouped daily OHLCV data for an entire market.");
|
|
14
|
+
const PolygonIoGetGroupedDaily_AggregateItemSchema = z.object({
|
|
15
|
+
T: z.string().describe("Ticker symbol / exchange symbol"),
|
|
16
|
+
c: z.number().describe("Close price for the symbol in the given time period"),
|
|
17
|
+
h: z.number().describe("Highest price for the symbol in the given time period"),
|
|
18
|
+
l: z.number().describe("Lowest price for the symbol in the given time period"),
|
|
19
|
+
n: z.number().int().describe("Number of transactions in the aggregate window").nullable().optional(),
|
|
20
|
+
o: z.number().describe("Open price for the symbol in the given time period"),
|
|
21
|
+
t: z.number().int().describe("Unix millisecond timestamp for the end of the aggregate window"),
|
|
22
|
+
v: z.number().describe("Trading volume of the symbol in the given time period"),
|
|
23
|
+
vw: z.number().describe("Volume weighted average price (VWAP)").nullable().optional(),
|
|
24
|
+
otc: z.boolean().describe("Whether this aggregate is for an OTC ticker. Field is omitted if false.").nullable().optional()
|
|
25
|
+
}).describe("Aggregate OHLCV data for a single ticker.");
|
|
26
|
+
const polygonIoGetGroupedDaily = action("POLYGON_IO_GET_GROUPED_DAILY", {
|
|
27
|
+
slug: "polygon_io-get-grouped-daily",
|
|
28
|
+
name: "Get Grouped Daily Market Summary",
|
|
29
|
+
description: "Tool to retrieve daily OHLCV data for the entire market for a given date. Use when you need grouped daily aggregate bars for all tickers in a specific market (stocks, crypto, or fx) and locale.",
|
|
30
|
+
input: PolygonIoGetGroupedDailyInput,
|
|
31
|
+
output: z.object({
|
|
32
|
+
status: z.string().describe("Status of this request's response (e.g., 'OK')"),
|
|
33
|
+
results: z.array(PolygonIoGetGroupedDaily_AggregateItemSchema).describe("Array of aggregate data objects for each ticker. May be empty if no data is available for the given date.").nullable().optional(),
|
|
34
|
+
adjusted: z.boolean().describe("Whether this response was adjusted for splits"),
|
|
35
|
+
queryCount: z.number().int().describe("Number of aggregates used to generate the response"),
|
|
36
|
+
request_id: z.string().describe("Request ID assigned by the server"),
|
|
37
|
+
resultsCount: z.number().int().describe("Total number of results for this request")
|
|
38
|
+
}).describe("Response containing grouped daily bars for the entire market.")
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { polygonIoGetGroupedDaily };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=get-grouped-daily.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-grouped-daily.mjs","names":[],"sources":["../../src/actions/get-grouped-daily.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetGroupedDailyInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"The date to get aggregate bars for in YYYY-MM-DD format (e.g., '2026-02-13').\"),\n locale: z.enum([\"us\", \"global\"]).describe(\"The locale of the aggregates. Specify 'us' for US market or 'global' for global markets.\"),\n market: z.enum([\"stocks\", \"crypto\", \"fx\"]).describe(\"The market type. Options are 'stocks', 'crypto', or 'fx'.\"),\n adjusted: z.boolean().default(true).describe(\"Whether results are adjusted for splits. Set to false for unadjusted results. Defaults to true.\").optional(),\n}).describe(\"Parameters for retrieving grouped daily OHLCV data for an entire market.\");\nconst PolygonIoGetGroupedDaily_AggregateItemSchema: z.ZodTypeAny = z.object({\n T: z.string().describe(\"Ticker symbol / exchange symbol\"),\n c: z.number().describe(\"Close price for the symbol in the given time period\"),\n h: z.number().describe(\"Highest price for the symbol in the given time period\"),\n l: z.number().describe(\"Lowest price for the symbol in the given time period\"),\n n: z.number().int().describe(\"Number of transactions in the aggregate window\").nullable().optional(),\n o: z.number().describe(\"Open price for the symbol in the given time period\"),\n t: z.number().int().describe(\"Unix millisecond timestamp for the end of the aggregate window\"),\n v: z.number().describe(\"Trading volume of the symbol in the given time period\"),\n vw: z.number().describe(\"Volume weighted average price (VWAP)\").nullable().optional(),\n otc: z.boolean().describe(\"Whether this aggregate is for an OTC ticker. Field is omitted if false.\").nullable().optional(),\n}).describe(\"Aggregate OHLCV data for a single ticker.\");\nexport const PolygonIoGetGroupedDailyOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of this request's response (e.g., 'OK')\"),\n results: z.array(PolygonIoGetGroupedDaily_AggregateItemSchema).describe(\"Array of aggregate data objects for each ticker. May be empty if no data is available for the given date.\").nullable().optional(),\n adjusted: z.boolean().describe(\"Whether this response was adjusted for splits\"),\n queryCount: z.number().int().describe(\"Number of aggregates used to generate the response\"),\n request_id: z.string().describe(\"Request ID assigned by the server\"),\n resultsCount: z.number().int().describe(\"Total number of results for this request\"),\n}).describe(\"Response containing grouped daily bars for the entire market.\");\n\nexport const polygonIoGetGroupedDaily = action(\"POLYGON_IO_GET_GROUPED_DAILY\", {\n slug: \"polygon_io-get-grouped-daily\",\n name: \"Get Grouped Daily Market Summary\",\n description: \"Tool to retrieve daily OHLCV data for the entire market for a given date. Use when you need grouped daily aggregate bars for all tickers in a specific market (stocks, crypto, or fx) and locale.\",\n input: PolygonIoGetGroupedDailyInput,\n output: PolygonIoGetGroupedDailyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACzG,QAAQ,EAAE,KAAK,CAAC,MAAM,QAAQ,CAAC,CAAC,CAAC,SAAS,0FAA0F;CACpI,QAAQ,EAAE,KAAK;EAAC;EAAU;EAAU;CAAI,CAAC,CAAC,CAAC,SAAS,2DAA2D;CAC/G,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,+CAA6D,EAAE,OAAO;CAC1E,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACx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action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-historic-forex-ticks.ts
|
|
4
|
+
const PolygonIoGetHistoricForexTicksInput = zod.z.object({
|
|
5
|
+
date: zod.z.string().describe("The specific day for which to retrieve historical tick data in YYYY-MM-DD or YYYY-M-D format (e.g., '2017-6-22', '2024-01-15')."),
|
|
6
|
+
limit: zod.z.number().int().describe("Controls response size; defaults to 100, maximum of 10,000 entries.").optional(),
|
|
7
|
+
offset: zod.z.number().int().describe("Pagination mechanism using timestamp offset to fetch the next set of results.").optional(),
|
|
8
|
+
to_currency: zod.z.string().describe("The 'to' currency symbol (quote currency) in the pair (e.g., 'JPY', 'USD', 'EUR')."),
|
|
9
|
+
from_currency: zod.z.string().describe("The 'from' currency symbol (base currency) in the pair (e.g., 'USD', 'EUR', 'GBP').")
|
|
10
|
+
}).describe("Parameters for retrieving historic forex ticks for a currency pair.");
|
|
11
|
+
const PolygonIoGetHistoricForexTicks_ForexTickSchema = zod.z.object({
|
|
12
|
+
a: zod.z.number().int().describe("Ask price.").nullable().optional(),
|
|
13
|
+
b: zod.z.number().int().describe("Bid price.").nullable().optional(),
|
|
14
|
+
t: zod.z.number().int().describe("Trade timestamp in Unix milliseconds.").nullable().optional()
|
|
15
|
+
}).describe("Individual forex tick data.");
|
|
16
|
+
const PolygonIoGetHistoricForexTicksOutput = zod.z.object({
|
|
17
|
+
day: zod.z.string().describe("The evaluated date from the request.").nullable().optional(),
|
|
18
|
+
ticks: zod.z.array(PolygonIoGetHistoricForexTicks_ForexTickSchema).describe("Collection of Forex tick objects.").nullable().optional(),
|
|
19
|
+
status: zod.z.string().describe("Request response status indicator.").nullable().optional(),
|
|
20
|
+
symbol: zod.z.string().describe("The currency pair evaluated from the request.").nullable().optional(),
|
|
21
|
+
msLatency: zod.z.number().int().describe("Query response latency measured in milliseconds.").nullable().optional()
|
|
22
|
+
}).describe("Response containing historic forex tick data.");
|
|
23
|
+
const polygonIoGetHistoricForexTicks = require_action.action("POLYGON_IO_GET_HISTORIC_FOREX_TICKS", {
|
|
24
|
+
slug: "polygon_io-get-historic-forex-ticks",
|
|
25
|
+
name: "Get Historic Forex Ticks",
|
|
26
|
+
description: "Tool to get historic ticks for a currency pair on a specific date. Use when you need historical forex tick-level data (ask/bid prices with timestamps) for a given day.",
|
|
27
|
+
input: PolygonIoGetHistoricForexTicksInput,
|
|
28
|
+
output: PolygonIoGetHistoricForexTicksOutput
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.polygonIoGetHistoricForexTicks = polygonIoGetHistoricForexTicks;
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=get-historic-forex-ticks.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-historic-forex-ticks.cjs","names":["z","action"],"sources":["../../src/actions/get-historic-forex-ticks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetHistoricForexTicksInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"The specific day for which to retrieve historical tick data in YYYY-MM-DD or YYYY-M-D format (e.g., '2017-6-22', '2024-01-15').\"),\n limit: z.number().int().describe(\"Controls response size; defaults to 100, maximum of 10,000 entries.\").optional(),\n offset: z.number().int().describe(\"Pagination mechanism using timestamp offset to fetch the next set of results.\").optional(),\n to_currency: z.string().describe(\"The 'to' currency symbol (quote currency) in the pair (e.g., 'JPY', 'USD', 'EUR').\"),\n from_currency: z.string().describe(\"The 'from' currency symbol (base currency) in the pair (e.g., 'USD', 'EUR', 'GBP').\"),\n}).describe(\"Parameters for retrieving historic forex ticks for a currency pair.\");\nconst PolygonIoGetHistoricForexTicks_ForexTickSchema: z.ZodTypeAny = z.object({\n a: z.number().int().describe(\"Ask price.\").nullable().optional(),\n b: z.number().int().describe(\"Bid price.\").nullable().optional(),\n t: z.number().int().describe(\"Trade timestamp in Unix milliseconds.\").nullable().optional(),\n}).describe(\"Individual forex tick data.\");\nexport const PolygonIoGetHistoricForexTicksOutput: z.ZodTypeAny = z.object({\n day: z.string().describe(\"The evaluated date from the request.\").nullable().optional(),\n ticks: z.array(PolygonIoGetHistoricForexTicks_ForexTickSchema).describe(\"Collection of Forex tick objects.\").nullable().optional(),\n status: z.string().describe(\"Request response status indicator.\").nullable().optional(),\n symbol: z.string().describe(\"The currency pair evaluated from the request.\").nullable().optional(),\n msLatency: z.number().int().describe(\"Query response latency measured in milliseconds.\").nullable().optional(),\n}).describe(\"Response containing historic forex tick data.\");\n\nexport const polygonIoGetHistoricForexTicks = action(\"POLYGON_IO_GET_HISTORIC_FOREX_TICKS\", {\n slug: \"polygon_io-get-historic-forex-ticks\",\n name: \"Get Historic Forex Ticks\",\n description: \"Tool to get historic ticks for a currency pair on a specific date. Use when you need historical forex tick-level data (ask/bid prices with timestamps) for a given day.\",\n input: PolygonIoGetHistoricForexTicksInput,\n output: PolygonIoGetHistoricForexTicksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAC3J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC5H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;CACrH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;AAC1H,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,6BAA6B;AACzC,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,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-historic-forex-ticks.d.ts
|
|
4
|
+
declare const PolygonIoGetHistoricForexTicksInput: z.ZodTypeAny;
|
|
5
|
+
declare const PolygonIoGetHistoricForexTicksOutput: z.ZodTypeAny;
|
|
6
|
+
declare const polygonIoGetHistoricForexTicks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { polygonIoGetHistoricForexTicks };
|
|
9
|
+
//# sourceMappingURL=get-historic-forex-ticks.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-historic-forex-ticks.d.cts","names":[],"sources":["../../src/actions/get-historic-forex-ticks.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAM8B;AAAA,cAMrE,oCAAA,EAAsC,CAAA,CAAE,UAMO;AAAA,cAE/C,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-historic-forex-ticks.d.ts
|
|
4
|
+
declare const PolygonIoGetHistoricForexTicksInput: z.ZodTypeAny;
|
|
5
|
+
declare const PolygonIoGetHistoricForexTicksOutput: z.ZodTypeAny;
|
|
6
|
+
declare const polygonIoGetHistoricForexTicks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { polygonIoGetHistoricForexTicks };
|
|
9
|
+
//# sourceMappingURL=get-historic-forex-ticks.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-historic-forex-ticks.d.mts","names":[],"sources":["../../src/actions/get-historic-forex-ticks.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAM8B;AAAA,cAMrE,oCAAA,EAAsC,CAAA,CAAE,UAMO;AAAA,cAE/C,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-historic-forex-ticks.ts
|
|
4
|
+
const PolygonIoGetHistoricForexTicksInput = z.object({
|
|
5
|
+
date: z.string().describe("The specific day for which to retrieve historical tick data in YYYY-MM-DD or YYYY-M-D format (e.g., '2017-6-22', '2024-01-15')."),
|
|
6
|
+
limit: z.number().int().describe("Controls response size; defaults to 100, maximum of 10,000 entries.").optional(),
|
|
7
|
+
offset: z.number().int().describe("Pagination mechanism using timestamp offset to fetch the next set of results.").optional(),
|
|
8
|
+
to_currency: z.string().describe("The 'to' currency symbol (quote currency) in the pair (e.g., 'JPY', 'USD', 'EUR')."),
|
|
9
|
+
from_currency: z.string().describe("The 'from' currency symbol (base currency) in the pair (e.g., 'USD', 'EUR', 'GBP').")
|
|
10
|
+
}).describe("Parameters for retrieving historic forex ticks for a currency pair.");
|
|
11
|
+
const PolygonIoGetHistoricForexTicks_ForexTickSchema = z.object({
|
|
12
|
+
a: z.number().int().describe("Ask price.").nullable().optional(),
|
|
13
|
+
b: z.number().int().describe("Bid price.").nullable().optional(),
|
|
14
|
+
t: z.number().int().describe("Trade timestamp in Unix milliseconds.").nullable().optional()
|
|
15
|
+
}).describe("Individual forex tick data.");
|
|
16
|
+
const polygonIoGetHistoricForexTicks = action("POLYGON_IO_GET_HISTORIC_FOREX_TICKS", {
|
|
17
|
+
slug: "polygon_io-get-historic-forex-ticks",
|
|
18
|
+
name: "Get Historic Forex Ticks",
|
|
19
|
+
description: "Tool to get historic ticks for a currency pair on a specific date. Use when you need historical forex tick-level data (ask/bid prices with timestamps) for a given day.",
|
|
20
|
+
input: PolygonIoGetHistoricForexTicksInput,
|
|
21
|
+
output: z.object({
|
|
22
|
+
day: z.string().describe("The evaluated date from the request.").nullable().optional(),
|
|
23
|
+
ticks: z.array(PolygonIoGetHistoricForexTicks_ForexTickSchema).describe("Collection of Forex tick objects.").nullable().optional(),
|
|
24
|
+
status: z.string().describe("Request response status indicator.").nullable().optional(),
|
|
25
|
+
symbol: z.string().describe("The currency pair evaluated from the request.").nullable().optional(),
|
|
26
|
+
msLatency: z.number().int().describe("Query response latency measured in milliseconds.").nullable().optional()
|
|
27
|
+
}).describe("Response containing historic forex tick data.")
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { polygonIoGetHistoricForexTicks };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=get-historic-forex-ticks.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-historic-forex-ticks.mjs","names":[],"sources":["../../src/actions/get-historic-forex-ticks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetHistoricForexTicksInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"The specific day for which to retrieve historical tick data in YYYY-MM-DD or YYYY-M-D format (e.g., '2017-6-22', '2024-01-15').\"),\n limit: z.number().int().describe(\"Controls response size; defaults to 100, maximum of 10,000 entries.\").optional(),\n offset: z.number().int().describe(\"Pagination mechanism using timestamp offset to fetch the next set of results.\").optional(),\n to_currency: z.string().describe(\"The 'to' currency symbol (quote currency) in the pair (e.g., 'JPY', 'USD', 'EUR').\"),\n from_currency: z.string().describe(\"The 'from' currency symbol (base currency) in the pair (e.g., 'USD', 'EUR', 'GBP').\"),\n}).describe(\"Parameters for retrieving historic forex ticks for a currency pair.\");\nconst PolygonIoGetHistoricForexTicks_ForexTickSchema: z.ZodTypeAny = z.object({\n a: z.number().int().describe(\"Ask price.\").nullable().optional(),\n b: z.number().int().describe(\"Bid price.\").nullable().optional(),\n t: z.number().int().describe(\"Trade timestamp in Unix milliseconds.\").nullable().optional(),\n}).describe(\"Individual forex tick data.\");\nexport const PolygonIoGetHistoricForexTicksOutput: z.ZodTypeAny = z.object({\n day: z.string().describe(\"The evaluated date from the request.\").nullable().optional(),\n ticks: z.array(PolygonIoGetHistoricForexTicks_ForexTickSchema).describe(\"Collection of Forex tick objects.\").nullable().optional(),\n status: z.string().describe(\"Request response status indicator.\").nullable().optional(),\n symbol: z.string().describe(\"The currency pair evaluated from the request.\").nullable().optional(),\n msLatency: z.number().int().describe(\"Query response latency measured in milliseconds.\").nullable().optional(),\n}).describe(\"Response containing historic forex tick data.\");\n\nexport const polygonIoGetHistoricForexTicks = action(\"POLYGON_IO_GET_HISTORIC_FOREX_TICKS\", {\n slug: \"polygon_io-get-historic-forex-ticks\",\n name: \"Get Historic Forex Ticks\",\n description: \"Tool to get historic ticks for a currency pair on a specific date. Use when you need historical forex tick-level data (ask/bid prices with timestamps) for a given day.\",\n input: PolygonIoGetHistoricForexTicksInput,\n output: PolygonIoGetHistoricForexTicksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoD,EAAE,OAAO;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CAC3J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC5H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;CACrH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;AAC1H,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,iDAA+D,EAAE,OAAO;CAC5E,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,6BAA6B;AASzC,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbgE,EAAE,OAAO;EACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-inflation-expectations.ts
|
|
4
|
+
const PolygonIoGetInflationExpectationsInput = zod.z.object({
|
|
5
|
+
date: zod.z.string().describe("Filter by specific observation date (YYYY-MM-DD format).").optional(),
|
|
6
|
+
sort: zod.z.string().describe("Comma-separated list of sort columns with .asc or .desc suffix (e.g., 'date.asc').").optional(),
|
|
7
|
+
limit: zod.z.number().int().describe("Maximum number of results to return (1-50000). Default: 100.").optional(),
|
|
8
|
+
date_gt: zod.z.string().describe("Filter for dates after this value (YYYY-MM-DD format).").optional(),
|
|
9
|
+
date_lt: zod.z.string().describe("Filter for dates before this value (YYYY-MM-DD format).").optional(),
|
|
10
|
+
date_gte: zod.z.string().describe("Filter for dates on or after this value (YYYY-MM-DD format).").optional(),
|
|
11
|
+
date_lte: zod.z.string().describe("Filter for dates on or before this value (YYYY-MM-DD format).").optional(),
|
|
12
|
+
date_any_of: zod.z.string().describe("Match any of the comma-separated date values (YYYY-MM-DD format).").optional()
|
|
13
|
+
}).describe("Parameters to filter and paginate inflation expectations data from the Federal Reserve.");
|
|
14
|
+
const PolygonIoGetInflationExpectations_InflationExpectationSchema = zod.z.object({
|
|
15
|
+
date: zod.z.string().describe("Observation date (YYYY-MM-DD format)."),
|
|
16
|
+
model_1_year: zod.z.number().describe("Cleveland Fed's 1-year inflation expectation model estimate.").nullable().optional(),
|
|
17
|
+
model_5_year: zod.z.number().describe("Cleveland Fed's 5-year inflation expectation model estimate.").nullable().optional(),
|
|
18
|
+
market_5_year: zod.z.number().describe("5-year breakeven inflation rate derived from Treasury and TIPS yields.").nullable().optional(),
|
|
19
|
+
model_10_year: zod.z.number().describe("Cleveland Fed's 10-year inflation expectation model estimate.").nullable().optional(),
|
|
20
|
+
model_30_year: zod.z.number().describe("Cleveland Fed's 30-year inflation expectation model estimate.").nullable().optional(),
|
|
21
|
+
market_10_year: zod.z.number().describe("10-year breakeven inflation rate derived from Treasury and TIPS yields.").nullable().optional(),
|
|
22
|
+
forward_years_5_to_10: zod.z.number().describe("5-Year, 5-Year Forward Inflation Expectation Rate based on forward yields.").nullable().optional()
|
|
23
|
+
}).describe("Represents a single inflation expectations data point.");
|
|
24
|
+
const PolygonIoGetInflationExpectationsOutput = zod.z.object({
|
|
25
|
+
count: zod.z.number().int().describe("Number of results returned in this response.").nullable().optional(),
|
|
26
|
+
status: zod.z.string().describe("Response status (e.g., 'OK').").nullable().optional(),
|
|
27
|
+
results: zod.z.array(PolygonIoGetInflationExpectations_InflationExpectationSchema).describe("List of inflation expectations data points.").nullable().optional(),
|
|
28
|
+
next_url: zod.z.string().describe("URL to fetch the next page of results, if any.").nullable().optional(),
|
|
29
|
+
request_id: zod.z.string().describe("Server-assigned request identifier.").nullable().optional()
|
|
30
|
+
}).describe("Response containing inflation expectations data from the Federal Reserve.");
|
|
31
|
+
const polygonIoGetInflationExpectations = require_action.action("POLYGON_IO_GET_INFLATION_EXPECTATIONS", {
|
|
32
|
+
slug: "polygon_io-get-inflation-expectations",
|
|
33
|
+
name: "Get Inflation Expectations",
|
|
34
|
+
description: "Tool to retrieve inflation expectations data from the Federal Reserve, including market-based rates and Cleveland Fed model estimates. Use when analyzing inflation forecasts across different time horizons (1, 5, 10, and 30 years).",
|
|
35
|
+
input: PolygonIoGetInflationExpectationsInput,
|
|
36
|
+
output: PolygonIoGetInflationExpectationsOutput
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
exports.polygonIoGetInflationExpectations = polygonIoGetInflationExpectations;
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=get-inflation-expectations.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-inflation-expectations.cjs","names":["z","action"],"sources":["../../src/actions/get-inflation-expectations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonIoGetInflationExpectationsInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Filter by specific observation date (YYYY-MM-DD format).\").optional(),\n sort: z.string().describe(\"Comma-separated list of sort columns with .asc or .desc suffix (e.g., 'date.asc').\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-50000). Default: 100.\").optional(),\n date_gt: z.string().describe(\"Filter for dates after this value (YYYY-MM-DD format).\").optional(),\n date_lt: z.string().describe(\"Filter for dates before this value (YYYY-MM-DD format).\").optional(),\n date_gte: z.string().describe(\"Filter for dates on or after this value (YYYY-MM-DD format).\").optional(),\n date_lte: z.string().describe(\"Filter for dates on or before this value (YYYY-MM-DD format).\").optional(),\n date_any_of: z.string().describe(\"Match any of the comma-separated date values (YYYY-MM-DD format).\").optional(),\n}).describe(\"Parameters to filter and paginate inflation expectations data from the Federal Reserve.\");\nconst PolygonIoGetInflationExpectations_InflationExpectationSchema: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Observation date (YYYY-MM-DD format).\"),\n model_1_year: z.number().describe(\"Cleveland Fed's 1-year inflation expectation model estimate.\").nullable().optional(),\n model_5_year: z.number().describe(\"Cleveland Fed's 5-year inflation expectation model estimate.\").nullable().optional(),\n market_5_year: z.number().describe(\"5-year breakeven inflation rate derived from Treasury and TIPS yields.\").nullable().optional(),\n model_10_year: z.number().describe(\"Cleveland Fed's 10-year inflation expectation model estimate.\").nullable().optional(),\n model_30_year: z.number().describe(\"Cleveland Fed's 30-year inflation expectation model estimate.\").nullable().optional(),\n market_10_year: z.number().describe(\"10-year breakeven inflation rate derived from Treasury and TIPS yields.\").nullable().optional(),\n forward_years_5_to_10: z.number().describe(\"5-Year, 5-Year Forward Inflation Expectation Rate based on forward yields.\").nullable().optional(),\n}).describe(\"Represents a single inflation expectations data point.\");\nexport const PolygonIoGetInflationExpectationsOutput: 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 (e.g., 'OK').\").nullable().optional(),\n results: z.array(PolygonIoGetInflationExpectations_InflationExpectationSchema).describe(\"List of inflation expectations data points.\").nullable().optional(),\n next_url: z.string().describe(\"URL to fetch the next page of results, if any.\").nullable().optional(),\n request_id: z.string().describe(\"Server-assigned request identifier.\").nullable().optional(),\n}).describe(\"Response containing inflation expectations data from the Federal Reserve.\");\n\nexport const polygonIoGetInflationExpectations = action(\"POLYGON_IO_GET_INFLATION_EXPECTATIONS\", {\n slug: \"polygon_io-get-inflation-expectations\",\n name: \"Get Inflation Expectations\",\n description: \"Tool to retrieve inflation expectations data from the Federal Reserve, including market-based rates and Cleveland Fed model estimates. Use when analyzing inflation forecasts across different time horizons (1, 5, 10, and 30 years).\",\n input: PolygonIoGetInflationExpectationsInput,\n output: PolygonIoGetInflationExpectationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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O,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,MAAM,4DAA4D,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAEvF,MAAa,oCAAoCC,eAAAA,OAAO,yCAAyC;CAC/F,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-inflation-expectations.d.ts
|
|
4
|
+
declare const PolygonIoGetInflationExpectationsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PolygonIoGetInflationExpectationsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const polygonIoGetInflationExpectations: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { polygonIoGetInflationExpectations };
|
|
9
|
+
//# sourceMappingURL=get-inflation-expectations.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-inflation-expectations.d.cts","names":[],"sources":["../../src/actions/get-inflation-expectations.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAS+C;AAAA,cAWzF,uCAAA,EAAyC,CAAA,CAAE,UAMgC;AAAA,cAE3E,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|