desytech / kubot

Lendbot for Kucoin
GNU General Public License v3.0
2 stars 2 forks source link

Adapt lending amount #11

Closed tomml closed 3 years ago

tomml commented 3 years ago

For now the bot takes all the USDTs and lends it. We need to support the ability to keep this up to the user how much USDT should be lend.

desytech commented 3 years ago

We have to discuss which is a proper amount of lending packages.

tomml commented 3 years ago

I think this is up to the user how much it shall be lend. But there could also be an option to take the entire amount on the account.

tomml commented 3 years ago

I think this is up to the user how much it shall be lend. But there could also be an option to take the entire amount on the account.

Additionally: One distinct amount should also use its own lending config parameters, like correction, default_interest, interval

desytech commented 3 years ago

you mean every distinct currency should use its own lending configuration. implementation see #8

tomml commented 3 years ago

you mean every distinct currency should use its own lending configuration. implementation see #8

Yes, also for every currency. But also for every lending trade. For instance: You have 1000 USDT and 1000ETH ( imagine thats huuge ^^) deposited to your trading account to take lending steps. But you would like to split options for your funds a little bit. Saying that you would like to take 500USDT which shall be lend for 14 days with a day rate of 0.086%. The other 500USDTs you are going to lend for 28 days with day rate of 0.09%. Similar for ETH but also in that manner of freedom choice.

desytech commented 3 years ago

For the first Step we should concentrate us on the reserved amount on the main account.

Some config ideas:

currencies = [{"USDT": {"reserved_amount": 0}}, {"ETC": {"reserved_amount": 0}}]

currencies = [("USDT", 0), ("ETC", 0)]

return json.loads(self.__config['test'].get('currencies'))
desytech commented 3 years ago

Currency Config finally set to:

currencies = [{"currency": "USDT"}]