(self, order: dict, market: Market = None)
| 1101 | return self.filter_by_symbol_since_limit(sorted, symbol, since, limit) |
| 1102 | |
| 1103 | def parse_order(self, order: dict, market: Market = None) -> Order: |
| 1104 | # |
| 1105 | # { |
| 1106 | # "id": "1234", |
| 1107 | # "clientId": "1234", |
| 1108 | # "accountId": "12345", |
| 1109 | # "symbol": "BTC-USD", |
| 1110 | # "side": "SELL", |
| 1111 | # "price": "18000", |
| 1112 | # "limitFee": "100", |
| 1113 | # "fee": "100", |
| 1114 | # "triggerPrice": "1.2", |
| 1115 | # "trailingPercent": "0.12", |
| 1116 | # "size": "100", |
| 1117 | # "remainingSize": "100", |
| 1118 | # "type": "LIMIT", |
| 1119 | # "createdAt": 1647502440973, |
| 1120 | # "updatedTime": 1647502440973, |
| 1121 | # "expiresAt": 1647502440973, |
| 1122 | # "status": "PENDING", |
| 1123 | # "timeInForce": "GOOD_TIL_CANCEL", |
| 1124 | # "postOnly": False, |
| 1125 | # "reduceOnly": False, |
| 1126 | # "stopPnl": False, |
| 1127 | # "latestMatchFillPrice": "reason", |
| 1128 | # "cumMatchFillSize": "0.1", |
| 1129 | # "cumMatchFillValue": "1000", |
| 1130 | # "cumMatchFillFee": "1", |
| 1131 | # "cumSuccessFillSize": "0.1", |
| 1132 | # "cumSuccessFillValue": "1000", |
| 1133 | # "cumSuccessFillFee": "1", |
| 1134 | # "triggerPriceType": "INDEX", |
| 1135 | # "isOpenTpslOrder": True, |
| 1136 | # "isSetOpenTp": True, |
| 1137 | # "isSetOpenSl": False, |
| 1138 | # "openTpParam": { |
| 1139 | # "side": "SELL", |
| 1140 | # "price": "18000", |
| 1141 | # "limitFee": "100", |
| 1142 | # "clientOrderId": "111100", |
| 1143 | # "triggerPrice": "1.2", |
| 1144 | # "trailingPercent": "0.12", |
| 1145 | # "size": "100" |
| 1146 | # }, |
| 1147 | # "openSlParam": { |
| 1148 | # "side": "SELL", |
| 1149 | # "price": "18000", |
| 1150 | # "limitFee": "100", |
| 1151 | # "clientOrderId": "111100", |
| 1152 | # "triggerPrice": "1.2", |
| 1153 | # "trailingPercent": "0.12", |
| 1154 | # "size": "100" |
| 1155 | # } |
| 1156 | # } |
| 1157 | # |
| 1158 | timestamp = self.safe_integer(order, 'createdAt') |
| 1159 | orderId = self.safe_string(order, 'id') |
| 1160 | clientOrderId = self.safe_string(order, 'clientId') |
no test coverage detected