import { VTT_TYPE } from "./constants.js"; import { BasketOrder } from "./order.js"; export interface FivePaisaCredentials { APP_NAME: string; APP_SOURCE: string; USER_ID: string; PASSWORD: string; USER_KEY: string; ENCRYPTION_KEY: string; } export declare class FivePaisaClient { private readonly credentials; private clientCode; private jwtToken; private aspxAuth; private webUrl; private marketDepthUrl; private ws; private accessToken; private requestToken; private scripData; private websocketUrl; private readonly appSource; private readonly appName; private readonly userId; private readonly password; private readonly userKey; private readonly encryptionKey; private readonly apiUid; private readonly vttType; private payload; private loginPayload; private loginCheckPayload; private wsPayload; private jwtHeaders; private jwtPayload; private socketDepthPayload; private orderMarginRoute; constructor(cred: FivePaisaCredentials); private clonePayload; private buildHeaders; private getJson; private postJson; getScrips(): Promise; queryScrips(exchange: string, exchangeType: string, symbol: string, strike: string, type: string, expiry: string): Promise; private userInfoRequest; holdings(): Promise; margin(): Promise; orderBook(): Promise; positions(): Promise; private orderRequest; private setPayload; fetchOrderStatus(list: any[]): Promise; fetchTradeInfo(list: any[]): Promise; fetchMarketDepth(list: any[]): Promise; fetchMarketDepthBySymbol(list: any[]): Promise; fetchMarketDepthByScrip(params: Record): Promise; fetchMarketFeed(list: any[]): Promise; fetchMarketFeedScrip(list: any[]): Promise; placeOrder(order: Record): Promise; modifyOrder(order: Record): Promise; cancelOrder(exchOrderId: string): Promise; boOrder(order: Record): Promise; modifyBoOrder(order: Record): Promise; cancelBoOrder(order: Record): Promise; coverOrder(order: Record): Promise; modifyCoverOrder(order: Record): Promise; cancelCoverOrder(order: Record): Promise; requestFeed(method: string, operation: string, list: any[]): Record; connect(payload: Record): void; sendData(onOpen: (ws: WebSocket) => void): void; receiveData(onMessage: (event: MessageEvent) => void): void; closeData(): void; errorData(onError: (event: Event) => void): void; loginCheck(): Promise; jwtValidate(): Promise; historicalData(exch: string, exchangeSegment: string, scripCode: number, time: string, from: string, to: string): Promise; getBuy(): Promise; getTrade(): Promise; getTradebook(): Promise; getMarketStatus(): Promise; getTradeHistory(exchangeId: string): Promise; getBasket(): Promise; createBasket(basketName: string): Promise; renameBasket(basketName: string, basketId: number): Promise; deleteBasket(basketIds: any[]): Promise; cloneBasket(basketId: number): Promise; executeBasket(basketId: number): Promise; getOrderInBasket(basketId: number): Promise; addBasketOrder(basketOrder: BasketOrder, basketList: any[]): Promise; private setBasketPayload; getExpiry(exch: string, symbol: string): Promise; getOptionChain(exch: string, symbol: string, expire: number): Promise; cancelBulkOrder(exchOrderIds: any[]): Promise; squareoffAll(): Promise; positionConversion(exch: string, exchType: string, scripData: string, tradeType: string, convertQty: number, convertFrom: string, convertTo: string): Promise; socket20Depth(socketPayload: Record): Promise; private marketDepthToken; orderMargin(order: Record): Promise; vttOrder(orderType: keyof typeof VTT_TYPE, order: Record): Promise; basketMargin(basketId: string, coverPositions: string): Promise; placeOrderBulk(order: Record): Promise; setAccessToken(accessToken: string, clientCode: string): void; positionsDay(): Promise; fetchMarketSnapshot(list: any[]): Promise; taxReport(fromDate: string, toDate: string): Promise; fetchLedger(fromDate: string, toDate: string): Promise; multiOrderMargin(order: Record): Promise; getRequestToken(clientCode: string, totp: string, pin: string): Promise; getOauthSession(requestToken: string): Promise; getAccessToken(requestToken?: string): Promise; getTotpSession(clientCode: string, totp: string, pin: string): Promise; private decodeToken; private getFeedUrl; } //# sourceMappingURL=client.d.ts.map