Skip to content

Commit 21688ec

Browse files
authored
Merge branch 'master' into add-id-to-parse-trade
2 parents 55f4765 + a5bdcc1 commit 21688ec

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
2.0.6
22
-) Added id field to _parse_trade
33

4+
2.0.5
5+
-) Show correct fees for withdraws
6+
47
2.0.4
58
-) Added missing ID to ledgers.py
69

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
"""

0 commit comments

Comments
 (0)