-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
The order model requires these properties for the serialisation to ListOrdersResponse
post_only: bool
order_edit_history: []
is_raise_exact: bool
display_size: str
Reference:
def list_orders(self, request: ListOrdersRequest) -> ListOrdersResponse:
path = f"/portfolios/{request.portfolio_id}/orders"
...
response = self.client.request("GET", path, query=query_params, allowed_status_codes=request.allowed_status_codes)
return ListOrdersResponse(response.json())
Error:
lib/python3.12/site-packages/prime_sdk/base_response.py", line 59, in __post_init__
parsed_list = [inner_type(**item) for item in raw_value]
^^^^^^^^^^^^^^^^^^
TypeError: Order.__init__() got an unexpected keyword argument 'post_only'
Metadata
Metadata
Assignees
Labels
No labels