def __init__(self, sql: SQLConnectionManager = None):
        if sql:
            self.sql_manager = sql
        else:
            self.sql_manager = SQLConnectionManager.get_trade_fills_instance()

        self._starting_base = CurrencyAmount()
        self._starting_quote = CurrencyAmount()
        self._current_base = CurrencyAmount()
        self._current_quote = CurrencyAmount()
Пример #2
0
 def __init__(self):
     self._starting_base = CurrencyAmount()
     self._starting_quote = CurrencyAmount()
     self._current_base = CurrencyAmount()
     self._current_quote = CurrencyAmount()