(order: Dict, market: Market = undefined)
| 1931 | } |
| 1932 | |
| 1933 | parseOrder (order: Dict, market: Market = undefined): Order { |
| 1934 | // |
| 1935 | // createOrder |
| 1936 | // { |
| 1937 | // "orderId": 60667653330, |
| 1938 | // "clientOrderId": 0, |
| 1939 | // "type": "LIMIT", |
| 1940 | // "price": 60, |
| 1941 | // "quantity": 0.1, |
| 1942 | // "amount": null, |
| 1943 | // "bidAskLevel": null, |
| 1944 | // "timestamp": 1751871779855 |
| 1945 | // } |
| 1946 | // |
| 1947 | // createOrder - algo |
| 1948 | // { |
| 1949 | // "orderId": "1578938", |
| 1950 | // "clientOrderId": "0", |
| 1951 | // "algoType": "STOP_LOSS", |
| 1952 | // "quantity": "0.1", |
| 1953 | // "timestamp": "1686149372216" |
| 1954 | // } |
| 1955 | // |
| 1956 | // fetchOrder |
| 1957 | // { |
| 1958 | // "orderId": 60780315704, |
| 1959 | // "clientOrderId": 0, |
| 1960 | // "symbol": "SPOT_LTC_USDT", |
| 1961 | // "orderTag": "default", |
| 1962 | // "side": "BUY", |
| 1963 | // "quantity": 0.1, |
| 1964 | // "amount": null, |
| 1965 | // "type": "LIMIT", |
| 1966 | // "status": "NEW", |
| 1967 | // "price": 60, |
| 1968 | // "executed": 0, |
| 1969 | // "visible": 0.1, |
| 1970 | // "averageExecutedPrice": 0, |
| 1971 | // "totalFee": 0, |
| 1972 | // "feeAsset": "LTC", |
| 1973 | // "totalRebate": 0, |
| 1974 | // "rebateAsset": "USDT", |
| 1975 | // "reduceOnly": false, |
| 1976 | // "createdTime": "1752049062.496", |
| 1977 | // "realizedPnl": null, |
| 1978 | // "positionSide": "BOTH", |
| 1979 | // "bidAskLevel": null |
| 1980 | // } |
| 1981 | // |
| 1982 | // fetchOrder - algo |
| 1983 | // { |
| 1984 | // "algoOrderId": 10399260, |
| 1985 | // "clientAlgoOrderId": 0, |
| 1986 | // "rootAlgoOrderId": 10399260, |
| 1987 | // "parentAlgoOrderId": 0, |
| 1988 | // "symbol": "SPOT_LTC_USDT", |
| 1989 | // "algoOrderTag": "default", |
| 1990 | // "algoType": "TAKE_PROFIT", |
no test coverage detected