def setUp(self) -> None:
     """
     Sets up a backtester object.
     """
     self.trader = Trader(symbol="BTCUSDT",
                          precision=2,
                          startingBalance=1000)
Пример #2
0
def get_trader_object() -> Trader:
    """
    Get a trader object.
    :return: Trader
    """
    return Trader(symbol="BTCUSDT", precision=2, startingBalance=1000)