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

Method parse_market

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

Source from the content-addressed store, hash-verified

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

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