@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
|
@@ -12,21 +12,21 @@ const PolygonGetOptionSnapshot_OptionSnapshotDaySchema = z.object({
|
|
|
12
12
|
o: z.number().describe("Open price for the most recent day bar.").nullable(),
|
|
13
13
|
t: z.number().int().describe("Unix millisecond timestamp for the day bar start.").nullable(),
|
|
14
14
|
v: z.number().int().describe("Trading volume for the most recent day bar.").nullable()
|
|
15
|
-
});
|
|
15
|
+
}).passthrough();
|
|
16
16
|
const PolygonGetOptionSnapshot_OptionSnapshotGreeksSchema = z.object({
|
|
17
17
|
rho: z.number().describe("Rho of the option.").nullable(),
|
|
18
18
|
vega: z.number().describe("Vega of the option.").nullable(),
|
|
19
19
|
delta: z.number().describe("Delta of the option.").nullable(),
|
|
20
20
|
gamma: z.number().describe("Gamma of the option.").nullable(),
|
|
21
21
|
theta: z.number().describe("Theta of the option.").nullable()
|
|
22
|
-
});
|
|
22
|
+
}).passthrough();
|
|
23
23
|
const PolygonGetOptionSnapshot_OptionSnapshotDetailsSchema = z.object({
|
|
24
24
|
option_type: z.string().describe("Type of option: 'call' or 'put'.").nullable(),
|
|
25
25
|
strike_price: z.number().describe("Strike price of the option.").nullable(),
|
|
26
26
|
exercise_style: z.string().describe("Exercise style, e.g., 'american' or 'european'.").nullable(),
|
|
27
27
|
expiration_date: z.string().describe("Expiration date in YYYY-MM-DD format.").nullable(),
|
|
28
28
|
shares_per_contract: z.number().int().describe("Number of underlying shares per contract.").nullable()
|
|
29
|
-
});
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const PolygonGetOptionSnapshot_OptionSnapshotLastQuoteSchema = z.object({
|
|
31
31
|
ask: z.number().describe("Current ask price.").nullable(),
|
|
32
32
|
bid: z.number().describe("Current bid price.").nullable(),
|
|
@@ -35,7 +35,7 @@ const PolygonGetOptionSnapshot_OptionSnapshotLastQuoteSchema = z.object({
|
|
|
35
35
|
timestamp: z.number().int().describe("Unix millisecond timestamp of the quote.").nullable(),
|
|
36
36
|
ask_exchange: z.number().int().describe("Exchange ID for the ask.").nullable(),
|
|
37
37
|
bid_exchange: z.number().int().describe("Exchange ID for the bid.").nullable()
|
|
38
|
-
});
|
|
38
|
+
}).passthrough();
|
|
39
39
|
const PolygonGetOptionSnapshot_OptionSnapshotLastTradeSchema = z.object({
|
|
40
40
|
size: z.number().int().describe("Trade size.").nullable(),
|
|
41
41
|
tape: z.string().describe("Tape identifier for the trade.").nullable(),
|
|
@@ -43,7 +43,7 @@ const PolygonGetOptionSnapshot_OptionSnapshotLastTradeSchema = z.object({
|
|
|
43
43
|
exchange: z.number().int().describe("Exchange ID of trade.").nullable(),
|
|
44
44
|
timestamp: z.number().int().describe("Unix millisecond timestamp of the trade.").nullable(),
|
|
45
45
|
conditions: z.array(z.number().int()).describe("Trade condition codes.")
|
|
46
|
-
});
|
|
46
|
+
}).passthrough();
|
|
47
47
|
const PolygonGetOptionSnapshot_OptionUnderlyingAssetSchema = z.object({
|
|
48
48
|
name: z.string().describe("Name of the underlying asset.").nullable().optional(),
|
|
49
49
|
type: z.string().describe("Asset type.").nullable().optional(),
|
|
@@ -52,7 +52,7 @@ const PolygonGetOptionSnapshot_OptionUnderlyingAssetSchema = z.object({
|
|
|
52
52
|
market: z.string().describe("Market type of the asset.").nullable().optional(),
|
|
53
53
|
ticker: z.string().describe("Ticker symbol of the underlying asset.").nullable(),
|
|
54
54
|
primary_exchange: z.string().describe("Primary exchange of the asset.").nullable().optional()
|
|
55
|
-
});
|
|
55
|
+
}).passthrough();
|
|
56
56
|
const PolygonGetOptionSnapshot_OptionSnapshotResultsSchema = z.object({
|
|
57
57
|
day: PolygonGetOptionSnapshot_OptionSnapshotDaySchema.nullable(),
|
|
58
58
|
fmv: z.number().describe("Fair Market Value (Business plans only).").nullable().optional(),
|
|
@@ -65,7 +65,7 @@ const PolygonGetOptionSnapshot_OptionSnapshotResultsSchema = z.object({
|
|
|
65
65
|
fmv_last_updated: z.number().int().describe("Nanosecond timestamp of the last FMV calculation.").nullable().optional(),
|
|
66
66
|
underlying_asset: PolygonGetOptionSnapshot_OptionUnderlyingAssetSchema.nullable(),
|
|
67
67
|
implied_volatility: z.number().describe("Implied volatility for the contract.").nullable().optional()
|
|
68
|
-
});
|
|
68
|
+
}).passthrough();
|
|
69
69
|
const polygonGetOptionSnapshot = action("POLYGON_GET_OPTION_SNAPSHOT", {
|
|
70
70
|
slug: "polygon-get-option-snapshot",
|
|
71
71
|
name: "Get Option Snapshot",
|
|
@@ -77,7 +77,7 @@ const polygonGetOptionSnapshot = action("POLYGON_GET_OPTION_SNAPSHOT", {
|
|
|
77
77
|
results: PolygonGetOptionSnapshot_OptionSnapshotResultsSchema.nullable().optional(),
|
|
78
78
|
next_url: z.string().describe("URL for the next page of data.").nullable().optional(),
|
|
79
79
|
request_id: z.string().describe("Server-assigned request ID.").nullable()
|
|
80
|
-
})
|
|
80
|
+
}).passthrough()
|
|
81
81
|
});
|
|
82
82
|
//#endregion
|
|
83
83
|
export { polygonGetOptionSnapshot };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-option-snapshot.mjs","names":[],"sources":["../../src/actions/get-option-snapshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionSnapshotInput = z.object({\n option_contract: z.string().describe(\"Option contract identifier (e.g., 'AAPL210917C00145000')\"),\n underlying_asset: z.string().describe(\"Underlying ticker symbol of the option contract (e.g., 'AAPL')\"),\n}).describe(\"Request parameters for GET /v3/snapshot/options/{underlyingAsset}/{optionContract}\");\nconst PolygonGetOptionSnapshot_OptionSnapshotDaySchema = z.object({\n c: z.number().describe(\"Close price for the most recent day bar.\").nullable(),\n h: z.number().describe(\"High price for the most recent day bar.\").nullable(),\n l: z.number().describe(\"Low price for the most recent day bar.\").nullable(),\n o: z.number().describe(\"Open price for the most recent day bar.\").nullable(),\n t: z.number().int().describe(\"Unix millisecond timestamp for the day bar start.\").nullable(),\n v: z.number().int().describe(\"Trading volume for the most recent day bar.\").nullable(),\n});\nconst PolygonGetOptionSnapshot_OptionSnapshotGreeksSchema = z.object({\n rho: z.number().describe(\"Rho of the option.\").nullable(),\n vega: z.number().describe(\"Vega of the option.\").nullable(),\n delta: z.number().describe(\"Delta of the option.\").nullable(),\n gamma: z.number().describe(\"Gamma of the option.\").nullable(),\n theta: z.number().describe(\"Theta of the option.\").nullable(),\n});\nconst PolygonGetOptionSnapshot_OptionSnapshotDetailsSchema = z.object({\n option_type: z.string().describe(\"Type of option: 'call' or 'put'.\").nullable(),\n strike_price: z.number().describe(\"Strike price of the option.\").nullable(),\n exercise_style: z.string().describe(\"Exercise style, e.g., 'american' or 'european'.\").nullable(),\n expiration_date: z.string().describe(\"Expiration date in YYYY-MM-DD format.\").nullable(),\n shares_per_contract: z.number().int().describe(\"Number of underlying shares per contract.\").nullable(),\n});\nconst PolygonGetOptionSnapshot_OptionSnapshotLastQuoteSchema = z.object({\n ask: z.number().describe(\"Current ask price.\").nullable(),\n bid: z.number().describe(\"Current bid price.\").nullable(),\n ask_size: z.number().int().describe(\"Current ask size.\").nullable(),\n bid_size: z.number().int().describe(\"Current bid size.\").nullable(),\n timestamp: z.number().int().describe(\"Unix millisecond timestamp of the quote.\").nullable(),\n ask_exchange: z.number().int().describe(\"Exchange ID for the ask.\").nullable(),\n bid_exchange: z.number().int().describe(\"Exchange ID for the bid.\").nullable(),\n});\nconst PolygonGetOptionSnapshot_OptionSnapshotLastTradeSchema = z.object({\n size: z.number().int().describe(\"Trade size.\").nullable(),\n tape: z.string().describe(\"Tape identifier for the trade.\").nullable(),\n price: z.number().describe(\"Trade price.\").nullable(),\n exchange: z.number().int().describe(\"Exchange ID of trade.\").nullable(),\n timestamp: z.number().int().describe(\"Unix millisecond timestamp of the trade.\").nullable(),\n conditions: z.array(z.number().int()).describe(\"Trade condition codes.\"),\n});\nconst PolygonGetOptionSnapshot_OptionUnderlyingAssetSchema = z.object({\n name: z.string().describe(\"Name of the underlying asset.\").nullable().optional(),\n type: z.string().describe(\"Asset type.\").nullable().optional(),\n active: z.boolean().describe(\"Active status of the asset.\").nullable().optional(),\n locale: z.string().describe(\"Locale of the asset.\").nullable().optional(),\n market: z.string().describe(\"Market type of the asset.\").nullable().optional(),\n ticker: z.string().describe(\"Ticker symbol of the underlying asset.\").nullable(),\n primary_exchange: z.string().describe(\"Primary exchange of the asset.\").nullable().optional(),\n});\nconst PolygonGetOptionSnapshot_OptionSnapshotResultsSchema = z.object({\n day: PolygonGetOptionSnapshot_OptionSnapshotDaySchema.nullable(),\n fmv: z.number().describe(\"Fair Market Value (Business plans only).\").nullable().optional(),\n greeks: PolygonGetOptionSnapshot_OptionSnapshotGreeksSchema.nullable().optional(),\n details: PolygonGetOptionSnapshot_OptionSnapshotDetailsSchema.nullable(),\n last_quote: PolygonGetOptionSnapshot_OptionSnapshotLastQuoteSchema.nullable(),\n last_trade: PolygonGetOptionSnapshot_OptionSnapshotLastTradeSchema.nullable().optional(),\n open_interest: z.number().int().describe(\"Open interest as of the last trading day.\").nullable(),\n break_even_price: z.number().describe(\"Underlying price needed to break even.\").nullable(),\n fmv_last_updated: z.number().int().describe(\"Nanosecond timestamp of the last FMV calculation.\").nullable().optional(),\n underlying_asset: PolygonGetOptionSnapshot_OptionUnderlyingAssetSchema.nullable(),\n implied_volatility: z.number().describe(\"Implied volatility for the contract.\").nullable().optional(),\n});\nexport const PolygonGetOptionSnapshotOutput = z.object({\n status: z.string().describe(\"Response status.\").nullable(),\n message: z.string().describe(\"Error message, if any.\").nullable().optional(),\n results: PolygonGetOptionSnapshot_OptionSnapshotResultsSchema.nullable().optional(),\n next_url: z.string().describe(\"URL for the next page of data.\").nullable().optional(),\n request_id: z.string().describe(\"Server-assigned request ID.\").nullable(),\n});\n\nexport const polygonGetOptionSnapshot = action(\"POLYGON_GET_OPTION_SNAPSHOT\", {\n slug: \"polygon-get-option-snapshot\",\n name: \"Get Option Snapshot\",\n description: \"Tool to retrieve a real-time snapshot for a single option contract. Use when you need up-to-the-minute quotes, trades, greeks, and metrics for a specified option contract.\",\n input: PolygonGetOptionSnapshotInput,\n output: PolygonGetOptionSnapshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CAC/F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;AACxG,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAM,mDAAmD,EAAE,OAAO;CAChE,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC5E,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC3E,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC1E,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC3E,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3F,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACvF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-option-snapshot.mjs","names":[],"sources":["../../src/actions/get-option-snapshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionSnapshotInput = z.object({\n option_contract: z.string().describe(\"Option contract identifier (e.g., 'AAPL210917C00145000')\"),\n underlying_asset: z.string().describe(\"Underlying ticker symbol of the option contract (e.g., 'AAPL')\"),\n}).describe(\"Request parameters for GET /v3/snapshot/options/{underlyingAsset}/{optionContract}\");\nconst PolygonGetOptionSnapshot_OptionSnapshotDaySchema = z.object({\n c: z.number().describe(\"Close price for the most recent day bar.\").nullable(),\n h: z.number().describe(\"High price for the most recent day bar.\").nullable(),\n l: z.number().describe(\"Low price for the most recent day bar.\").nullable(),\n o: z.number().describe(\"Open price for the most recent day bar.\").nullable(),\n t: z.number().int().describe(\"Unix millisecond timestamp for the day bar start.\").nullable(),\n v: z.number().int().describe(\"Trading volume for the most recent day bar.\").nullable(),\n}).passthrough();\nconst PolygonGetOptionSnapshot_OptionSnapshotGreeksSchema = z.object({\n rho: z.number().describe(\"Rho of the option.\").nullable(),\n vega: z.number().describe(\"Vega of the option.\").nullable(),\n delta: z.number().describe(\"Delta of the option.\").nullable(),\n gamma: z.number().describe(\"Gamma of the option.\").nullable(),\n theta: z.number().describe(\"Theta of the option.\").nullable(),\n}).passthrough();\nconst PolygonGetOptionSnapshot_OptionSnapshotDetailsSchema = z.object({\n option_type: z.string().describe(\"Type of option: 'call' or 'put'.\").nullable(),\n strike_price: z.number().describe(\"Strike price of the option.\").nullable(),\n exercise_style: z.string().describe(\"Exercise style, e.g., 'american' or 'european'.\").nullable(),\n expiration_date: z.string().describe(\"Expiration date in YYYY-MM-DD format.\").nullable(),\n shares_per_contract: z.number().int().describe(\"Number of underlying shares per contract.\").nullable(),\n}).passthrough();\nconst PolygonGetOptionSnapshot_OptionSnapshotLastQuoteSchema = z.object({\n ask: z.number().describe(\"Current ask price.\").nullable(),\n bid: z.number().describe(\"Current bid price.\").nullable(),\n ask_size: z.number().int().describe(\"Current ask size.\").nullable(),\n bid_size: z.number().int().describe(\"Current bid size.\").nullable(),\n timestamp: z.number().int().describe(\"Unix millisecond timestamp of the quote.\").nullable(),\n ask_exchange: z.number().int().describe(\"Exchange ID for the ask.\").nullable(),\n bid_exchange: z.number().int().describe(\"Exchange ID for the bid.\").nullable(),\n}).passthrough();\nconst PolygonGetOptionSnapshot_OptionSnapshotLastTradeSchema = z.object({\n size: z.number().int().describe(\"Trade size.\").nullable(),\n tape: z.string().describe(\"Tape identifier for the trade.\").nullable(),\n price: z.number().describe(\"Trade price.\").nullable(),\n exchange: z.number().int().describe(\"Exchange ID of trade.\").nullable(),\n timestamp: z.number().int().describe(\"Unix millisecond timestamp of the trade.\").nullable(),\n conditions: z.array(z.number().int()).describe(\"Trade condition codes.\"),\n}).passthrough();\nconst PolygonGetOptionSnapshot_OptionUnderlyingAssetSchema = z.object({\n name: z.string().describe(\"Name of the underlying asset.\").nullable().optional(),\n type: z.string().describe(\"Asset type.\").nullable().optional(),\n active: z.boolean().describe(\"Active status of the asset.\").nullable().optional(),\n locale: z.string().describe(\"Locale of the asset.\").nullable().optional(),\n market: z.string().describe(\"Market type of the asset.\").nullable().optional(),\n ticker: z.string().describe(\"Ticker symbol of the underlying asset.\").nullable(),\n primary_exchange: z.string().describe(\"Primary exchange of the asset.\").nullable().optional(),\n}).passthrough();\nconst PolygonGetOptionSnapshot_OptionSnapshotResultsSchema = z.object({\n day: PolygonGetOptionSnapshot_OptionSnapshotDaySchema.nullable(),\n fmv: z.number().describe(\"Fair Market Value (Business plans only).\").nullable().optional(),\n greeks: PolygonGetOptionSnapshot_OptionSnapshotGreeksSchema.nullable().optional(),\n details: PolygonGetOptionSnapshot_OptionSnapshotDetailsSchema.nullable(),\n last_quote: PolygonGetOptionSnapshot_OptionSnapshotLastQuoteSchema.nullable(),\n last_trade: PolygonGetOptionSnapshot_OptionSnapshotLastTradeSchema.nullable().optional(),\n open_interest: z.number().int().describe(\"Open interest as of the last trading day.\").nullable(),\n break_even_price: z.number().describe(\"Underlying price needed to break even.\").nullable(),\n fmv_last_updated: z.number().int().describe(\"Nanosecond timestamp of the last FMV calculation.\").nullable().optional(),\n underlying_asset: PolygonGetOptionSnapshot_OptionUnderlyingAssetSchema.nullable(),\n implied_volatility: z.number().describe(\"Implied volatility for the contract.\").nullable().optional(),\n}).passthrough();\nexport const PolygonGetOptionSnapshotOutput = z.object({\n status: z.string().describe(\"Response status.\").nullable(),\n message: z.string().describe(\"Error message, if any.\").nullable().optional(),\n results: PolygonGetOptionSnapshot_OptionSnapshotResultsSchema.nullable().optional(),\n next_url: z.string().describe(\"URL for the next page of data.\").nullable().optional(),\n request_id: z.string().describe(\"Server-assigned request ID.\").nullable(),\n}).passthrough();\n\nexport const polygonGetOptionSnapshot = action(\"POLYGON_GET_OPTION_SNAPSHOT\", {\n slug: \"polygon-get-option-snapshot\",\n name: \"Get Option Snapshot\",\n description: \"Tool to retrieve a real-time snapshot for a single option contract. Use when you need up-to-the-minute quotes, trades, greeks, and metrics for a specified option contract.\",\n input: PolygonGetOptionSnapshotInput,\n output: PolygonGetOptionSnapshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA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CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACzF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,kBAAkB,qDAAqD,SAAS;CAChF,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY;AASf,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb4C,EAAE,OAAO;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,SAAS,qDAAqD,SAAS,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ const PolygonGetOptionsContractOverview_AdditionalUnderlyingSchema = zod.z.objec
|
|
|
9
9
|
type: zod.z.string().describe("The type of additional underlying.").nullable().optional(),
|
|
10
10
|
amount: zod.z.number().describe("The amount of the additional underlying.").nullable().optional(),
|
|
11
11
|
underlying: zod.z.string().describe("The ticker symbol of the additional underlying.").nullable().optional()
|
|
12
|
-
}).describe("Additional underlyings or deliverables associated with the options contract.");
|
|
12
|
+
}).passthrough().describe("Additional underlyings or deliverables associated with the options contract.");
|
|
13
13
|
const PolygonGetOptionsContractOverview_ContractDetailsSchema = zod.z.object({
|
|
14
14
|
cfi: zod.z.string().describe("Classification of Financial Instruments code (e.g., 'OCASPS' for calls, 'OPASPS' for puts).").nullable().optional(),
|
|
15
15
|
ticker: zod.z.string().describe("The ticker symbol for the option contract.").nullable().optional(),
|
|
@@ -22,12 +22,12 @@ const PolygonGetOptionsContractOverview_ContractDetailsSchema = zod.z.object({
|
|
|
22
22
|
underlying_ticker: zod.z.string().describe("The underlying ticker that the option contract relates to.").nullable().optional(),
|
|
23
23
|
shares_per_contract: zod.z.number().describe("The number of shares per contract for this contract.").nullable().optional(),
|
|
24
24
|
additional_underlyings: zod.z.array(PolygonGetOptionsContractOverview_AdditionalUnderlyingSchema).describe("If an option contract has additional underlyings or deliverables associated with it (e.g., corporate actions), they will appear here.").nullable().optional()
|
|
25
|
-
}).describe("Detailed information about the options contract.");
|
|
25
|
+
}).passthrough().describe("Detailed information about the options contract.");
|
|
26
26
|
const PolygonGetOptionsContractOverviewOutput = zod.z.object({
|
|
27
27
|
status: zod.z.string().describe("The status of this request's response (e.g., 'OK', 'ERROR').").nullable().optional(),
|
|
28
28
|
results: PolygonGetOptionsContractOverview_ContractDetailsSchema.nullable().optional(),
|
|
29
29
|
request_id: zod.z.string().describe("A unique request identifier assigned by the server.").nullable().optional()
|
|
30
|
-
}).describe("Response containing detailed options contract information.");
|
|
30
|
+
}).passthrough().describe("Response containing detailed options contract information.");
|
|
31
31
|
const polygonGetOptionsContractOverview = require_action.action("POLYGON_GET_OPTIONS_CONTRACT_OVERVIEW", {
|
|
32
32
|
slug: "polygon-get-options-contract-overview",
|
|
33
33
|
name: "Get Options Contract Overview",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-options-contract-overview.cjs","names":["z","action"],"sources":["../../src/actions/get-options-contract-overview.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsContractOverviewInput = z.object({\n as_of: z.string().describe(\"Specify a point in time for the contract as of this date. Format: YYYY-MM-DD. Defaults to today's date.\").optional(),\n options_ticker: z.string().describe(\"The options contract identifier following standard options ticker format (e.g., O:SPY241220C00450000, O:AAPL251219C00010000).\"),\n}).describe(\"Parameters to retrieve detailed information about a specific options contract.\");\nconst PolygonGetOptionsContractOverview_AdditionalUnderlyingSchema = z.object({\n type: z.string().describe(\"The type of additional underlying.\").nullable().optional(),\n amount: z.number().describe(\"The amount of the additional underlying.\").nullable().optional(),\n underlying: z.string().describe(\"The ticker symbol of the additional underlying.\").nullable().optional(),\n}).describe(\"Additional underlyings or deliverables associated with the options contract.\");\nconst PolygonGetOptionsContractOverview_ContractDetailsSchema = z.object({\n cfi: z.string().describe(\"Classification of Financial Instruments code (e.g., 'OCASPS' for calls, 'OPASPS' for puts).\").nullable().optional(),\n ticker: z.string().describe(\"The ticker symbol for the option contract.\").nullable().optional(),\n correction: z.number().int().describe(\"The correction number for this option contract.\").nullable().optional(),\n strike_price: z.number().describe(\"The strike price of the option contract.\").nullable().optional(),\n contract_type: z.string().describe(\"The type of contract (e.g., 'call', 'put', 'other').\").nullable().optional(),\n exercise_style: z.string().describe(\"The exercise style of this contract (e.g., 'american', 'european', 'bermudan').\").nullable().optional(),\n expiration_date: z.string().describe(\"The contract's expiration date in YYYY-MM-DD format.\").nullable().optional(),\n primary_exchange: z.string().describe(\"The MIC code of the primary exchange that this contract is listed on.\").nullable().optional(),\n underlying_ticker: z.string().describe(\"The underlying ticker that the option contract relates to.\").nullable().optional(),\n shares_per_contract: z.number().describe(\"The number of shares per contract for this contract.\").nullable().optional(),\n additional_underlyings: z.array(PolygonGetOptionsContractOverview_AdditionalUnderlyingSchema).describe(\"If an option contract has additional underlyings or deliverables associated with it (e.g., corporate actions), they will appear here.\").nullable().optional(),\n}).describe(\"Detailed information about the options contract.\");\nexport const PolygonGetOptionsContractOverviewOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK', 'ERROR').\").nullable().optional(),\n results: PolygonGetOptionsContractOverview_ContractDetailsSchema.nullable().optional(),\n request_id: z.string().describe(\"A unique request identifier assigned by the server.\").nullable().optional(),\n}).describe(\"Response containing detailed options contract information.\");\n\nexport const polygonGetOptionsContractOverview = action(\"POLYGON_GET_OPTIONS_CONTRACT_OVERVIEW\", {\n slug: \"polygon-get-options-contract-overview\",\n name: \"Get Options Contract Overview\",\n description: \"Tool to retrieve comprehensive details about a specific options contract including contract type, exercise style, expiration date, strike price, and underlying ticker. Use when you need specifications for options contract analysis or strategy development.\",\n input: PolygonGetOptionsContractOverviewInput,\n output: PolygonGetOptionsContractOverviewOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC/I,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;AACrK,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAM,+DAA+DA,IAAAA,EAAE,OAAO;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,8EAA8E;
|
|
1
|
+
{"version":3,"file":"get-options-contract-overview.cjs","names":["z","action"],"sources":["../../src/actions/get-options-contract-overview.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsContractOverviewInput = z.object({\n as_of: z.string().describe(\"Specify a point in time for the contract as of this date. Format: YYYY-MM-DD. Defaults to today's date.\").optional(),\n options_ticker: z.string().describe(\"The options contract identifier following standard options ticker format (e.g., O:SPY241220C00450000, O:AAPL251219C00010000).\"),\n}).describe(\"Parameters to retrieve detailed information about a specific options contract.\");\nconst PolygonGetOptionsContractOverview_AdditionalUnderlyingSchema = z.object({\n type: z.string().describe(\"The type of additional underlying.\").nullable().optional(),\n amount: z.number().describe(\"The amount of the additional underlying.\").nullable().optional(),\n underlying: z.string().describe(\"The ticker symbol of the additional underlying.\").nullable().optional(),\n}).passthrough().describe(\"Additional underlyings or deliverables associated with the options contract.\");\nconst PolygonGetOptionsContractOverview_ContractDetailsSchema = z.object({\n cfi: z.string().describe(\"Classification of Financial Instruments code (e.g., 'OCASPS' for calls, 'OPASPS' for puts).\").nullable().optional(),\n ticker: z.string().describe(\"The ticker symbol for the option contract.\").nullable().optional(),\n correction: z.number().int().describe(\"The correction number for this option contract.\").nullable().optional(),\n strike_price: z.number().describe(\"The strike price of the option contract.\").nullable().optional(),\n contract_type: z.string().describe(\"The type of contract (e.g., 'call', 'put', 'other').\").nullable().optional(),\n exercise_style: z.string().describe(\"The exercise style of this contract (e.g., 'american', 'european', 'bermudan').\").nullable().optional(),\n expiration_date: z.string().describe(\"The contract's expiration date in YYYY-MM-DD format.\").nullable().optional(),\n primary_exchange: z.string().describe(\"The MIC code of the primary exchange that this contract is listed on.\").nullable().optional(),\n underlying_ticker: z.string().describe(\"The underlying ticker that the option contract relates to.\").nullable().optional(),\n shares_per_contract: z.number().describe(\"The number of shares per contract for this contract.\").nullable().optional(),\n additional_underlyings: z.array(PolygonGetOptionsContractOverview_AdditionalUnderlyingSchema).describe(\"If an option contract has additional underlyings or deliverables associated with it (e.g., corporate actions), they will appear here.\").nullable().optional(),\n}).passthrough().describe(\"Detailed information about the options contract.\");\nexport const PolygonGetOptionsContractOverviewOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK', 'ERROR').\").nullable().optional(),\n results: PolygonGetOptionsContractOverview_ContractDetailsSchema.nullable().optional(),\n request_id: z.string().describe(\"A unique request identifier assigned by the server.\").nullable().optional(),\n}).passthrough().describe(\"Response containing detailed options contract information.\");\n\nexport const polygonGetOptionsContractOverview = action(\"POLYGON_GET_OPTIONS_CONTRACT_OVERVIEW\", {\n slug: \"polygon-get-options-contract-overview\",\n name: \"Get Options Contract Overview\",\n description: \"Tool to retrieve comprehensive details about a specific options contract including contract type, exercise style, expiration date, strike price, and underlying ticker. Use when you need specifications for options contract analysis or strategy development.\",\n input: PolygonGetOptionsContractOverviewInput,\n output: PolygonGetOptionsContractOverviewOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC/I,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;AACrK,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAM,+DAA+DA,IAAAA,EAAE,OAAO;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAA8E;AACxG,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAcA,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M;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -22,10 +22,10 @@ declare const PolygonGetOptionsContractOverviewOutput: z.ZodObject<{
|
|
|
22
22
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
23
|
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
24
|
underlying: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>>>;
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
27
|
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const polygonGetOptionsContractOverview: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
options_ticker: string;
|
|
31
31
|
as_of?: string | undefined;
|
|
@@ -22,10 +22,10 @@ declare const PolygonGetOptionsContractOverviewOutput: z.ZodObject<{
|
|
|
22
22
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
23
|
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
24
|
underlying: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>>>;
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
27
|
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const polygonGetOptionsContractOverview: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
options_ticker: string;
|
|
31
31
|
as_of?: string | undefined;
|
|
@@ -9,7 +9,7 @@ const PolygonGetOptionsContractOverview_AdditionalUnderlyingSchema = z.object({
|
|
|
9
9
|
type: z.string().describe("The type of additional underlying.").nullable().optional(),
|
|
10
10
|
amount: z.number().describe("The amount of the additional underlying.").nullable().optional(),
|
|
11
11
|
underlying: z.string().describe("The ticker symbol of the additional underlying.").nullable().optional()
|
|
12
|
-
}).describe("Additional underlyings or deliverables associated with the options contract.");
|
|
12
|
+
}).passthrough().describe("Additional underlyings or deliverables associated with the options contract.");
|
|
13
13
|
const PolygonGetOptionsContractOverview_ContractDetailsSchema = z.object({
|
|
14
14
|
cfi: z.string().describe("Classification of Financial Instruments code (e.g., 'OCASPS' for calls, 'OPASPS' for puts).").nullable().optional(),
|
|
15
15
|
ticker: z.string().describe("The ticker symbol for the option contract.").nullable().optional(),
|
|
@@ -22,7 +22,7 @@ const PolygonGetOptionsContractOverview_ContractDetailsSchema = z.object({
|
|
|
22
22
|
underlying_ticker: z.string().describe("The underlying ticker that the option contract relates to.").nullable().optional(),
|
|
23
23
|
shares_per_contract: z.number().describe("The number of shares per contract for this contract.").nullable().optional(),
|
|
24
24
|
additional_underlyings: z.array(PolygonGetOptionsContractOverview_AdditionalUnderlyingSchema).describe("If an option contract has additional underlyings or deliverables associated with it (e.g., corporate actions), they will appear here.").nullable().optional()
|
|
25
|
-
}).describe("Detailed information about the options contract.");
|
|
25
|
+
}).passthrough().describe("Detailed information about the options contract.");
|
|
26
26
|
const polygonGetOptionsContractOverview = action("POLYGON_GET_OPTIONS_CONTRACT_OVERVIEW", {
|
|
27
27
|
slug: "polygon-get-options-contract-overview",
|
|
28
28
|
name: "Get Options Contract Overview",
|
|
@@ -32,7 +32,7 @@ const polygonGetOptionsContractOverview = action("POLYGON_GET_OPTIONS_CONTRACT_O
|
|
|
32
32
|
status: z.string().describe("The status of this request's response (e.g., 'OK', 'ERROR').").nullable().optional(),
|
|
33
33
|
results: PolygonGetOptionsContractOverview_ContractDetailsSchema.nullable().optional(),
|
|
34
34
|
request_id: z.string().describe("A unique request identifier assigned by the server.").nullable().optional()
|
|
35
|
-
}).describe("Response containing detailed options contract information.")
|
|
35
|
+
}).passthrough().describe("Response containing detailed options contract information.")
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
export { polygonGetOptionsContractOverview };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-options-contract-overview.mjs","names":[],"sources":["../../src/actions/get-options-contract-overview.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsContractOverviewInput = z.object({\n as_of: z.string().describe(\"Specify a point in time for the contract as of this date. Format: YYYY-MM-DD. Defaults to today's date.\").optional(),\n options_ticker: z.string().describe(\"The options contract identifier following standard options ticker format (e.g., O:SPY241220C00450000, O:AAPL251219C00010000).\"),\n}).describe(\"Parameters to retrieve detailed information about a specific options contract.\");\nconst PolygonGetOptionsContractOverview_AdditionalUnderlyingSchema = z.object({\n type: z.string().describe(\"The type of additional underlying.\").nullable().optional(),\n amount: z.number().describe(\"The amount of the additional underlying.\").nullable().optional(),\n underlying: z.string().describe(\"The ticker symbol of the additional underlying.\").nullable().optional(),\n}).describe(\"Additional underlyings or deliverables associated with the options contract.\");\nconst PolygonGetOptionsContractOverview_ContractDetailsSchema = z.object({\n cfi: z.string().describe(\"Classification of Financial Instruments code (e.g., 'OCASPS' for calls, 'OPASPS' for puts).\").nullable().optional(),\n ticker: z.string().describe(\"The ticker symbol for the option contract.\").nullable().optional(),\n correction: z.number().int().describe(\"The correction number for this option contract.\").nullable().optional(),\n strike_price: z.number().describe(\"The strike price of the option contract.\").nullable().optional(),\n contract_type: z.string().describe(\"The type of contract (e.g., 'call', 'put', 'other').\").nullable().optional(),\n exercise_style: z.string().describe(\"The exercise style of this contract (e.g., 'american', 'european', 'bermudan').\").nullable().optional(),\n expiration_date: z.string().describe(\"The contract's expiration date in YYYY-MM-DD format.\").nullable().optional(),\n primary_exchange: z.string().describe(\"The MIC code of the primary exchange that this contract is listed on.\").nullable().optional(),\n underlying_ticker: z.string().describe(\"The underlying ticker that the option contract relates to.\").nullable().optional(),\n shares_per_contract: z.number().describe(\"The number of shares per contract for this contract.\").nullable().optional(),\n additional_underlyings: z.array(PolygonGetOptionsContractOverview_AdditionalUnderlyingSchema).describe(\"If an option contract has additional underlyings or deliverables associated with it (e.g., corporate actions), they will appear here.\").nullable().optional(),\n}).describe(\"Detailed information about the options contract.\");\nexport const PolygonGetOptionsContractOverviewOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK', 'ERROR').\").nullable().optional(),\n results: PolygonGetOptionsContractOverview_ContractDetailsSchema.nullable().optional(),\n request_id: z.string().describe(\"A unique request identifier assigned by the server.\").nullable().optional(),\n}).describe(\"Response containing detailed options contract information.\");\n\nexport const polygonGetOptionsContractOverview = action(\"POLYGON_GET_OPTIONS_CONTRACT_OVERVIEW\", {\n slug: \"polygon-get-options-contract-overview\",\n name: \"Get Options Contract Overview\",\n description: \"Tool to retrieve comprehensive details about a specific options contract including contract type, exercise style, expiration date, strike price, and underlying ticker. Use when you need specifications for options contract analysis or strategy development.\",\n input: PolygonGetOptionsContractOverviewInput,\n output: PolygonGetOptionsContractOverviewOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyC,EAAE,OAAO;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC/I,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;AACrK,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAM,+DAA+D,EAAE,OAAO;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,8EAA8E;
|
|
1
|
+
{"version":3,"file":"get-options-contract-overview.mjs","names":[],"sources":["../../src/actions/get-options-contract-overview.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsContractOverviewInput = z.object({\n as_of: z.string().describe(\"Specify a point in time for the contract as of this date. Format: YYYY-MM-DD. Defaults to today's date.\").optional(),\n options_ticker: z.string().describe(\"The options contract identifier following standard options ticker format (e.g., O:SPY241220C00450000, O:AAPL251219C00010000).\"),\n}).describe(\"Parameters to retrieve detailed information about a specific options contract.\");\nconst PolygonGetOptionsContractOverview_AdditionalUnderlyingSchema = z.object({\n type: z.string().describe(\"The type of additional underlying.\").nullable().optional(),\n amount: z.number().describe(\"The amount of the additional underlying.\").nullable().optional(),\n underlying: z.string().describe(\"The ticker symbol of the additional underlying.\").nullable().optional(),\n}).passthrough().describe(\"Additional underlyings or deliverables associated with the options contract.\");\nconst PolygonGetOptionsContractOverview_ContractDetailsSchema = z.object({\n cfi: z.string().describe(\"Classification of Financial Instruments code (e.g., 'OCASPS' for calls, 'OPASPS' for puts).\").nullable().optional(),\n ticker: z.string().describe(\"The ticker symbol for the option contract.\").nullable().optional(),\n correction: z.number().int().describe(\"The correction number for this option contract.\").nullable().optional(),\n strike_price: z.number().describe(\"The strike price of the option contract.\").nullable().optional(),\n contract_type: z.string().describe(\"The type of contract (e.g., 'call', 'put', 'other').\").nullable().optional(),\n exercise_style: z.string().describe(\"The exercise style of this contract (e.g., 'american', 'european', 'bermudan').\").nullable().optional(),\n expiration_date: z.string().describe(\"The contract's expiration date in YYYY-MM-DD format.\").nullable().optional(),\n primary_exchange: z.string().describe(\"The MIC code of the primary exchange that this contract is listed on.\").nullable().optional(),\n underlying_ticker: z.string().describe(\"The underlying ticker that the option contract relates to.\").nullable().optional(),\n shares_per_contract: z.number().describe(\"The number of shares per contract for this contract.\").nullable().optional(),\n additional_underlyings: z.array(PolygonGetOptionsContractOverview_AdditionalUnderlyingSchema).describe(\"If an option contract has additional underlyings or deliverables associated with it (e.g., corporate actions), they will appear here.\").nullable().optional(),\n}).passthrough().describe(\"Detailed information about the options contract.\");\nexport const PolygonGetOptionsContractOverviewOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK', 'ERROR').\").nullable().optional(),\n results: PolygonGetOptionsContractOverview_ContractDetailsSchema.nullable().optional(),\n request_id: z.string().describe(\"A unique request identifier assigned by the server.\").nullable().optional(),\n}).passthrough().describe(\"Response containing detailed options contract information.\");\n\nexport const polygonGetOptionsContractOverview = action(\"POLYGON_GET_OPTIONS_CONTRACT_OVERVIEW\", {\n slug: \"polygon-get-options-contract-overview\",\n name: \"Get Options Contract Overview\",\n description: \"Tool to retrieve comprehensive details about a specific options contract including contract type, exercise style, expiration date, strike price, and underlying ticker. Use when you need specifications for options contract analysis or strategy development.\",\n input: PolygonGetOptionsContractOverviewInput,\n output: PolygonGetOptionsContractOverviewOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyC,EAAE,OAAO;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC/I,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;AACrK,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAM,+DAA+D,EAAE,OAAO;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAA8E;AACxG,MAAM,0DAA0D,EAAE,OAAO;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,QAAQ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AC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAOhB;AACV,CAAC"}
|
|
@@ -30,7 +30,7 @@ const PolygonGetOptionsCustomBars_OptionsAggregateResultSchema = zod.z.object({
|
|
|
30
30
|
v: zod.z.number().describe("The trading volume of the symbol in the given time period.").nullable(),
|
|
31
31
|
vw: zod.z.number().describe("The volume weighted average price (VWAP).").nullable(),
|
|
32
32
|
otc: zod.z.boolean().describe("Whether or not this aggregate is for an OTC ticker. This field will be left off if false.").nullable().optional()
|
|
33
|
-
}).describe("Individual options aggregate bar data containing OHLC, volume, and VWAP.");
|
|
33
|
+
}).passthrough().describe("Individual options aggregate bar data containing OHLC, volume, and VWAP.");
|
|
34
34
|
const PolygonGetOptionsCustomBarsOutput = zod.z.object({
|
|
35
35
|
status: zod.z.string().describe("The status of this request's response (e.g., 'OK', 'ERROR').").nullable().optional(),
|
|
36
36
|
ticker: zod.z.string().describe("The ticker symbol for the option contract.").nullable().optional(),
|
|
@@ -40,7 +40,7 @@ const PolygonGetOptionsCustomBarsOutput = zod.z.object({
|
|
|
40
40
|
queryCount: zod.z.number().int().describe("The number of aggregates (minute or day) used to generate the response.").nullable().optional(),
|
|
41
41
|
request_id: zod.z.string().describe("A request id assigned by the server for tracking purposes.").nullable().optional(),
|
|
42
42
|
resultsCount: zod.z.number().int().describe("The total number of results for this request.").nullable().optional()
|
|
43
|
-
}).describe("Response containing options aggregate bars with OHLC, volume, and VWAP data.");
|
|
43
|
+
}).passthrough().describe("Response containing options aggregate bars with OHLC, volume, and VWAP data.");
|
|
44
44
|
const polygonGetOptionsCustomBars = require_action.action("POLYGON_GET_OPTIONS_CUSTOM_BARS", {
|
|
45
45
|
slug: "polygon-get-options-custom-bars",
|
|
46
46
|
name: "Get Options Custom Bars",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-options-custom-bars.cjs","names":["z","action"],"sources":["../../src/actions/get-options-custom-bars.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsCustomBarsInput = z.object({\n sort: z.enum([\"asc\", \"desc\"]).describe(\"Sort results by timestamp. 'asc' for ascending (oldest first), 'desc' for descending (newest first).\").optional(),\n limit: z.number().int().describe(\"Limits the number of base aggregates queried. Maximum: 50000, Default: 5000.\").optional(),\n to_date: z.string().describe(\"The end of the aggregate time window. Can be in YYYY-MM-DD format or Unix millisecond timestamp.\"),\n adjusted: z.boolean().default(true).describe(\"Whether results are adjusted for splits. Set to false to get results that are NOT adjusted for splits. Defaults to true.\").optional(),\n timespan: z.enum([\"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\"]).describe(\"The size of the time window for each aggregate bar.\"),\n from_date: z.string().describe(\"The start of the aggregate time window. Can be in YYYY-MM-DD format or Unix millisecond timestamp.\"),\n multiplier: z.number().int().describe(\"The size of the timespan multiplier. Must be a positive integer. Used to customize the time window size.\"),\n options_ticker: z.string().describe(\"The ticker symbol of the options contract (e.g., 'O:AAPL251219C00250000', 'O:SPY241220P00720000'). Must follow standard options ticker format.\"),\n}).describe(\"Parameters for retrieving options aggregate bars over custom date ranges.\");\nconst PolygonGetOptionsCustomBars_OptionsAggregateResultSchema = z.object({\n c: z.number().describe(\"The close price for the symbol in the given time period.\").nullable(),\n h: z.number().describe(\"The highest price for the symbol in the given time period.\").nullable(),\n l: z.number().describe(\"The lowest price for the symbol in the given time period.\").nullable(),\n n: z.number().int().describe(\"The number of transactions in the aggregate window.\").nullable(),\n o: z.number().describe(\"The open price for the symbol in the given time period.\").nullable(),\n t: z.number().int().describe(\"The Unix millisecond timestamp for the start of the aggregate window.\").nullable(),\n v: z.number().describe(\"The trading volume of the symbol in the given time period.\").nullable(),\n vw: z.number().describe(\"The volume weighted average price (VWAP).\").nullable(),\n otc: z.boolean().describe(\"Whether or not this aggregate is for an OTC ticker. This field will be left off if false.\").nullable().optional(),\n}).describe(\"Individual options aggregate bar data containing OHLC, volume, and VWAP.\");\nexport const PolygonGetOptionsCustomBarsOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK', 'ERROR').\").nullable().optional(),\n ticker: z.string().describe(\"The ticker symbol for the option contract.\").nullable().optional(),\n results: z.array(PolygonGetOptionsCustomBars_OptionsAggregateResultSchema).describe(\"Array of options aggregate data objects containing OHLC, volume, and VWAP.\").nullable().optional(),\n adjusted: z.boolean().describe(\"Whether or not this response was adjusted for splits.\").nullable().optional(),\n next_url: z.string().describe(\"If present, can be used to fetch the next page of data. Note: API key must be manually appended.\").nullable().optional(),\n queryCount: z.number().int().describe(\"The number of aggregates (minute or day) used to generate the response.\").nullable().optional(),\n request_id: z.string().describe(\"A request id assigned by the server for tracking purposes.\").nullable().optional(),\n resultsCount: z.number().int().describe(\"The total number of results for this request.\").nullable().optional(),\n}).describe(\"Response containing options aggregate bars with OHLC, volume, and VWAP data.\");\n\nexport const polygonGetOptionsCustomBars = action(\"POLYGON_GET_OPTIONS_CUSTOM_BARS\", {\n slug: \"polygon-get-options-custom-bars\",\n name: \"Get Options Custom Bars\",\n description: \"Tool to retrieve historical OHLC and volume data for options contracts over custom date ranges with configurable time windows. Use when you need aggregate bars for options price analysis or strategy development.\",\n input: PolygonGetOptionsCustomBarsInput,\n output: PolygonGetOptionsCustomBarsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACxJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;CAC/H,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,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AS,0EAA0E;
|
|
1
|
+
{"version":3,"file":"get-options-custom-bars.cjs","names":["z","action"],"sources":["../../src/actions/get-options-custom-bars.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsCustomBarsInput = z.object({\n sort: z.enum([\"asc\", \"desc\"]).describe(\"Sort results by timestamp. 'asc' for ascending (oldest first), 'desc' for descending (newest first).\").optional(),\n limit: z.number().int().describe(\"Limits the number of base aggregates queried. Maximum: 50000, Default: 5000.\").optional(),\n to_date: z.string().describe(\"The end of the aggregate time window. Can be in YYYY-MM-DD format or Unix millisecond timestamp.\"),\n adjusted: z.boolean().default(true).describe(\"Whether results are adjusted for splits. Set to false to get results that are NOT adjusted for splits. Defaults to true.\").optional(),\n timespan: z.enum([\"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\"]).describe(\"The size of the time window for each aggregate bar.\"),\n from_date: z.string().describe(\"The start of the aggregate time window. Can be in YYYY-MM-DD format or Unix millisecond timestamp.\"),\n multiplier: z.number().int().describe(\"The size of the timespan multiplier. Must be a positive integer. Used to customize the time window size.\"),\n options_ticker: z.string().describe(\"The ticker symbol of the options contract (e.g., 'O:AAPL251219C00250000', 'O:SPY241220P00720000'). Must follow standard options ticker format.\"),\n}).describe(\"Parameters for retrieving options aggregate bars over custom date ranges.\");\nconst PolygonGetOptionsCustomBars_OptionsAggregateResultSchema = z.object({\n c: z.number().describe(\"The close price for the symbol in the given time period.\").nullable(),\n h: z.number().describe(\"The highest price for the symbol in the given time period.\").nullable(),\n l: z.number().describe(\"The lowest price for the symbol in the given time period.\").nullable(),\n n: z.number().int().describe(\"The number of transactions in the aggregate window.\").nullable(),\n o: z.number().describe(\"The open price for the symbol in the given time period.\").nullable(),\n t: z.number().int().describe(\"The Unix millisecond timestamp for the start of the aggregate window.\").nullable(),\n v: z.number().describe(\"The trading volume of the symbol in the given time period.\").nullable(),\n vw: z.number().describe(\"The volume weighted average price (VWAP).\").nullable(),\n otc: z.boolean().describe(\"Whether or not this aggregate is for an OTC ticker. This field will be left off if false.\").nullable().optional(),\n}).passthrough().describe(\"Individual options aggregate bar data containing OHLC, volume, and VWAP.\");\nexport const PolygonGetOptionsCustomBarsOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK', 'ERROR').\").nullable().optional(),\n ticker: z.string().describe(\"The ticker symbol for the option contract.\").nullable().optional(),\n results: z.array(PolygonGetOptionsCustomBars_OptionsAggregateResultSchema).describe(\"Array of options aggregate data objects containing OHLC, volume, and VWAP.\").nullable().optional(),\n adjusted: z.boolean().describe(\"Whether or not this response was adjusted for splits.\").nullable().optional(),\n next_url: z.string().describe(\"If present, can be used to fetch the next page of data. Note: API key must be manually appended.\").nullable().optional(),\n queryCount: z.number().int().describe(\"The number of aggregates (minute or day) used to generate the response.\").nullable().optional(),\n request_id: z.string().describe(\"A request id assigned by the server for tracking purposes.\").nullable().optional(),\n resultsCount: z.number().int().describe(\"The total number of results for this request.\").nullable().optional(),\n}).passthrough().describe(\"Response containing options aggregate bars with OHLC, volume, and VWAP data.\");\n\nexport const polygonGetOptionsCustomBars = action(\"POLYGON_GET_OPTIONS_CUSTOM_BARS\", {\n slug: \"polygon-get-options-custom-bars\",\n name: \"Get Options Custom Bars\",\n description: \"Tool to retrieve historical OHLC and volume data for options contracts over custom date ranges with configurable time windows. Use when you need aggregate bars for options price analysis or strategy development.\",\n input: PolygonGetOptionsCustomBarsInput,\n output: PolygonGetOptionsCustomBarsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACxJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,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ted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
12
12
|
timespan: z.ZodEnum<{
|
|
13
|
-
|
|
13
|
+
day: "day";
|
|
14
14
|
minute: "minute";
|
|
15
15
|
hour: "hour";
|
|
16
|
-
day: "day";
|
|
17
16
|
week: "week";
|
|
18
17
|
month: "month";
|
|
19
18
|
quarter: "quarter";
|
|
20
19
|
year: "year";
|
|
20
|
+
second: "second";
|
|
21
21
|
}>;
|
|
22
22
|
from_date: z.ZodString;
|
|
23
23
|
multiplier: z.ZodNumber;
|
|
@@ -36,16 +36,16 @@ declare const PolygonGetOptionsCustomBarsOutput: z.ZodObject<{
|
|
|
36
36
|
v: z.ZodNullable<z.ZodNumber>;
|
|
37
37
|
vw: z.ZodNullable<z.ZodNumber>;
|
|
38
38
|
otc: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>>>>;
|
|
40
40
|
adjusted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
41
|
next_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
queryCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
43
|
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
resultsCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const polygonGetOptionsCustomBars: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
to_date: string;
|
|
48
|
-
timespan: "
|
|
48
|
+
timespan: "day" | "minute" | "hour" | "week" | "month" | "quarter" | "year" | "second";
|
|
49
49
|
from_date: string;
|
|
50
50
|
multiplier: number;
|
|
51
51
|
options_ticker: string;
|
|
@@ -10,14 +10,14 @@ declare const PolygonGetOptionsCustomBarsInput: z.ZodObject<{
|
|
|
10
10
|
to_date: z.ZodString;
|
|
11
11
|
adjusted: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
12
12
|
timespan: z.ZodEnum<{
|
|
13
|
-
|
|
13
|
+
day: "day";
|
|
14
14
|
minute: "minute";
|
|
15
15
|
hour: "hour";
|
|
16
|
-
day: "day";
|
|
17
16
|
week: "week";
|
|
18
17
|
month: "month";
|
|
19
18
|
quarter: "quarter";
|
|
20
19
|
year: "year";
|
|
20
|
+
second: "second";
|
|
21
21
|
}>;
|
|
22
22
|
from_date: z.ZodString;
|
|
23
23
|
multiplier: z.ZodNumber;
|
|
@@ -36,16 +36,16 @@ declare const PolygonGetOptionsCustomBarsOutput: z.ZodObject<{
|
|
|
36
36
|
v: z.ZodNullable<z.ZodNumber>;
|
|
37
37
|
vw: z.ZodNullable<z.ZodNumber>;
|
|
38
38
|
otc: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>>>>;
|
|
40
40
|
adjusted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
41
|
next_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
queryCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
43
|
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
resultsCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const polygonGetOptionsCustomBars: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
to_date: string;
|
|
48
|
-
timespan: "
|
|
48
|
+
timespan: "day" | "minute" | "hour" | "week" | "month" | "quarter" | "year" | "second";
|
|
49
49
|
from_date: string;
|
|
50
50
|
multiplier: number;
|
|
51
51
|
options_ticker: string;
|
|
@@ -30,7 +30,7 @@ const PolygonGetOptionsCustomBars_OptionsAggregateResultSchema = z.object({
|
|
|
30
30
|
v: z.number().describe("The trading volume of the symbol in the given time period.").nullable(),
|
|
31
31
|
vw: z.number().describe("The volume weighted average price (VWAP).").nullable(),
|
|
32
32
|
otc: z.boolean().describe("Whether or not this aggregate is for an OTC ticker. This field will be left off if false.").nullable().optional()
|
|
33
|
-
}).describe("Individual options aggregate bar data containing OHLC, volume, and VWAP.");
|
|
33
|
+
}).passthrough().describe("Individual options aggregate bar data containing OHLC, volume, and VWAP.");
|
|
34
34
|
const polygonGetOptionsCustomBars = action("POLYGON_GET_OPTIONS_CUSTOM_BARS", {
|
|
35
35
|
slug: "polygon-get-options-custom-bars",
|
|
36
36
|
name: "Get Options Custom Bars",
|
|
@@ -45,7 +45,7 @@ const polygonGetOptionsCustomBars = action("POLYGON_GET_OPTIONS_CUSTOM_BARS", {
|
|
|
45
45
|
queryCount: z.number().int().describe("The number of aggregates (minute or day) used to generate the response.").nullable().optional(),
|
|
46
46
|
request_id: z.string().describe("A request id assigned by the server for tracking purposes.").nullable().optional(),
|
|
47
47
|
resultsCount: z.number().int().describe("The total number of results for this request.").nullable().optional()
|
|
48
|
-
}).describe("Response containing options aggregate bars with OHLC, volume, and VWAP data.")
|
|
48
|
+
}).passthrough().describe("Response containing options aggregate bars with OHLC, volume, and VWAP data.")
|
|
49
49
|
});
|
|
50
50
|
//#endregion
|
|
51
51
|
export { polygonGetOptionsCustomBars };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-options-custom-bars.mjs","names":[],"sources":["../../src/actions/get-options-custom-bars.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsCustomBarsInput = z.object({\n sort: z.enum([\"asc\", \"desc\"]).describe(\"Sort results by timestamp. 'asc' for ascending (oldest first), 'desc' for descending (newest first).\").optional(),\n limit: z.number().int().describe(\"Limits the number of base aggregates queried. Maximum: 50000, Default: 5000.\").optional(),\n to_date: z.string().describe(\"The end of the aggregate time window. Can be in YYYY-MM-DD format or Unix millisecond timestamp.\"),\n adjusted: z.boolean().default(true).describe(\"Whether results are adjusted for splits. Set to false to get results that are NOT adjusted for splits. Defaults to true.\").optional(),\n timespan: z.enum([\"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\"]).describe(\"The size of the time window for each aggregate bar.\"),\n from_date: z.string().describe(\"The start of the aggregate time window. Can be in YYYY-MM-DD format or Unix millisecond timestamp.\"),\n multiplier: z.number().int().describe(\"The size of the timespan multiplier. Must be a positive integer. Used to customize the time window size.\"),\n options_ticker: z.string().describe(\"The ticker symbol of the options contract (e.g., 'O:AAPL251219C00250000', 'O:SPY241220P00720000'). Must follow standard options ticker format.\"),\n}).describe(\"Parameters for retrieving options aggregate bars over custom date ranges.\");\nconst PolygonGetOptionsCustomBars_OptionsAggregateResultSchema = z.object({\n c: z.number().describe(\"The close price for the symbol in the given time period.\").nullable(),\n h: z.number().describe(\"The highest price for the symbol in the given time period.\").nullable(),\n l: z.number().describe(\"The lowest price for the symbol in the given time period.\").nullable(),\n n: z.number().int().describe(\"The number of transactions in the aggregate window.\").nullable(),\n o: z.number().describe(\"The open price for the symbol in the given time period.\").nullable(),\n t: z.number().int().describe(\"The Unix millisecond timestamp for the start of the aggregate window.\").nullable(),\n v: z.number().describe(\"The trading volume of the symbol in the given time period.\").nullable(),\n vw: z.number().describe(\"The volume weighted average price (VWAP).\").nullable(),\n otc: z.boolean().describe(\"Whether or not this aggregate is for an OTC ticker. This field will be left off if false.\").nullable().optional(),\n}).describe(\"Individual options aggregate bar data containing OHLC, volume, and VWAP.\");\nexport const PolygonGetOptionsCustomBarsOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK', 'ERROR').\").nullable().optional(),\n ticker: z.string().describe(\"The ticker symbol for the option contract.\").nullable().optional(),\n results: z.array(PolygonGetOptionsCustomBars_OptionsAggregateResultSchema).describe(\"Array of options aggregate data objects containing OHLC, volume, and VWAP.\").nullable().optional(),\n adjusted: z.boolean().describe(\"Whether or not this response was adjusted for splits.\").nullable().optional(),\n next_url: z.string().describe(\"If present, can be used to fetch the next page of data. Note: API key must be manually appended.\").nullable().optional(),\n queryCount: z.number().int().describe(\"The number of aggregates (minute or day) used to generate the response.\").nullable().optional(),\n request_id: z.string().describe(\"A request id assigned by the server for tracking purposes.\").nullable().optional(),\n resultsCount: z.number().int().describe(\"The total number of results for this request.\").nullable().optional(),\n}).describe(\"Response containing options aggregate bars with OHLC, volume, and VWAP data.\");\n\nexport const polygonGetOptionsCustomBars = action(\"POLYGON_GET_OPTIONS_CUSTOM_BARS\", {\n slug: \"polygon-get-options-custom-bars\",\n name: \"Get Options Custom Bars\",\n description: \"Tool to retrieve historical OHLC and volume data for options contracts over custom date ranges with configurable time windows. Use when you need aggregate bars for options price analysis or strategy development.\",\n input: PolygonGetOptionsCustomBarsInput,\n output: PolygonGetOptionsCustomBarsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,MAAM,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACxJ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;CAC/H,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CAClL,UAAU,EAAE,KAAK;EAAC;EAAU;EAAU;EAAQ;EAAO;EAAQ;EAAS;EAAW;CAAM,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACxJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;CACnI,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0GAA0G;CAChJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;AACtL,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,2DAA2D,EAAE,OAAO;CACxE,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC5F,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC9F,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC7F,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC7F,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC3F,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC/G,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC9F,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC9E,KAAK,EAAE,QAAQ,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,0EAA0E;
|
|
1
|
+
{"version":3,"file":"get-options-custom-bars.mjs","names":[],"sources":["../../src/actions/get-options-custom-bars.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PolygonGetOptionsCustomBarsInput = z.object({\n sort: z.enum([\"asc\", \"desc\"]).describe(\"Sort results by timestamp. 'asc' for ascending (oldest first), 'desc' for descending (newest first).\").optional(),\n limit: z.number().int().describe(\"Limits the number of base aggregates queried. Maximum: 50000, Default: 5000.\").optional(),\n to_date: z.string().describe(\"The end of the aggregate time window. Can be in YYYY-MM-DD format or Unix millisecond timestamp.\"),\n adjusted: z.boolean().default(true).describe(\"Whether results are adjusted for splits. Set to false to get results that are NOT adjusted for splits. Defaults to true.\").optional(),\n timespan: z.enum([\"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\", \"year\"]).describe(\"The size of the time window for each aggregate bar.\"),\n from_date: z.string().describe(\"The start of the aggregate time window. Can be in YYYY-MM-DD format or Unix millisecond timestamp.\"),\n multiplier: z.number().int().describe(\"The size of the timespan multiplier. Must be a positive integer. Used to customize the time window size.\"),\n options_ticker: z.string().describe(\"The ticker symbol of the options contract (e.g., 'O:AAPL251219C00250000', 'O:SPY241220P00720000'). Must follow standard options ticker format.\"),\n}).describe(\"Parameters for retrieving options aggregate bars over custom date ranges.\");\nconst PolygonGetOptionsCustomBars_OptionsAggregateResultSchema = z.object({\n c: z.number().describe(\"The close price for the symbol in the given time period.\").nullable(),\n h: z.number().describe(\"The highest price for the symbol in the given time period.\").nullable(),\n l: z.number().describe(\"The lowest price for the symbol in the given time period.\").nullable(),\n n: z.number().int().describe(\"The number of transactions in the aggregate window.\").nullable(),\n o: z.number().describe(\"The open price for the symbol in the given time period.\").nullable(),\n t: z.number().int().describe(\"The Unix millisecond timestamp for the start of the aggregate window.\").nullable(),\n v: z.number().describe(\"The trading volume of the symbol in the given time period.\").nullable(),\n vw: z.number().describe(\"The volume weighted average price (VWAP).\").nullable(),\n otc: z.boolean().describe(\"Whether or not this aggregate is for an OTC ticker. This field will be left off if false.\").nullable().optional(),\n}).passthrough().describe(\"Individual options aggregate bar data containing OHLC, volume, and VWAP.\");\nexport const PolygonGetOptionsCustomBarsOutput = z.object({\n status: z.string().describe(\"The status of this request's response (e.g., 'OK', 'ERROR').\").nullable().optional(),\n ticker: z.string().describe(\"The ticker symbol for the option contract.\").nullable().optional(),\n results: z.array(PolygonGetOptionsCustomBars_OptionsAggregateResultSchema).describe(\"Array of options aggregate data objects containing OHLC, volume, and VWAP.\").nullable().optional(),\n adjusted: z.boolean().describe(\"Whether or not this response was adjusted for splits.\").nullable().optional(),\n next_url: z.string().describe(\"If present, can be used to fetch the next page of data. Note: API key must be manually appended.\").nullable().optional(),\n queryCount: z.number().int().describe(\"The number of aggregates (minute or day) used to generate the response.\").nullable().optional(),\n request_id: z.string().describe(\"A request id assigned by the server for tracking purposes.\").nullable().optional(),\n resultsCount: z.number().int().describe(\"The total number of results for this request.\").nullable().optional(),\n}).passthrough().describe(\"Response containing options aggregate bars with OHLC, volume, and VWAP data.\");\n\nexport const polygonGetOptionsCustomBars = action(\"POLYGON_GET_OPTIONS_CUSTOM_BARS\", {\n slug: \"polygon-get-options-custom-bars\",\n name: \"Get Options Custom Bars\",\n description: \"Tool to retrieve historical OHLC and volume data for options contracts over custom date ranges with configurable time windows. Use when you need aggregate bars for options price analysis or strategy development.\",\n input: PolygonGetOptionsCustomBarsInput,\n output: PolygonGetOptionsCustomBarsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,MAAM,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACxJ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;CAC/H,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CAClL,UAAU,EAAE,KAAK;EAAC;EAAU;EAAU;EAAQ;EAAO;EAAQ;EAAS;EAAW;CAAM,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACxJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;CACnI,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0GAA0G;CAChJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;AACtL,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,2DAA2D,EAAE,OAAO;CACxE,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,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ACtJ,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAOhB;AACV,CAAC"}
|
|
@@ -24,7 +24,7 @@ const PolygonGetOptionsEmaInput = zod.z.object({
|
|
|
24
24
|
const PolygonGetOptionsEma_EMAValueSchema = zod.z.object({
|
|
25
25
|
value: zod.z.number().describe("The exponential moving average value for this period.").nullable(),
|
|
26
26
|
timestamp: zod.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 = zod.z.object({
|
|
29
29
|
c: zod.z.number().describe("The close price for the aggregate window.").nullable().optional(),
|
|
30
30
|
h: zod.z.number().describe("The high price for the aggregate window.").nullable().optional(),
|
|
@@ -34,21 +34,21 @@ const PolygonGetOptionsEma_AggregateBarSchema = zod.z.object({
|
|
|
34
34
|
t: zod.z.number().int().describe("The Unix millisecond timestamp for the end of the aggregate window.").nullable().optional(),
|
|
35
35
|
v: zod.z.number().describe("The trading volume for the aggregate window.").nullable().optional(),
|
|
36
36
|
vw: zod.z.number().describe("The volume weighted average price for the aggregate window.").nullable().optional()
|
|
37
|
-
});
|
|
37
|
+
}).passthrough();
|
|
38
38
|
const PolygonGetOptionsEma_UnderlyingDataSchema = zod.z.object({
|
|
39
39
|
url: zod.z.string().describe("The URL which can be used to request the underlying aggregates used in this calculation.").nullable().optional(),
|
|
40
40
|
aggregates: zod.z.array(PolygonGetOptionsEma_AggregateBarSchema).describe("Array of aggregate objects containing price and volume data.").nullable().optional()
|
|
41
|
-
});
|
|
41
|
+
}).passthrough();
|
|
42
42
|
const PolygonGetOptionsEma_EMAResultsSchema = zod.z.object({
|
|
43
43
|
values: zod.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 PolygonGetOptionsEmaOutput = zod.z.object({
|
|
47
47
|
status: zod.z.string().describe("The status of this request's response (e.g., 'OK').").nullable().optional(),
|
|
48
48
|
results: PolygonGetOptionsEma_EMAResultsSchema.nullable().optional(),
|
|
49
49
|
next_url: zod.z.string().describe("If present, this value can be used to fetch the next page of data.").nullable().optional(),
|
|
50
50
|
request_id: zod.z.string().describe("A request id assigned by the server.").nullable().optional()
|
|
51
|
-
});
|
|
51
|
+
}).passthrough();
|
|
52
52
|
const polygonGetOptionsEma = require_action.action("POLYGON_GET_OPTIONS_EMA", {
|
|
53
53
|
slug: "polygon-get-options-ema",
|
|
54
54
|
name: "Get Options EMA",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-options-ema.cjs","names":["z","action"],"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.\",\n input: PolygonGetOptionsEmaInput,\n output: PolygonGetOptionsEmaOutput,\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,MAAM,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CACjN,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6LAA6L;CAC/N,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC5J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CAClJ,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,iHAAiH,CAAC,CAAC,SAAS;CAC5M,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACxG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACrG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACrH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,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,oFAAoF;AAChG,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC7F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;AACpI,CAAC;
|
|
1
|
+
{"version":3,"file":"get-options-ema.cjs","names":["z","action"],"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,4BAA4BA,IAAAA,EAAE,OAAO;CACh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AC,CAAC,SAAS;CACzI,YAAYA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5J,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,QAAQA,IAAAA,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;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"}
|
|
@@ -30,7 +30,7 @@ declare const PolygonGetOptionsEmaOutput: z.ZodObject<{
|
|
|
30
30
|
values: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
31
31
|
value: 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.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
aggregates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -42,12 +42,12 @@ declare const PolygonGetOptionsEmaOutput: z.ZodObject<{
|
|
|
42
42
|
t: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
43
|
v: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
44
|
vw: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
|
-
}, z.core.$
|
|
46
|
-
}, z.core.$
|
|
47
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>>>;
|
|
46
|
+
}, z.core.$loose>>>;
|
|
47
|
+
}, z.core.$loose>>>;
|
|
48
48
|
next_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
49
|
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>;
|
|
51
51
|
declare const polygonGetOptionsEma: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
52
52
|
window: number;
|
|
53
53
|
timespan: string;
|
|
@@ -30,7 +30,7 @@ declare const PolygonGetOptionsEmaOutput: z.ZodObject<{
|
|
|
30
30
|
values: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
31
31
|
value: 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.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
aggregates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -42,12 +42,12 @@ declare const PolygonGetOptionsEmaOutput: z.ZodObject<{
|
|
|
42
42
|
t: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
43
|
v: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
44
|
vw: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
|
-
}, z.core.$
|
|
46
|
-
}, z.core.$
|
|
47
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>>>;
|
|
46
|
+
}, z.core.$loose>>>;
|
|
47
|
+
}, z.core.$loose>>>;
|
|
48
48
|
next_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
49
|
request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>;
|
|
51
51
|
declare const polygonGetOptionsEma: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
52
52
|
window: number;
|
|
53
53
|
timespan: string;
|