@yash101/schwab-api-client
Version:
A TypeScript client library for interacting with the Charles Schwab Brokerage APIs.
34 lines • 1.04 kB
TypeScript
import { ErrorMessageAndErrors, NoParametersRequest } from "./api.types";
import { AccountType } from "./accounts.types";
export type GetUserPreferencesRequest = NoParametersRequest;
export type GetUserPreferencesResponse = UserPreference[] | ErrorMessageAndErrors;
export interface UserPreference {
accounts: UserPreferenceAccount[];
streamerInfo: StreamerInfo[];
offers: Offer[];
}
export interface UserPreferenceAccount {
accountNumber: string;
primaryAccount: boolean;
type: AccountType;
nickName: string;
accountColor: AccountColor;
displayAcctId: string;
autoPositionEffect: boolean;
}
export declare enum AccountColor {
Green = "Green",
Blue = "Blue"
}
export interface StreamerInfo {
streamerSocketUrl: string;
schwabClientCustomerId: string;
schwabClientCorrelId: string;
schwabClientChannel: string;
schwabClientFunctionId: string;
}
export interface Offer {
level2Permissions: boolean;
mktDataPermission: string;
}
//# sourceMappingURL=user.types.d.ts.map