many change
This commit is contained in:
3
state.py
3
state.py
@@ -39,6 +39,9 @@ class StateManager:
|
||||
if ask_price is not None:
|
||||
self.ask_prices[symbol] = ask_price
|
||||
|
||||
def get_best_bid_ask(self, symbol: str):
|
||||
return self.bid_prices.get(symbol), self.ask_prices.get(symbol)
|
||||
|
||||
def get_position(self, symbol: str) -> int:
|
||||
return self.positions.get(symbol, 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user