(order, market = undefined)
| 732 | } |
| 733 | |
| 734 | parseWsOrder (order, market = undefined) { |
| 735 | // |
| 736 | // { |
| 737 | // "symbol": "PERP_BTC_USDT", |
| 738 | // "clientOrderId": 0, |
| 739 | // "orderId": 52952826, |
| 740 | // "type": "LIMIT", |
| 741 | // "side": "SELL", |
| 742 | // "quantity": 0.01, |
| 743 | // "price": 22000, |
| 744 | // "tradeId": 0, |
| 745 | // "executedPrice": 0, |
| 746 | // "executedQuantity": 0, |
| 747 | // "fee": 0, |
| 748 | // "feeAsset": "USDT", |
| 749 | // "totalExecutedQuantity": 0, |
| 750 | // "status": "NEW", |
| 751 | // "reason": '', |
| 752 | // "orderTag": "default", |
| 753 | // "totalFee": 0, |
| 754 | // "visible": 0.01, |
| 755 | // "timestamp": 1657515556798, |
| 756 | // "reduceOnly": false, |
| 757 | // "maker": false |
| 758 | // } |
| 759 | // algo order |
| 760 | // { |
| 761 | // "symbol":"PERP_MATIC_USDC", |
| 762 | // "rootAlgoOrderId":123, |
| 763 | // "parentAlgoOrderId":123, |
| 764 | // "algoOrderId":123, |
| 765 | // "orderTag":"some tags", |
| 766 | // "algoType": "STOP", |
| 767 | // "clientOrderId":"client_id", |
| 768 | // "type":"LIMIT", |
| 769 | // "side":"BUY", |
| 770 | // "quantity":7029.0, |
| 771 | // "price":0.7699, |
| 772 | // "tradeId":0, |
| 773 | // "triggerTradePrice":0, |
| 774 | // "triggerTime":1234567, |
| 775 | // "triggered": false, |
| 776 | // "activated": false, |
| 777 | // "executedPrice":0.0, |
| 778 | // "executedQuantity":0.0, |
| 779 | // "fee":0.0, |
| 780 | // "feeAsset":"USDC", |
| 781 | // "totalExecutedQuantity":0.0, |
| 782 | // "averageExecutedQuantity":0.0, |
| 783 | // "avgPrice":0, |
| 784 | // "triggerPrice":0.0, |
| 785 | // "triggerPriceType":"STOP", |
| 786 | // "isActivated": false, |
| 787 | // "status":"NEW", |
| 788 | // "rootAlgoStatus": "FILLED", |
| 789 | // "algoStatus": "FILLED", |
| 790 | // "reason":"", |
| 791 | // "totalFee":0.0, |
no test coverage detected