IPC removed, replaced by WS

This commit is contained in:
Luis Fernando Molina committed 2020-04-06 08:33:07 +02:00
1 parent ba4217fb24
commit 656c193511
503 files changed
+28128 -34498

No files matched your search

+9 -2
View File
@@ -52,7 +52,7 @@ module.exports = class bitmax extends Exchange {
'urls': {
'logo': 'https://user-images.githubusercontent.com/1294454/66820319-19710880-ef49-11e9-8fbe-16be62a11992.jpg',
'api': 'https://bitmax.io',
'test': 'https://bitmax-test.io/api',
'test': 'https://bitmax-test.io',
'www': 'https://bitmax.io',
'doc': [
'https://github.com/bitmax-exchange/api-doc/blob/master/bitmax-api-doc-v1.2.md',
@@ -121,12 +121,17 @@ module.exports = class bitmax extends Exchange {
'exact': {
'2100': AuthenticationError, // {"code":2100,"message":"ApiKeyFailure"}
'5002': BadSymbol, // {"code":5002,"message":"Invalid Symbol"}
'6001': BadSymbol, // {"code":6001,"message":"Trading is disabled on symbol."}
'6010': InsufficientFunds, // {'code': 6010, 'message': 'Not enough balance.'}
'60060': InvalidOrder, // { 'code': 60060, 'message': 'The order is already filled or canceled.' }
'600503': InvalidOrder, // {"code":600503,"message":"Notional is too small."}
},
'broad': {},
},
'commonCurrencies': {
'BTCBEAR': 'BEAR',
'BTCBULL': 'BULL',
},
});
}
@@ -722,9 +727,11 @@ module.exports = class bitmax extends Exchange {
'currency': this.safeString (order, 'feeAsset'),
};
const average = this.safeFloat (order, 'avgPrice');
const clientOrderId = id;
return {
'info': order,
'id': id,
'clientOrderId': clientOrderId,
'timestamp': timestamp,
'datetime': this.iso8601 (timestamp),
'lastTradeTimestamp': undefined,
@@ -1145,7 +1152,7 @@ module.exports = class bitmax extends Exchange {
headers['x-auth-coid'] = coid;
}
const signature = this.hmac (this.encode (auth), this.encode (this.secret), 'sha256', 'base64');
headers['x-auth-signature'] = signature;
headers['x-auth-signature'] = this.decode (signature);
if (method === 'GET') {
if (Object.keys (query).length) {
url += '?' + this.urlencode (query);