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

Method fetch_markets

python/ccxt/async_support/bitget.py:1953–1972  ·  view source on GitHub ↗

retrieves data on all markets for bitget https://www.bitget.com/api-doc/spot/market/Get-Symbols https://www.bitget.com/api-doc/contract/market/Get-All-Symbols-Contracts https://www.bitget.com/api-doc/margin/common/support-currencies https://www.bitget.com/ap

(self, params={})

Source from the content-addressed store, hash-verified

1951 return self.safe_integer(data, 'serverTime')
1952
1953 async def fetch_markets(self, params={}) -> List[Market]:
1954 """
1955 retrieves data on all markets for bitget
1956
1957 https://www.bitget.com/api-doc/spot/market/Get-Symbols
1958 https://www.bitget.com/api-doc/contract/market/Get-All-Symbols-Contracts
1959 https://www.bitget.com/api-doc/margin/common/support-currencies
1960 https://www.bitget.com/api-doc/uta/public/Instruments
1961
1962 :param dict [params]: extra parameters specific to the exchange API endpoint
1963 :param boolean [params.uta]: set to True for the unified trading account(uta), defaults to False
1964 :returns dict[]: an array of objects representing market data
1965 """
1966 if self.options['adjustForTimeDifference']:
1967 await self.load_time_difference()
1968 uta = None
1969 uta, params = self.handle_option_and_params(params, 'fetchMarkets', 'uta', False)
1970 if uta:
1971 return await self.fetch_uta_markets(params)
1972 return await self.fetch_default_markets(params)
1973
1974 async def fetch_default_markets(self, params) -> List[Market]:
1975 types = None

Callers

nothing calls this directly

Calls 4

fetch_uta_marketsMethod · 0.95
fetch_default_marketsMethod · 0.95
load_time_differenceMethod · 0.45

Tested by

no test coverage detected