UNPKG

@sudowealth/schwab-api

Version:

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

25 lines (24 loc) 880 B
import { type RequestContext } from '../core/http'; /** * Get the OAuth base URL based on the current configuration using the provided context */ export declare function getOAuthBaseUrlWithContext(context: RequestContext): string; /** * Get the authorization URL based on the provided context */ export declare function getAuthorizationUrlWithContext(context: RequestContext): string; /** * Get the token URL based on the provided context */ export declare function getTokenUrlWithContext(context: RequestContext): string; export interface BuildAuthorizeUrlOptions { clientId: string; redirectUri: string; scope?: string; state?: string; baseUrl?: string; } /** * Build the authorization URL with the provided context and options */ export declare function buildAuthorizeUrlWithContext(context: RequestContext, opts: BuildAuthorizeUrlOptions): string;