Skip to content

Commit

Permalink
Merge branch 'master' into add-id-to-parse-trade
Browse files Browse the repository at this point in the history
  • Loading branch information
vigan-abd authored Feb 17, 2023
2 parents 55f4765 + a5bdcc1 commit 21688ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
2.0.6
-) Added id field to _parse_trade

2.0.5
-) Show correct fees for withdraws

2.0.4
-) Added missing ID to ledgers.py

Expand Down
5 changes: 3 additions & 2 deletions bfxapi/models/withdraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class WithdrawModel:
METHOD = 2
WALLET = 4
AMOUNT = 5
FEE = 7
FEE = 8

class Withdraw:
"""
Expand Down Expand Up @@ -42,7 +42,8 @@ def from_raw_withdraw(raw_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):
"""
Expand Down

0 comments on commit 21688ec

Please sign in to comment.