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) 834 B
import { MARKET_DATA } from '../../constants'; import { ErrorResponseSchema } from '../../errors'; import { GetInstrumentsQueryParams, GetInstrumentsResponse, GetInstrumentByCusipPathParams, GetInstrumentByCusipResponse, } from './schema'; export const getInstrumentsMeta = { method: 'GET', path: MARKET_DATA.INSTRUMENTS.GET_INSTRUMENTS, querySchema: GetInstrumentsQueryParams, responseSchema: GetInstrumentsResponse, errorSchema: ErrorResponseSchema, description: 'Get Instruments by symbols and projections.', }; export const getInstrumentByCusipMeta = { method: 'GET', path: MARKET_DATA.INSTRUMENTS.GET_INSTRUMENT, pathSchema: GetInstrumentByCusipPathParams, responseSchema: GetInstrumentByCusipResponse, errorSchema: ErrorResponseSchema, description: 'Get Instrument by CUSIP.', };