MikaLendingBot: [Error] Offer amount must be positive
I keep running into these errors and it is driving me crazy. The worse part is that it stops there so many currencies are not being lent:
2018-02-19 17:32:43 Error API Error 400: {"message":"Offer amount must be positive."} Requesting https://api.bitfinex.com/v1/offer/new
Caught API Error 400: {"message":"Offer amount must be positive."} Requesting https://api.bitfinex.com/v1/offer/new reading from exchange API, ignoring.
2018-02-19 17:32:43 Error API Error 400: {"message":"Offer amount must be positive."} Requesting https://api.bitfinex.com/v1/offer/new
--
2018-02-19 17:32:40 Not lending ETP due to rate below 0.0500% (actual: 0.0000%)
2018-02-19 17:32:37 Not lending LTC due to rate below 0.0500% (actual: 0.0277%)
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 15 (12 by maintainers)
2018-06-20 21:13:09 Error API Error 400: {“message”:“Offer amount must be positive.”} payload:{‘nonce’: ‘152954718915603’, ‘direction’: ‘lend’, ‘request’: ‘/v1/offer/new’, ‘rate’: ‘7.9935’, ‘period’: 2, ‘currency’: u’BTC’, ‘amount’: ‘0.00000000’} 2018-06-20 21:13:09 Error API Error 400: {“message”:“Offer amount must be positive.”} Requesting https://api.bitfinex.com/v1/offer/new Caught API Error 400: {“message”:“Offer amount must be positive.”} Requesting https://api.bitfinex.com/v1/offer/new reading from exchange API, ignoring.
@JCBauza You could change the message here: https://github.com/BitBotFactory/MikaLendingBot/blob/fcd3fbb83797cb636a55b9059d8273b071c2beaa/modules/Bitfinex.py#L276
to:
This way we will get the payload sent to Bitfinex.