From 55f476527112a191692e0882516221d4112ca756 Mon Sep 17 00:00:00 2001 From: itsdeka Date: Fri, 17 Feb 2023 11:35:15 +0100 Subject: [PATCH] Added id field to _parse_trade --- CHANGELOG | 3 +++ bfxapi/version.py | 2 +- bfxapi/websockets/bfx_websocket.py | 1 + setup.py | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index ed1f6a6..3516fc6 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2.0.6 +-) Added id field to _parse_trade + 2.0.4 -) Added missing ID to ledgers.py diff --git a/bfxapi/version.py b/bfxapi/version.py index d05bc2f..5bb61be 100644 --- a/bfxapi/version.py +++ b/bfxapi/version.py @@ -2,4 +2,4 @@ This module contains the current version of the bfxapi lib """ -__version__ = '2.0.4' +__version__ = '2.0.6' diff --git a/bfxapi/websockets/bfx_websocket.py b/bfxapi/websockets/bfx_websocket.py index 451d975..5554ec5 100644 --- a/bfxapi/websockets/bfx_websocket.py +++ b/bfxapi/websockets/bfx_websocket.py @@ -61,6 +61,7 @@ def _parse_trade_snapshot_item(tData, symbol): def _parse_trade(tData, symbol): return { + 'id': tData[0], 'mts': tData[1], 'price': tData[3], 'amount': tData[2], diff --git a/setup.py b/setup.py index 49d3425..5a18c15 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ from os import path here = path.abspath(path.dirname(__file__)) setup( name='bitfinex-api-py', - version='2.0.4', + version='2.0.6', description='Official Bitfinex Python API', long_description='A Python reference implementation of the Bitfinex API for both REST and websocket interaction', long_description_content_type='text/markdown',