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

Method parse_market

python/ccxt/async_support/xt.py:1138–1381  ·  view source on GitHub ↗
(self, market: dict)

Source from the content-addressed store, hash-verified

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

Callers 1

parse_marketsMethod · 0.95

Calls 12

safe_stringMethod · 0.80
safe_string_2Method · 0.80
safe_valueMethod · 0.80
safe_numberMethod · 0.80
parse_numberMethod · 0.80
parse_precisionMethod · 0.80
safe_integerMethod · 0.80
safe_market_structureMethod · 0.80
rangeFunction · 0.50
safe_currency_codeMethod · 0.45
yymmddMethod · 0.45
iso8601Method · 0.45

Tested by

no test coverage detected