IPC removed, replaced by WS
This commit is contained in:
1 parent
ba4217fb24
commit
656c193511
503 files changed
+28128
-34498
No files matched your search
+41
-1
@@ -17,7 +17,7 @@ module.exports = class tidebit extends Exchange {
|
||||
'version': 'v2',
|
||||
'has': {
|
||||
'fetchDepositAddress': true,
|
||||
'CORS': true,
|
||||
'CORS': false,
|
||||
'fetchTickers': true,
|
||||
'fetchOHLCV': true,
|
||||
'withdraw': true,
|
||||
@@ -157,6 +157,9 @@ module.exports = class tidebit extends Exchange {
|
||||
'baseId': baseId,
|
||||
'quoteId': quoteId,
|
||||
'info': market,
|
||||
'active': undefined,
|
||||
'precision': this.precision,
|
||||
'limits': this.limits,
|
||||
});
|
||||
}
|
||||
return result;
|
||||
@@ -342,6 +345,41 @@ module.exports = class tidebit extends Exchange {
|
||||
}
|
||||
|
||||
parseOrder (order, market = undefined) {
|
||||
//
|
||||
// {
|
||||
// "id": 7, // 唯一的 Order ID
|
||||
// "side": "sell", // Buy/Sell 代表买单/卖单
|
||||
// "price": "3100.0", // 出价
|
||||
// "avg_price": "3101.2", // 平均成交价
|
||||
// "state": "wait", // 订单的当前状态 [wait,done,cancel]
|
||||
// // wait 表明订单正在市场上挂单
|
||||
// // 是一个active order
|
||||
// // 此时订单可能部分成交或者尚未成交
|
||||
// // done 代表订单已经完全成交
|
||||
// // cancel 代表订单已经被撤销
|
||||
// "market": "btccny", // 订单参与的交易市场
|
||||
// "created_at": "2014-04-18T02:02:33Z", // 下单时间 ISO8601格式
|
||||
// "volume": "100.0", // 购买/卖出数量
|
||||
// "remaining_volume": "89.8", // 还未成交的数量 remaining_volume 总是小于等于 volume
|
||||
// // 在订单完全成交时变成 0
|
||||
// "executed_volume": "10.2", // 已成交的数量
|
||||
// // volume = remaining_volume + executed_volume
|
||||
// "trades_count": 1, // 订单的成交数 整数值
|
||||
// // 未成交的订单为 0 有一笔成交的订单为 1
|
||||
// // 通过该字段可以判断订单是否处于部分成交状态
|
||||
// "trades": [ // 订单的详细成交记录 参见Trade
|
||||
// // 注意: 只有某些返回详细订单数据的 API 才会包含 Trade 数据
|
||||
// {
|
||||
// "id": 2,
|
||||
// "price": "3100.0",
|
||||
// "volume": "10.2",
|
||||
// "market": "btccny",
|
||||
// "created_at": "2014-04-18T02:04:49Z",
|
||||
// "side": "sell"
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
//
|
||||
let symbol = undefined;
|
||||
if (market !== undefined) {
|
||||
symbol = market['symbol'];
|
||||
@@ -366,6 +404,7 @@ module.exports = class tidebit extends Exchange {
|
||||
}
|
||||
return {
|
||||
'id': id,
|
||||
'clientOrderId': undefined,
|
||||
'timestamp': timestamp,
|
||||
'datetime': this.iso8601 (timestamp),
|
||||
'lastTradeTimestamp': undefined,
|
||||
@@ -381,6 +420,7 @@ module.exports = class tidebit extends Exchange {
|
||||
'trades': undefined,
|
||||
'fee': undefined,
|
||||
'info': order,
|
||||
'average': undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user