UNPKG

@copytrade/unified-broker

Version:

Unified broker interface library for Indian stock market brokers with plugin architecture

22 lines 1.14 kB
/** * Shoonya Service Adapter * Adapts the existing ShoonyaService to implement IBrokerService interface */ import { IBrokerService, BrokerCredentials, LoginResponse, OrderRequest, OrderResponse, OrderStatus, Position, Quote } from '../../interfaces/IBrokerService'; import { ShoonyaService } from '../../services/shoonyaService'; export declare class ShoonyaServiceAdapter extends IBrokerService { private shoonyaService; constructor(); login(credentials: BrokerCredentials): Promise<LoginResponse>; logout(): Promise<boolean>; validateSession(accountId?: string): Promise<boolean>; placeOrder(orderRequest: OrderRequest): Promise<OrderResponse>; getOrderStatus(accountId: string, orderId: string): Promise<OrderStatus>; getOrderHistory(accountId: string): Promise<OrderStatus[]>; getPositions(accountId: string): Promise<Position[]>; getQuote(symbol: string, exchange: string): Promise<Quote>; searchSymbols(query: string, exchange: string): Promise<any[]>; getShoonyaService(): ShoonyaService; getUserId(): string | undefined; } //# sourceMappingURL=ShoonyaServiceAdapter.d.ts.map