Skip to content

Commit

Permalink
Fix fetch pie endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoelho93 committed May 5, 2024
1 parent 7be0215 commit 0aff387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "python-trading212"
version = "2.0.0"
version = "2.0.1"
description = "An unofficial client for the official Trading212 API"
authors = ["José Coelho <16445494+jcoelho93@users.noreply.github.com>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion trading212/trading212.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def create_pie(self, pie: Pie) -> Pie:
Returns:
Pie: the new pie
"""
endpoint = self.url + "equity/pie"
endpoint = self.url + "equity/pies"
response = self._post(endpoint, pie.model_dump())

return Pie(**response)
Expand Down

0 comments on commit 0aff387

Please sign in to comment.