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