Bug Fixes
This commit is contained in:
1 parent
82bc086e92
commit
b1af6e078c
131 files changed
+8597
-1930
No files matched your search
+5
-1
@@ -295,7 +295,7 @@ module.exports = class yobit extends Exchange {
|
||||
return this.parseOrderBook (orderbook);
|
||||
}
|
||||
|
||||
async fetchOrderBooks (symbols = undefined, params = {}) {
|
||||
async fetchOrderBooks (symbols = undefined, limit = undefined, params = {}) {
|
||||
await this.loadMarkets ();
|
||||
let ids = undefined;
|
||||
if (symbols === undefined) {
|
||||
@@ -311,7 +311,11 @@ module.exports = class yobit extends Exchange {
|
||||
}
|
||||
const request = {
|
||||
'pair': ids,
|
||||
// 'ignore_invalid': true,
|
||||
};
|
||||
if (limit !== undefined) {
|
||||
request['limit'] = limit;
|
||||
}
|
||||
const response = await this.publicGetDepthPair (this.extend (request, params));
|
||||
const result = {};
|
||||
ids = Object.keys (response);
|
||||
|
||||
Reference in new issue
Block a user