Skip to content

Commit

Permalink
Fix autotrade json return
Browse files Browse the repository at this point in the history
  • Loading branch information
carkod committed Nov 6, 2024
1 parent 835d4d9 commit 97dace3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/autotrade/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_settings():
try:
deserialized_data = AutotradeSettingsController().get_settings()
return json_response(
{"message": "Successfully retrieved settings", "data": deserialized_data}
{"message": "Successfully retrieved settings", "data": deserialized_data.model_dump()}
)
except Exception as error:
return json_response_error(f"Error getting settings: {error}")
Expand All @@ -39,7 +39,7 @@ def get_test_autotrade_settings():
document_id="test_autotrade_settings"
).get_settings()
return json_response(
{"message": "Successfully retrieved settings", "data": deserialized_data}
{"message": "Successfully retrieved settings", "data": deserialized_data.model_dump()}
)
except Exception as error:
return json_response_error(f"Error getting settings: {error}")
Expand Down
2 changes: 1 addition & 1 deletion binquant
Submodule binquant updated from fc0e4d to 5bb3b3

0 comments on commit 97dace3

Please sign in to comment.