chore(): updates for pre-V5 deprecations

This commit is contained in:
tiagosiebler
2025-01-24 15:35:11 +00:00
parent 03169b324c
commit a4945d1caf
4 changed files with 27 additions and 134 deletions

View File

@@ -1,10 +1,5 @@
import { AxiosResponse } from 'axios';
import { APIRateLimit } from '../types';
import {
WebsocketSucceededTopicSubscriptionConfirmationEvent,
WebsocketTopicSubscriptionConfirmationEvent,
} from '../types/websockets/ws-confirmations';
import { WSAPIResponse, WS_API_Operations } from '../types/websockets/ws-api';
export interface RestClientOptions {
/** Your API key */
@@ -188,25 +183,6 @@ export function isWsPong(msg: any): boolean {
);
}
export function isTopicSubscriptionConfirmation(
msg: unknown,
): msg is WebsocketTopicSubscriptionConfirmationEvent {
if (typeof msg !== 'object') {
return false;
}
if (!msg) {
return false;
}
if (typeof msg['op'] !== 'string') {
return false;
}
if (msg['op'] !== 'subscribe') {
return false;
}
return true;
}
export const APIID = 'bybitapinode';
/**