Merge pull request #4 from tiagosiebler/wsclean
address codefactor suggestion
This commit is contained in:
@@ -110,14 +110,6 @@ export default class SharedEndpoints {
|
|||||||
}): GenericAPIResponse {
|
}): GenericAPIResponse {
|
||||||
return this.requestWrapper.get('v2/private/wallet/withdraw/list', params);
|
return this.requestWrapper.get('v2/private/wallet/withdraw/list', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
getAssetExchangeRecords(params?: {
|
|
||||||
limit?: number;
|
|
||||||
from?: number;
|
|
||||||
direction?: string;
|
|
||||||
}): GenericAPIResponse {
|
|
||||||
return this.requestWrapper.get('v2/private/exchange-order/list', params);
|
|
||||||
}
|
|
||||||
|
|
||||||
getAssetExchangeRecords(params?: {
|
getAssetExchangeRecords(params?: {
|
||||||
limit?: number;
|
limit?: number;
|
||||||
|
|||||||
@@ -76,13 +76,9 @@ const getLinearWsKeyForTopic = (topic: string) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export declare interface WebsocketClient {
|
export declare interface WebsocketClient {
|
||||||
on(event: 'open', listener: ({ wsKey: string, event: any }) => void): this;
|
on(event: 'open' | 'reconnected', listener: ({ wsKey: string, event: any }) => void): this;
|
||||||
on(event: 'reconnected', listener: ({ wsKey: string, event: any }) => void): this;
|
on(event: 'response' | 'update' | 'error', listener: (response: any) => void): this;
|
||||||
on(event: 'reconnect', listener: () => void): this;
|
on(event: 'reconnect' | 'close', listener: () => void): this;
|
||||||
on(event: 'close', listener: () => void): this;
|
|
||||||
on(event: 'response', listener: (response: any) => void): this;
|
|
||||||
on(event: 'update', listener: (response: any) => void): this;
|
|
||||||
on(event: 'error', listener: (response: any) => void): this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class WebsocketClient extends EventEmitter {
|
export class WebsocketClient extends EventEmitter {
|
||||||
|
|||||||
Reference in New Issue
Block a user