question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No partial coinconfigs allowed?

See original GitHub issue

I 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:open
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rnevetcommented, May 30, 2017

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.

0reactions
mchl18commented, Jul 26, 2017

@rnevet

I disagree @Evanito , just for example if you make a typo in the per-coin settings, you will not know that if it defaults.

you could just throw a WARN as in #429 #430 and then go to default?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found