mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-21 07:44:22 +01:00
orders: linting fixes
This commit is contained in:
committed by
Jacob Plaster
parent
089169b7c4
commit
cbf8365ee1
@@ -110,7 +110,7 @@ class Order:
|
||||
|
||||
def __init__(self, oid, gid, cid, symbol, mts_create, mts_update, amount,
|
||||
amount_orig, o_type, typePrev, flags, status, price, price_avg,
|
||||
price_trailing, price_aux_limit, notfiy, place_id, meta={}):
|
||||
price_trailing, price_aux_limit, notfiy, place_id, meta):
|
||||
self.id = oid # pylint: disable=invalid-name
|
||||
self.gid = gid
|
||||
self.cid = cid
|
||||
@@ -138,6 +138,7 @@ class Order:
|
||||
self.is_pending_bool = True
|
||||
self.is_confirmed_bool = False
|
||||
self.is_open_bool = False
|
||||
self.meta = meta or {}
|
||||
|
||||
self.date = datetime.datetime.fromtimestamp(mts_create/1000.0)
|
||||
# if cancelled then priceAvg wont exist
|
||||
|
||||
Reference in New Issue
Block a user