mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 14:54:21 +01:00
Merge pull request #211 from itsdeka/fix-withdraw-fees
Fix withdraw fees
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
2.0.5
|
||||||
|
-) Show correct fees for withdraws
|
||||||
|
|
||||||
2.0.4
|
2.0.4
|
||||||
-) Added missing ID to ledgers.py
|
-) Added missing ID to ledgers.py
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class WithdrawModel:
|
|||||||
METHOD = 2
|
METHOD = 2
|
||||||
WALLET = 4
|
WALLET = 4
|
||||||
AMOUNT = 5
|
AMOUNT = 5
|
||||||
FEE = 7
|
FEE = 8
|
||||||
|
|
||||||
class Withdraw:
|
class Withdraw:
|
||||||
"""
|
"""
|
||||||
@@ -42,7 +42,8 @@ class Withdraw:
|
|||||||
method = raw_withdraw[WithdrawModel.METHOD]
|
method = raw_withdraw[WithdrawModel.METHOD]
|
||||||
wallet = raw_withdraw[WithdrawModel.WALLET]
|
wallet = raw_withdraw[WithdrawModel.WALLET]
|
||||||
amount = raw_withdraw[WithdrawModel.AMOUNT]
|
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):
|
def __str__(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -2,4 +2,4 @@
|
|||||||
This module contains the current version of the bfxapi lib
|
This module contains the current version of the bfxapi lib
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__version__ = '2.0.4'
|
__version__ = '2.0.5'
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -11,7 +11,7 @@ from os import path
|
|||||||
here = path.abspath(path.dirname(__file__))
|
here = path.abspath(path.dirname(__file__))
|
||||||
setup(
|
setup(
|
||||||
name='bitfinex-api-py',
|
name='bitfinex-api-py',
|
||||||
version='2.0.4',
|
version='2.0.5',
|
||||||
description='Official Bitfinex Python API',
|
description='Official Bitfinex Python API',
|
||||||
long_description='A Python reference implementation of the Bitfinex API for both REST and websocket interaction',
|
long_description='A Python reference implementation of the Bitfinex API for both REST and websocket interaction',
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
|
|||||||
Reference in New Issue
Block a user