UNPKG

@itick/browser-sdk

Version:

Official iTick API SDK for browser. Real-time & historical data for global Stocks, Forex, Crypto, Indices, Futures, Funds, Precious Metals. REST (OHLCV/K-line) + low-latency WebSocket. Promise-based, TypeScript-ready. For quant trading & fintech

26 lines 818 B
import { APIResponse } from '../types/index'; import { CreateSocketOptions } from '../types/socket'; import SocketClient from "./SocketClient"; /** * Client Configuration Options Interface */ export interface ClientOptions { baseURL?: string; wssURL?: string; } /** * Core Client Class * Provides basic functionality for WebSocket connections and HTTP requests */ export declare class Client { protected token: string; protected baseURL: string; protected wssURL: string; constructor(token: string, options?: ClientOptions); /** * Send GET request */ protected _get<T = any>(path: string, params?: Record<string, any>): Promise<APIResponse<T>>; protected _createSocket(path: string, options?: CreateSocketOptions): SocketClient; } //# sourceMappingURL=client.d.ts.map