Skip to content

Commit

Permalink
Fix BinanceSpotInstrumentProvider fees loading
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Dec 28, 2023
1 parent 24ca762 commit f7d5b5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Released on TBD (UTC).

### Fixes
- Fixed handling of configuration objects to work with `StreamingFeatherWriter`
- Fixed `BinanceSpotInstrumentProvider` fee loading key error for partial instruments load, thanks for reporting @doublier1

---

Expand Down
4 changes: 2 additions & 2 deletions nautilus_trader/adapters/binance/spot/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ async def load_ids_async(
for symbol in symbols:
self._parse_instrument(
symbol_info=symbol_info_dict[symbol],
fee=fees_dict[symbol],
fee=fees_dict.get(symbol),
ts_event=millis_to_nanos(exchange_info.serverTime),
)

Expand Down Expand Up @@ -215,7 +215,7 @@ async def load_async(self, instrument_id: InstrumentId, filters: dict | None = N

self._parse_instrument(
symbol_info=symbol_info_dict[symbol],
fee=fees_dict[symbol],
fee=fees_dict.get(symbol),
ts_event=millis_to_nanos(exchange_info.serverTime),
)

Expand Down

0 comments on commit f7d5b5b

Please sign in to comment.