Schwabdev
This package is not affiliated with or endorsed by Schwab, it is maintained by Tyler Bowers & Contributors.
Licensed under the MIT license. Acts in accordance with Schwab's API terms and conditions.
Useful links:
Installation and Setup
Full setup instructions can be found in the documentation page.
pip install schwabdev
You may need to use pip3
instead of pip
What can this program do?
Automatic token management and refreshes.
Authenticate and access the full api with minimal code. see examples
Stream real-time data with a customizable response handler see examples
Place orders and get order details see examples
Optional capture of callback urls when callback has a port (starts webserver on this port).
Optional automatic starting/stopping of streamer when market opens/closes.
Streaming stability with automatic restarts if the streamer crashes.
Developer Notes
The schwabdev folder contains code for main operations:
__init__.py
linker to client class.client.py
contains functions relating to api calls and requests.tokens.py
contains functions relating to token management.stream.py
contains functions for streaming data from websockets.
Youtube Tutorials
Github code has changed since these videos
- Authentication and Requests
- Streaming Real-time Data
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.