Skip to content

Commit 4199e9f

Browse files
committed
minor edits in bitflyer error messaging fix ccxt#2125
1 parent a726451 commit 4199e9f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

js/bitflyer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ module.exports = class bitflyer extends Exchange {
298298

299299
async fetchOrders (symbol = undefined, since = undefined, limit = 100, params = {}) {
300300
if (typeof symbol === 'undefined')
301-
throw new ExchangeError (this.id + ' cancelOrder() requires a symbol argument');
301+
throw new ExchangeError (this.id + ' fetchOrders() requires a symbol argument');
302302
await this.loadMarkets ();
303303
let request = {
304304
'product_code': this.marketId (symbol),
@@ -313,7 +313,7 @@ module.exports = class bitflyer extends Exchange {
313313

314314
async fetchOrder (id, symbol = undefined, params = {}) {
315315
if (typeof symbol === 'undefined')
316-
throw new ExchangeError (this.id + ' cancelOrder() requires a symbol argument');
316+
throw new ExchangeError (this.id + ' fetchOrder() requires a symbol argument');
317317
let orders = await this.fetchOrders (symbol);
318318
let ordersById = this.indexBy (orders, 'id');
319319
if (id in ordersById)

0 commit comments

Comments
 (0)