No partial coinconfigs allowed?
See original GitHub issueI wanted to just prevent a single coin from being lent so I added to the config the following:
[BTC]
maxactiveamount = 0
Instead of it just no longer loaning out BTC it gave me the error:
Coinconfig for BTC parsed incorrectly, please refer to the documentation. Error: No option 'mindailyrate' in section: 'BTC'
Traceback (most recent call last):
File "lendingbot.py", line 47, in <module>
MaxToLend.init(Config, log)
File "/sites/poloniexlendingbot/modules/MaxToLend.py", line 14, in init
coin_cfg = coin_cfg = config.get_coin_cfg()
File "/sites/poloniexlendingbot/modules/Configuration.py", line 82, in get_coin_cfg
coin_cfg[cur]['minrate'] = (Decimal(config.get(cur, 'mindailyrate'))) / 100
File "/usr/lib/python2.7/ConfigParser.py", line 618, in get
raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'mindailyrate' in section: 'BTC'
I don’t think the mindailyrate
is necessary if that coin is set to not be lent.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
minloansize's value: '0.001' is below the minimum limit: 0.01 ...
Hey, I have created a scenario in which the bot crashes. I am on master and just pulled. When the minloansize is set...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I disagree @Evanito , just for example if you make a typo in the per-coin settings, you will not know that if it defaults. However, I agree that disabling a coin should be possible without specifying all other params.
@rnevet
you could just throw a WARN as in #429 #430 and then go to default?