Skip to content

Commit

Permalink
made yearly return optional (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
stabacco authored Nov 3, 2020
1 parent 40861a8 commit 45261f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ If you already have an existing token you can pass it on to the `StakeClient` as
from stake import StakeClient, SessionTokenLoginRequest, CredentialsLoginRequest
import asyncio

login_request = SessionTokenLoginRequest(token="secrettoken")
login_request = SessionTokenLoginRequest()
async def print_user():
async with StakeClient(login_request) as stake_session:
print(stake_session.user.first_name)
Expand Down
4 changes: 2 additions & 2 deletions stake/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class Product(BaseModel):
daily_return_percentage: float
last_traded: float
monthly_return: int
yearly_return_percentage: float
yearly_return_value: float
yearly_return_percentage: Optional[float] = None
yearly_return_value: Optional[float] = None
popularity: int
watched: int
news: int
Expand Down

0 comments on commit 45261f9

Please sign in to comment.