firstrade 0.0.16__tar.gz → 0.0.18__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.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)
@@ -24,8 +24,9 @@ pip install firstrade
24
24
 
25
25
  ## Quikstart
26
26
 
27
- The code below will:
27
+ `Checkout test.py for sample code.`
28
28
 
29
+ This code will:
29
30
  - Login and print account info.
30
31
  - Get a quote for 'INTC' and print out the information
31
32
  - Place a market order for 'INTC' on the first account in the `account_numbers` list
@@ -33,8 +34,6 @@ The code below will:
33
34
 
34
35
  `Checkout test.py for sample code.`
35
36
 
36
- This code is also in test.py
37
-
38
37
  ---
39
38
 
40
39
  ## Implemented Features
@@ -53,4 +52,5 @@ This code is also in test.py
53
52
  - [ ] Options
54
53
  - [ ] Give me some Ideas!
55
54
 
56
- [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/O5O6PTOYG)
55
+ ## If you would like to support me, you can do so here:
56
+ [![GitHub Sponsors](https://img.shields.io/github/sponsors/maxxrk?style=social)](https://github.com/sponsors/maxxrk)
@@ -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)
@@ -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.16",
8
+ version="0.0.18",
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/0016.tar.gz",
16
+ download_url="https://github.com/MaxxRK/firstrade-api/archive/refs/tags/0018.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