Merge pull request #215 from itsdeka/add-id-to-parse-trade

Added id field to _parse_trade
This commit is contained in:
Vigan Abdurrahmani
2023-02-17 19:17:56 +01:00
committed by GitHub
4 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
2.0.6
-) Added id field to _parse_trade
2.0.5 2.0.5
-) Show correct fees for withdraws -) Show correct fees for withdraws

View File

@@ -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.5' __version__ = '2.0.6'

View File

@@ -61,6 +61,7 @@ def _parse_trade_snapshot_item(tData, symbol):
def _parse_trade(tData, symbol): def _parse_trade(tData, symbol):
return { return {
'id': tData[0],
'mts': tData[1], 'mts': tData[1],
'price': tData[3], 'price': tData[3],
'amount': tData[2], 'amount': tData[2],

View File

@@ -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.5', version='2.0.6',
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',