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={})
| 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 |
nothing calls this directly
no test coverage detected