firstrade 0.0.16__py3-none-any.whl → 0.0.18__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,18 @@ 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
+ 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(",", ""))
54
+ self.bid_mmid = quote.find("bidmmid").text
55
+ self.ask_mmid = quote.find("askmmid").text
56
+ self.last_mmid = quote.find("lastmmid").text
49
57
  self.change = float(quote.find("change").text.replace(",", ""))
50
58
  if quote.find("high").text == "N/A":
51
59
  self.high = None
@@ -55,7 +63,12 @@ class SymbolQuote:
55
63
  self.low = "None"
56
64
  else:
57
65
  self.low = float(quote.find("low").text.replace(",", ""))
66
+ self.change_color = quote.find("changecolor").text
58
67
  self.volume = quote.find("vol").text
59
- self.company_name = quote.find("companyname").text
68
+ self.bidxask = quote.find("bidxask").text
69
+ self.quote_time = quote.find("quotetime").text
70
+ self.last_trade_time = quote.find("lasttradetime").text
60
71
  self.real_time = quote.find("realtime").text == "T"
61
72
  self.fractional = quote.find("fractional").text == "T"
73
+ self.err_code = quote.find("errcode").text
74
+ 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.16
3
+ Version: 0.0.18
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/0016.tar.gz
6
+ Download-URL: https://github.com/MaxxRK/firstrade-api/archive/refs/tags/0018.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=efVqOycVDuXUO_YJsmu2PZt7AkYk_8UdcNC4yKJD24g,3444
5
+ firstrade/urls.py,sha256=OrfXGDsNpA2rTm4o55KAQzpeigG_pxufWyTDBlbhJYQ,1248
6
+ firstrade-0.0.18.dist-info/LICENSE,sha256=wPEQjDqm5zMBmEcZp219Labmq_YIjhudpZiUzyVKaFA,1057
7
+ firstrade-0.0.18.dist-info/METADATA,sha256=Aav8pBRUxVQPuP1jRZGYCZUejQKfN4f1pYaJQsEHeUM,2399
8
+ firstrade-0.0.18.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
9
+ firstrade-0.0.18.dist-info/top_level.txt,sha256=tdA8v-KDxU1u4VV6soiNWGBlni4ojv_t_j2wFn5nZcs,10
10
+ firstrade-0.0.18.dist-info/RECORD,,
@@ -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.16.dist-info/LICENSE,sha256=wPEQjDqm5zMBmEcZp219Labmq_YIjhudpZiUzyVKaFA,1057
7
- firstrade-0.0.16.dist-info/METADATA,sha256=bHjrgXkFBouGxytPrSiZJLFUJY3o-hcyH8fMymX_iQg,2307
8
- firstrade-0.0.16.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
9
- firstrade-0.0.16.dist-info/top_level.txt,sha256=tdA8v-KDxU1u4VV6soiNWGBlni4ojv_t_j2wFn5nZcs,10
10
- firstrade-0.0.16.dist-info/RECORD,,