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

Method fetch_markets

python/ccxt/bitget.py:1952–1971  ·  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

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