UNPKG

@sudowealth/schwab-api

Version:

TypeScript client for Charles Schwab API with OAuth support, market data, trading functionality, and complete type safety

20 lines (19 loc) 900 B
import { MARKET_DATA } from '../../constants.js'; import { ErrorResponseSchema } from '../../errors.js'; import { GetOptionChainQueryParams, GetOptionChainResponse, GetOptionExpirationChainQueryParams, GetOptionExpirationChainResponse, } from './schema.js'; export const getOptionChainMeta = { method: 'GET', path: MARKET_DATA.OPTIONS.GET_OPTION_CHAIN, querySchema: GetOptionChainQueryParams, responseSchema: GetOptionChainResponse, errorSchema: ErrorResponseSchema, description: 'Get option chain for an optionable symbol.', }; export const getOptionExpirationChainMeta = { method: 'GET', path: MARKET_DATA.OPTIONS.GET_OPTION_EXPIRATION_CHAIN, querySchema: GetOptionExpirationChainQueryParams, responseSchema: GetOptionExpirationChainResponse, errorSchema: ErrorResponseSchema, description: 'Get option expiration chain for an optionable symbol.', };