mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-22 00:04:20 +01:00
Order: add order flags enum
This commit is contained in:
@@ -37,6 +37,13 @@ class OrderClosedModel:
|
|||||||
NOTIFY = 23
|
NOTIFY = 23
|
||||||
PLACE_ID = 25
|
PLACE_ID = 25
|
||||||
|
|
||||||
|
class OrderFlags:
|
||||||
|
HIDDEN = 64
|
||||||
|
CLOSE = 12
|
||||||
|
REDUCE_ONLY = 1024
|
||||||
|
POST_ONLY = 4096
|
||||||
|
OCO = 16384
|
||||||
|
|
||||||
def now_in_mills():
|
def now_in_mills():
|
||||||
return int(round(time.time() * 1000))
|
return int(round(time.time() * 1000))
|
||||||
|
|
||||||
@@ -64,6 +71,7 @@ class Order:
|
|||||||
|
|
||||||
Type = OrderType()
|
Type = OrderType()
|
||||||
Side = OrderSide()
|
Side = OrderSide()
|
||||||
|
Flags = OrderFlags()
|
||||||
|
|
||||||
def __init__(self, id, gId, cId, symbol, mtsCreate, mtsUpdate, amount, amountOrig, oType,
|
def __init__(self, id, gId, cId, symbol, mtsCreate, mtsUpdate, amount, amountOrig, oType,
|
||||||
typePrev, flags, status, price, priceAvg, priceTrailing, priceAuxLimit, notfiy, placeId):
|
typePrev, flags, status, price, priceAvg, priceTrailing, priceAuxLimit, notfiy, placeId):
|
||||||
|
|||||||
Reference in New Issue
Block a user