fetch the set leverage for all contract markets https://www.bitmex.com/api/explorer/#not /Position/Position_get :param str[] [symbols]: a list of unified market symbols :param dict [params]: extra parameters specific to the exchange API endpoint :returns di
(self, symbols: Strings = None, params={})
| 2276 | return response |
| 2277 | |
| 2278 | def fetch_leverages(self, symbols: Strings = None, params={}) -> Leverages: |
| 2279 | """ |
| 2280 | fetch the set leverage for all contract markets |
| 2281 | |
| 2282 | https://www.bitmex.com/api/explorer/#not /Position/Position_get |
| 2283 | |
| 2284 | :param str[] [symbols]: a list of unified market symbols |
| 2285 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 2286 | :returns dict: a list of `leverage structures <https://docs.ccxt.com/?id=leverage-structure>` |
| 2287 | """ |
| 2288 | self.load_markets() |
| 2289 | leverages = self.fetch_positions(symbols, params) |
| 2290 | return self.parse_leverages(leverages, symbols, 'symbol') |
| 2291 | |
| 2292 | def parse_leverage(self, leverage: dict, market: Market = None) -> Leverage: |
| 2293 | marketId = self.safe_string(leverage, 'symbol') |
nothing calls this directly
no test coverage detected