1 parent 7009d33 commit cf9ff2dCopy full SHA for cf9ff2d
1 file changed
pytrade/broker.py
@@ -12,10 +12,10 @@
12
13
class Broker(IBroker):
14
15
- def __init__(self, client: IClient):
+ def __init__(self, client: IClient , max_history = 100):
16
self.client = client
17
self._orders: List[Order] = []
18
- self._data_context = CandleData(max_size=100)
+ self._data_context = CandleData(max_size=max_history)
19
self._subscriptions: list[Tuple[Instrument, Granularity]] = []
20
self.logger = get_logger()
21
0 commit comments