firstrade 0.0.18__tar.gz → 0.0.19__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: firstrade
3
- Version: 0.0.18
3
+ Version: 0.0.19
4
4
  Summary: An unofficial API for Firstrade
5
5
  Home-page: https://github.com/MaxxRK/firstrade-api
6
- Download-URL: https://github.com/MaxxRK/firstrade-api/archive/refs/tags/0018.tar.gz
6
+ Download-URL: https://github.com/MaxxRK/firstrade-api/archive/refs/tags/0019.tar.gz
7
7
  Author: MaxxRK
8
8
  Author-email: maxxrk@pm.me
9
9
  License: MIT
@@ -48,9 +48,12 @@ class SymbolQuote:
48
48
  self.bid = float(quote.find("bid").text.replace(",", ""))
49
49
  self.ask = float(quote.find("ask").text.replace(",", ""))
50
50
  self.last = float(quote.find("last").text.replace(",", ""))
51
- self.bid_size = int(quote.find("bidsize").text.replace(",", ""))
52
- self.ask_size = int(quote.find("asksize").text.replace(",", ""))
53
- self.last_size = int(quote.find("lastsize").text.replace(",", ""))
51
+ temp_store = quote.find("bidsize").text.replace(",", "")
52
+ self.bid_size = int(temp_store) if temp_store.isdigit() else 0
53
+ temp_store = quote.find("asksize").text.replace(",", "")
54
+ self.ask_size = int(temp_store) if temp_store.isdigit() else 0
55
+ temp_store = quote.find("lastsize").text.replace(",", "")
56
+ self.last_size = int(temp_store) if temp_store.isdigit() else 0
54
57
  self.bid_mmid = quote.find("bidmmid").text
55
58
  self.ask_mmid = quote.find("askmmid").text
56
59
  self.last_mmid = quote.find("lastmmid").text
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: firstrade
3
- Version: 0.0.18
3
+ Version: 0.0.19
4
4
  Summary: An unofficial API for Firstrade
5
5
  Home-page: https://github.com/MaxxRK/firstrade-api
6
- Download-URL: https://github.com/MaxxRK/firstrade-api/archive/refs/tags/0018.tar.gz
6
+ Download-URL: https://github.com/MaxxRK/firstrade-api/archive/refs/tags/0019.tar.gz
7
7
  Author: MaxxRK
8
8
  Author-email: maxxrk@pm.me
9
9
  License: MIT
@@ -5,7 +5,7 @@ with open("README.md", "r") as f:
5
5
 
6
6
  setuptools.setup(
7
7
  name="firstrade",
8
- version="0.0.18",
8
+ version="0.0.19",
9
9
  author="MaxxRK",
10
10
  author_email="maxxrk@pm.me",
11
11
  description="An unofficial API for Firstrade",
@@ -13,7 +13,7 @@ setuptools.setup(
13
13
  long_description_content_type="text/markdown",
14
14
  license="MIT",
15
15
  url="https://github.com/MaxxRK/firstrade-api",
16
- download_url="https://github.com/MaxxRK/firstrade-api/archive/refs/tags/0018.tar.gz",
16
+ download_url="https://github.com/MaxxRK/firstrade-api/archive/refs/tags/0019.tar.gz",
17
17
  keywords=["FIRSTRADE", "API"],
18
18
  install_requires=["requests", "beautifulsoup4", "lxml"],
19
19
  packages=["firstrade"],
File without changes
File without changes
File without changes
File without changes