Skip to content

Commit

Permalink
Relax typing for BinanceSpotSymbolInfo.permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Oct 30, 2023
1 parent 01304f5 commit 5bd2ef0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Released on TBC (UTC).
- Fixed managed GTD orders cancel timer on order cancel (timers were not being canceled)
- Fixed `BacktestEngine` logging error with immediate stop (caused by certain timestamps being `None`)
- Fixed `BacktestNode` exceptions during backtest runs preventing next sequential run, thanks for reporting @cavan-black
- Fixed `BinanceSpotPersmission` value error by relaxing typing for `BinanceSpotSymbolInfo.permissions`
- Interactive Brokers adapter various fixes, thanks @rsmb7z

---
Expand Down
3 changes: 1 addition & 2 deletions nautilus_trader/adapters/binance/spot/schemas/market.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from nautilus_trader.adapters.binance.common.schemas.market import BinanceOrderBookDelta
from nautilus_trader.adapters.binance.common.schemas.market import BinanceRateLimit
from nautilus_trader.adapters.binance.common.schemas.market import BinanceSymbolFilter
from nautilus_trader.adapters.binance.spot.enums import BinanceSpotPermissions
from nautilus_trader.core.datetime import millis_to_nanos
from nautilus_trader.model.currency import Currency
from nautilus_trader.model.data import BookOrder
Expand Down Expand Up @@ -62,7 +61,7 @@ class BinanceSpotSymbolInfo(msgspec.Struct, frozen=True):
isSpotTradingAllowed: bool
isMarginTradingAllowed: bool
filters: list[BinanceSymbolFilter]
permissions: list[BinanceSpotPermissions]
permissions: list[str]

def parse_to_base_asset(self):
return Currency(
Expand Down

0 comments on commit 5bd2ef0

Please sign in to comment.