schwabtools


Nameschwabtools JSON
Version 0.0.6 PyPI version JSON
download
home_pageNone
SummarySchwab API Python Client (unofficial)
upload_time2024-06-02 03:10:49
maintainerNone
docs_urlNone
authorTyler Bowers
requires_pythonNone
licenseNone
keywords python schwab api client
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Schwab-API-Python 
This is an unofficial python program to access the Schwab api.    
You will need a Schwab developer account [here](https://beta-developer.schwab.com/).        
Join the [Discord group](https://discord.gg/m7SSjr9rs9)


## Quick setup
1. Create a new Schwab individual developer app with callback url "https://127.0.0.1" and wait until the status is "Ready for use", note that "Approved - Pending" will not work.
2. Enable TOS (Thinkorswim) for your Schwab account, it is needed for orders and other api calls.
3. Python version 3.11 or higher is required.     
4. `pip3 install requests websockets`
5. Import the package `import schwabkit`
6. Create a client `schwabkit.Client('Your app key', 'Your app secret')`

## What can this program do?
 - Authenticate and access the api 
 - Functions for all api functions (examples in `demo.py`)
 - Auto "access token" updates (`.update_tokens_auto()`)
 - Stream real-time data (`coming soon`)
 - Automatically start/stop stream (`coming soon`)
 ### TBD 
 - Automatic refresh token updates. (Waiting for Schwab implementation)
 - Customizable stream response handler. (Waiting for Schwab implementation)


## Usage and Design
This python client makes working with the TD/Schwab api easier.    
The idea is to make an easy to understand, organized, and highly-automatic interface for the api.   
Below is a light documentation on how it works, python is pseudocode-esk so if you are confused just read the code and follow the functions. 

### Organization

The root of the client:
 - `main.py` where the main program is run from, contains examples for you to get started with.
 - `tokens.json` contains api tokens as well as dates for when they expire.

The schwabkit folder contains code for main operations:     
 - `api.py` contains functions relating to api calls, requests, and automatic token checker threads.
 - `stream.py` contains functions for streaming data from websockets.
 - `terminal.py` contains a program for making additional terminal windows and printing to the terminal with color.

## License (MIT)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "schwabtools",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, schwab, api, client",
    "author": "Tyler Bowers",
    "author_email": "tylerebowers@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/28/a2/88308a4936f765fc9eadc678a0713cddaaf299cb41993d51120f8604982b/schwabtools-0.0.6.tar.gz",
    "platform": null,
    "description": "# Schwab-API-Python \nThis is an unofficial python program to access the Schwab api.    \nYou will need a Schwab developer account [here](https://beta-developer.schwab.com/).        \nJoin the [Discord group](https://discord.gg/m7SSjr9rs9)\n\n\n## Quick setup\n1. Create a new Schwab individual developer app with callback url \"https://127.0.0.1\" and wait until the status is \"Ready for use\", note that \"Approved - Pending\" will not work.\n2. Enable TOS (Thinkorswim) for your Schwab account, it is needed for orders and other api calls.\n3. Python version 3.11 or higher is required.     \n4. `pip3 install requests websockets`\n5. Import the package `import schwabkit`\n6. Create a client `schwabkit.Client('Your app key', 'Your app secret')`\n\n## What can this program do?\n - Authenticate and access the api \n - Functions for all api functions (examples in `demo.py`)\n - Auto \"access token\" updates (`.update_tokens_auto()`)\n - Stream real-time data (`coming soon`)\n - Automatically start/stop stream (`coming soon`)\n ### TBD \n - Automatic refresh token updates. (Waiting for Schwab implementation)\n - Customizable stream response handler. (Waiting for Schwab implementation)\n\n\n## Usage and Design\nThis python client makes working with the TD/Schwab api easier.    \nThe idea is to make an easy to understand, organized, and highly-automatic interface for the api.   \nBelow is a light documentation on how it works, python is pseudocode-esk so if you are confused just read the code and follow the functions. \n\n### Organization\n\nThe root of the client:\n - `main.py` where the main program is run from, contains examples for you to get started with.\n - `tokens.json` contains api tokens as well as dates for when they expire.\n\nThe schwabkit folder contains code for main operations:     \n - `api.py` contains functions relating to api calls, requests, and automatic token checker threads.\n - `stream.py` contains functions for streaming data from websockets.\n - `terminal.py` contains a program for making additional terminal windows and printing to the terminal with color.\n\n## License (MIT)\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Schwab API Python Client (unofficial)",
    "version": "0.0.6",
    "project_urls": null,
    "split_keywords": [
        "python",
        " schwab",
        " api",
        " client"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22fa9db976f55098ea8e926ca2326887c3b1ddd60ca256e060ca0ca90442d7c7",
                "md5": "8082cea3126e91198688a89fae54abb0",
                "sha256": "7a1d3d947afe6e09741676bb2375edb8deee7877751f5c9c5e2d476b1ab7af2b"
            },
            "downloads": -1,
            "filename": "schwabtools-0.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8082cea3126e91198688a89fae54abb0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 11481,
            "upload_time": "2024-06-02T03:10:46",
            "upload_time_iso_8601": "2024-06-02T03:10:46.703896Z",
            "url": "https://files.pythonhosted.org/packages/22/fa/9db976f55098ea8e926ca2326887c3b1ddd60ca256e060ca0ca90442d7c7/schwabtools-0.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "28a288308a4936f765fc9eadc678a0713cddaaf299cb41993d51120f8604982b",
                "md5": "b40132ae5f04ae6ca4d2033de44f144e",
                "sha256": "46f414711fc386783fb8e70b7a69adf6dc4ca370fbf40b81a8870d4c9351d4ad"
            },
            "downloads": -1,
            "filename": "schwabtools-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "b40132ae5f04ae6ca4d2033de44f144e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 12115,
            "upload_time": "2024-06-02T03:10:49",
            "upload_time_iso_8601": "2024-06-02T03:10:49.822285Z",
            "url": "https://files.pythonhosted.org/packages/28/a2/88308a4936f765fc9eadc678a0713cddaaf299cb41993d51120f8604982b/schwabtools-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-02 03:10:49",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "schwabtools"
}
        
Elapsed time: 0.29735s