@debate300/bithumb-pro
Version:
A real-time cryptocurrency price tracker for Bithumb (Pro).
24 lines (23 loc) • 761 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Binance = void 0;
const common_1 = require("../common");
const chalk_1 = __importDefault(require("chalk"));
class Binance extends common_1.Exchange {
constructor() {
super(...arguments);
this.name = "Binance";
}
async connect(appConfig) {
// 바이낸스 WebSocket 연결 로직 구현
this.redrawCallback();
}
disconnect() {
this.realTimeData.clear();
console.log(chalk_1.default.yellow("Binance 연결이 해제되었습니다."));
}
}
exports.Binance = Binance;