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

Method fetch_markets

python/ccxt/bitmart.py:1189–1204  ·  view source on GitHub ↗

retrieves data on all markets for bitmart https://developer-pro.bitmart.com/en/spot/#get-trading-pair-details-v1 https://developer-pro.bitmart.com/en/futuresv2/#get-contract-details :param dict [params]: extra parameters specific to the exchange API endpoint

(self, params={})

Source from the content-addressed store, hash-verified

1187 return result
1188
1189 def fetch_markets(self, params={}) -> List[Market]:
1190 """
1191 retrieves data on all markets for bitmart
1192
1193 https://developer-pro.bitmart.com/en/spot/#get-trading-pair-details-v1
1194 https://developer-pro.bitmart.com/en/futuresv2/#get-contract-details
1195
1196 :param dict [params]: extra parameters specific to the exchange API endpoint
1197 :returns dict[]: an array of objects representing market data
1198 """
1199 if self.options['adjustForTimeDifference']:
1200 self.load_time_difference()
1201 spotPromise = self.fetch_spot_markets(params)
1202 contractPromise = self.fetch_contract_markets(params)
1203 spot, contract = [spotPromise, contractPromise]
1204 return self.array_concat(spot, contract)
1205
1206 def fetch_currencies(self, params={}) -> Currencies:
1207 """

Callers

nothing calls this directly

Calls 4

fetch_spot_marketsMethod · 0.95
array_concatMethod · 0.80
load_time_differenceMethod · 0.45

Tested by

no test coverage detected