@clonegod/ttd-core 2.0.91 → 2.0.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ws/ws_client.js +0 -1
- package/package.json +1 -1
- package/types/index.d.ts +2 -1
package/dist/ws/ws_client.js
CHANGED
|
@@ -24,7 +24,6 @@ class WebSocketClient {
|
|
|
24
24
|
this.isReconnecting = false;
|
|
25
25
|
this.url = url;
|
|
26
26
|
this.options = Object.assign({ reconnectInterval: 3000, rejectUnauthorized: false, keepAlive: false, keepAliveInterval: 30000 }, options);
|
|
27
|
-
(0, dist_1.log_info)(`WebSocketClient constructor, url: ${this.url}`, this.options);
|
|
28
27
|
}
|
|
29
28
|
connect() {
|
|
30
29
|
(0, dist_1.log_info)(`Connecting to ${this.url}`);
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -357,7 +357,8 @@ export interface OrderMessageType {
|
|
|
357
357
|
aToB: boolean // 交易方向,相对USDT/SOL/TRX等标准代币而言,买/卖
|
|
358
358
|
amount: string // 交易的币的数量
|
|
359
359
|
order_send_time: number // cex 发送下单消息的时间
|
|
360
|
-
price?:string
|
|
360
|
+
price?:string // cex 提供的下单参考价格
|
|
361
|
+
is_dex_maker: boolean // 新模式:DEX 主动下单,CEX侧 对冲
|
|
361
362
|
|
|
362
363
|
// 兼容运营操作
|
|
363
364
|
order_source?: string // 下单来源 - admin
|