Skip to content

Commit

Permalink
fix prices_am (#80)
Browse files Browse the repository at this point in the history
* prices_am fix

* lint-fix
  • Loading branch information
t-shinno authored Jun 29, 2023
1 parent 32b683c commit 0ae5d8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquantsapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,10 @@ def get_prices_prices_am(
code=code,
)
d = json.loads(j)
if d.get("message"):
return d["message"]
data = d["prices_am"]
while "pagination_key" in d:
if d.get("message"):
return d["message"]
j = self._get_prices_prices_am_raw(
code=code,
pagination_key=d["pagination_key"],
Expand Down

0 comments on commit 0ae5d8d

Please sign in to comment.