Skip to content

Commit

Permalink
fix $ pass problem
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxxRK committed Nov 6, 2023
1 parent c6a444e commit 482ecc8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions firstrade/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def login(self):
'redirect': '',
'ft_locale': 'en-us',
'login.x': 'Log In',
'username': self.username,
'password': self.password,
'username': r'' + self.username,
'password': r'' + self.password,
'destination_page': 'home'
}

Expand Down
8 changes: 6 additions & 2 deletions firstrade/symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ def __init__(self, ft_session: FTSession, symbol: str):
self.ask = float(quote.find('ask').text)
self.last = float(quote.find('last').text)
self.change = float(quote.find('change').text)
self.high = float(quote.find('high').text)
self.low = float(quote.find('low').text)
if quote.find('high').text == 'N/A':
self.high = None
else:
self.high = float(quote.find('high').text)
if quote.find('low').text == 'N/A':
self.low = None
self.volume = quote.find('vol').text
self.company_name = quote.find('companyname').text
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

setuptools.setup(
name="firstrade",
version="0.0.6",
version="0.0.7",
author="MaxxRK",
author_email="[email protected]",
description="An unofficial API for Firstrade",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
url='https://github.com/MaxxRK/firstrade-api',
download_url='https://github.com/MaxxRK/firstrade-api/archive/refs/tags/006.tar.gz',
download_url='https://github.com/MaxxRK/firstrade-api/archive/refs/tags/007.tar.gz',
keywords=['FIRSTRADE', 'API'],
install_requires=['requests', 'beautifulsoup4', 'lxml'],
packages=['firstrade'],
Expand Down

0 comments on commit 482ecc8

Please sign in to comment.