many change

This commit is contained in:
2026-05-09 15:35:03 +09:00
parent 887873a141
commit 5685520f1f
3 changed files with 16 additions and 34 deletions

View File

@@ -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)