Skip to content

Commit

Permalink
Cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Apr 17, 2024
1 parent 83e3ca2 commit 4ddf0d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 4 additions & 4 deletions nautilus_trader/cache/cache.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ from collections import deque
from decimal import Decimal

from nautilus_trader.cache.config import CacheConfig
from nautilus_trader.core.rust.model import PriceType as PriceType_py

from cpython.datetime cimport datetime
from cpython.datetime cimport timedelta
Expand All @@ -33,15 +34,12 @@ from nautilus_trader.cache.facade cimport CacheDatabaseFacade
from nautilus_trader.common.component cimport LogColor
from nautilus_trader.common.component cimport Logger
from nautilus_trader.core.correctness cimport Condition
from nautilus_trader.core.rust.model cimport AggregationSource
from nautilus_trader.core.rust.model cimport ContingencyType
from nautilus_trader.core.rust.model cimport OmsType
from nautilus_trader.core.rust.model cimport OrderSide
from nautilus_trader.core.rust.model cimport PositionSide
from nautilus_trader.core.rust.model cimport PriceType

from nautilus_trader.core.rust.model import PriceType as PriceType_py

from nautilus_trader.core.rust.model cimport AggregationSource
from nautilus_trader.core.rust.model cimport TriggerType
from nautilus_trader.execution.messages cimport SubmitOrder
from nautilus_trader.model.data cimport Bar
Expand Down Expand Up @@ -2475,9 +2473,11 @@ cdef class Cache(CacheFacade):
The price type to filter the BarType objects. If None, no filtering is done based on price type.
aggregation_source : AggregationSource, default AggregationSource.EXTERNAL
The aggregation source to filter the BarType objects.
Returns
-------
list[BarType]
"""
Condition.type_or_none(instrument_id, InstrumentId, "instrument_id")
Condition.type_or_none(price_type, PriceType_py, "price_type")
Expand Down
4 changes: 0 additions & 4 deletions tests/unit_tests/backtest/test_commission_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import pytest

# fmt: off
from nautilus_trader.backtest.models import FixedFeeModel
from nautilus_trader.backtest.models import MakerTakerFeeModel
from nautilus_trader.model.currencies import USD
Expand All @@ -28,9 +27,6 @@
from nautilus_trader.test_kit.stubs.execution import TestExecStubs


# fmt: on


@pytest.fixture()
def instrument() -> Instrument:
return TestInstrumentProvider.default_fx_ccy("EUR/USD")
Expand Down

0 comments on commit 4ddf0d8

Please sign in to comment.