From 9b9f9e0689339eb98e9c4e3f9c95856b89883900 Mon Sep 17 00:00:00 2001 From: itsdeka Date: Wed, 9 Nov 2022 14:15:36 +0100 Subject: [PATCH 1/3] withdraw fee --- bfxapi/models/withdraw.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bfxapi/models/withdraw.py b/bfxapi/models/withdraw.py index a13879d..607c337 100644 --- a/bfxapi/models/withdraw.py +++ b/bfxapi/models/withdraw.py @@ -42,7 +42,8 @@ class Withdraw: method = raw_withdraw[WithdrawModel.METHOD] wallet = raw_withdraw[WithdrawModel.WALLET] amount = raw_withdraw[WithdrawModel.AMOUNT] - return Withdraw(w_id, method, wallet, amount) + fee = raw_withdraw[WithdrawModel.FEE] + return Withdraw(w_id, method, wallet, amount, fee) def __str__(self): """ From 5e1017dbc8ff746cd5ee76539430f1337c303a52 Mon Sep 17 00:00:00 2001 From: itsdeka Date: Wed, 9 Nov 2022 14:16:21 +0100 Subject: [PATCH 2/3] updated version --- CHANGELOG | 3 +++ bfxapi/version.py | 2 +- setup.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index ed1f6a6..1587ed4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2.0.5 +-) Show correct fees for withdraws + 2.0.4 -) Added missing ID to ledgers.py diff --git a/bfxapi/version.py b/bfxapi/version.py index d05bc2f..d47628d 100644 --- a/bfxapi/version.py +++ b/bfxapi/version.py @@ -2,4 +2,4 @@ This module contains the current version of the bfxapi lib """ -__version__ = '2.0.4' +__version__ = '2.0.5' diff --git a/setup.py b/setup.py index 49d3425..ef7e0a0 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ from os import path here = path.abspath(path.dirname(__file__)) setup( name='bitfinex-api-py', - version='2.0.4', + version='2.0.5', description='Official Bitfinex Python API', long_description='A Python reference implementation of the Bitfinex API for both REST and websocket interaction', long_description_content_type='text/markdown', From 7f3b62c6b60f2bf2f00d43ab0a7aeec2d9d50368 Mon Sep 17 00:00:00 2001 From: itsdeka Date: Fri, 17 Feb 2023 15:16:32 +0100 Subject: [PATCH 3/3] use correct index --- bfxapi/models/withdraw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bfxapi/models/withdraw.py b/bfxapi/models/withdraw.py index 607c337..0558527 100644 --- a/bfxapi/models/withdraw.py +++ b/bfxapi/models/withdraw.py @@ -10,7 +10,7 @@ class WithdrawModel: METHOD = 2 WALLET = 4 AMOUNT = 5 - FEE = 7 + FEE = 8 class Withdraw: """