chore(): refactor ws events into organised dir
This commit is contained in:
@@ -38,7 +38,7 @@ interface WsStoredState {
|
||||
subscribedTopics: WsTopicList;
|
||||
}
|
||||
|
||||
export default class WsStore {
|
||||
export class WsStore {
|
||||
private wsState: Record<string, WsStoredState>;
|
||||
|
||||
private logger: typeof DefaultLogger;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user