(order: Dict, market: Market = undefined)
| 1450 | } |
| 1451 | |
| 1452 | parseOrder (order: Dict, market: Market = undefined): Order { |
| 1453 | // |
| 1454 | // createOrder |
| 1455 | // |
| 1456 | // { |
| 1457 | // "id": "16e607e2b83a8bXHbAwwoqDo55c166fa", |
| 1458 | // "orderId": "16e85b4d9b9a8bXHbAwwoqDoc3d66830", |
| 1459 | // "orderType": "Market", |
| 1460 | // "symbol": "BTC/USDT", |
| 1461 | // "timestamp": 1573576916201 |
| 1462 | // } |
| 1463 | // |
| 1464 | // & linear (fetchClosedOrders) |
| 1465 | // |
| 1466 | // { |
| 1467 | // "ac": "FUTURES", |
| 1468 | // "accountId": "fut2ODPhGiY71Pl4vtXnOZ00ssgD7QGn", |
| 1469 | // "time": 1640819389454, |
| 1470 | // "orderId": "a17e0874ecbdU0711043490bbtcpDU5X", |
| 1471 | // "seqNum": -1, |
| 1472 | // "orderType": "Limit", |
| 1473 | // "execInst": "NULL_VAL", // NULL_VAL, ReduceOnly , ... |
| 1474 | // "side": "Buy", |
| 1475 | // "symbol": "BTC-PERP", |
| 1476 | // "price": "30000", |
| 1477 | // "orderQty": "0.002", |
| 1478 | // "stopPrice": "0", |
| 1479 | // "stopBy": "ref-px", |
| 1480 | // "status": "Ack", |
| 1481 | // "lastExecTime": 1640819389454, |
| 1482 | // "lastQty": "0", |
| 1483 | // "lastPx": "0", |
| 1484 | // "avgFilledPx": "0", |
| 1485 | // "cumFilledQty": "0", |
| 1486 | // "fee": "0", |
| 1487 | // "cumFee": "0", |
| 1488 | // "feeAsset": "", |
| 1489 | // "errorCode": "", |
| 1490 | // "posStopLossPrice": "0", |
| 1491 | // "posStopLossTrigger": "market", |
| 1492 | // "posTakeProfitPrice": "0", |
| 1493 | // "posTakeProfitTrigger": "market", |
| 1494 | // "liquidityInd": "n" |
| 1495 | // } |
| 1496 | // |
| 1497 | // fetchOrder, fetchOpenOrders, fetchClosedOrders |
| 1498 | // |
| 1499 | // { |
| 1500 | // "symbol": "BTC/USDT", |
| 1501 | // "price": "8131.22", |
| 1502 | // "orderQty": "0.00082", |
| 1503 | // "orderType": "Market", |
| 1504 | // "avgPx": "7392.02", |
| 1505 | // "cumFee": "0.005152238", |
| 1506 | // "cumFilledQty": "0.00082", |
| 1507 | // "errorCode": "", |
| 1508 | // "feeAsset": "USDT", |
| 1509 | // "lastExecTime": 1575953151764, |
no test coverage detected