diff --git a/js/bybit.js b/js/bybit.js index 5c150582e50c..534ad0153a97 100644 --- a/js/bybit.js +++ b/js/bybit.js @@ -1653,7 +1653,10 @@ module.exports = class bybit extends Exchange { const timestamp = this.parse8601 (this.safeString (order, 'created_at')); const id = this.safeString2 (order, 'order_id', 'stop_order_id'); const type = this.safeStringLower (order, 'order_type'); - const price = this.safeString (order, 'price'); + let price = undefined; + if (type !== 'market') { + price = this.safeString (order, 'price'); + } const average = this.safeString (order, 'average_price'); const amount = this.safeString (order, 'qty'); const cost = this.safeString (order, 'cum_exec_value');