schwabdev 3.0.3
An easy and lightweight wrapper for using the Charles Schwab API.
Requires Python: >=3.11
Keywords: python, schwab, api, client, finance, trading, stocks, equities, options, forex, futures

# Schwabdev
![PyPI - Version](https://img.shields.io/pypi/v/schwabdev) ![Discord](https://img.shields.io/discord/1076596998150561873?logo=discord) ![PyPI - Downloads](https://img.shields.io/pypi/dm/schwabdev) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/donate/?business=8VDFKHMBFSC2Q&no_recurring=0&currency_code=USD) ![YouTube Video Views](https://img.shields.io/youtube/views/kHbom0KIJwc?style=flat&logo=youtube)  
Schwabdev is an easy and lightweight python wrapper for using the Charles Schwab API.   
This package is not affiliated with or endorsed by Schwab, it is maintained by [Tyler Bowers](https://github.com/tylerebowers) & [Contributors](https://github.com/tylerebowers/Schwabdev/graphs/contributors).   
Licensed under the MIT license. Acts in accordance with Schwab's API terms and conditions.  

### Setup Guide: <a target="_blank" href="https://tylerebowers.github.io/Schwabdev/?source=pages%2Fsetupguide.html">Start Here</a>

Useful links:

* Join the <a target="_blank" href="https://discord.gg/m7SSjr9rs9">Discord</a> to ask questions or get help.
* Read the <a target="_blank" href="https://tylerebowers.github.io/Schwabdev/">Documentation</a>.
* Watch the <a target="_blank" href="https://youtu.be/69cniU1CTf8">Youtube</a> tutorial.
* Chat with the Schwabdev <a target="_blank" href="https://chatgpt.com/g/g-697d2ca9a1188191920e9c3c1eedc4f8-schwabdev-assistant">ChatGPT</a> assistant.
* View the <a target="_blank" href="https://pypi.org/project/schwabdev/">PyPi</a> package page.
* View the <a target="_blank" href="https://github.com/tylerebowers/Schwab-API-Python">Github</a> repository.


### What can this program do?
- Automatic token management and refreshes.  
- Authenticate and access the full api with minimal code. <a target="_blank" href="https://github.com/tylerebowers/Schwabdev/tree/main/docs/examples/api_demo.py">Examples</a>.  
- Stream real-time data with a customizable response handler <a target="_blank" href="https://github.com/tylerebowers/Schwabdev/tree/main/docs/examples/stream_demo.py">Examples</a>.  
- Place orders and get order details <a target="_blank" href="https://tylerebowers.github.io/Schwabdev/?source=pages%2Forders.html">Examples</a>. 
- Support for Synchronous and Asynchronous programming <a target="_blank" href="https://github.com/tylerebowers/Schwabdev/tree/main/docs/examples/async_api_calls.py">Examples</a>. 
- Optional token database encryption for security <a target="_blank" href="https://github.com/tylerebowers/Schwabdev/blob/main/docs/examples/extra/encrypted_db_setup.py">Example</a>.
- Optional automatic starting/stopping of streamer when market opens/closes.  
- Streaming stability with automatic restarts if the streamer crashes.  

### MIT License

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.