UNPKG

kucoin-universal-sdk

Version:
33 lines (32 loc) 851 B
import { KucoinRestService } from './api_rest'; import { KucoinWSService } from './api_ws'; import { ClientOption } from '../model/client_option'; /** * Client interface defines the methods to get REST and WebSocket services. */ export interface Client { /** * Get RESTful service. */ restService(): KucoinRestService; /** * Get WebSocket service. */ wsService(): KucoinWSService; } /** * DefaultClient provides the default implementation of the Client interface. */ export declare class DefaultClient implements Client { private readonly restImpl; private readonly wsImpl; constructor(op: ClientOption); /** * Get RESTful service implementation. */ restService(): KucoinRestService; /** * Get WebSocket service implementation. */ wsService(): KucoinWSService; }