| | |
| | | }, |
| | | fetchOrderListCur(symbol) { |
| | | if (!this.userInfo || !this.userInfo.token) return |
| | | symbol = '' |
| | | const params = { symbol, type: 'orders', page_no: 1 } |
| | | _contractApplyOrderList(params).then(data => { this.orderCur = data || [] }) |
| | | this.clearTimer() |
| | |
| | | }, |
| | | fetchOrderListHold(symbol) { |
| | | if (!this.userInfo || !this.userInfo.token) return |
| | | symbol = '' |
| | | |
| | | const symbolType = this.type || 'cryptos' |
| | | const obj = { symbol, type: 'orders', page_no: 1, symbolType } |
| | | contractOrder(obj).then(data => { |
| | |
| | | fetchFutrueHoldList(symbol) { |
| | | if (!this.userInfo || !this.userInfo.token) return |
| | | const symbolType = this.type || 'cryptos' |
| | | symbol = '' |
| | | _futrueOrderList(symbol, 'orders', 1, symbolType).then(data => { |
| | | this.futrueHold = (data || []).sort(this.sortData) |
| | | }) |
| | | this.clearTimer() |
| | | this.timer = setInterval(() => { |
| | | symbol = '' |
| | | _futrueOrderList(symbol, 'orders', 1, symbolType).then(data => { |
| | | this.futrueHold = (data || []).sort(this.sortData) |
| | | }) |
| | |
| | | }, |
| | | fetchFutrueHistory(symbol) { |
| | | const symbolType = this.type || 'cryptos' |
| | | symbol = '' |
| | | _futrueOrderList(symbol, 'hisorders', 1, symbolType).then(data => { |
| | | this.futrueHistroy = data || [] |
| | | }) |