@hydro-protocol/hydro-client-js
Version:
Javascript SDK for the Hydro API
19 lines (18 loc) • 453 B
TypeScript
/**
* Description of a websocket channel you are listening for updates on.
*/
export declare class Channel {
/**
* The name of a subscription channel
*/
readonly name: ChannelName;
/**
* Which market IDs are included in this subscription
*/
readonly marketIds: string[];
constructor(json: any);
}
/**
* See https://docs.ddex.io/#websocket
*/
export declare type ChannelName = 'ticker' | 'orderbook' | 'full';