From 7a5b0f338d700614610b3aec396bcbf2a6614f1b Mon Sep 17 00:00:00 2001 From: Dario Moceri Date: Wed, 27 Jan 2021 21:58:46 +0100 Subject: [PATCH] amount is NOT optional --- bfxapi/rest/bfx_rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bfxapi/rest/bfx_rest.py b/bfxapi/rest/bfx_rest.py index af9462f..92f27ed 100644 --- a/bfxapi/rest/bfx_rest.py +++ b/bfxapi/rest/bfx_rest.py @@ -874,7 +874,7 @@ class BfxRest: message = await self.post(endpoint, payload) return message - async def generate_invoice(self, wallet='exchange', currency='LNX', amount=None): + async def generate_invoice(self, amount, wallet='exchange', currency='LNX'): """ Generates a Lightning Network deposit invoice