Skip to content

Commit

Permalink
BLD: propogate the ccxt market active parameter to the trading_state …
Browse files Browse the repository at this point in the history
…attribute of the TradingPair scrtlabs#460
  • Loading branch information
lenak25 committed Sep 12, 2018
1 parent 0f8bd40 commit be6480f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions catalyst/exchange/utils/exchange_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,9 @@ def mixin_market_params(exchange_name, params, market):
if 'lot' not in params:
params['lot'] = params['min_trade_size']

if 'active' in market:
params['trading_state'] = market['active']


def group_assets_by_exchange(assets):
exchange_assets = dict()
Expand Down

0 comments on commit be6480f

Please sign in to comment.