-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3a2979
commit 2236100
Showing
10 changed files
with
116 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
Metadata-Version: 2.1 | ||
Name: EasyEquities | ||
Version: 1.2.2 | ||
Summary: EasyEquities active scraper to issue trading instructions | ||
Home-page: https://github.com/kloniphani/EasyEquities | ||
Download-URL: https://github.com/kloniphani/EasyEquities/archive/refs/tags/v1.2.1.tar.gz | ||
Author: Kloniphani Maxakadzi | ||
Author-email: Kloniphani@gmail.com | ||
License: MIT | ||
Keywords: South Africa,Trading,EasyEQuities | ||
Classifier: Development Status :: 5 - Production/Stable | ||
Classifier: Intended Audience :: Developers | ||
Classifier: Topic :: Software Development :: Build Tools | ||
Classifier: License :: OSI Approved :: MIT License | ||
Classifier: Programming Language :: Python :: 3 | ||
Requires-Python: >=3.6 | ||
Description-Content-Type: text/markdown | ||
License-File: LICENSE | ||
|
||
# [EasyEquities](https://www.easyequities.co.za/) Python Package | ||
This is a Python package for interacting with the [EasyEquities](https://www.easyequities.co.za/) trading platform. It provides a simple way to log in, check account balances, and retrieve your holdings. | ||
|
||
## Requirements | ||
- Python 3.x | ||
- Selenium | ||
- pandas | ||
- Beautiful Soup 4 | ||
- GeckoDriverManager | ||
- Firefox | ||
|
||
## Installation | ||
To install, run: | ||
```bash | ||
pip install pandas selenium webdriver_manager beautifulsoup4 | ||
``` | ||
Then, install the package from PIP using: | ||
```bash | ||
pip install easyequities | ||
``` | ||
|
||
## Usage | ||
To use the package, you will need to import the package and create an instance of the EasyEquities class. You will need to provide your username and password as arguments. You can then use the `balance` and `holdings` methods to obtain your account balance and holdings, respectively. | ||
|
||
Here's an example of how to use the scraper: | ||
```python | ||
from easyequities import EasyEquities | ||
# Instantiate the EasyEquities class with your account credentials | ||
ee = EasyEquities('your_username', 'your_password') | ||
|
||
# Get your account balance | ||
balance = ee.balance() | ||
print(balance) | ||
|
||
# Get your holdings | ||
holdings = ee.holdings() | ||
print(holdings) | ||
|
||
# Sell your holdings | ||
ee.sell_holdings('holding') | ||
|
||
# Buy more holdings | ||
ee.buy_holdings('holding', 'amount') | ||
|
||
# Close the EasyEquities website | ||
ee.close() | ||
``` | ||
|
||
Note that the script uses Firefox as the web driver, so you'll need to have Firefox installed on your machine for it to work. If you don't have Firefox installed, you can download it [here](https://www.mozilla.org/en-US/firefox/new/). | ||
|
||
## License | ||
This code is licensed under the MIT License. See the [LICENSE](https://github.com/kloniphani/EasyEquities/blob/main/LICENSE). Feel free to use it for any purpose. | ||
|
||
# Disclaimers | ||
Before you start using the code, a few disclaimers: | ||
- This code does not come with any guarantee or warranty. | ||
- I am not a financial advisor. This work does not represent any financial advice. | ||
- I do not recommend the use of this code for any investment decisions. | ||
- This code is designed for personal use, and is not designed for high-volume extractions. | ||
- Use the code at your own risk. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
LICENSE | ||
README.md | ||
setup.cfg | ||
setup.py | ||
EasyEquities/__init__.py | ||
EasyEquities/broker.py | ||
EasyEquities.egg-info/PKG-INFO | ||
EasyEquities.egg-info/SOURCES.txt | ||
EasyEquities.egg-info/dependency_links.txt | ||
EasyEquities.egg-info/requires.txt | ||
EasyEquities.egg-info/top_level.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
validators | ||
beautifulsoup4 | ||
selenium | ||
urllib3 | ||
webdriver_manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
EasyEquities |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[metadata] | ||
description-file = README.md | ||
description_file = README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2236100
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
easy-equities – ./
easy-equities.vercel.app
easy-equities-git-main-kloniphani.vercel.app
easy-equities-kloniphani.vercel.app