@keystrokehq/polygon 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/get-aggregates.cjs +2 -2
- package/dist/actions/get-aggregates.cjs.map +1 -1
- package/dist/actions/get-aggregates.d.cts +4 -4
- package/dist/actions/get-aggregates.d.mts +4 -4
- package/dist/actions/get-aggregates.mjs +2 -2
- package/dist/actions/get-aggregates.mjs.map +1 -1
- package/dist/actions/get-all-tickers.cjs +2 -2
- package/dist/actions/get-all-tickers.cjs.map +1 -1
- package/dist/actions/get-all-tickers.d.cts +2 -2
- package/dist/actions/get-all-tickers.d.mts +2 -2
- package/dist/actions/get-all-tickers.mjs +2 -2
- package/dist/actions/get-all-tickers.mjs.map +1 -1
- package/dist/actions/get-condition-codes.cjs +2 -2
- package/dist/actions/get-condition-codes.cjs.map +1 -1
- package/dist/actions/get-condition-codes.d.cts +2 -2
- package/dist/actions/get-condition-codes.d.mts +2 -2
- package/dist/actions/get-condition-codes.mjs +2 -2
- package/dist/actions/get-condition-codes.mjs.map +1 -1
- package/dist/actions/get-crypto-aggregates.cjs +2 -2
- package/dist/actions/get-crypto-aggregates.cjs.map +1 -1
- package/dist/actions/get-crypto-aggregates.d.cts +5 -5
- package/dist/actions/get-crypto-aggregates.d.mts +5 -5
- package/dist/actions/get-crypto-aggregates.mjs +2 -2
- package/dist/actions/get-crypto-aggregates.mjs.map +1 -1
- package/dist/actions/get-crypto-all-tickers.cjs +4 -4
- package/dist/actions/get-crypto-all-tickers.cjs.map +1 -1
- package/dist/actions/get-crypto-all-tickers.d.cts +6 -6
- package/dist/actions/get-crypto-all-tickers.d.mts +6 -6
- package/dist/actions/get-crypto-all-tickers.mjs +4 -4
- package/dist/actions/get-crypto-all-tickers.mjs.map +1 -1
- package/dist/actions/get-crypto-ema.cjs +5 -5
- package/dist/actions/get-crypto-ema.cjs.map +1 -1
- package/dist/actions/get-crypto-ema.d.cts +7 -7
- package/dist/actions/get-crypto-ema.d.mts +7 -7
- package/dist/actions/get-crypto-ema.mjs +5 -5
- package/dist/actions/get-crypto-ema.mjs.map +1 -1
- package/dist/actions/get-crypto-grouped-daily.cjs +2 -2
- package/dist/actions/get-crypto-grouped-daily.cjs.map +1 -1
- package/dist/actions/get-crypto-grouped-daily.d.cts +2 -2
- package/dist/actions/get-crypto-grouped-daily.d.mts +2 -2
- package/dist/actions/get-crypto-grouped-daily.mjs +2 -2
- package/dist/actions/get-crypto-grouped-daily.mjs.map +1 -1
- package/dist/actions/get-crypto-last-trade.cjs +2 -2
- package/dist/actions/get-crypto-last-trade.cjs.map +1 -1
- package/dist/actions/get-crypto-last-trade.d.cts +2 -2
- package/dist/actions/get-crypto-last-trade.d.mts +2 -2
- package/dist/actions/get-crypto-last-trade.mjs +2 -2
- package/dist/actions/get-crypto-last-trade.mjs.map +1 -1
- package/dist/actions/get-crypto-macd.cjs +4 -4
- package/dist/actions/get-crypto-macd.cjs.map +1 -1
- package/dist/actions/get-crypto-macd.d.cts +4 -4
- package/dist/actions/get-crypto-macd.d.mts +4 -4
- package/dist/actions/get-crypto-macd.mjs +4 -4
- package/dist/actions/get-crypto-macd.mjs.map +1 -1
- package/dist/actions/get-crypto-open-close.cjs +1 -1
- package/dist/actions/get-crypto-open-close.cjs.map +1 -1
- package/dist/actions/get-crypto-open-close.d.cts +1 -1
- package/dist/actions/get-crypto-open-close.d.mts +1 -1
- package/dist/actions/get-crypto-open-close.mjs +1 -1
- package/dist/actions/get-crypto-open-close.mjs.map +1 -1
- package/dist/actions/get-crypto-prev-close.cjs +2 -2
- package/dist/actions/get-crypto-prev-close.cjs.map +1 -1
- package/dist/actions/get-crypto-prev-close.d.cts +2 -2
- package/dist/actions/get-crypto-prev-close.d.mts +2 -2
- package/dist/actions/get-crypto-prev-close.mjs +2 -2
- package/dist/actions/get-crypto-prev-close.mjs.map +1 -1
- package/dist/actions/get-crypto-rsi.cjs +4 -4
- package/dist/actions/get-crypto-rsi.cjs.map +1 -1
- package/dist/actions/get-crypto-rsi.d.cts +6 -6
- package/dist/actions/get-crypto-rsi.d.mts +6 -6
- package/dist/actions/get-crypto-rsi.mjs +4 -4
- package/dist/actions/get-crypto-rsi.mjs.map +1 -1
- package/dist/actions/get-crypto-sma.cjs +4 -4
- package/dist/actions/get-crypto-sma.cjs.map +1 -1
- package/dist/actions/get-crypto-sma.d.cts +6 -6
- package/dist/actions/get-crypto-sma.d.mts +6 -6
- package/dist/actions/get-crypto-sma.mjs +4 -4
- package/dist/actions/get-crypto-sma.mjs.map +1 -1
- package/dist/actions/get-crypto-ticker-book.cjs +4 -4
- package/dist/actions/get-crypto-ticker-book.cjs.map +1 -1
- package/dist/actions/get-crypto-ticker-book.d.cts +6 -6
- package/dist/actions/get-crypto-ticker-book.d.mts +6 -6
- package/dist/actions/get-crypto-ticker-book.mjs +4 -4
- package/dist/actions/get-crypto-ticker-book.mjs.map +1 -1
- package/dist/actions/get-crypto-trades.cjs +2 -2
- package/dist/actions/get-crypto-trades.cjs.map +1 -1
- package/dist/actions/get-crypto-trades.d.cts +2 -2
- package/dist/actions/get-crypto-trades.d.mts +2 -2
- package/dist/actions/get-crypto-trades.mjs +2 -2
- package/dist/actions/get-crypto-trades.mjs.map +1 -1
- package/dist/actions/get-dividends.cjs +2 -2
- package/dist/actions/get-dividends.cjs.map +1 -1
- package/dist/actions/get-dividends.d.cts +2 -2
- package/dist/actions/get-dividends.d.mts +2 -2
- package/dist/actions/get-dividends.mjs +2 -2
- package/dist/actions/get-dividends.mjs.map +1 -1
- package/dist/actions/get-economy-inflation.cjs +2 -2
- package/dist/actions/get-economy-inflation.cjs.map +1 -1
- package/dist/actions/get-economy-inflation.d.cts +2 -2
- package/dist/actions/get-economy-inflation.d.mts +2 -2
- package/dist/actions/get-economy-inflation.mjs +2 -2
- package/dist/actions/get-economy-inflation.mjs.map +1 -1
- package/dist/actions/get-ema.cjs +5 -5
- package/dist/actions/get-ema.cjs.map +1 -1
- package/dist/actions/get-ema.d.cts +5 -5
- package/dist/actions/get-ema.d.mts +5 -5
- package/dist/actions/get-ema.mjs +5 -5
- package/dist/actions/get-ema.mjs.map +1 -1
- package/dist/actions/get-filing-file.cjs +1 -1
- package/dist/actions/get-filing-file.cjs.map +1 -1
- package/dist/actions/get-filing-file.d.cts +1 -1
- package/dist/actions/get-filing-file.d.mts +1 -1
- package/dist/actions/get-filing-file.mjs +1 -1
- package/dist/actions/get-filing-file.mjs.map +1 -1
- package/dist/actions/get-filing.cjs +3 -3
- package/dist/actions/get-filing.cjs.map +1 -1
- package/dist/actions/get-filing.d.cts +3 -3
- package/dist/actions/get-filing.d.mts +3 -3
- package/dist/actions/get-filing.mjs +3 -3
- package/dist/actions/get-filing.mjs.map +1 -1
- package/dist/actions/get-forex-aggregates.cjs +2 -2
- package/dist/actions/get-forex-aggregates.cjs.map +1 -1
- package/dist/actions/get-forex-aggregates.d.cts +5 -5
- package/dist/actions/get-forex-aggregates.d.mts +5 -5
- package/dist/actions/get-forex-aggregates.mjs +2 -2
- package/dist/actions/get-forex-aggregates.mjs.map +1 -1
- package/dist/actions/get-forex-ema.cjs +5 -5
- package/dist/actions/get-forex-ema.cjs.map +1 -1
- package/dist/actions/get-forex-ema.d.cts +7 -7
- package/dist/actions/get-forex-ema.d.mts +7 -7
- package/dist/actions/get-forex-ema.mjs +5 -5
- package/dist/actions/get-forex-ema.mjs.map +1 -1
- package/dist/actions/get-forex-grouped-daily.cjs +2 -2
- package/dist/actions/get-forex-grouped-daily.cjs.map +1 -1
- package/dist/actions/get-forex-grouped-daily.d.cts +2 -2
- package/dist/actions/get-forex-grouped-daily.d.mts +2 -2
- package/dist/actions/get-forex-grouped-daily.mjs +2 -2
- package/dist/actions/get-forex-grouped-daily.mjs.map +1 -1
- package/dist/actions/get-forex-historical-quotes.cjs +2 -2
- package/dist/actions/get-forex-historical-quotes.cjs.map +1 -1
- package/dist/actions/get-forex-historical-quotes.d.cts +2 -2
- package/dist/actions/get-forex-historical-quotes.d.mts +2 -2
- package/dist/actions/get-forex-historical-quotes.mjs +2 -2
- package/dist/actions/get-forex-historical-quotes.mjs.map +1 -1
- package/dist/actions/get-forex-locales.cjs +2 -2
- package/dist/actions/get-forex-locales.cjs.map +1 -1
- package/dist/actions/get-forex-locales.d.cts +2 -2
- package/dist/actions/get-forex-locales.d.mts +2 -2
- package/dist/actions/get-forex-locales.mjs +2 -2
- package/dist/actions/get-forex-locales.mjs.map +1 -1
- package/dist/actions/get-forex-macd.cjs +4 -4
- package/dist/actions/get-forex-macd.cjs.map +1 -1
- package/dist/actions/get-forex-macd.d.cts +4 -4
- package/dist/actions/get-forex-macd.d.mts +4 -4
- package/dist/actions/get-forex-macd.mjs +4 -4
- package/dist/actions/get-forex-macd.mjs.map +1 -1
- package/dist/actions/get-forex-prev-close.cjs +2 -2
- package/dist/actions/get-forex-prev-close.cjs.map +1 -1
- package/dist/actions/get-forex-prev-close.d.cts +2 -2
- package/dist/actions/get-forex-prev-close.d.mts +2 -2
- package/dist/actions/get-forex-prev-close.mjs +2 -2
- package/dist/actions/get-forex-prev-close.mjs.map +1 -1
- package/dist/actions/get-forex-real-time-currency-conversion.cjs +2 -2
- package/dist/actions/get-forex-real-time-currency-conversion.cjs.map +1 -1
- package/dist/actions/get-forex-real-time-currency-conversion.d.cts +2 -2
- package/dist/actions/get-forex-real-time-currency-conversion.d.mts +2 -2
- package/dist/actions/get-forex-real-time-currency-conversion.mjs +2 -2
- package/dist/actions/get-forex-real-time-currency-conversion.mjs.map +1 -1
- package/dist/actions/get-forex-rsi.cjs +4 -4
- package/dist/actions/get-forex-rsi.cjs.map +1 -1
- package/dist/actions/get-forex-rsi.d.cts +6 -6
- package/dist/actions/get-forex-rsi.d.mts +6 -6
- package/dist/actions/get-forex-rsi.mjs +4 -4
- package/dist/actions/get-forex-rsi.mjs.map +1 -1
- package/dist/actions/get-forex-sma.cjs +5 -5
- package/dist/actions/get-forex-sma.cjs.map +1 -1
- package/dist/actions/get-forex-sma.d.cts +7 -7
- package/dist/actions/get-forex-sma.d.mts +7 -7
- package/dist/actions/get-forex-sma.mjs +5 -5
- package/dist/actions/get-forex-sma.mjs.map +1 -1
- package/dist/actions/get-forex-snapshot-losers.cjs +4 -4
- package/dist/actions/get-forex-snapshot-losers.cjs.map +1 -1
- package/dist/actions/get-forex-snapshot-losers.d.cts +6 -6
- package/dist/actions/get-forex-snapshot-losers.d.mts +6 -6
- package/dist/actions/get-forex-snapshot-losers.mjs +4 -4
- package/dist/actions/get-forex-snapshot-losers.mjs.map +1 -1
- package/dist/actions/get-futures-aggregates.cjs +2 -2
- package/dist/actions/get-futures-aggregates.cjs.map +1 -1
- package/dist/actions/get-futures-aggregates.d.cts +2 -2
- package/dist/actions/get-futures-aggregates.d.mts +2 -2
- package/dist/actions/get-futures-aggregates.mjs +2 -2
- package/dist/actions/get-futures-aggregates.mjs.map +1 -1
- package/dist/actions/get-futures-product-schedules.cjs +3 -3
- package/dist/actions/get-futures-product-schedules.cjs.map +1 -1
- package/dist/actions/get-futures-product-schedules.d.cts +3 -3
- package/dist/actions/get-futures-product-schedules.d.mts +3 -3
- package/dist/actions/get-futures-product-schedules.mjs +3 -3
- package/dist/actions/get-futures-product-schedules.mjs.map +1 -1
- package/dist/actions/get-futures-products.cjs +2 -2
- package/dist/actions/get-futures-products.cjs.map +1 -1
- package/dist/actions/get-futures-products.d.cts +2 -2
- package/dist/actions/get-futures-products.d.mts +2 -2
- package/dist/actions/get-futures-products.mjs +2 -2
- package/dist/actions/get-futures-products.mjs.map +1 -1
- package/dist/actions/get-futures-quotes.cjs +2 -2
- package/dist/actions/get-futures-quotes.cjs.map +1 -1
- package/dist/actions/get-futures-quotes.d.cts +2 -2
- package/dist/actions/get-futures-quotes.d.mts +2 -2
- package/dist/actions/get-futures-quotes.mjs +2 -2
- package/dist/actions/get-futures-quotes.mjs.map +1 -1
- package/dist/actions/get-futures-schedules.cjs +3 -3
- package/dist/actions/get-futures-schedules.cjs.map +1 -1
- package/dist/actions/get-futures-schedules.d.cts +3 -3
- package/dist/actions/get-futures-schedules.d.mts +3 -3
- package/dist/actions/get-futures-schedules.mjs +3 -3
- package/dist/actions/get-futures-schedules.mjs.map +1 -1
- package/dist/actions/get-futures-trades.cjs +2 -2
- package/dist/actions/get-futures-trades.cjs.map +1 -1
- package/dist/actions/get-futures-trades.d.cts +2 -2
- package/dist/actions/get-futures-trades.d.mts +2 -2
- package/dist/actions/get-futures-trades.mjs +2 -2
- package/dist/actions/get-futures-trades.mjs.map +1 -1
- package/dist/actions/get-historic-forex-ticks.cjs +2 -2
- package/dist/actions/get-historic-forex-ticks.cjs.map +1 -1
- package/dist/actions/get-historic-forex-ticks.d.cts +2 -2
- package/dist/actions/get-historic-forex-ticks.d.mts +2 -2
- package/dist/actions/get-historic-forex-ticks.mjs +2 -2
- package/dist/actions/get-historic-forex-ticks.mjs.map +1 -1
- package/dist/actions/get-inflation-expectations.cjs +2 -2
- package/dist/actions/get-inflation-expectations.cjs.map +1 -1
- package/dist/actions/get-inflation-expectations.d.cts +2 -2
- package/dist/actions/get-inflation-expectations.d.mts +2 -2
- package/dist/actions/get-inflation-expectations.mjs +2 -2
- package/dist/actions/get-inflation-expectations.mjs.map +1 -1
- package/dist/actions/get-ipo-data.cjs +2 -2
- package/dist/actions/get-ipo-data.cjs.map +1 -1
- package/dist/actions/get-ipo-data.d.cts +2 -2
- package/dist/actions/get-ipo-data.d.mts +2 -2
- package/dist/actions/get-ipo-data.mjs +2 -2
- package/dist/actions/get-ipo-data.mjs.map +1 -1
- package/dist/actions/get-macd.cjs +4 -4
- package/dist/actions/get-macd.cjs.map +1 -1
- package/dist/actions/get-macd.d.cts +4 -4
- package/dist/actions/get-macd.d.mts +4 -4
- package/dist/actions/get-macd.mjs +4 -4
- package/dist/actions/get-macd.mjs.map +1 -1
- package/dist/actions/get-market-status.cjs +4 -4
- package/dist/actions/get-market-status.cjs.map +1 -1
- package/dist/actions/get-market-status.d.cts +4 -4
- package/dist/actions/get-market-status.d.mts +4 -4
- package/dist/actions/get-market-status.mjs +4 -4
- package/dist/actions/get-market-status.mjs.map +1 -1
- package/dist/actions/get-meta-conditions-by-ticktype.cjs +1 -1
- package/dist/actions/get-meta-conditions-by-ticktype.cjs.map +1 -1
- package/dist/actions/get-meta-conditions-by-ticktype.d.cts +2 -2
- package/dist/actions/get-meta-conditions-by-ticktype.d.mts +2 -2
- package/dist/actions/get-meta-conditions-by-ticktype.mjs +1 -1
- package/dist/actions/get-meta-conditions-by-ticktype.mjs.map +1 -1
- package/dist/actions/get-news.cjs +3 -3
- package/dist/actions/get-news.cjs.map +1 -1
- package/dist/actions/get-news.d.cts +3 -3
- package/dist/actions/get-news.d.mts +3 -3
- package/dist/actions/get-news.mjs +3 -3
- package/dist/actions/get-news.mjs.map +1 -1
- package/dist/actions/get-open-close.cjs +1 -1
- package/dist/actions/get-open-close.cjs.map +1 -1
- package/dist/actions/get-open-close.d.cts +1 -1
- package/dist/actions/get-open-close.d.mts +1 -1
- package/dist/actions/get-open-close.mjs +1 -1
- package/dist/actions/get-open-close.mjs.map +1 -1
- package/dist/actions/get-option-chain-snapshot.cjs +7 -7
- package/dist/actions/get-option-chain-snapshot.cjs.map +1 -1
- package/dist/actions/get-option-chain-snapshot.d.cts +7 -7
- package/dist/actions/get-option-chain-snapshot.d.mts +7 -7
- package/dist/actions/get-option-chain-snapshot.mjs +7 -7
- package/dist/actions/get-option-chain-snapshot.mjs.map +1 -1
- package/dist/actions/get-option-snapshot.cjs +8 -8
- package/dist/actions/get-option-snapshot.cjs.map +1 -1
- package/dist/actions/get-option-snapshot.d.cts +8 -8
- package/dist/actions/get-option-snapshot.d.mts +8 -8
- package/dist/actions/get-option-snapshot.mjs +8 -8
- package/dist/actions/get-option-snapshot.mjs.map +1 -1
- package/dist/actions/get-options-contract-overview.cjs +3 -3
- package/dist/actions/get-options-contract-overview.cjs.map +1 -1
- package/dist/actions/get-options-contract-overview.d.cts +3 -3
- package/dist/actions/get-options-contract-overview.d.mts +3 -3
- package/dist/actions/get-options-contract-overview.mjs +3 -3
- package/dist/actions/get-options-contract-overview.mjs.map +1 -1
- package/dist/actions/get-options-custom-bars.cjs +2 -2
- package/dist/actions/get-options-custom-bars.cjs.map +1 -1
- package/dist/actions/get-options-custom-bars.d.cts +5 -5
- package/dist/actions/get-options-custom-bars.d.mts +5 -5
- package/dist/actions/get-options-custom-bars.mjs +2 -2
- package/dist/actions/get-options-custom-bars.mjs.map +1 -1
- package/dist/actions/get-options-ema.cjs +5 -5
- package/dist/actions/get-options-ema.cjs.map +1 -1
- package/dist/actions/get-options-ema.d.cts +5 -5
- package/dist/actions/get-options-ema.d.mts +5 -5
- package/dist/actions/get-options-ema.mjs +5 -5
- package/dist/actions/get-options-ema.mjs.map +1 -1
- package/dist/actions/get-options-macd.cjs +4 -4
- package/dist/actions/get-options-macd.cjs.map +1 -1
- package/dist/actions/get-options-macd.d.cts +4 -4
- package/dist/actions/get-options-macd.d.mts +4 -4
- package/dist/actions/get-options-macd.mjs +4 -4
- package/dist/actions/get-options-macd.mjs.map +1 -1
- package/dist/actions/get-options-rsi.cjs +4 -4
- package/dist/actions/get-options-rsi.cjs.map +1 -1
- package/dist/actions/get-options-rsi.d.cts +6 -6
- package/dist/actions/get-options-rsi.d.mts +6 -6
- package/dist/actions/get-options-rsi.mjs +4 -4
- package/dist/actions/get-options-rsi.mjs.map +1 -1
- package/dist/actions/get-options-sma.cjs +5 -5
- package/dist/actions/get-options-sma.cjs.map +1 -1
- package/dist/actions/get-options-sma.d.cts +7 -7
- package/dist/actions/get-options-sma.d.mts +7 -7
- package/dist/actions/get-options-sma.mjs +5 -5
- package/dist/actions/get-options-sma.mjs.map +1 -1
- package/dist/actions/get-previous-close.cjs +2 -2
- package/dist/actions/get-previous-close.cjs.map +1 -1
- package/dist/actions/get-previous-close.d.cts +2 -2
- package/dist/actions/get-previous-close.d.mts +2 -2
- package/dist/actions/get-previous-close.mjs +2 -2
- package/dist/actions/get-previous-close.mjs.map +1 -1
- package/dist/actions/get-reference-exchanges.cjs +2 -2
- package/dist/actions/get-reference-exchanges.cjs.map +1 -1
- package/dist/actions/get-reference-exchanges.d.cts +2 -2
- package/dist/actions/get-reference-exchanges.d.mts +2 -2
- package/dist/actions/get-reference-exchanges.mjs +2 -2
- package/dist/actions/get-reference-exchanges.mjs.map +1 -1
- package/dist/actions/get-reference-markets.cjs +2 -2
- package/dist/actions/get-reference-markets.cjs.map +1 -1
- package/dist/actions/get-reference-markets.d.cts +2 -2
- package/dist/actions/get-reference-markets.d.mts +2 -2
- package/dist/actions/get-reference-markets.mjs +2 -2
- package/dist/actions/get-reference-markets.mjs.map +1 -1
- package/dist/actions/get-reference-types.cjs +2 -2
- package/dist/actions/get-reference-types.cjs.map +1 -1
- package/dist/actions/get-reference-types.d.cts +2 -2
- package/dist/actions/get-reference-types.d.mts +2 -2
- package/dist/actions/get-reference-types.mjs +2 -2
- package/dist/actions/get-reference-types.mjs.map +1 -1
- package/dist/actions/get-related-companies.cjs +2 -2
- package/dist/actions/get-related-companies.cjs.map +1 -1
- package/dist/actions/get-related-companies.d.cts +2 -2
- package/dist/actions/get-related-companies.d.mts +2 -2
- package/dist/actions/get-related-companies.mjs +2 -2
- package/dist/actions/get-related-companies.mjs.map +1 -1
- package/dist/actions/get-risk-categories.cjs +2 -2
- package/dist/actions/get-risk-categories.cjs.map +1 -1
- package/dist/actions/get-risk-categories.d.cts +2 -2
- package/dist/actions/get-risk-categories.d.mts +2 -2
- package/dist/actions/get-risk-categories.mjs +2 -2
- package/dist/actions/get-risk-categories.mjs.map +1 -1
- package/dist/actions/get-rsi.cjs +4 -4
- package/dist/actions/get-rsi.cjs.map +1 -1
- package/dist/actions/get-rsi.d.cts +4 -4
- package/dist/actions/get-rsi.d.mts +4 -4
- package/dist/actions/get-rsi.mjs +4 -4
- package/dist/actions/get-rsi.mjs.map +1 -1
- package/dist/actions/get-short-interest.cjs +2 -2
- package/dist/actions/get-short-interest.cjs.map +1 -1
- package/dist/actions/get-short-interest.d.cts +2 -2
- package/dist/actions/get-short-interest.d.mts +2 -2
- package/dist/actions/get-short-interest.mjs +2 -2
- package/dist/actions/get-short-interest.mjs.map +1 -1
- package/dist/actions/get-short-volume.cjs +2 -2
- package/dist/actions/get-short-volume.cjs.map +1 -1
- package/dist/actions/get-short-volume.d.cts +2 -2
- package/dist/actions/get-short-volume.d.mts +2 -2
- package/dist/actions/get-short-volume.mjs +2 -2
- package/dist/actions/get-short-volume.mjs.map +1 -1
- package/dist/actions/get-sma.cjs +4 -4
- package/dist/actions/get-sma.cjs.map +1 -1
- package/dist/actions/get-sma.d.cts +4 -4
- package/dist/actions/get-sma.d.mts +4 -4
- package/dist/actions/get-sma.mjs +4 -4
- package/dist/actions/get-sma.mjs.map +1 -1
- package/dist/actions/get-snapshot-all-tickers.cjs +6 -6
- package/dist/actions/get-snapshot-all-tickers.cjs.map +1 -1
- package/dist/actions/get-snapshot-all-tickers.d.cts +7 -7
- package/dist/actions/get-snapshot-all-tickers.d.mts +7 -7
- package/dist/actions/get-snapshot-all-tickers.mjs +6 -6
- package/dist/actions/get-snapshot-all-tickers.mjs.map +1 -1
- package/dist/actions/get-snapshot-losers.cjs +4 -4
- package/dist/actions/get-snapshot-losers.cjs.map +1 -1
- package/dist/actions/get-snapshot-losers.d.cts +6 -6
- package/dist/actions/get-snapshot-losers.d.mts +6 -6
- package/dist/actions/get-snapshot-losers.mjs +4 -4
- package/dist/actions/get-snapshot-losers.mjs.map +1 -1
- package/dist/actions/get-snapshot-single-ticker.cjs +7 -7
- package/dist/actions/get-snapshot-single-ticker.cjs.map +1 -1
- package/dist/actions/get-snapshot-single-ticker.d.cts +7 -7
- package/dist/actions/get-snapshot-single-ticker.d.mts +7 -7
- package/dist/actions/get-snapshot-single-ticker.mjs +7 -7
- package/dist/actions/get-snapshot-single-ticker.mjs.map +1 -1
- package/dist/actions/get-splits.cjs +2 -2
- package/dist/actions/get-splits.cjs.map +1 -1
- package/dist/actions/get-splits.d.cts +2 -2
- package/dist/actions/get-splits.d.mts +2 -2
- package/dist/actions/get-splits.mjs +2 -2
- package/dist/actions/get-splits.mjs.map +1 -1
- package/dist/actions/get-stock-financials.cjs +2 -2
- package/dist/actions/get-stock-financials.cjs.map +1 -1
- package/dist/actions/get-stock-financials.d.cts +2 -2
- package/dist/actions/get-stock-financials.d.mts +2 -2
- package/dist/actions/get-stock-financials.mjs +2 -2
- package/dist/actions/get-stock-financials.mjs.map +1 -1
- package/dist/actions/get-stock-float.cjs +2 -2
- package/dist/actions/get-stock-float.cjs.map +1 -1
- package/dist/actions/get-stock-float.d.cts +2 -2
- package/dist/actions/get-stock-float.d.mts +2 -2
- package/dist/actions/get-stock-float.mjs +2 -2
- package/dist/actions/get-stock-float.mjs.map +1 -1
- package/dist/actions/get-stock-splits-by-ticker.cjs +2 -2
- package/dist/actions/get-stock-splits-by-ticker.cjs.map +1 -1
- package/dist/actions/get-stock-splits-by-ticker.d.cts +2 -2
- package/dist/actions/get-stock-splits-by-ticker.d.mts +2 -2
- package/dist/actions/get-stock-splits-by-ticker.mjs +2 -2
- package/dist/actions/get-stock-splits-by-ticker.mjs.map +1 -1
- package/dist/actions/get-stocks-balance-sheets.cjs +7 -7
- package/dist/actions/get-stocks-balance-sheets.cjs.map +1 -1
- package/dist/actions/get-stocks-balance-sheets.d.cts +26 -26
- package/dist/actions/get-stocks-balance-sheets.d.mts +26 -26
- package/dist/actions/get-stocks-balance-sheets.mjs +7 -7
- package/dist/actions/get-stocks-balance-sheets.mjs.map +1 -1
- package/dist/actions/get-stocks-cash-flow-statements.cjs +5 -5
- package/dist/actions/get-stocks-cash-flow-statements.cjs.map +1 -1
- package/dist/actions/get-stocks-cash-flow-statements.d.cts +15 -15
- package/dist/actions/get-stocks-cash-flow-statements.d.mts +15 -15
- package/dist/actions/get-stocks-cash-flow-statements.mjs +5 -5
- package/dist/actions/get-stocks-cash-flow-statements.mjs.map +1 -1
- package/dist/actions/get-stocks-custom-bars.cjs +2 -2
- package/dist/actions/get-stocks-custom-bars.cjs.map +1 -1
- package/dist/actions/get-stocks-custom-bars.d.cts +4 -4
- package/dist/actions/get-stocks-custom-bars.d.mts +4 -4
- package/dist/actions/get-stocks-custom-bars.mjs +2 -2
- package/dist/actions/get-stocks-custom-bars.mjs.map +1 -1
- package/dist/actions/get-stocks-daily-market-summary.cjs +2 -2
- package/dist/actions/get-stocks-daily-market-summary.cjs.map +1 -1
- package/dist/actions/get-stocks-daily-market-summary.d.cts +2 -2
- package/dist/actions/get-stocks-daily-market-summary.d.mts +2 -2
- package/dist/actions/get-stocks-daily-market-summary.mjs +2 -2
- package/dist/actions/get-stocks-daily-market-summary.mjs.map +1 -1
- package/dist/actions/get-technical-indicator-sma.cjs +2 -2
- package/dist/actions/get-technical-indicator-sma.cjs.map +1 -1
- package/dist/actions/get-technical-indicator-sma.d.cts +2 -2
- package/dist/actions/get-technical-indicator-sma.d.mts +2 -2
- package/dist/actions/get-technical-indicator-sma.mjs +2 -2
- package/dist/actions/get-technical-indicator-sma.mjs.map +1 -1
- package/dist/actions/get-ticker-company-details.cjs +1 -1
- package/dist/actions/get-ticker-company-details.cjs.map +1 -1
- package/dist/actions/get-ticker-company-details.d.cts +1 -1
- package/dist/actions/get-ticker-company-details.d.mts +1 -1
- package/dist/actions/get-ticker-company-details.mjs +1 -1
- package/dist/actions/get-ticker-company-details.mjs.map +1 -1
- package/dist/actions/get-ticker-details-vx.cjs +4 -4
- package/dist/actions/get-ticker-details-vx.cjs.map +1 -1
- package/dist/actions/get-ticker-details-vx.d.cts +4 -4
- package/dist/actions/get-ticker-details-vx.d.mts +4 -4
- package/dist/actions/get-ticker-details-vx.mjs +4 -4
- package/dist/actions/get-ticker-details-vx.mjs.map +1 -1
- package/dist/actions/get-ticker-details.cjs +4 -4
- package/dist/actions/get-ticker-details.cjs.map +1 -1
- package/dist/actions/get-ticker-details.d.cts +4 -4
- package/dist/actions/get-ticker-details.d.mts +4 -4
- package/dist/actions/get-ticker-details.mjs +4 -4
- package/dist/actions/get-ticker-details.mjs.map +1 -1
- package/dist/actions/get-ticker-events.cjs +4 -4
- package/dist/actions/get-ticker-events.cjs.map +1 -1
- package/dist/actions/get-ticker-events.d.cts +4 -4
- package/dist/actions/get-ticker-events.d.mts +4 -4
- package/dist/actions/get-ticker-events.mjs +4 -4
- package/dist/actions/get-ticker-events.mjs.map +1 -1
- package/dist/actions/get-ticker-types.cjs +2 -2
- package/dist/actions/get-ticker-types.cjs.map +1 -1
- package/dist/actions/get-ticker-types.d.cts +2 -2
- package/dist/actions/get-ticker-types.d.mts +2 -2
- package/dist/actions/get-ticker-types.mjs +2 -2
- package/dist/actions/get-ticker-types.mjs.map +1 -1
- package/dist/actions/get-treasury-yields.cjs +2 -2
- package/dist/actions/get-treasury-yields.cjs.map +1 -1
- package/dist/actions/get-treasury-yields.d.cts +2 -2
- package/dist/actions/get-treasury-yields.d.mts +2 -2
- package/dist/actions/get-treasury-yields.mjs +2 -2
- package/dist/actions/get-treasury-yields.mjs.map +1 -1
- package/dist/actions/get-v1-meta-crypto-exchanges.cjs +2 -2
- package/dist/actions/get-v1-meta-crypto-exchanges.cjs.map +1 -1
- package/dist/actions/get-v1-meta-crypto-exchanges.d.cts +2 -2
- package/dist/actions/get-v1-meta-crypto-exchanges.d.mts +2 -2
- package/dist/actions/get-v1-meta-crypto-exchanges.mjs +2 -2
- package/dist/actions/get-v1-meta-crypto-exchanges.mjs.map +1 -1
- package/dist/actions/get10-k-sections.cjs +2 -2
- package/dist/actions/get10-k-sections.cjs.map +1 -1
- package/dist/actions/get10-k-sections.d.cts +2 -2
- package/dist/actions/get10-k-sections.d.mts +2 -2
- package/dist/actions/get10-k-sections.mjs +2 -2
- package/dist/actions/get10-k-sections.mjs.map +1 -1
- package/dist/actions/last-quote-for-a-symbol.cjs +2 -2
- package/dist/actions/last-quote-for-a-symbol.cjs.map +1 -1
- package/dist/actions/last-quote-for-a-symbol.d.cts +2 -2
- package/dist/actions/last-quote-for-a-symbol.d.mts +2 -2
- package/dist/actions/last-quote-for-a-symbol.mjs +2 -2
- package/dist/actions/last-quote-for-a-symbol.mjs.map +1 -1
- package/dist/actions/last-trade-for-a-currency-pair.cjs +2 -2
- package/dist/actions/last-trade-for-a-currency-pair.cjs.map +1 -1
- package/dist/actions/last-trade-for-a-currency-pair.d.cts +2 -2
- package/dist/actions/last-trade-for-a-currency-pair.d.mts +2 -2
- package/dist/actions/last-trade-for-a-currency-pair.mjs +2 -2
- package/dist/actions/last-trade-for-a-currency-pair.mjs.map +1 -1
- package/dist/actions/list-filing-files.cjs +2 -2
- package/dist/actions/list-filing-files.cjs.map +1 -1
- package/dist/actions/list-filing-files.d.cts +2 -2
- package/dist/actions/list-filing-files.d.mts +2 -2
- package/dist/actions/list-filing-files.mjs +2 -2
- package/dist/actions/list-filing-files.mjs.map +1 -1
- package/dist/actions/list-options-contracts.cjs +3 -3
- package/dist/actions/list-options-contracts.cjs.map +1 -1
- package/dist/actions/list-options-contracts.d.cts +3 -3
- package/dist/actions/list-options-contracts.d.mts +3 -3
- package/dist/actions/list-options-contracts.mjs +3 -3
- package/dist/actions/list-options-contracts.mjs.map +1 -1
- package/dist/actions/list-sec-filings.cjs +4 -4
- package/dist/actions/list-sec-filings.cjs.map +1 -1
- package/dist/actions/list-sec-filings.d.cts +4 -4
- package/dist/actions/list-sec-filings.d.mts +4 -4
- package/dist/actions/list-sec-filings.mjs +4 -4
- package/dist/actions/list-sec-filings.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ const PolygonGetOptionsEmaInput = z.object({
|
|
|
24
24
|
const PolygonGetOptionsEma_EMAValueSchema = z.object({
|
|
25
25
|
value: z.number().describe("The exponential moving average value for this period.").nullable(),
|
|
26
26
|
timestamp: z.number().int().describe("The Unix millisecond timestamp from the last aggregate used in this calculation.").nullable()
|
|
27
|
-
});
|
|
27
|
+
}).passthrough();
|
|
28
28
|
const PolygonGetOptionsEma_AggregateBarSchema = z.object({
|
|
29
29
|
c: z.number().describe("The close price for the aggregate window.").nullable().optional(),
|
|
30
30
|
h: z.number().describe("The high price for the aggregate window.").nullable().optional(),
|
|
@@ -34,15 +34,15 @@ const PolygonGetOptionsEma_AggregateBarSchema = z.object({
|
|
|
34
34
|
t: z.number().int().describe("The Unix millisecond timestamp for the end of the aggregate window.").nullable().optional(),
|
|
35
35
|
v: z.number().describe("The trading volume for the aggregate window.").nullable().optional(),
|
|
36
36
|
vw: z.number().describe("The volume weighted average price for the aggregate window.").nullable().optional()
|
|
37
|
-
});
|
|
37
|
+
}).passthrough();
|
|
38
38
|
const PolygonGetOptionsEma_UnderlyingDataSchema = z.object({
|
|
39
39
|
url: z.string().describe("The URL which can be used to request the underlying aggregates used in this calculation.").nullable().optional(),
|
|
40
40
|
aggregates: z.array(PolygonGetOptionsEma_AggregateBarSchema).describe("Array of aggregate objects containing price and volume data.").nullable().optional()
|
|
41
|
-
});
|
|
41
|
+
}).passthrough();
|
|
42
42
|
const PolygonGetOptionsEma_EMAResultsSchema = z.object({
|
|
43
43
|
values: z.array(PolygonGetOptionsEma_EMAValueSchema).describe("Array of EMA indicator calculation results.").nullable().optional(),
|
|
44
44
|
underlying: PolygonGetOptionsEma_UnderlyingDataSchema.nullable().optional()
|
|
45
|
-
});
|
|
45
|
+
}).passthrough();
|
|
46
46
|
const polygonGetOptionsEma = action("POLYGON_GET_OPTIONS_EMA", {
|
|
47
47
|
slug: "polygon-get-options-ema",
|
|
48
48
|
name: "Get Options EMA",
|
|
@@ -53,7 +53,7 @@ const polygonGetOptionsEma = action("POLYGON_GET_OPTIONS_EMA", {
|
|
|
53
53
|
results: PolygonGetOptionsEma_EMAResultsSchema.nullable().optional(),
|
|
54
54
|
next_url: z.string().describe("If present, this value can be used to fetch the next page of data.").nullable().optional(),
|
|
55
55
|
request_id: z.string().describe("A request id assigned by the server.").nullable().optional()
|
|
56
|
-
})
|
|
56
|
+
}).passthrough()
|
|
57
57
|
});
|
|
58
58
|
//#endregion
|
|
59
59
|
export { polygonGetOptionsEma };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-options-ema.mjs","names":[],"sources":["../../src/actions/get-options-ema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsEmaInput = z.object({\n limit: z.number().int().default(10).describe(\"Limit the number of results returned. Must be between 1 and 5000. Defaults to 10.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"The order in which to return the results, ordered by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'desc'.\").optional(),\n window: z.number().int().describe(\"The window size used to calculate the exponential moving average (EMA). For example, a window size of 10 with daily aggregates would result in a 10 day moving average. Required parameter.\"),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the EMA are adjusted for splits. Defaults to True.\").optional(),\n timespan: z.string().describe(\"The size of the aggregate time window. Options: minute, hour, day, week, month, quarter, year. Required parameter.\"),\n timestamp: z.string().describe(\"Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.\").optional(),\n series_type: z.enum([\"open\", \"high\", \"low\", \"close\"]).default(\"close\").describe(\"The price in the aggregate which will be used to calculate the exponential moving average. Defaults to 'close'.\").optional(),\n \"timestamp.gt\": z.string().describe(\"Filter for timestamps greater than the specified value.\").optional(),\n \"timestamp.lt\": z.string().describe(\"Filter for timestamps less than the specified value.\").optional(),\n \"timestamp.gte\": z.string().describe(\"Filter for timestamps greater than or equal to the specified value.\").optional(),\n \"timestamp.lte\": z.string().describe(\"Filter for timestamps less than or equal to the specified value.\").optional(),\n options_ticker: z.string().describe(\"The options ticker symbol in format O:UNDERLYINGYYMMDDCOOOOOOOOO (e.g., 'O:AAPL250117C00250000'). Must include the 'O:' prefix for options contracts.\"),\n expand_underlying: z.boolean().default(false).describe(\"Whether or not to include the aggregates used to calculate this indicator in the response. Defaults to False.\").optional(),\n}).describe(\"Parameters to retrieve the Exponential Moving Average (EMA) for an options ticker.\");\nconst PolygonGetOptionsEma_EMAValueSchema = z.object({\n value: z.number().describe(\"The exponential moving average value for this period.\").nullable(),\n timestamp: z.number().int().describe(\"The Unix millisecond timestamp from the last aggregate used in this calculation.\").nullable(),\n});\nconst PolygonGetOptionsEma_AggregateBarSchema = 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 PolygonGetOptionsEma_UnderlyingDataSchema = z.object({\n url: z.string().describe(\"The URL which can be used to request the underlying aggregates used in this calculation.\").nullable().optional(),\n aggregates: z.array(PolygonGetOptionsEma_AggregateBarSchema).describe(\"Array of aggregate objects containing price and volume data.\").nullable().optional(),\n});\nconst PolygonGetOptionsEma_EMAResultsSchema = z.object({\n values: z.array(PolygonGetOptionsEma_EMAValueSchema).describe(\"Array of EMA indicator calculation results.\").nullable().optional(),\n underlying: PolygonGetOptionsEma_UnderlyingDataSchema.nullable().optional(),\n});\nexport const PolygonGetOptionsEmaOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\").nullable().optional(),\n results: PolygonGetOptionsEma_EMAResultsSchema.nullable().optional(),\n next_url: z.string().describe(\"If present, this value can be used to fetch the next page of data.\").nullable().optional(),\n request_id: z.string().describe(\"A request id assigned by the server.\").nullable().optional(),\n});\n\nexport const polygonGetOptionsEma = action(\"POLYGON_GET_OPTIONS_EMA\", {\n slug: \"polygon-get-options-ema\",\n name: \"Get Options EMA\",\n description: \"Tool to calculate Exponential Moving Average (EMA) technical indicator for an options ticker. Use when you need trend analysis or moving average calculations for options contracts.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ChG,MAAM,sCAAsC,EAAE,OAAO;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC7F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;AACpI,CAAC;
|
|
1
|
+
{"version":3,"file":"get-options-ema.mjs","names":[],"sources":["../../src/actions/get-options-ema.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsEmaInput = z.object({\n limit: z.number().int().default(10).describe(\"Limit the number of results returned. Must be between 1 and 5000. Defaults to 10.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"The order in which to return the results, ordered by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'desc'.\").optional(),\n window: z.number().int().describe(\"The window size used to calculate the exponential moving average (EMA). For example, a window size of 10 with daily aggregates would result in a 10 day moving average. Required parameter.\"),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the EMA are adjusted for splits. Defaults to True.\").optional(),\n timespan: z.string().describe(\"The size of the aggregate time window. Options: minute, hour, day, week, month, quarter, year. Required parameter.\"),\n timestamp: z.string().describe(\"Query by timestamp. Either a date with the format YYYY-MM-DD or a millisecond timestamp.\").optional(),\n series_type: z.enum([\"open\", \"high\", \"low\", \"close\"]).default(\"close\").describe(\"The price in the aggregate which will be used to calculate the exponential moving average. Defaults to 'close'.\").optional(),\n \"timestamp.gt\": z.string().describe(\"Filter for timestamps greater than the specified value.\").optional(),\n \"timestamp.lt\": z.string().describe(\"Filter for timestamps less than the specified value.\").optional(),\n \"timestamp.gte\": z.string().describe(\"Filter for timestamps greater than or equal to the specified value.\").optional(),\n \"timestamp.lte\": z.string().describe(\"Filter for timestamps less than or equal to the specified value.\").optional(),\n options_ticker: z.string().describe(\"The options ticker symbol in format O:UNDERLYINGYYMMDDCOOOOOOOOO (e.g., 'O:AAPL250117C00250000'). Must include the 'O:' prefix for options contracts.\"),\n expand_underlying: z.boolean().default(false).describe(\"Whether or not to include the aggregates used to calculate this indicator in the response. Defaults to False.\").optional(),\n}).describe(\"Parameters to retrieve the Exponential Moving Average (EMA) for an options ticker.\");\nconst PolygonGetOptionsEma_EMAValueSchema = z.object({\n value: z.number().describe(\"The exponential moving average value for this period.\").nullable(),\n timestamp: z.number().int().describe(\"The Unix millisecond timestamp from the last aggregate used in this calculation.\").nullable(),\n}).passthrough();\nconst PolygonGetOptionsEma_AggregateBarSchema = 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}).passthrough();\nconst PolygonGetOptionsEma_UnderlyingDataSchema = z.object({\n url: z.string().describe(\"The URL which can be used to request the underlying aggregates used in this calculation.\").nullable().optional(),\n aggregates: z.array(PolygonGetOptionsEma_AggregateBarSchema).describe(\"Array of aggregate objects containing price and volume data.\").nullable().optional(),\n}).passthrough();\nconst PolygonGetOptionsEma_EMAResultsSchema = z.object({\n values: z.array(PolygonGetOptionsEma_EMAValueSchema).describe(\"Array of EMA indicator calculation results.\").nullable().optional(),\n underlying: PolygonGetOptionsEma_UnderlyingDataSchema.nullable().optional(),\n}).passthrough();\nexport const PolygonGetOptionsEmaOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\").nullable().optional(),\n results: PolygonGetOptionsEma_EMAResultsSchema.nullable().optional(),\n next_url: z.string().describe(\"If present, this value can be used to fetch the next page of data.\").nullable().optional(),\n request_id: z.string().describe(\"A request id assigned by the server.\").nullable().optional(),\n}).passthrough();\n\nexport const polygonGetOptionsEma = action(\"POLYGON_GET_OPTIONS_EMA\", {\n slug: \"polygon-get-options-ema\",\n name: \"Get Options EMA\",\n description: \"Tool to calculate Exponential Moving Average (EMA) technical indicator for an options ticker. Use when you need trend analysis or moving average calculations for options contracts.\",\n input: PolygonGetOptionsEmaInput,\n output: PolygonGetOptionsEmaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC3I,OAAO,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CACjN,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6LAA6L;CAC/N,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC5J,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CAClJ,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,iHAAiH,CAAC,CAAC,SAAS;CAC5M,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACxG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACrG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACrH,iBAAiB,EAAE,OAAO,CAAC,CAAC,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AY;AACf,MAAM,4CAA4C,EAAE,OAAO;CACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,YAAY,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5J,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwC,EAAE,OAAO;CACrD,QAAQ,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY;AAQf,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,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,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -24,18 +24,18 @@ const PolygonGetOptionsMacd_MACDValueSchema = zod.z.object({
|
|
|
24
24
|
signal: zod.z.number().describe("The signal line value (EMA of the MACD line).").nullable(),
|
|
25
25
|
histogram: zod.z.number().describe("The MACD histogram value (difference between MACD line and signal line, indicating momentum strength and direction).").nullable(),
|
|
26
26
|
timestamp: zod.z.number().int().describe("Unix millisecond timestamp from the last aggregate used in this calculation.").nullable()
|
|
27
|
-
});
|
|
28
|
-
const PolygonGetOptionsMacd_UnderlyingSchema = zod.z.object({ url: zod.z.string().describe("URL to access the aggregate data used for calculations.").nullable() });
|
|
27
|
+
}).passthrough();
|
|
28
|
+
const PolygonGetOptionsMacd_UnderlyingSchema = zod.z.object({ url: zod.z.string().describe("URL to access the aggregate data used for calculations.").nullable() }).passthrough();
|
|
29
29
|
const PolygonGetOptionsMacd_MACDResultsSchema = zod.z.object({
|
|
30
30
|
values: zod.z.array(PolygonGetOptionsMacd_MACDValueSchema).describe("Array of MACD indicator data points.").nullable().optional(),
|
|
31
31
|
underlying: PolygonGetOptionsMacd_UnderlyingSchema.nullable().optional()
|
|
32
|
-
});
|
|
32
|
+
}).passthrough();
|
|
33
33
|
const PolygonGetOptionsMacdOutput = zod.z.object({
|
|
34
34
|
status: zod.z.string().describe("The status of this request's response (e.g., 'OK').").nullable().optional(),
|
|
35
35
|
results: PolygonGetOptionsMacd_MACDResultsSchema.nullable().optional(),
|
|
36
36
|
next_url: zod.z.string().describe("If present, this value can be used to fetch the next page of data.").nullable().optional(),
|
|
37
37
|
request_id: zod.z.string().describe("A request ID assigned by the server for tracking.").nullable().optional()
|
|
38
|
-
});
|
|
38
|
+
}).passthrough();
|
|
39
39
|
const polygonGetOptionsMacd = require_action.action("POLYGON_GET_OPTIONS_MACD", {
|
|
40
40
|
slug: "polygon-get-options-macd",
|
|
41
41
|
name: "Get Options MACD",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-options-macd.cjs","names":["z","action"],"sources":["../../src/actions/get-options-macd.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsMacdInput = z.object({\n limit: z.number().int().default(10).describe(\"Limit the number of results returned. Must be between 1 and 5000. Defaults to 10.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Order of results by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'desc'.\").optional(),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the MACD are adjusted for splits. Defaults to True.\").optional(),\n timespan: z.string().describe(\"The size of the aggregate time window. Options: minute, hour, day, week, month, quarter, year. Required parameter.\"),\n timestamp: z.string().describe(\"Query by timestamp. Either a date with format YYYY-MM-DD or a millisecond timestamp. Required parameter.\"),\n long_window: z.number().int().describe(\"The long window size (number of periods) used to calculate MACD data. Traditional value: 26. Required parameter.\"),\n series_type: z.enum([\"open\", \"high\", \"low\", \"close\"]).default(\"close\").describe(\"The price in the aggregate which will be used to calculate MACD. Options: open, high, low, close. Defaults to 'close'.\").optional(),\n short_window: z.number().int().describe(\"The short window size (number of periods) used to calculate MACD data. Traditional value: 12. Required parameter.\"),\n signal_window: z.number().int().describe(\"The window size (number of periods) used to calculate the MACD signal line. Traditional value: 9. Required parameter.\"),\n options_ticker: z.string().describe(\"The options ticker symbol in format O:UNDERLYINGYYMMDDCOOOOOOOOO (e.g., 'O:AAPL251219C00150000'). Must include the 'O:' prefix for options contracts.\"),\n expand_underlying: z.boolean().default(false).describe(\"Whether to include the aggregates used to calculate this indicator in the response. Defaults to False.\").optional(),\n}).describe(\"Parameters to retrieve the Moving Average Convergence/Divergence (MACD) for an options ticker.\");\nconst PolygonGetOptionsMacd_MACDValueSchema = z.object({\n value: z.number().describe(\"The MACD line value (difference between short EMA and long EMA).\").nullable(),\n signal: z.number().describe(\"The signal line value (EMA of the MACD line).\").nullable(),\n histogram: z.number().describe(\"The MACD histogram value (difference between MACD line and signal line, indicating momentum strength and direction).\").nullable(),\n timestamp: z.number().int().describe(\"Unix millisecond timestamp from the last aggregate used in this calculation.\").nullable(),\n});\nconst PolygonGetOptionsMacd_UnderlyingSchema = z.object({\n url: z.string().describe(\"URL to access the aggregate data used for calculations.\").nullable(),\n});\nconst PolygonGetOptionsMacd_MACDResultsSchema = z.object({\n values: z.array(PolygonGetOptionsMacd_MACDValueSchema).describe(\"Array of MACD indicator data points.\").nullable().optional(),\n underlying: PolygonGetOptionsMacd_UnderlyingSchema.nullable().optional(),\n});\nexport const PolygonGetOptionsMacdOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\").nullable().optional(),\n results: PolygonGetOptionsMacd_MACDResultsSchema.nullable().optional(),\n next_url: z.string().describe(\"If present, this value can be used to fetch the next page of data.\").nullable().optional(),\n request_id: z.string().describe(\"A request ID assigned by the server for tracking.\").nullable().optional(),\n});\n\nexport const polygonGetOptionsMacd = action(\"POLYGON_GET_OPTIONS_MACD\", {\n slug: \"polygon-get-options-macd\",\n name: \"Get Options MACD\",\n description: \"Tool to calculate Moving Average Convergence/Divergence (MACD) technical indicator for an options ticker. Use when you need momentum analysis, trend identification, or trading signal generation for options contracts.\",\n input: PolygonGetOptionsMacdInput,\n output: PolygonGetOptionsMacdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC3I,OAAOA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAChL,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC7J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CAClJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G;CACzI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH;CACzJ,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAO;CAAO,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CACnN,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mHAAmH;CAC3J,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uHAAuH;CAChK,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ;CAC3L,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;AAC5K,CAAC,CAAC,CAAC,SAAS,gGAAgG;AAC5G,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACxG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAChK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;AAChI,CAAC;
|
|
1
|
+
{"version":3,"file":"get-options-macd.cjs","names":["z","action"],"sources":["../../src/actions/get-options-macd.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsMacdInput = z.object({\n limit: z.number().int().default(10).describe(\"Limit the number of results returned. Must be between 1 and 5000. Defaults to 10.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Order of results by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'desc'.\").optional(),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the MACD are adjusted for splits. Defaults to True.\").optional(),\n timespan: z.string().describe(\"The size of the aggregate time window. Options: minute, hour, day, week, month, quarter, year. Required parameter.\"),\n timestamp: z.string().describe(\"Query by timestamp. Either a date with format YYYY-MM-DD or a millisecond timestamp. Required parameter.\"),\n long_window: z.number().int().describe(\"The long window size (number of periods) used to calculate MACD data. Traditional value: 26. Required parameter.\"),\n series_type: z.enum([\"open\", \"high\", \"low\", \"close\"]).default(\"close\").describe(\"The price in the aggregate which will be used to calculate MACD. Options: open, high, low, close. Defaults to 'close'.\").optional(),\n short_window: z.number().int().describe(\"The short window size (number of periods) used to calculate MACD data. Traditional value: 12. Required parameter.\"),\n signal_window: z.number().int().describe(\"The window size (number of periods) used to calculate the MACD signal line. Traditional value: 9. Required parameter.\"),\n options_ticker: z.string().describe(\"The options ticker symbol in format O:UNDERLYINGYYMMDDCOOOOOOOOO (e.g., 'O:AAPL251219C00150000'). Must include the 'O:' prefix for options contracts.\"),\n expand_underlying: z.boolean().default(false).describe(\"Whether to include the aggregates used to calculate this indicator in the response. Defaults to False.\").optional(),\n}).describe(\"Parameters to retrieve the Moving Average Convergence/Divergence (MACD) for an options ticker.\");\nconst PolygonGetOptionsMacd_MACDValueSchema = z.object({\n value: z.number().describe(\"The MACD line value (difference between short EMA and long EMA).\").nullable(),\n signal: z.number().describe(\"The signal line value (EMA of the MACD line).\").nullable(),\n histogram: z.number().describe(\"The MACD histogram value (difference between MACD line and signal line, indicating momentum strength and direction).\").nullable(),\n timestamp: z.number().int().describe(\"Unix millisecond timestamp from the last aggregate used in this calculation.\").nullable(),\n}).passthrough();\nconst PolygonGetOptionsMacd_UnderlyingSchema = z.object({\n url: z.string().describe(\"URL to access the aggregate data used for calculations.\").nullable(),\n}).passthrough();\nconst PolygonGetOptionsMacd_MACDResultsSchema = z.object({\n values: z.array(PolygonGetOptionsMacd_MACDValueSchema).describe(\"Array of MACD indicator data points.\").nullable().optional(),\n underlying: PolygonGetOptionsMacd_UnderlyingSchema.nullable().optional(),\n}).passthrough();\nexport const PolygonGetOptionsMacdOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\").nullable().optional(),\n results: PolygonGetOptionsMacd_MACDResultsSchema.nullable().optional(),\n next_url: z.string().describe(\"If present, this value can be used to fetch the next page of data.\").nullable().optional(),\n request_id: z.string().describe(\"A request ID assigned by the server for tracking.\").nullable().optional(),\n}).passthrough();\n\nexport const polygonGetOptionsMacd = action(\"POLYGON_GET_OPTIONS_MACD\", {\n slug: \"polygon-get-options-macd\",\n name: \"Get Options MACD\",\n description: \"Tool to calculate Moving Average Convergence/Divergence (MACD) technical indicator for an options ticker. Use when you need momentum analysis, trend identification, or trading signal generation for options contracts.\",\n input: PolygonGetOptionsMacdInput,\n output: PolygonGetOptionsMacdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC3I,OAAOA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAChL,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC7J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CAClJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G;CACzI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH;CACzJ,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAO;CAAO,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CACnN,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mHAAmH;CAC3J,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uHAA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S,CAAC,CAAC,SAAS;CACxH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -30,14 +30,14 @@ declare const PolygonGetOptionsMacdOutput: z.ZodObject<{
|
|
|
30
30
|
signal: z.ZodNullable<z.ZodNumber>;
|
|
31
31
|
histogram: z.ZodNullable<z.ZodNumber>;
|
|
32
32
|
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>>>;
|
|
34
34
|
underlying: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
url: z.ZodNullable<z.ZodString>;
|
|
36
|
-
}, z.core.$
|
|
37
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>>;
|
|
37
|
+
}, z.core.$loose>>>;
|
|
38
38
|
next_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>;
|
|
41
41
|
declare const polygonGetOptionsMacd: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
42
|
timespan: string;
|
|
43
43
|
timestamp: string;
|
|
@@ -30,14 +30,14 @@ declare const PolygonGetOptionsMacdOutput: z.ZodObject<{
|
|
|
30
30
|
signal: z.ZodNullable<z.ZodNumber>;
|
|
31
31
|
histogram: z.ZodNullable<z.ZodNumber>;
|
|
32
32
|
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>>>;
|
|
34
34
|
underlying: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
url: z.ZodNullable<z.ZodString>;
|
|
36
|
-
}, z.core.$
|
|
37
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>>;
|
|
37
|
+
}, z.core.$loose>>>;
|
|
38
38
|
next_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>;
|
|
41
41
|
declare const polygonGetOptionsMacd: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
42
|
timespan: string;
|
|
43
43
|
timestamp: string;
|
|
@@ -24,12 +24,12 @@ const PolygonGetOptionsMacd_MACDValueSchema = z.object({
|
|
|
24
24
|
signal: z.number().describe("The signal line value (EMA of the MACD line).").nullable(),
|
|
25
25
|
histogram: z.number().describe("The MACD histogram value (difference between MACD line and signal line, indicating momentum strength and direction).").nullable(),
|
|
26
26
|
timestamp: z.number().int().describe("Unix millisecond timestamp from the last aggregate used in this calculation.").nullable()
|
|
27
|
-
});
|
|
28
|
-
const PolygonGetOptionsMacd_UnderlyingSchema = z.object({ url: z.string().describe("URL to access the aggregate data used for calculations.").nullable() });
|
|
27
|
+
}).passthrough();
|
|
28
|
+
const PolygonGetOptionsMacd_UnderlyingSchema = z.object({ url: z.string().describe("URL to access the aggregate data used for calculations.").nullable() }).passthrough();
|
|
29
29
|
const PolygonGetOptionsMacd_MACDResultsSchema = z.object({
|
|
30
30
|
values: z.array(PolygonGetOptionsMacd_MACDValueSchema).describe("Array of MACD indicator data points.").nullable().optional(),
|
|
31
31
|
underlying: PolygonGetOptionsMacd_UnderlyingSchema.nullable().optional()
|
|
32
|
-
});
|
|
32
|
+
}).passthrough();
|
|
33
33
|
const polygonGetOptionsMacd = action("POLYGON_GET_OPTIONS_MACD", {
|
|
34
34
|
slug: "polygon-get-options-macd",
|
|
35
35
|
name: "Get Options MACD",
|
|
@@ -40,7 +40,7 @@ const polygonGetOptionsMacd = action("POLYGON_GET_OPTIONS_MACD", {
|
|
|
40
40
|
results: PolygonGetOptionsMacd_MACDResultsSchema.nullable().optional(),
|
|
41
41
|
next_url: z.string().describe("If present, this value can be used to fetch the next page of data.").nullable().optional(),
|
|
42
42
|
request_id: z.string().describe("A request ID assigned by the server for tracking.").nullable().optional()
|
|
43
|
-
})
|
|
43
|
+
}).passthrough()
|
|
44
44
|
});
|
|
45
45
|
//#endregion
|
|
46
46
|
export { polygonGetOptionsMacd };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-options-macd.mjs","names":[],"sources":["../../src/actions/get-options-macd.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsMacdInput = z.object({\n limit: z.number().int().default(10).describe(\"Limit the number of results returned. Must be between 1 and 5000. Defaults to 10.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Order of results by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'desc'.\").optional(),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the MACD are adjusted for splits. Defaults to True.\").optional(),\n timespan: z.string().describe(\"The size of the aggregate time window. Options: minute, hour, day, week, month, quarter, year. Required parameter.\"),\n timestamp: z.string().describe(\"Query by timestamp. Either a date with format YYYY-MM-DD or a millisecond timestamp. Required parameter.\"),\n long_window: z.number().int().describe(\"The long window size (number of periods) used to calculate MACD data. Traditional value: 26. Required parameter.\"),\n series_type: z.enum([\"open\", \"high\", \"low\", \"close\"]).default(\"close\").describe(\"The price in the aggregate which will be used to calculate MACD. Options: open, high, low, close. Defaults to 'close'.\").optional(),\n short_window: z.number().int().describe(\"The short window size (number of periods) used to calculate MACD data. Traditional value: 12. Required parameter.\"),\n signal_window: z.number().int().describe(\"The window size (number of periods) used to calculate the MACD signal line. Traditional value: 9. Required parameter.\"),\n options_ticker: z.string().describe(\"The options ticker symbol in format O:UNDERLYINGYYMMDDCOOOOOOOOO (e.g., 'O:AAPL251219C00150000'). Must include the 'O:' prefix for options contracts.\"),\n expand_underlying: z.boolean().default(false).describe(\"Whether to include the aggregates used to calculate this indicator in the response. Defaults to False.\").optional(),\n}).describe(\"Parameters to retrieve the Moving Average Convergence/Divergence (MACD) for an options ticker.\");\nconst PolygonGetOptionsMacd_MACDValueSchema = z.object({\n value: z.number().describe(\"The MACD line value (difference between short EMA and long EMA).\").nullable(),\n signal: z.number().describe(\"The signal line value (EMA of the MACD line).\").nullable(),\n histogram: z.number().describe(\"The MACD histogram value (difference between MACD line and signal line, indicating momentum strength and direction).\").nullable(),\n timestamp: z.number().int().describe(\"Unix millisecond timestamp from the last aggregate used in this calculation.\").nullable(),\n});\nconst PolygonGetOptionsMacd_UnderlyingSchema = z.object({\n url: z.string().describe(\"URL to access the aggregate data used for calculations.\").nullable(),\n});\nconst PolygonGetOptionsMacd_MACDResultsSchema = z.object({\n values: z.array(PolygonGetOptionsMacd_MACDValueSchema).describe(\"Array of MACD indicator data points.\").nullable().optional(),\n underlying: PolygonGetOptionsMacd_UnderlyingSchema.nullable().optional(),\n});\nexport const PolygonGetOptionsMacdOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\").nullable().optional(),\n results: PolygonGetOptionsMacd_MACDResultsSchema.nullable().optional(),\n next_url: z.string().describe(\"If present, this value can be used to fetch the next page of data.\").nullable().optional(),\n request_id: z.string().describe(\"A request ID assigned by the server for tracking.\").nullable().optional(),\n});\n\nexport const polygonGetOptionsMacd = action(\"POLYGON_GET_OPTIONS_MACD\", {\n slug: \"polygon-get-options-macd\",\n name: \"Get Options MACD\",\n description: \"Tool to calculate Moving Average Convergence/Divergence (MACD) technical indicator for an options ticker. Use when you need momentum analysis, trend identification, or trading signal generation for options contracts.\",\n input: PolygonGetOptionsMacdInput,\n output: PolygonGetOptionsMacdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,C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C,CAAC,SAAS;AAChI,CAAC;
|
|
1
|
+
{"version":3,"file":"get-options-macd.mjs","names":[],"sources":["../../src/actions/get-options-macd.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsMacdInput = z.object({\n limit: z.number().int().default(10).describe(\"Limit the number of results returned. Must be between 1 and 5000. Defaults to 10.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"Order of results by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'desc'.\").optional(),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the MACD are adjusted for splits. Defaults to True.\").optional(),\n timespan: z.string().describe(\"The size of the aggregate time window. Options: minute, hour, day, week, month, quarter, year. Required parameter.\"),\n timestamp: z.string().describe(\"Query by timestamp. Either a date with format YYYY-MM-DD or a millisecond timestamp. Required parameter.\"),\n long_window: z.number().int().describe(\"The long window size (number of periods) used to calculate MACD data. Traditional value: 26. Required parameter.\"),\n series_type: z.enum([\"open\", \"high\", \"low\", \"close\"]).default(\"close\").describe(\"The price in the aggregate which will be used to calculate MACD. Options: open, high, low, close. Defaults to 'close'.\").optional(),\n short_window: z.number().int().describe(\"The short window size (number of periods) used to calculate MACD data. Traditional value: 12. Required parameter.\"),\n signal_window: z.number().int().describe(\"The window size (number of periods) used to calculate the MACD signal line. Traditional value: 9. Required parameter.\"),\n options_ticker: z.string().describe(\"The options ticker symbol in format O:UNDERLYINGYYMMDDCOOOOOOOOO (e.g., 'O:AAPL251219C00150000'). Must include the 'O:' prefix for options contracts.\"),\n expand_underlying: z.boolean().default(false).describe(\"Whether to include the aggregates used to calculate this indicator in the response. Defaults to False.\").optional(),\n}).describe(\"Parameters to retrieve the Moving Average Convergence/Divergence (MACD) for an options ticker.\");\nconst PolygonGetOptionsMacd_MACDValueSchema = z.object({\n value: z.number().describe(\"The MACD line value (difference between short EMA and long EMA).\").nullable(),\n signal: z.number().describe(\"The signal line value (EMA of the MACD line).\").nullable(),\n histogram: z.number().describe(\"The MACD histogram value (difference between MACD line and signal line, indicating momentum strength and direction).\").nullable(),\n timestamp: z.number().int().describe(\"Unix millisecond timestamp from the last aggregate used in this calculation.\").nullable(),\n}).passthrough();\nconst PolygonGetOptionsMacd_UnderlyingSchema = z.object({\n url: z.string().describe(\"URL to access the aggregate data used for calculations.\").nullable(),\n}).passthrough();\nconst PolygonGetOptionsMacd_MACDResultsSchema = z.object({\n values: z.array(PolygonGetOptionsMacd_MACDValueSchema).describe(\"Array of MACD indicator data points.\").nullable().optional(),\n underlying: PolygonGetOptionsMacd_UnderlyingSchema.nullable().optional(),\n}).passthrough();\nexport const PolygonGetOptionsMacdOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\").nullable().optional(),\n results: PolygonGetOptionsMacd_MACDResultsSchema.nullable().optional(),\n next_url: z.string().describe(\"If present, this value can be used to fetch the next page of data.\").nullable().optional(),\n request_id: z.string().describe(\"A request ID assigned by the server for tracking.\").nullable().optional(),\n}).passthrough();\n\nexport const polygonGetOptionsMacd = action(\"POLYGON_GET_OPTIONS_MACD\", {\n slug: \"polygon-get-options-macd\",\n name: \"Get Options MACD\",\n description: \"Tool to calculate Moving Average Convergence/Divergence (MACD) technical indicator for an options ticker. Use when you need momentum analysis, trend identification, or trading signal generation for options contracts.\",\n input: PolygonGetOptionsMacdInput,\n output: PolygonGetOptionsMacdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC3I,OAAO,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAChL,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qGA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CAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,YAAY,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY;AAQf,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZyC,EAAE,OAAO;EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,SAAS,wCAAwC,SAAS,CAAC,CAAC,SAAS;EACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -32,18 +32,18 @@ const PolygonGetOptionsRsiInput = zod.z.object({
|
|
|
32
32
|
const PolygonGetOptionsRsi_RSIValueSchema = zod.z.object({
|
|
33
33
|
value: zod.z.number().describe("The RSI indicator value for this period (0-100). Values above 70 typically indicate overbought conditions, while values below 30 indicate oversold conditions.").nullable(),
|
|
34
34
|
timestamp: zod.z.number().int().describe("The Unix millisecond timestamp from the last aggregate used in this calculation.").nullable()
|
|
35
|
-
});
|
|
36
|
-
const PolygonGetOptionsRsi_UnderlyingSchema = zod.z.object({ url: zod.z.string().describe("The URL which can be used to request the underlying aggregates used in this request.").nullable() });
|
|
35
|
+
}).passthrough();
|
|
36
|
+
const PolygonGetOptionsRsi_UnderlyingSchema = zod.z.object({ url: zod.z.string().describe("The URL which can be used to request the underlying aggregates used in this request.").nullable() }).passthrough();
|
|
37
37
|
const PolygonGetOptionsRsi_RSIResultsSchema = zod.z.object({
|
|
38
38
|
values: zod.z.array(PolygonGetOptionsRsi_RSIValueSchema).describe("An array of RSI value objects with timestamps and indicator values.").nullable().optional(),
|
|
39
39
|
underlying: PolygonGetOptionsRsi_UnderlyingSchema.nullable().optional()
|
|
40
|
-
});
|
|
40
|
+
}).passthrough();
|
|
41
41
|
const PolygonGetOptionsRsiOutput = zod.z.object({
|
|
42
42
|
status: zod.z.string().describe("The status of this request's response (e.g., 'OK').").nullable().optional(),
|
|
43
43
|
results: PolygonGetOptionsRsi_RSIResultsSchema.nullable().optional(),
|
|
44
44
|
next_url: zod.z.string().describe("If present, this value can be used to fetch the next page of data.").nullable().optional(),
|
|
45
45
|
request_id: zod.z.string().describe("A request ID assigned by the server.").nullable().optional()
|
|
46
|
-
});
|
|
46
|
+
}).passthrough();
|
|
47
47
|
const polygonGetOptionsRsi = require_action.action("POLYGON_GET_OPTIONS_RSI", {
|
|
48
48
|
slug: "polygon-get-options-rsi",
|
|
49
49
|
name: "Get Options RSI",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-options-rsi.cjs","names":["z","action"],"sources":["../../src/actions/get-options-rsi.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsRsiInput = z.object({\n limit: z.number().int().default(5000).describe(\"Limit the number of base aggregates queried to create the aggregate results. Default: 5000. Max: 50000.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"The order in which to return the results, ordered by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'desc'.\").optional(),\n window: z.number().int().default(14).describe(\"The window size used to calculate the Relative Strength Index (RSI). Typically 14 for standard RSI calculation. Defaults to 14.\").optional(),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the RSI are adjusted for splits. Defaults to True.\").optional(),\n timespan: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\"]).describe(\"The size of the aggregate time window. Required parameter to define the period for RSI calculation.\"),\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 RSI. Defaults to 'close'.\").optional(),\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 options_ticker: z.string().describe(\"The options ticker symbol in format O:UNDERLYINGYYMMDDCOOOOOOOOO (e.g., 'O:AAPL250117C00250000'). Must include the 'O:' prefix for options contracts.\"),\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 Relative Strength Index (RSI) for an options ticker.\");\nconst PolygonGetOptionsRsi_RSIValueSchema = z.object({\n value: z.number().describe(\"The RSI indicator value for this period (0-100). Values above 70 typically indicate overbought conditions, while values below 30 indicate oversold conditions.\").nullable(),\n timestamp: z.number().int().describe(\"The Unix millisecond timestamp from the last aggregate used in this calculation.\").nullable(),\n});\nconst PolygonGetOptionsRsi_UnderlyingSchema = z.object({\n url: z.string().describe(\"The URL which can be used to request the underlying aggregates used in this request.\").nullable(),\n});\nconst PolygonGetOptionsRsi_RSIResultsSchema = z.object({\n values: z.array(PolygonGetOptionsRsi_RSIValueSchema).describe(\"An array of RSI value objects with timestamps and indicator values.\").nullable().optional(),\n underlying: PolygonGetOptionsRsi_UnderlyingSchema.nullable().optional(),\n});\nexport const PolygonGetOptionsRsiOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\").nullable().optional(),\n results: PolygonGetOptionsRsi_RSIResultsSchema.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 polygonGetOptionsRsi = action(\"POLYGON_GET_OPTIONS_RSI\", {\n slug: \"polygon-get-options-rsi\",\n name: \"Get Options RSI\",\n description: \"Tool to calculate Relative Strength Index (RSI) technical indicator for an options ticker. Use when you need momentum analysis or want to identify overbought/oversold conditions for options contracts.\",\n input: PolygonGetOptionsRsiInput,\n output: PolygonGetOptionsRsiOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACnK,OAAOA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CACjN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC1L,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC5J,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;EAAQ;EAAS;EAAW;CAAM,CAAC,CAAC,CAAC,SAAS,qGAAqG;CAC9L,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACpI,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAO;CAAO,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACrL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACnJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CAChJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAChK,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC7J,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ;CAC3L,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;AACnL,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAC7F,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;CACtM,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;AACpI,CAAC;
|
|
1
|
+
{"version":3,"file":"get-options-rsi.cjs","names":["z","action"],"sources":["../../src/actions/get-options-rsi.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsRsiInput = z.object({\n limit: z.number().int().default(5000).describe(\"Limit the number of base aggregates queried to create the aggregate results. Default: 5000. Max: 50000.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"The order in which to return the results, ordered by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'desc'.\").optional(),\n window: z.number().int().default(14).describe(\"The window size used to calculate the Relative Strength Index (RSI). Typically 14 for standard RSI calculation. Defaults to 14.\").optional(),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the RSI are adjusted for splits. Defaults to True.\").optional(),\n timespan: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\"]).describe(\"The size of the aggregate time window. Required parameter to define the period for RSI calculation.\"),\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 RSI. Defaults to 'close'.\").optional(),\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 options_ticker: z.string().describe(\"The options ticker symbol in format O:UNDERLYINGYYMMDDCOOOOOOOOO (e.g., 'O:AAPL250117C00250000'). Must include the 'O:' prefix for options contracts.\"),\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 Relative Strength Index (RSI) for an options ticker.\");\nconst PolygonGetOptionsRsi_RSIValueSchema = z.object({\n value: z.number().describe(\"The RSI indicator value for this period (0-100). Values above 70 typically indicate overbought conditions, while values below 30 indicate oversold conditions.\").nullable(),\n timestamp: z.number().int().describe(\"The Unix millisecond timestamp from the last aggregate used in this calculation.\").nullable(),\n}).passthrough();\nconst PolygonGetOptionsRsi_UnderlyingSchema = z.object({\n url: z.string().describe(\"The URL which can be used to request the underlying aggregates used in this request.\").nullable(),\n}).passthrough();\nconst PolygonGetOptionsRsi_RSIResultsSchema = z.object({\n values: z.array(PolygonGetOptionsRsi_RSIValueSchema).describe(\"An array of RSI value objects with timestamps and indicator values.\").nullable().optional(),\n underlying: PolygonGetOptionsRsi_UnderlyingSchema.nullable().optional(),\n}).passthrough();\nexport const PolygonGetOptionsRsiOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\").nullable().optional(),\n results: PolygonGetOptionsRsi_RSIResultsSchema.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}).passthrough();\n\nexport const polygonGetOptionsRsi = action(\"POLYGON_GET_OPTIONS_RSI\", {\n slug: \"polygon-get-options-rsi\",\n name: \"Get Options RSI\",\n description: \"Tool to calculate Relative Strength Index (RSI) technical indicator for an options ticker. Use when you need momentum analysis or want to identify overbought/oversold conditions for options contracts.\",\n input: PolygonGetOptionsRsiInput,\n output: PolygonGetOptionsRsiOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACnK,OAAOA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CACjN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC1L,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC5J,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;EAAQ;EAAS;EAAW;CAAM,CAAC,CAAC,CAAC,SAAS,qGAAqG;CAC9L,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACpI,aAAaA,IAA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AAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,SAAS,sCAAsC,SAAS,CAAC,CAAC,SAAS;CACnE,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,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,9 +10,9 @@ declare const PolygonGetOptionsRsiInput: z.ZodObject<{
|
|
|
10
10
|
window: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
11
11
|
adjusted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
12
12
|
timespan: z.ZodEnum<{
|
|
13
|
+
day: "day";
|
|
13
14
|
minute: "minute";
|
|
14
15
|
hour: "hour";
|
|
15
|
-
day: "day";
|
|
16
16
|
week: "week";
|
|
17
17
|
month: "month";
|
|
18
18
|
quarter: "quarter";
|
|
@@ -38,16 +38,16 @@ declare const PolygonGetOptionsRsiOutput: z.ZodObject<{
|
|
|
38
38
|
values: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
39
39
|
value: z.ZodNullable<z.ZodNumber>;
|
|
40
40
|
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
41
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>>>>;
|
|
42
42
|
underlying: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
43
|
url: z.ZodNullable<z.ZodString>;
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>>;
|
|
45
|
+
}, z.core.$loose>>>;
|
|
46
46
|
next_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const polygonGetOptionsRsi: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
|
-
timespan: "
|
|
50
|
+
timespan: "day" | "minute" | "hour" | "week" | "month" | "quarter" | "year";
|
|
51
51
|
options_ticker: string;
|
|
52
52
|
limit?: number | undefined;
|
|
53
53
|
order?: "asc" | "desc" | undefined;
|
|
@@ -10,9 +10,9 @@ declare const PolygonGetOptionsRsiInput: z.ZodObject<{
|
|
|
10
10
|
window: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
11
11
|
adjusted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
12
12
|
timespan: z.ZodEnum<{
|
|
13
|
+
day: "day";
|
|
13
14
|
minute: "minute";
|
|
14
15
|
hour: "hour";
|
|
15
|
-
day: "day";
|
|
16
16
|
week: "week";
|
|
17
17
|
month: "month";
|
|
18
18
|
quarter: "quarter";
|
|
@@ -38,16 +38,16 @@ declare const PolygonGetOptionsRsiOutput: z.ZodObject<{
|
|
|
38
38
|
values: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
39
39
|
value: z.ZodNullable<z.ZodNumber>;
|
|
40
40
|
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
41
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>>>>;
|
|
42
42
|
underlying: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
43
|
url: z.ZodNullable<z.ZodString>;
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>>;
|
|
45
|
+
}, z.core.$loose>>>;
|
|
46
46
|
next_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const polygonGetOptionsRsi: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
|
-
timespan: "
|
|
50
|
+
timespan: "day" | "minute" | "hour" | "week" | "month" | "quarter" | "year";
|
|
51
51
|
options_ticker: string;
|
|
52
52
|
limit?: number | undefined;
|
|
53
53
|
order?: "asc" | "desc" | undefined;
|
|
@@ -32,12 +32,12 @@ const PolygonGetOptionsRsiInput = z.object({
|
|
|
32
32
|
const PolygonGetOptionsRsi_RSIValueSchema = z.object({
|
|
33
33
|
value: z.number().describe("The RSI indicator value for this period (0-100). Values above 70 typically indicate overbought conditions, while values below 30 indicate oversold conditions.").nullable(),
|
|
34
34
|
timestamp: z.number().int().describe("The Unix millisecond timestamp from the last aggregate used in this calculation.").nullable()
|
|
35
|
-
});
|
|
36
|
-
const PolygonGetOptionsRsi_UnderlyingSchema = z.object({ url: z.string().describe("The URL which can be used to request the underlying aggregates used in this request.").nullable() });
|
|
35
|
+
}).passthrough();
|
|
36
|
+
const PolygonGetOptionsRsi_UnderlyingSchema = z.object({ url: z.string().describe("The URL which can be used to request the underlying aggregates used in this request.").nullable() }).passthrough();
|
|
37
37
|
const PolygonGetOptionsRsi_RSIResultsSchema = z.object({
|
|
38
38
|
values: z.array(PolygonGetOptionsRsi_RSIValueSchema).describe("An array of RSI value objects with timestamps and indicator values.").nullable().optional(),
|
|
39
39
|
underlying: PolygonGetOptionsRsi_UnderlyingSchema.nullable().optional()
|
|
40
|
-
});
|
|
40
|
+
}).passthrough();
|
|
41
41
|
const polygonGetOptionsRsi = action("POLYGON_GET_OPTIONS_RSI", {
|
|
42
42
|
slug: "polygon-get-options-rsi",
|
|
43
43
|
name: "Get Options RSI",
|
|
@@ -48,7 +48,7 @@ const polygonGetOptionsRsi = action("POLYGON_GET_OPTIONS_RSI", {
|
|
|
48
48
|
results: PolygonGetOptionsRsi_RSIResultsSchema.nullable().optional(),
|
|
49
49
|
next_url: z.string().describe("If present, this value can be used to fetch the next page of data.").nullable().optional(),
|
|
50
50
|
request_id: z.string().describe("A request ID assigned by the server.").nullable().optional()
|
|
51
|
-
})
|
|
51
|
+
}).passthrough()
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
54
54
|
export { polygonGetOptionsRsi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-options-rsi.mjs","names":[],"sources":["../../src/actions/get-options-rsi.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsRsiInput = z.object({\n limit: z.number().int().default(5000).describe(\"Limit the number of base aggregates queried to create the aggregate results. Default: 5000. Max: 50000.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"The order in which to return the results, ordered by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'desc'.\").optional(),\n window: z.number().int().default(14).describe(\"The window size used to calculate the Relative Strength Index (RSI). Typically 14 for standard RSI calculation. Defaults to 14.\").optional(),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the RSI are adjusted for splits. Defaults to True.\").optional(),\n timespan: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\"]).describe(\"The size of the aggregate time window. Required parameter to define the period for RSI calculation.\"),\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 RSI. Defaults to 'close'.\").optional(),\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 options_ticker: z.string().describe(\"The options ticker symbol in format O:UNDERLYINGYYMMDDCOOOOOOOOO (e.g., 'O:AAPL250117C00250000'). Must include the 'O:' prefix for options contracts.\"),\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 Relative Strength Index (RSI) for an options ticker.\");\nconst PolygonGetOptionsRsi_RSIValueSchema = z.object({\n value: z.number().describe(\"The RSI indicator value for this period (0-100). Values above 70 typically indicate overbought conditions, while values below 30 indicate oversold conditions.\").nullable(),\n timestamp: z.number().int().describe(\"The Unix millisecond timestamp from the last aggregate used in this calculation.\").nullable(),\n});\nconst PolygonGetOptionsRsi_UnderlyingSchema = z.object({\n url: z.string().describe(\"The URL which can be used to request the underlying aggregates used in this request.\").nullable(),\n});\nconst PolygonGetOptionsRsi_RSIResultsSchema = z.object({\n values: z.array(PolygonGetOptionsRsi_RSIValueSchema).describe(\"An array of RSI value objects with timestamps and indicator values.\").nullable().optional(),\n underlying: PolygonGetOptionsRsi_UnderlyingSchema.nullable().optional(),\n});\nexport const PolygonGetOptionsRsiOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\").nullable().optional(),\n results: PolygonGetOptionsRsi_RSIResultsSchema.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 polygonGetOptionsRsi = action(\"POLYGON_GET_OPTIONS_RSI\", {\n slug: \"polygon-get-options-rsi\",\n name: \"Get Options RSI\",\n description: \"Tool to calculate Relative Strength Index (RSI) technical indicator for an options ticker. Use when you need momentum analysis or want to identify overbought/oversold conditions for options contracts.\",\n input: PolygonGetOptionsRsiInput,\n output: PolygonGetOptionsRsiOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACnK,OAAO,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CACjN,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC1L,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC5J,UAAU,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;EAAQ;EAAS;EAAW;CAAM,CAAC,CAAC,CAAC,SAAS,qGAAqG;CAC9L,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,sGAAsG,CAAC,CAAC,SAAS;CACnJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CAChJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAChK,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC7J,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ;CAC3L,mBAAmB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;AACnL,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAC7F,MAAM,sCAAsC,EAAE,OAAO;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;CACtM,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;AACpI,CAAC;
|
|
1
|
+
{"version":3,"file":"get-options-rsi.mjs","names":[],"sources":["../../src/actions/get-options-rsi.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsRsiInput = z.object({\n limit: z.number().int().default(5000).describe(\"Limit the number of base aggregates queried to create the aggregate results. Default: 5000. Max: 50000.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"desc\").describe(\"The order in which to return the results, ordered by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'desc'.\").optional(),\n window: z.number().int().default(14).describe(\"The window size used to calculate the Relative Strength Index (RSI). Typically 14 for standard RSI calculation. Defaults to 14.\").optional(),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the RSI are adjusted for splits. Defaults to True.\").optional(),\n timespan: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\"]).describe(\"The size of the aggregate time window. Required parameter to define the period for RSI calculation.\"),\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 RSI. Defaults to 'close'.\").optional(),\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 options_ticker: z.string().describe(\"The options ticker symbol in format O:UNDERLYINGYYMMDDCOOOOOOOOO (e.g., 'O:AAPL250117C00250000'). Must include the 'O:' prefix for options contracts.\"),\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 Relative Strength Index (RSI) for an options ticker.\");\nconst PolygonGetOptionsRsi_RSIValueSchema = z.object({\n value: z.number().describe(\"The RSI indicator value for this period (0-100). Values above 70 typically indicate overbought conditions, while values below 30 indicate oversold conditions.\").nullable(),\n timestamp: z.number().int().describe(\"The Unix millisecond timestamp from the last aggregate used in this calculation.\").nullable(),\n}).passthrough();\nconst PolygonGetOptionsRsi_UnderlyingSchema = z.object({\n url: z.string().describe(\"The URL which can be used to request the underlying aggregates used in this request.\").nullable(),\n}).passthrough();\nconst PolygonGetOptionsRsi_RSIResultsSchema = z.object({\n values: z.array(PolygonGetOptionsRsi_RSIValueSchema).describe(\"An array of RSI value objects with timestamps and indicator values.\").nullable().optional(),\n underlying: PolygonGetOptionsRsi_UnderlyingSchema.nullable().optional(),\n}).passthrough();\nexport const PolygonGetOptionsRsiOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\").nullable().optional(),\n results: PolygonGetOptionsRsi_RSIResultsSchema.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}).passthrough();\n\nexport const polygonGetOptionsRsi = action(\"POLYGON_GET_OPTIONS_RSI\", {\n slug: \"polygon-get-options-rsi\",\n name: \"Get Options RSI\",\n description: \"Tool to calculate Relative Strength Index (RSI) technical indicator for an options ticker. Use when you need momentum analysis or want to identify overbought/oversold conditions for options contracts.\",\n input: PolygonGetOptionsRsiInput,\n output: PolygonGetOptionsRsiOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACnK,OAAO,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CACjN,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC1L,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC5J,UAAU,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;EAAQ;EAAS;EAAW;CAAM,CAAC,CAAC,CAAC,SAAS,qGAAqG;CAC9L,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,sGAAsG,CAAC,CAAC,SAAS;CACnJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CAChJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAChK,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC7J,gBAAgB,EAAE,OAAO,CA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
33
|
const PolygonGetOptionsSma_SMAValueSchema = zod.z.object({
|
|
34
34
|
value: zod.z.number().describe("The simple moving average value for this period.").nullable(),
|
|
35
35
|
timestamp: zod.z.number().int().describe("The Unix millisecond timestamp from the last aggregate used in this calculation.").nullable()
|
|
36
|
-
});
|
|
36
|
+
}).passthrough();
|
|
37
37
|
const PolygonGetOptionsSma_AggregateBarSchema = zod.z.object({
|
|
38
38
|
c: zod.z.number().describe("The close price for the aggregate window.").nullable().optional(),
|
|
39
39
|
h: zod.z.number().describe("The high price for the aggregate window.").nullable().optional(),
|
|
@@ -43,21 +43,21 @@ const PolygonGetOptionsSma_AggregateBarSchema = zod.z.object({
|
|
|
43
43
|
t: zod.z.number().int().describe("The Unix millisecond timestamp for the end of the aggregate window.").nullable().optional(),
|
|
44
44
|
v: zod.z.number().describe("The trading volume for the aggregate window.").nullable().optional(),
|
|
45
45
|
vw: zod.z.number().describe("The volume weighted average price for the aggregate window.").nullable().optional()
|
|
46
|
-
});
|
|
46
|
+
}).passthrough();
|
|
47
47
|
const PolygonGetOptionsSma_UnderlyingDataSchema = zod.z.object({
|
|
48
48
|
url: zod.z.string().describe("The URL which can be used to request the underlying aggregates used in this calculation.").nullable().optional(),
|
|
49
49
|
aggregates: zod.z.array(PolygonGetOptionsSma_AggregateBarSchema).describe("Array of aggregate objects containing OHLCV price and volume data.").nullable().optional()
|
|
50
|
-
});
|
|
50
|
+
}).passthrough();
|
|
51
51
|
const PolygonGetOptionsSma_SMAResultsSchema = zod.z.object({
|
|
52
52
|
values: zod.z.array(PolygonGetOptionsSma_SMAValueSchema).describe("Array of SMA indicator calculation results.").nullable().optional(),
|
|
53
53
|
underlying: PolygonGetOptionsSma_UnderlyingDataSchema.nullable().optional()
|
|
54
|
-
});
|
|
54
|
+
}).passthrough();
|
|
55
55
|
const PolygonGetOptionsSmaOutput = zod.z.object({
|
|
56
56
|
status: zod.z.string().describe("The status of this request's response (e.g., 'OK').").nullable().optional(),
|
|
57
57
|
results: PolygonGetOptionsSma_SMAResultsSchema.nullable().optional(),
|
|
58
58
|
next_url: zod.z.string().describe("If present, this value can be used to fetch the next page of data.").nullable().optional(),
|
|
59
59
|
request_id: zod.z.string().describe("A request id assigned by the server.").nullable().optional()
|
|
60
|
-
});
|
|
60
|
+
}).passthrough();
|
|
61
61
|
const polygonGetOptionsSma = require_action.action("POLYGON_GET_OPTIONS_SMA", {
|
|
62
62
|
slug: "polygon-get-options-sma",
|
|
63
63
|
name: "Get Options SMA",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-options-sma.cjs","names":["z","action"],"sources":["../../src/actions/get-options-sma.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsSmaInput = z.object({\n limit: z.number().int().default(10).describe(\"Limit the number of results returned. Must be between 1 and 5000. Defaults to 10.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"asc\").describe(\"The order in which to return the results, ordered by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'asc'.\").optional(),\n cursor: z.string().describe(\"Cursor value for pagination to fetch the next page of data.\").optional(),\n window: z.number().int().describe(\"The window size used to calculate the simple moving average (SMA). For example, a window of 10 with daily aggregates results in a 10-day moving average. Required parameter.\"),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the SMA are adjusted for splits. Defaults to True.\").optional(),\n timespan: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\"]).describe(\"The size of the aggregate time window. Required parameter to define the period for SMA calculation.\"),\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 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 options_ticker: z.string().describe(\"The options ticker symbol in format O:UNDERLYINGYYMMDDCOOOOOOOOO (e.g., 'O:SPY241220C00580000'). Must include the 'O:' prefix for options contracts.\"),\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 an options ticker.\");\nconst PolygonGetOptionsSma_SMAValueSchema = z.object({\n value: z.number().describe(\"The simple moving average value for this period.\").nullable(),\n timestamp: z.number().int().describe(\"The Unix millisecond timestamp from the last aggregate used in this calculation.\").nullable(),\n});\nconst PolygonGetOptionsSma_AggregateBarSchema = 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 PolygonGetOptionsSma_UnderlyingDataSchema = z.object({\n url: z.string().describe(\"The URL which can be used to request the underlying aggregates used in this calculation.\").nullable().optional(),\n aggregates: z.array(PolygonGetOptionsSma_AggregateBarSchema).describe(\"Array of aggregate objects containing OHLCV price and volume data.\").nullable().optional(),\n});\nconst PolygonGetOptionsSma_SMAResultsSchema = z.object({\n values: z.array(PolygonGetOptionsSma_SMAValueSchema).describe(\"Array of SMA indicator calculation results.\").nullable().optional(),\n underlying: PolygonGetOptionsSma_UnderlyingDataSchema.nullable().optional(),\n});\nexport const PolygonGetOptionsSmaOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\").nullable().optional(),\n results: PolygonGetOptionsSma_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 polygonGetOptionsSma = action(\"POLYGON_GET_OPTIONS_SMA\", {\n slug: \"polygon-get-options-sma\",\n name: \"Get Options SMA\",\n description: \"Tool to calculate Simple Moving Average (SMA) technical indicator for an options ticker. Use when you need trend analysis or smoothed price data for options contracts.\",\n input: PolygonGetOptionsSmaInput,\n output: PolygonGetOptionsSmaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC3I,OAAOA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;CAC/M,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACpG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8KAA8K;CAChN,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC5J,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;EAAQ;EAAS;EAAW;CAAM,CAAC,CAAC,CAAC,SAAS,qGAAqG;CAC9L,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACpI,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAO;CAAO,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACrL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACnJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CAChJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAChK,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC7J,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sJAAsJ;CAC1L,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;AACnL,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;AACpI,CAAC;
|
|
1
|
+
{"version":3,"file":"get-options-sma.cjs","names":["z","action"],"sources":["../../src/actions/get-options-sma.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsSmaInput = z.object({\n limit: z.number().int().default(10).describe(\"Limit the number of results returned. Must be between 1 and 5000. Defaults to 10.\").optional(),\n order: z.enum([\"asc\", \"desc\"]).default(\"asc\").describe(\"The order in which to return the results, ordered by timestamp. 'asc' returns oldest first, 'desc' returns newest first. Defaults to 'asc'.\").optional(),\n cursor: z.string().describe(\"Cursor value for pagination to fetch the next page of data.\").optional(),\n window: z.number().int().describe(\"The window size used to calculate the simple moving average (SMA). For example, a window of 10 with daily aggregates results in a 10-day moving average. Required parameter.\"),\n adjusted: z.boolean().default(true).describe(\"Whether or not the aggregates used to calculate the SMA are adjusted for splits. Defaults to True.\").optional(),\n timespan: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\"]).describe(\"The size of the aggregate time window. Required parameter to define the period for SMA calculation.\"),\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 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 options_ticker: z.string().describe(\"The options ticker symbol in format O:UNDERLYINGYYMMDDCOOOOOOOOO (e.g., 'O:SPY241220C00580000'). Must include the 'O:' prefix for options contracts.\"),\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 an options ticker.\");\nconst PolygonGetOptionsSma_SMAValueSchema = z.object({\n value: z.number().describe(\"The simple moving average value for this period.\").nullable(),\n timestamp: z.number().int().describe(\"The Unix millisecond timestamp from the last aggregate used in this calculation.\").nullable(),\n}).passthrough();\nconst PolygonGetOptionsSma_AggregateBarSchema = 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}).passthrough();\nconst PolygonGetOptionsSma_UnderlyingDataSchema = z.object({\n url: z.string().describe(\"The URL which can be used to request the underlying aggregates used in this calculation.\").nullable().optional(),\n aggregates: z.array(PolygonGetOptionsSma_AggregateBarSchema).describe(\"Array of aggregate objects containing OHLCV price and volume data.\").nullable().optional(),\n}).passthrough();\nconst PolygonGetOptionsSma_SMAResultsSchema = z.object({\n values: z.array(PolygonGetOptionsSma_SMAValueSchema).describe(\"Array of SMA indicator calculation results.\").nullable().optional(),\n underlying: PolygonGetOptionsSma_UnderlyingDataSchema.nullable().optional(),\n}).passthrough();\nexport const PolygonGetOptionsSmaOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK').\").nullable().optional(),\n results: PolygonGetOptionsSma_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}).passthrough();\n\nexport const polygonGetOptionsSma = action(\"POLYGON_GET_OPTIONS_SMA\", {\n slug: \"polygon-get-options-sma\",\n name: \"Get Options SMA\",\n description: \"Tool to calculate Simple Moving Average (SMA) technical indicator for an options ticker. Use when you need trend analysis or smoothed price data for options contracts.\",\n input: PolygonGetOptionsSmaInput,\n output: PolygonGetOptionsSmaOutput,\n});\n"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um<{
|
|
14
|
+
day: "day";
|
|
14
15
|
minute: "minute";
|
|
15
16
|
hour: "hour";
|
|
16
|
-
day: "day";
|
|
17
17
|
week: "week";
|
|
18
18
|
month: "month";
|
|
19
19
|
quarter: "quarter";
|
|
@@ -39,7 +39,7 @@ declare const PolygonGetOptionsSmaOutput: z.ZodObject<{
|
|
|
39
39
|
values: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
40
40
|
value: z.ZodNullable<z.ZodNumber>;
|
|
41
41
|
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
42
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>>>;
|
|
43
43
|
underlying: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
44
44
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
aggregates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -51,15 +51,15 @@ declare const PolygonGetOptionsSmaOutput: z.ZodObject<{
|
|
|
51
51
|
t: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
52
|
v: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
53
|
vw: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
|
-
}, z.core.$
|
|
55
|
-
}, z.core.$
|
|
56
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>>>>;
|
|
55
|
+
}, z.core.$loose>>>;
|
|
56
|
+
}, z.core.$loose>>>;
|
|
57
57
|
next_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
58
|
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
-
}, z.core.$
|
|
59
|
+
}, z.core.$loose>;
|
|
60
60
|
declare const polygonGetOptionsSma: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
61
61
|
window: number;
|
|
62
|
-
timespan: "
|
|
62
|
+
timespan: "day" | "minute" | "hour" | "week" | "month" | "quarter" | "year";
|
|
63
63
|
options_ticker: string;
|
|
64
64
|
limit?: number | undefined;
|
|
65
65
|
order?: "asc" | "desc" | undefined;
|
|
@@ -11,9 +11,9 @@ declare const PolygonGetOptionsSmaInput: z.ZodObject<{
|
|
|
11
11
|
window: z.ZodNumber;
|
|
12
12
|
adjusted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
13
13
|
timespan: z.ZodEnum<{
|
|
14
|
+
day: "day";
|
|
14
15
|
minute: "minute";
|
|
15
16
|
hour: "hour";
|
|
16
|
-
day: "day";
|
|
17
17
|
week: "week";
|
|
18
18
|
month: "month";
|
|
19
19
|
quarter: "quarter";
|
|
@@ -39,7 +39,7 @@ declare const PolygonGetOptionsSmaOutput: z.ZodObject<{
|
|
|
39
39
|
values: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
40
40
|
value: z.ZodNullable<z.ZodNumber>;
|
|
41
41
|
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
42
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>>>;
|
|
43
43
|
underlying: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
44
44
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
aggregates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -51,15 +51,15 @@ declare const PolygonGetOptionsSmaOutput: z.ZodObject<{
|
|
|
51
51
|
t: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
52
|
v: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
53
|
vw: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
|
-
}, z.core.$
|
|
55
|
-
}, z.core.$
|
|
56
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>>>>;
|
|
55
|
+
}, z.core.$loose>>>;
|
|
56
|
+
}, z.core.$loose>>>;
|
|
57
57
|
next_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
58
|
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
-
}, z.core.$
|
|
59
|
+
}, z.core.$loose>;
|
|
60
60
|
declare const polygonGetOptionsSma: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
61
61
|
window: number;
|
|
62
|
-
timespan: "
|
|
62
|
+
timespan: "day" | "minute" | "hour" | "week" | "month" | "quarter" | "year";
|
|
63
63
|
options_ticker: string;
|
|
64
64
|
limit?: number | undefined;
|
|
65
65
|
order?: "asc" | "desc" | undefined;
|