(market)
| 1124 | return result; |
| 1125 | } |
| 1126 | parseMarket(market) { |
| 1127 | // |
| 1128 | // spot |
| 1129 | // |
| 1130 | // { |
| 1131 | // "id": 640, |
| 1132 | // "symbol": "xt_usdt", |
| 1133 | // "state": "ONLINE", |
| 1134 | // "stateTime": 1554048000000, |
| 1135 | // "tradingEnabled": true, |
| 1136 | // "openapiEnabled": true, |
| 1137 | // "nextStateTime": null, |
| 1138 | // "nextState": null, |
| 1139 | // "depthMergePrecision": 5, |
| 1140 | // "baseCurrency": "xt", |
| 1141 | // "baseCurrencyPrecision": 8, |
| 1142 | // "baseCurrencyId": 128, |
| 1143 | // "quoteCurrency": "usdt", |
| 1144 | // "quoteCurrencyPrecision": 8, |
| 1145 | // "quoteCurrencyId": 11, |
| 1146 | // "pricePrecision": 4, |
| 1147 | // "quantityPrecision": 2, |
| 1148 | // "orderTypes": ["LIMIT","MARKET"], |
| 1149 | // "timeInForces": ["GTC","IOC"], |
| 1150 | // "displayWeight": 10002, |
| 1151 | // "displayLevel": "FULL", |
| 1152 | // "plates": [], |
| 1153 | // "filters":[ |
| 1154 | // { |
| 1155 | // "filter": "QUOTE_QTY", |
| 1156 | // "min": "1" |
| 1157 | // }, |
| 1158 | // { |
| 1159 | // "filter": "PRICE", |
| 1160 | // "min": null, |
| 1161 | // "max": null, |
| 1162 | // "tickSize": null |
| 1163 | // }, |
| 1164 | // { |
| 1165 | // "filter": "QUANTITY", |
| 1166 | // "min": null, |
| 1167 | // "max": null, |
| 1168 | // "tickSize": null |
| 1169 | // }, |
| 1170 | // { |
| 1171 | // "filter": "PROTECTION_LIMIT", |
| 1172 | // "buyMaxDeviation": "0.8", |
| 1173 | // "sellMaxDeviation": "4" |
| 1174 | // }, |
| 1175 | // { |
| 1176 | // "filter": "PROTECTION_MARKET", |
| 1177 | // "maxDeviation": "0.02" |
| 1178 | // }, |
| 1179 | // { |
| 1180 | // "filter": "PROTECTION_ONLINE", |
| 1181 | // "durationSeconds": "300", |
| 1182 | // "maxPriceMultiple": "5" |
| 1183 | // }, |
no test coverage detected