mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 23:04:21 +01:00
Add type hinting using typings.py in bfxapi/websocket/serializers.py.
This commit is contained in:
@@ -183,7 +183,7 @@ Position = TypedDict("Position", {
|
||||
|
||||
Positions = List[Position]
|
||||
|
||||
Trade = TypedDict("Trade", {
|
||||
TradeExecuted = TypedDict("TradeExecuted", {
|
||||
"ID": int,
|
||||
"SYMBOL": str,
|
||||
"MTS_CREATE": int,
|
||||
@@ -193,8 +193,21 @@ Trade = TypedDict("Trade", {
|
||||
"ORDER_TYPE": str,
|
||||
"ORDER_PRICE": float,
|
||||
"MAKER":int,
|
||||
"FEE": Optional[float],
|
||||
"FEE_CURRENCY": Optional[str],
|
||||
"CID": int
|
||||
})
|
||||
|
||||
TradeExecutionUpdate = TypedDict("TradeExecutionUpdate", {
|
||||
"ID": int,
|
||||
"SYMBOL": str,
|
||||
"MTS_CREATE": int,
|
||||
"ORDER_ID": int,
|
||||
"EXEC_AMOUNT": float,
|
||||
"EXEC_PRICE": float,
|
||||
"ORDER_TYPE": str,
|
||||
"ORDER_PRICE": float,
|
||||
"MAKER":int,
|
||||
"FEE": float,
|
||||
"FEE_CURRENCY": str,
|
||||
"CID": int
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user