diff --git a/ftx/api.py b/ftx/api.py index fde8586..a3a514b 100644 --- a/ftx/api.py +++ b/ftx/api.py @@ -71,14 +71,13 @@ def _process_response(response: Response) -> Any: # # Authentication required methods # - def authentication_required(fn): """Annotation for methods that require auth.""" def wrapped(self, *args, **kwargs): if not self._api_key: raise TypeError("You must be authenticated to use this method") else: - return fn(self=self, *args, **kwargs) + return fn(self, *args, **kwargs) return wrapped @@ -90,6 +89,10 @@ def get_account_info(self) -> dict: def get_open_orders(self, market: Optional[str] = None) -> List[dict]: return self._get('orders', {'market': market}) + @authentication_required + def get_order_status(self, existing_order_id: int) -> dict: + return self._get(f'orders/{existing_order_id}') + @authentication_required def get_order_history(self, market: Optional[str] = None,