chore(): refactor ws events into organised dir

This commit is contained in:
tiagosiebler
2024-12-18 14:32:42 +00:00
parent b897826634
commit d508655136
28 changed files with 46 additions and 45 deletions

View File

@@ -38,7 +38,7 @@ interface WsStoredState {
subscribedTopics: WsTopicList;
}
export default class WsStore {
export class WsStore {
private wsState: Record<string, WsStoredState>;
private logger: typeof DefaultLogger;

View File

@@ -1,7 +1,9 @@
import { AxiosResponse } from 'axios';
import { APIRateLimit } from '../types';
import { WebsocketSucceededTopicSubscriptionConfirmationEvent } from '../types/ws-events/succeeded-topic-subscription-confirmation';
import { WebsocketTopicSubscriptionConfirmationEvent } from '../types/ws-events/topic-subscription-confirmation';
import {
WebsocketSucceededTopicSubscriptionConfirmationEvent,
WebsocketTopicSubscriptionConfirmationEvent,
} from '../types/websockets/ws-confirmations';
export interface RestClientOptions {
/** Your API key */

View File

@@ -7,7 +7,7 @@ import {
WSExecutionEventV5,
WSOrderbookEventV5,
WSPositionEventV5,
} from '../types/websocket.events';
} from '../types/websockets/ws-events';
/**
* Type guard to detect a V5 orderbook event (delta & snapshots)