UNPKG

@sudowealth/schwab-api

Version:

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

107 lines (106 loc) 3.8 kB
import { z } from 'zod'; export declare const GetUserPreferencePathParams: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; export type GetUserPreferencePathParams = z.infer<typeof GetUserPreferencePathParams>; export declare const GetUserPreferenceQueryParams: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; export type GetUserPreferenceQueryParams = z.infer<typeof GetUserPreferenceQueryParams>; export declare const GetUserPreferenceParams: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; export type GetUserPreferenceParams = z.infer<typeof GetUserPreferenceParams>; export declare const GetUserPreferenceResponse: z.ZodObject<{ accounts: z.ZodArray<z.ZodObject<{ accountNumber: z.ZodString; primaryAccount: z.ZodDefault<z.ZodBoolean>; type: z.ZodString; nickName: z.ZodString; accountColor: z.ZodEnum<["Green", "Blue"]>; displayAcctId: z.ZodString; autoPositionEffect: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { accountNumber: string; type: string; primaryAccount: boolean; nickName: string; accountColor: "Green" | "Blue"; displayAcctId: string; autoPositionEffect: boolean; }, { accountNumber: string; type: string; nickName: string; accountColor: "Green" | "Blue"; displayAcctId: string; primaryAccount?: boolean | undefined; autoPositionEffect?: boolean | undefined; }>, "many">; streamerInfo: z.ZodArray<z.ZodObject<{ streamerSocketUrl: z.ZodString; schwabClientCustomerId: z.ZodString; schwabClientCorrelId: z.ZodString; schwabClientChannel: z.ZodString; schwabClientFunctionId: z.ZodString; }, "strip", z.ZodTypeAny, { schwabClientCorrelId: string; streamerSocketUrl: string; schwabClientCustomerId: string; schwabClientChannel: string; schwabClientFunctionId: string; }, { schwabClientCorrelId: string; streamerSocketUrl: string; schwabClientCustomerId: string; schwabClientChannel: string; schwabClientFunctionId: string; }>, "many">; offers: z.ZodArray<z.ZodObject<{ level2Permissions: z.ZodDefault<z.ZodBoolean>; mktDataPermission: z.ZodString; }, "strip", z.ZodTypeAny, { level2Permissions: boolean; mktDataPermission: string; }, { mktDataPermission: string; level2Permissions?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { accounts: { accountNumber: string; type: string; primaryAccount: boolean; nickName: string; accountColor: "Green" | "Blue"; displayAcctId: string; autoPositionEffect: boolean; }[]; streamerInfo: { schwabClientCorrelId: string; streamerSocketUrl: string; schwabClientCustomerId: string; schwabClientChannel: string; schwabClientFunctionId: string; }[]; offers: { level2Permissions: boolean; mktDataPermission: string; }[]; }, { accounts: { accountNumber: string; type: string; nickName: string; accountColor: "Green" | "Blue"; displayAcctId: string; primaryAccount?: boolean | undefined; autoPositionEffect?: boolean | undefined; }[]; streamerInfo: { schwabClientCorrelId: string; streamerSocketUrl: string; schwabClientCustomerId: string; schwabClientChannel: string; schwabClientFunctionId: string; }[]; offers: { mktDataPermission: string; level2Permissions?: boolean | undefined; }[]; }>; export type GetUserPreferenceResponse = z.infer<typeof GetUserPreferenceResponse>;