Skip to content

Commit a5bdcc1

Browse files
authored
Merge pull request #211 from itsdeka/fix-withdraw-fees
Fix withdraw fees
2 parents fd5484c + 7f3b62c commit a5bdcc1

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2.0.5
2+
-) Show correct fees for withdraws
3+
14
2.0.4
25
-) Added missing ID to ledgers.py
36

bfxapi/models/withdraw.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class WithdrawModel:
1010
METHOD = 2
1111
WALLET = 4
1212
AMOUNT = 5
13-
FEE = 7
13+
FEE = 8
1414

1515
class Withdraw:
1616
"""
@@ -42,7 +42,8 @@ def from_raw_withdraw(raw_withdraw):
4242
method = raw_withdraw[WithdrawModel.METHOD]
4343
wallet = raw_withdraw[WithdrawModel.WALLET]
4444
amount = raw_withdraw[WithdrawModel.AMOUNT]
45-
return Withdraw(w_id, method, wallet, amount)
45+
fee = raw_withdraw[WithdrawModel.FEE]
46+
return Withdraw(w_id, method, wallet, amount, fee)
4647

4748
def __str__(self):
4849
"""

bfxapi/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
This module contains the current version of the bfxapi lib
33
"""
44

5-
__version__ = '2.0.4'
5+
__version__ = '2.0.5'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
here = path.abspath(path.dirname(__file__))
1212
setup(
1313
name='bitfinex-api-py',
14-
version='2.0.4',
14+
version='2.0.5',
1515
description='Official Bitfinex Python API',
1616
long_description='A Python reference implementation of the Bitfinex API for both REST and websocket interaction',
1717
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)