Skip to content

Commit

Permalink
Fix default value supplied for cli configure
Browse files Browse the repository at this point in the history
select_choice() expect to see only "tag" as default, not ("tag", "value") tuple

Closes: #605
  • Loading branch information
bitphage committed May 28, 2019
1 parent b852d22 commit d8da4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dexbot/strategies/config_parts/relative_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def configure(cls, return_base_config=True):
relative_orders_config = [
ConfigElement('external_feed', 'bool', False, 'External price feed',
'Use external reference price instead of center price acquired from the market', None),
ConfigElement('external_price_source', 'choice', EXCHANGES[0], 'External price source',
ConfigElement('external_price_source', 'choice', EXCHANGES[0][0], 'External price source',
'The bot will try to get price information from this source', EXCHANGES),
ConfigElement('amount', 'float', 1, 'Amount',
'Fixed order size, expressed in quote asset, unless "relative order size" selected',
Expand Down

0 comments on commit d8da4ba

Please sign in to comment.