Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Jun 16, 2019
1 parent 32ad677 commit fcd6d89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion aat/market_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from abc import abstractmethod
from .data_source import StreamingDataSource
from .define import EXCHANGE_MARKET_DATA_ENDPOINT
from .enums import OrderType, PairType, TickType
from .structs import MarketData
from .logging import LOG as log

Expand Down
4 changes: 2 additions & 2 deletions aat/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _parse_options(argv, config: TradingEngineConfig) -> None:
if config.type == TradingType.LIVE and exchange == ExchangeType.SYNTHETIC:
raise ConfigException('Cannot run synthetic exchange in live mode!')
elif exchange == ExchangeType.SYNTHETIC:
new_config = SyntheticExchangeConfig()
new_config = SyntheticExchangeConfig()
new_config.exchange_types = config.exchange_options.exchange_types
new_config.trading_type = config.exchange_options.trading_type
new_config.currency_pairs = config.exchange_options.currency_pairs
Expand Down Expand Up @@ -191,7 +191,7 @@ def _parse_backtest_options(argv, config) -> None:
config.exchange_options.exchange_types = [str_to_exchange(x) for x in argv['exchanges'].split() if x]
for exchange in config.exchange_options.exchange_types:
if exchange == ExchangeType.SYNTHETIC:
new_config = SyntheticExchangeConfig()
new_config = SyntheticExchangeConfig()
new_config.exchange_types = config.exchange_options.exchange_types
new_config.trading_type = config.exchange_options.trading_type
new_config.currency_pairs = config.exchange_options.currency_pairs
Expand Down

0 comments on commit fcd6d89

Please sign in to comment.