Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions python/nanobook.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class IbkrBroker:
def account(self) -> Dict[str, Any]: ...
def submit_order(self, symbol: str, side: str, quantity: int, order_type: str = "market", limit_price_cents: Optional[int] = None, client_order_id: Optional[str] = None, stop_price_cents: Optional[int] = None) -> int: ...
def order_status(self, order_id: int) -> Dict[str, Any]: ...
def open_orders(self) -> List[Dict[str, Any]]: ...
def cancel_order(self, order_id: int) -> None: ...
def quote(self, symbol: str) -> Dict[str, Any]: ...

Expand All @@ -22,7 +21,6 @@ class BinanceBroker:
def account(self) -> Dict[str, Any]: ...
def submit_order(self, symbol: str, side: str, quantity: int, order_type: str = "market", limit_price_cents: Optional[int] = None, client_order_id: Optional[str] = None) -> int: ...
def order_status(self, order_id: int) -> Dict[str, Any]: ...
def open_orders(self) -> List[Dict[str, Any]]: ...
def cancel_order(self, order_id: int) -> None: ...
def quote(self, symbol: str) -> Dict[str, Any]: ...

Expand Down Expand Up @@ -144,7 +142,7 @@ class BacktestResult:
metrics: Optional[Metrics]

class CostModel:
def __init__(self, commission_bps: int = 0, slippage_bps: int = 0, min_trade_fee: int = 0) -> None: ...
def __init__(self, commission_bps: float = 0.0, slippage_bps: float = 0.0, min_commission: int = 0) -> None: ...
@staticmethod
def zero() -> 'CostModel': ...
def compute_cost(self, notional: int) -> int: ...
Expand Down
Loading