MCPcopy Create free account
hub / github.com/ccxt/ccxt / parseMarket

Method parseMarket

js/src/xt.js:1126–1383  ·  view source on GitHub ↗
(market)

Source from the content-addressed store, hash-verified

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 // },

Callers 1

parseMarketsMethod · 0.95

Calls 11

safeStringMethod · 0.45
safeString2Method · 0.45
safeCurrencyCodeMethod · 0.45
safeValueMethod · 0.45
safeNumberMethod · 0.45
parseNumberMethod · 0.45
parsePrecisionMethod · 0.45
safeIntegerMethod · 0.45
yymmddMethod · 0.45
safeMarketStructureMethod · 0.45
iso8601Method · 0.45

Tested by

no test coverage detected