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.

[Error] Offer amount must be positive

See original GitHub issue

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%)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
JCBauzacommented, Jun 21, 2018

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.

1reaction
rnevetcommented, Jun 14, 2018

@JCBauza You could change the message here: https://github.com/BitBotFactory/MikaLendingBot/blob/fcd3fbb83797cb636a55b9059d8273b071c2beaa/modules/Bitfinex.py#L276

to:

msg = str(e) + " payload:" + str(payload)
self.log.log_error(msg)

This way we will get the payload sent to Bitfinex.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How troubleshooting the error “Amount must be positive in ...
Introduction I had a user report the error "Amount must be positive in Gen. Journal Line Journal Template Name='PURCHASES'.
Read more >
"Amount must be Positive in Gen. Journal Line" error message ...
"Amount must be Positive in Gen. Journal Line" error message when you post a partial invoice for a sales order that has a...
Read more >
Amount must be negative/positive in Gen. Journal Line ...
Hi, Readers.Today, I would like to share a application error handling about payments (cash receipts) in Business Central.
Read more >
Transaction amount must be positive - Help Center
QuickBooks error message: Transaction amount must be positive. This usually happens when you map an 8% tax rate on a 6% sale and...
Read more >
NAV 2009 - Check Posting Error - Amount must be positive
The error is because: The Document Type is Payment, Account No. is Vendor. Hence, it should not be in minus amount. To overcome...
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