mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Fix type hinting in module bfxapi._utils.json_encoder.
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
from typing import TYPE_CHECKING, Callable, Awaitable, \
|
||||
Tuple, List, Union, Optional, Any
|
||||
Tuple, List, Dict, Union, Optional, Any
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from bfxapi.enums import \
|
||||
OrderType, FundingOfferType
|
||||
|
||||
from bfxapi._utils.json_encoder import JSON
|
||||
|
||||
from decimal import Decimal
|
||||
|
||||
class BfxWebSocketInputs:
|
||||
@@ -27,7 +25,7 @@ class BfxWebSocketInputs:
|
||||
cid: Optional[int] = None,
|
||||
flags: Optional[int] = 0,
|
||||
tif: Optional[str] = None,
|
||||
meta: Optional["JSON"] = None) -> None:
|
||||
meta: Optional[Dict[str, Any]] = None) -> None:
|
||||
await self.__handle_websocket_input("on", {
|
||||
"type": type, "symbol": symbol, "amount": amount,
|
||||
"price": price, "lev": lev, "price_trailing": price_trailing,
|
||||
|
||||
Reference in New Issue
Block a user