firstrade 0.0.17__py3-none-any.whl → 0.0.19__py3-none-any.whl

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.
firstrade/symbols.py CHANGED
@@ -42,10 +42,21 @@ class SymbolQuote:
42
42
  soup = BeautifulSoup(symbol_data.text, "xml")
43
43
  quote = soup.find("quote")
44
44
  self.symbol = quote.find("symbol").text
45
+ self.underlying_symbol = quote.find("underlying_symbol").text
46
+ self.tick = quote.find("tick").text
45
47
  self.exchange = quote.find("exchange").text
46
48
  self.bid = float(quote.find("bid").text.replace(",", ""))
47
49
  self.ask = float(quote.find("ask").text.replace(",", ""))
48
50
  self.last = float(quote.find("last").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
57
+ self.bid_mmid = quote.find("bidmmid").text
58
+ self.ask_mmid = quote.find("askmmid").text
59
+ self.last_mmid = quote.find("lastmmid").text
49
60
  self.change = float(quote.find("change").text.replace(",", ""))
50
61
  if quote.find("high").text == "N/A":
51
62
  self.high = None
@@ -55,7 +66,12 @@ class SymbolQuote:
55
66
  self.low = "None"
56
67
  else:
57
68
  self.low = float(quote.find("low").text.replace(",", ""))
69
+ self.change_color = quote.find("changecolor").text
58
70
  self.volume = quote.find("vol").text
59
- self.company_name = quote.find("companyname").text
71
+ self.bidxask = quote.find("bidxask").text
72
+ self.quote_time = quote.find("quotetime").text
73
+ self.last_trade_time = quote.find("lasttradetime").text
60
74
  self.real_time = quote.find("realtime").text == "T"
61
75
  self.fractional = quote.find("fractional").text == "T"
76
+ self.err_code = quote.find("errcode").text
77
+ self.company_name = quote.find("companyname").text
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: firstrade
3
- Version: 0.0.17
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/0017.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
@@ -49,8 +49,9 @@ pip install firstrade
49
49
 
50
50
  ## Quikstart
51
51
 
52
- The code below will:
52
+ `Checkout test.py for sample code.`
53
53
 
54
+ This code will:
54
55
  - Login and print account info.
55
56
  - Get a quote for 'INTC' and print out the information
56
57
  - Place a market order for 'INTC' on the first account in the `account_numbers` list
@@ -58,8 +59,6 @@ The code below will:
58
59
 
59
60
  `Checkout test.py for sample code.`
60
61
 
61
- This code is also in test.py
62
-
63
62
  ---
64
63
 
65
64
  ## Implemented Features
@@ -78,4 +77,5 @@ This code is also in test.py
78
77
  - [ ] Options
79
78
  - [ ] Give me some Ideas!
80
79
 
81
- [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/O5O6PTOYG)
80
+ ## If you would like to support me, you can do so here:
81
+ [![GitHub Sponsors](https://img.shields.io/github/sponsors/maxxrk?style=social)](https://github.com/sponsors/maxxrk)
@@ -0,0 +1,10 @@
1
+ firstrade/__init__.py,sha256=fNiWYgSTjElY1MNv0Ug-sVLMTR2z_Ngri_FY7Pekdrw,95
2
+ firstrade/account.py,sha256=xDgTMXDy2UWUNi4kboXAKKBrbmZGpXLJ11MCHlMvzB0,9218
3
+ firstrade/order.py,sha256=BK2OmIOr_LO4SrNRVWjkydaoc_4fLkl6Rr7_LCRTyLE,7635
4
+ firstrade/symbols.py,sha256=tZD7jexvyvh1rTaOdAKv_vyZWzpjffvl_nPwBe1QaiA,3633
5
+ firstrade/urls.py,sha256=OrfXGDsNpA2rTm4o55KAQzpeigG_pxufWyTDBlbhJYQ,1248
6
+ firstrade-0.0.19.dist-info/LICENSE,sha256=wPEQjDqm5zMBmEcZp219Labmq_YIjhudpZiUzyVKaFA,1057
7
+ firstrade-0.0.19.dist-info/METADATA,sha256=apZ7RN0uTgzdVp90m3LeQyZcs34zBtWtUTFmxK7akFA,2399
8
+ firstrade-0.0.19.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
9
+ firstrade-0.0.19.dist-info/top_level.txt,sha256=tdA8v-KDxU1u4VV6soiNWGBlni4ojv_t_j2wFn5nZcs,10
10
+ firstrade-0.0.19.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (70.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,10 +0,0 @@
1
- firstrade/__init__.py,sha256=fNiWYgSTjElY1MNv0Ug-sVLMTR2z_Ngri_FY7Pekdrw,95
2
- firstrade/account.py,sha256=xDgTMXDy2UWUNi4kboXAKKBrbmZGpXLJ11MCHlMvzB0,9218
3
- firstrade/order.py,sha256=BK2OmIOr_LO4SrNRVWjkydaoc_4fLkl6Rr7_LCRTyLE,7635
4
- firstrade/symbols.py,sha256=0lVuHgmrpwANyRlOlsXCTr6xsT5aWqBIIXH66q9ezb8,2675
5
- firstrade/urls.py,sha256=OrfXGDsNpA2rTm4o55KAQzpeigG_pxufWyTDBlbhJYQ,1248
6
- firstrade-0.0.17.dist-info/LICENSE,sha256=wPEQjDqm5zMBmEcZp219Labmq_YIjhudpZiUzyVKaFA,1057
7
- firstrade-0.0.17.dist-info/METADATA,sha256=55lP4v_p1nwokaPvBwzJr0-2ANDeND3KqdwCDWCOGto,2307
8
- firstrade-0.0.17.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
9
- firstrade-0.0.17.dist-info/top_level.txt,sha256=tdA8v-KDxU1u4VV6soiNWGBlni4ojv_t_j2wFn5nZcs,10
10
- firstrade-0.0.17.dist-info/RECORD,,