UNPKG

@copytrade/broker-shoonya

Version:

Shoonya (Finvasia) broker plugin for @copytrade/unified-broker

22 lines 1.12 kB
/** * Shoonya Service Adapter * Adapts the existing ShoonyaService to implement IBrokerService interface */ import { IBrokerService, BrokerCredentials, LoginResponse, OrderRequest, OrderResponse, OrderStatus, Position, Quote } from '@copytrade/unified-broker'; import { ShoonyaService } from './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