Viewing File: /home/ubuntu/efiexchange-node-base/src/controllers/exchange/functions/disconnectProviders.ts

import * as okx from '../providers/okx';
import * as binance from '../providers/binance';
import * as hercle from '../providers/hercle';

export const disconnectAllProviders = (id: string) => {
  okx.disconnectAll();
  binance.disconnectAll();
  hercle.disconnectAll();
};

export const unsubscribeAllProviders = async (user_id: string) => {
  await okx.unsubscribeAll(user_id);
  await binance.unsubscribeAll(user_id);
  await hercle.unsubscribeAll(user_id);
};
Back to Directory File Manager