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

Method fetch_uta_markets

python/ccxt/async_support/bitget.py:2216–2452  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

2214 return result
2215
2216 async def fetch_uta_markets(self, params) -> List[Market]:
2217 subTypes = ['SPOT', 'USDT-FUTURES', 'COIN-FUTURES', 'USDC-FUTURES']
2218 promises = []
2219 for i in range(0, len(subTypes)):
2220 req = self.extend(params, {
2221 'category': subTypes[i],
2222 })
2223 promises.append(self.publicUtaGetV3MarketInstruments(req))
2224 results = await asyncio.gather(*promises)
2225 markets = []
2226 for i in range(0, len(results)):
2227 res = self.safe_dict(results, i)
2228 data = self.safe_list(res, 'data', [])
2229 markets = self.array_concat(markets, data)
2230 #
2231 # spot uta
2232 #
2233 # {
2234 # "symbol": "BTCUSDT",
2235 # "category": "SPOT",
2236 # "baseCoin": "BTC",
2237 # "quoteCoin": "USDT",
2238 # "buyLimitPriceRatio": "0.05",
2239 # "sellLimitPriceRatio": "0.05",
2240 # "minOrderQty": "0.000001",
2241 # "maxOrderQty": "0",
2242 # "pricePrecision": "2",
2243 # "quantityPrecision": "6",
2244 # "quotePrecision": "8",
2245 # "minOrderAmount": "1",
2246 # "maxSymbolOrderNum": "400",
2247 # "maxProductOrderNum": "400",
2248 # "status": "online",
2249 # "maintainTime": ""
2250 # }
2251 #
2252 # margin uta
2253 #
2254 # {
2255 # "symbol": "BTCUSDC",
2256 # "category": "MARGIN",
2257 # "baseCoin": "BTC",
2258 # "quoteCoin": "USDC",
2259 # "buyLimitPriceRatio": "0.05",
2260 # "sellLimitPriceRatio": "0.05",
2261 # "minOrderQty": "0.00001",
2262 # "maxOrderQty": "0",
2263 # "pricePrecision": "2",
2264 # "quantityPrecision": "5",
2265 # "quotePrecision": "7",
2266 # "minOrderAmount": "1",
2267 # "maxSymbolOrderNum": "400",
2268 # "maxProductOrderNum": "400",
2269 # "status": "online",
2270 # "maintainTime": "",
2271 # "isIsolatedBaseBorrowable": "NO",
2272 # "isIsolatedQuotedBorrowable": "NO",
2273 # "warningRiskRatio": "0.8",

Callers 1

fetch_marketsMethod · 0.95

Calls 15

safe_dictMethod · 0.80
safe_listMethod · 0.80
array_concatMethod · 0.80
safe_stringMethod · 0.80
safe_integerMethod · 0.80
splitMethod · 0.80
parse_numberMethod · 0.80
parse_precisionMethod · 0.80
safe_market_structureMethod · 0.80
safe_numberMethod · 0.80
rangeFunction · 0.50

Tested by

no test coverage detected