| 77 | timeout_on_exit = 250 # needed for: https://github.com/ccxt/ccxt/pull/23470 |
| 78 | |
| 79 | def __init__(self, config: ConstructorArgs = {}): |
| 80 | if 'asyncio_loop' in config: |
| 81 | self.asyncio_loop = config['asyncio_loop'] |
| 82 | self.aiohttp_trust_env = config.get('aiohttp_trust_env', self.aiohttp_trust_env) |
| 83 | self.verify = config.get('verify', self.verify) |
| 84 | self.own_session = 'session' not in config |
| 85 | self.cafile = config.get('cafile', certifi.where()) |
| 86 | self.throttler = None |
| 87 | super(Exchange, self).__init__(config) |
| 88 | self.markets_loading = None |
| 89 | self.reloading_markets = False |
| 90 | |
| 91 | async def load_lighter_library(self, path, chainId, privateKey, apiKeyIndex, accountIndex, createClient): |
| 92 | return self.load_lighter_library_helper(path, chainId, privateKey, apiKeyIndex, accountIndex, createClient) |