(self, params={})
| 1005 | return self.array_concat(spotMarkets, swapAndFutureMarkets) |
| 1006 | |
| 1007 | async def fetch_spot_markets(self, params={}): |
| 1008 | response = await self.publicSpotGetSymbol(params) |
| 1009 | # |
| 1010 | # { |
| 1011 | # "rc": 0, |
| 1012 | # "mc": "SUCCESS", |
| 1013 | # "ma": [], |
| 1014 | # "result": { |
| 1015 | # "time": 1677881368812, |
| 1016 | # "version": "abb101d1543e54bee40687b135411ba0", |
| 1017 | # "symbols": [ |
| 1018 | # { |
| 1019 | # "id": 640, |
| 1020 | # "symbol": "xt_usdt", |
| 1021 | # "state": "ONLINE", |
| 1022 | # "stateTime": 1554048000000, |
| 1023 | # "tradingEnabled": True, |
| 1024 | # "openapiEnabled": True, |
| 1025 | # "nextStateTime": null, |
| 1026 | # "nextState": null, |
| 1027 | # "depthMergePrecision": 5, |
| 1028 | # "baseCurrency": "xt", |
| 1029 | # "baseCurrencyPrecision": 8, |
| 1030 | # "baseCurrencyId": 128, |
| 1031 | # "quoteCurrency": "usdt", |
| 1032 | # "quoteCurrencyPrecision": 8, |
| 1033 | # "quoteCurrencyId": 11, |
| 1034 | # "pricePrecision": 4, |
| 1035 | # "quantityPrecision": 2, |
| 1036 | # "orderTypes": ["LIMIT","MARKET"], |
| 1037 | # "timeInForces": ["GTC","IOC"], |
| 1038 | # "displayWeight": 10002, |
| 1039 | # "displayLevel": "FULL", |
| 1040 | # "plates": [], |
| 1041 | # "filters":[ |
| 1042 | # { |
| 1043 | # "filter": "QUOTE_QTY", |
| 1044 | # "min": "1" |
| 1045 | # }, |
| 1046 | # { |
| 1047 | # "filter": "PROTECTION_LIMIT", |
| 1048 | # "buyMaxDeviation": "0.8", |
| 1049 | # "sellMaxDeviation": "4" |
| 1050 | # }, |
| 1051 | # { |
| 1052 | # "filter": "PROTECTION_MARKET", |
| 1053 | # "maxDeviation": "0.02" |
| 1054 | # } |
| 1055 | # ] |
| 1056 | # }, |
| 1057 | # ] |
| 1058 | # } |
| 1059 | # } |
| 1060 | # |
| 1061 | data = self.safe_value(response, 'result', {}) |
| 1062 | symbols = self.safe_value(data, 'symbols', []) |
| 1063 | return self.parse_markets(symbols) |
| 1064 |
no test coverage detected