diff --git a/bfxapi/rest/_interfaces/rest_auth_endpoints.py b/bfxapi/rest/_interfaces/rest_auth_endpoints.py index f00c013..6c34b14 100644 --- a/bfxapi/rest/_interfaces/rest_auth_endpoints.py +++ b/bfxapi/rest/_interfaces/rest_auth_endpoints.py @@ -1,5 +1,5 @@ from decimal import Decimal -from typing import Dict, List, Literal, Optional, Tuple, Union +from typing import Any, Dict, List, Literal, Optional, Tuple, Union from bfxapi.rest._interface import Interface from bfxapi.types import ( @@ -98,6 +98,7 @@ def submit_order( cid: Optional[int] = None, flags: Optional[int] = None, tif: Optional[str] = None, + meta: Optional[Dict[str, Any]] = None, ) -> Notification[Order]: body = { "type": type, @@ -112,6 +113,7 @@ def submit_order( "cid": cid, "flags": flags, "tif": tif, + "meta": meta, } return _Notification[Order](serializers.Order).parse( diff --git a/bfxapi/websocket/_client/bfx_websocket_inputs.py b/bfxapi/websocket/_client/bfx_websocket_inputs.py index d618135..48a39d1 100644 --- a/bfxapi/websocket/_client/bfx_websocket_inputs.py +++ b/bfxapi/websocket/_client/bfx_websocket_inputs.py @@ -1,5 +1,5 @@ from decimal import Decimal -from typing import Any, Awaitable, Callable, List, Optional, Tuple, Union +from typing import Any, Awaitable, Callable, Dict, List, Optional, Tuple, Union _Handler = Callable[[str, Any], Awaitable[None]] @@ -23,6 +23,7 @@ async def submit_order( cid: Optional[int] = None, flags: Optional[int] = None, tif: Optional[str] = None, + meta: Optional[Dict[str, Any]] = None, ) -> None: await self.__handle_websocket_input( "on", @@ -39,6 +40,7 @@ async def submit_order( "cid": cid, "flags": flags, "tif": tif, + "meta": meta, }, )