def __init__(self, user: str, config: dict): self.exchange = 'binance' super().__init__(user, config) self.max_pos_size_ito_usdt = 0.0 self.max_pos_size_ito_coin = 0.0 self.session = aiohttp.ClientSession() self.base_endpoint = '' self.key, self.secret = load_key_secret('binance', user)
def __init__(self, user: str, config: dict): self.exchange = 'bybit' self.min_notional = 0.0 super().__init__(user, config) self.key, self.secret = load_key_secret('bybit', user) self.base_endpoint = 'https://api.bybit.com' self.endpoints = {} self.market_type = '' self.session = aiohttp.ClientSession()