@sudowealth/schwab-api
Version:
TypeScript client for Charles Schwab API with OAuth support, market data, trading functionality, and complete type safety
39 lines (38 loc) • 3.81 kB
JavaScript
/**
* Central export file for all Zod schemas
*
* This file re-exports all schemas from the various modules to provide
* direct access to schemas without needing to instantiate an API client.
*/
// Utilities
export { mergeShapes } from '../utils/schema-utils';
// --- Base Schemas ---
export { AssetTypeEnum, BaseInstrumentSchema } from './base-instrument.schema';
// --- Market Data Schemas ---
// Instruments
export { InstrumentProjectionEnum, GetInstrumentsPathParams, GetInstrumentsQueryParams, GetInstrumentsParams, GetInstrumentsResponse, GetInstrumentByCusipPathParams, GetInstrumentByCusipQueryParams, GetInstrumentByCusipParams, GetInstrumentByCusipResponse, } from '../market-data/instruments/schema';
// Market Hours
export { MarketHoursMarketQueryEnum, GetMarketHoursPathParams, GetMarketHoursQueryParams, GetMarketHoursParams, GetMarketHoursResponse, GetMarketHoursByMarketIdPathParams, GetMarketHoursByMarketIdQueryParams, GetMarketHoursByMarketIdParams, GetMarketHoursByMarketIdResponse, } from '../market-data/marketHours/schema';
// Movers
export { MoversDirectionEnum, GetMoversPathParams, GetMoversQueryParams, GetMoversParams, GetMoversResponse, } from '../market-data/movers/schema';
// Options
export { ExpirationTypeEnum, GetOptionChainPathParams, GetOptionChainQueryParams, GetOptionChainParams, GetOptionChainResponse, GetOptionExpirationChainPathParams, GetOptionExpirationChainQueryParams, GetOptionExpirationChainParams, GetOptionExpirationChainResponse, } from '../market-data/options/schema';
// Price History
export { PeriodEnum, FrequencyEnum, GetPriceHistoryPathParams, GetPriceHistoryQueryParams, GetPriceHistoryParams, GetPriceHistoryResponse, } from '../market-data/priceHistory/schema';
// Quotes
export { GetQuoteBySymbolIdPathParams, GetQuoteBySymbolIdQueryParams, GetQuoteBySymbolIdParams, GetQuoteBySymbolIdResponse, GetQuotesPathParams, GetQuotesQueryParams, GetQuotesParams, GetQuotesResponse, } from '../market-data/quotes/schema';
// Shared
export { InstrumentAssetTypeEnum } from '../market-data/shared/instrument-asset-type.schema';
// --- Trader Schemas ---
// Accounts
export { GetAccountByNumberPathParams, GetAccountByNumberQueryParams, GetAccountByNumberParams, GetAccountByNumberResponse, GetAccountsPathParams, GetAccountsQueryParams, GetAccountsParams, GetAccountsResponse, GetAccountNumbersPathParams, GetAccountNumbersQueryParams, GetAccountNumbersParams, GetAccountNumbersResponse, } from '../trader/accounts/schema';
// Orders
export { GetOrdersPathParams, GetOrdersQueryParams, GetOrdersParams, GetOrdersResponse, GetOrdersByAccountPathParams, GetOrdersByAccountQueryParams, GetOrdersByAccountParams, GetOrdersByAccountResponse, PlaceOrderPathParams, PlaceOrderRequestBody, PlaceOrderParams, PlaceOrderResponse, GetOrderByIdPathParams, GetOrderByIdQueryParams, GetOrderByIdParams, GetOrderByIdResponse, CancelOrderPathParams, CancelOrderQueryParams, CancelOrderParams, CancelOrderResponse, ReplaceOrderPathParams, ReplaceOrderRequestBody, ReplaceOrderParams, ReplaceOrderResponse, } from '../trader/orders/schema';
// Transactions
export { TransactionType, GetTransactionsPathParams, GetTransactionsQueryParams, GetTransactionsParams, GetTransactionsResponse, GetTransactionByIdPathParams, GetTransactionByIdQueryParams, GetTransactionByIdParams, GetTransactionByIdResponse, } from '../trader/transactions/schema';
// User Preference
export { GetUserPreferencePathParams, GetUserPreferenceQueryParams, GetUserPreferenceParams, GetUserPreferenceResponse, } from '../trader/user-preference/schema';
// Shared
export { AccountAPIOptionDeliverable } from '../trader/shared/account-api-option-deliverable.schema';
export { ApiCurrencyType } from '../trader/shared/api-currency-type.schema';
export { assetType } from '../trader/shared/asset-type.schema';