UNPKG

@sudowealth/schwab-api

Version:

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

21 lines (20 loc) 1.03 kB
import { MARKET_DATA } from '../../constants'; import { ErrorResponseSchema } from '../../errors'; import { GetMarketHoursQueryParams, GetMarketHoursResponse, GetMarketHoursByMarketIdPathParams, GetMarketHoursByMarketIdQueryParams, GetMarketHoursByMarketIdResponse, } from './schema'; export const getMarketHoursMeta = { method: 'GET', path: MARKET_DATA.MARKET_HOURS.GET_HOURS_FOR_MULTIPLE_MARKETS, querySchema: GetMarketHoursQueryParams, responseSchema: GetMarketHoursResponse, errorSchema: ErrorResponseSchema, description: 'Get Market Hours for dates in the future across different markets.', }; export const getMarketHoursByMarketIdMeta = { method: 'GET', path: MARKET_DATA.MARKET_HOURS.GET_HOURS_FOR_SINGLE_MARKET, pathSchema: GetMarketHoursByMarketIdPathParams, querySchema: GetMarketHoursByMarketIdQueryParams, responseSchema: GetMarketHoursByMarketIdResponse, errorSchema: ErrorResponseSchema, description: 'Get Market Hours for dates in the future for a single market.', };