(symbol, limit = undefined, params = {})
| 2715 | throw new NotSupported(this.id + ' fetchMarginModes () is not supported yet'); |
| 2716 | } |
| 2717 | async fetchRestOrderBookSafe(symbol, limit = undefined, params = {}) { |
| 2718 | const fetchSnapshotMaxRetries = this.handleOption('watchOrderBook', 'maxRetries', 3); |
| 2719 | for (let i = 0; i < fetchSnapshotMaxRetries; i++) { |
| 2720 | try { |
| 2721 | const orderBook = await this.fetchOrderBook(symbol, limit, params); |
| 2722 | return orderBook; |
| 2723 | } |
| 2724 | catch (e) { |
| 2725 | if ((i + 1) === fetchSnapshotMaxRetries) { |
| 2726 | throw e; |
| 2727 | } |
| 2728 | } |
| 2729 | } |
| 2730 | return undefined; |
| 2731 | } |
| 2732 | async watchOrderBook(symbol, limit = undefined, params = {}) { |
| 2733 | throw new NotSupported(this.id + ' watchOrderBook() is not supported yet'); |
| 2734 | } |
no test coverage detected