(order, market: Market = undefined)
| 1765 | } |
| 1766 | |
| 1767 | parseWsOrder (order, market: Market = undefined) { |
| 1768 | // |
| 1769 | // spot |
| 1770 | // |
| 1771 | // { |
| 1772 | // instId: 'EOSUSDT', |
| 1773 | // orderId: '1171779081105780739', |
| 1774 | // price: '0.81075', // limit price, field not present for market orders |
| 1775 | // clientOid: 'a2330139-1d04-4d78-98be-07de3cfd1055', |
| 1776 | // notional: '5.675250', // this is not cost! but notional |
| 1777 | // newSize: '7.0000', // this is not cost! quanity (for limit order or market sell) or cost (for market buy order) |
| 1778 | // size: '5.6752', // this is not cost, neither quanity, but notional! this field for "spot" can be ignored at all |
| 1779 | // // Note: for limit order (even filled) we don't have cost value in response, only in market order |
| 1780 | // orderType: 'limit', // limit, market |
| 1781 | // force: 'gtc', |
| 1782 | // side: 'buy', |
| 1783 | // accBaseVolume: '0.0000', // in case of 'filled', this would be set (for limit orders, this is the only indicator of the amount filled) |
| 1784 | // priceAvg: '0.00000', // in case of 'filled', this would be set |
| 1785 | // status: 'live', // live, filled, partially_filled |
| 1786 | // cTime: '1715099824215', |
| 1787 | // uTime: '1715099824215', |
| 1788 | // feeDetail: [], |
| 1789 | // enterPointSource: 'API' |
| 1790 | // #### trigger order has these additional fields: #### |
| 1791 | // "triggerPrice": "35100", |
| 1792 | // "price": "35100", // this is same as trigger price |
| 1793 | // "executePrice": "35123", // this is limit price |
| 1794 | // "triggerType": "fill_price", |
| 1795 | // "planType": "amount", |
| 1796 | // #### in case order had a partial fill: #### |
| 1797 | // fillPrice: '35123', |
| 1798 | // tradeId: '1171775539946528779', |
| 1799 | // baseVolume: '7', // field present in market order |
| 1800 | // fillTime: '1715098979937', |
| 1801 | // fillFee: '-0.0069987', |
| 1802 | // fillFeeCoin: 'BTC', |
| 1803 | // tradeScope: 'T', |
| 1804 | // } |
| 1805 | // |
| 1806 | // contract |
| 1807 | // |
| 1808 | // { |
| 1809 | // accBaseVolume: '0', // total amount filled during lifetime for order |
| 1810 | // cTime: '1715065875539', |
| 1811 | // clientOid: '1171636690041344003', |
| 1812 | // enterPointSource: 'API', |
| 1813 | // feeDetail: [ { |
| 1814 | // "feeCoin": "USDT", |
| 1815 | // "fee": "-0.162003" |
| 1816 | // } ], |
| 1817 | // force: 'gtc', |
| 1818 | // instId: 'SEOSSUSDT', |
| 1819 | // leverage: '10', |
| 1820 | // marginCoin: 'USDT', |
| 1821 | // marginMode: 'crossed', |
| 1822 | // notionalUsd: '10.4468', |
| 1823 | // orderId: '1171636690028761089', |
| 1824 | // orderType: 'market', |
no test coverage detected