(self, market: dict)
| 1136 | return result |
| 1137 | |
| 1138 | def parse_market(self, market: dict) -> Market: |
| 1139 | # |
| 1140 | # spot |
| 1141 | # |
| 1142 | # { |
| 1143 | # "id": 640, |
| 1144 | # "symbol": "xt_usdt", |
| 1145 | # "state": "ONLINE", |
| 1146 | # "stateTime": 1554048000000, |
| 1147 | # "tradingEnabled": True, |
| 1148 | # "openapiEnabled": True, |
| 1149 | # "nextStateTime": null, |
| 1150 | # "nextState": null, |
| 1151 | # "depthMergePrecision": 5, |
| 1152 | # "baseCurrency": "xt", |
| 1153 | # "baseCurrencyPrecision": 8, |
| 1154 | # "baseCurrencyId": 128, |
| 1155 | # "quoteCurrency": "usdt", |
| 1156 | # "quoteCurrencyPrecision": 8, |
| 1157 | # "quoteCurrencyId": 11, |
| 1158 | # "pricePrecision": 4, |
| 1159 | # "quantityPrecision": 2, |
| 1160 | # "orderTypes": ["LIMIT","MARKET"], |
| 1161 | # "timeInForces": ["GTC","IOC"], |
| 1162 | # "displayWeight": 10002, |
| 1163 | # "displayLevel": "FULL", |
| 1164 | # "plates": [], |
| 1165 | # "filters":[ |
| 1166 | # { |
| 1167 | # "filter": "QUOTE_QTY", |
| 1168 | # "min": "1" |
| 1169 | # }, |
| 1170 | # { |
| 1171 | # "filter": "PRICE", |
| 1172 | # "min": null, |
| 1173 | # "max": null, |
| 1174 | # "tickSize": null |
| 1175 | # }, |
| 1176 | # { |
| 1177 | # "filter": "QUANTITY", |
| 1178 | # "min": null, |
| 1179 | # "max": null, |
| 1180 | # "tickSize": null |
| 1181 | # }, |
| 1182 | # { |
| 1183 | # "filter": "PROTECTION_LIMIT", |
| 1184 | # "buyMaxDeviation": "0.8", |
| 1185 | # "sellMaxDeviation": "4" |
| 1186 | # }, |
| 1187 | # { |
| 1188 | # "filter": "PROTECTION_MARKET", |
| 1189 | # "maxDeviation": "0.02" |
| 1190 | # }, |
| 1191 | # { |
| 1192 | # "filter": "PROTECTION_ONLINE", |
| 1193 | # "durationSeconds": "300", |
| 1194 | # "maxPriceMultiple": "5" |
| 1195 | # }, |
no test coverage detected