Bug Fixes
This commit is contained in:
1 parent
82bc086e92
commit
b1af6e078c
131 files changed
+8597
-1930
No files matched your search
+24
-2
@@ -28,7 +28,7 @@ module.exports = class bw extends Exchange {
|
||||
'editOrder': false,
|
||||
'fetchBalance': true,
|
||||
'fetchBidsAsks': false,
|
||||
'fetchClosedOrders': false,
|
||||
'fetchClosedOrders': true,
|
||||
'fetchCurrencies': true,
|
||||
'fetchDepositAddress': true,
|
||||
'fetchDeposits': true,
|
||||
@@ -119,6 +119,7 @@ module.exports = class bw extends Exchange {
|
||||
'exchange/entrust/controller/website/EntrustController/getUserEntrustList',
|
||||
'exchange/fund/controller/website/fundwebsitecontroller/getwithdrawaddress',
|
||||
'exchange/fund/controller/website/fundwebsitecontroller/getpayoutcoinrecord',
|
||||
'exchange/entrust/controller/website/EntrustController/getUserEntrustList',
|
||||
// the docs say that the following URLs are HTTP POST
|
||||
// in the docs header and HTTP GET in the docs body
|
||||
// the docs contradict themselves, a typo most likely
|
||||
@@ -861,6 +862,27 @@ module.exports = class bw extends Exchange {
|
||||
return this.parseOrders (orders, market, since, limit);
|
||||
}
|
||||
|
||||
async fetchClosedOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
||||
if (symbol === undefined) {
|
||||
throw new ArgumentsRequired (this.id + ' fetchClosedOrders() requires a symbol argument');
|
||||
}
|
||||
await this.loadMarkets ();
|
||||
const market = this.market (symbol);
|
||||
const request = {
|
||||
'marketId': market['id'],
|
||||
};
|
||||
if (limit !== undefined) {
|
||||
request['pageSize'] = limit; // default limit is 20
|
||||
}
|
||||
if (since !== undefined) {
|
||||
request['startDateTime'] = since;
|
||||
}
|
||||
const response = await this.privateGetExchangeEntrustControllerWebsiteEntrustControllerGetUserEntrustList (this.extend (request, params));
|
||||
const data = this.safeValue (response, 'datas', {});
|
||||
const orders = this.safeValue (data, 'entrustList', []);
|
||||
return this.parseOrders (orders, market, since, limit);
|
||||
}
|
||||
|
||||
async fetchOrders (symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
||||
if (symbol === undefined) {
|
||||
throw new ArgumentsRequired (this.id + ' fetchOpenOrders() requires a symbol argument');
|
||||
@@ -932,7 +954,7 @@ module.exports = class bw extends Exchange {
|
||||
const keys = Object.keys (sortedParams);
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
const key = keys[i];
|
||||
content += key + sortedParams[key];
|
||||
content += key + sortedParams[key].toString ();
|
||||
}
|
||||
} else {
|
||||
content = body;
|
||||
|
||||
Reference in new issue
Block a user