Skip to main content

A Python library for the Schwab trading API

Project description

Schwab API Python Library

MIT License

A Python library for interacting with the Schwab API. This library provides a simple and convenient way to access Schwab's financial data and services programmatically.

Installation

You can install the library using pip:

pip install schwab-api

Usage

Here's a basic example of how to use the library:

from schwab_api import SchwabClient

# Initialize the client
client = SchwabClient(api_key='your_api_key')

# Get account information
account_info = client.get_account_info()
print(account_info)

# Place a trade
trade_response = client.place_trade(symbol='AAPL', quantity=10, order_type='buy')
print(trade_response)

Features

  • Retrieve account information
  • Place trades
  • Check order status
  • Access market data
  • And more...

Documentation

For detailed usage and API reference, please refer to the Documentation.

Contributing

We welcome contributions! Please see the CONTRIBUTING.md file for more information.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

  • Special thanks to the Schwab API team for providing the API and documentation.
  • Inspired by other financial API libraries.

Contact

For any questions or issues, please open an issue on GitHub or contact us at [your.email@example.com].


Note: Replace placeholders such as your_api_key, yourusername, and your.email@example.com with your actual details.


License

MIT License

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyschwab-0.0.1.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

pyschwab-0.0.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file pyschwab-0.0.1.tar.gz.

File metadata

  • Download URL: pyschwab-0.0.1.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.7 Darwin/21.6.0

File hashes

Hashes for pyschwab-0.0.1.tar.gz
Algorithm Hash digest
SHA256 77c67ae81e74747e91f7371323f6c8c3250453b28e4b5066f44a215267b16257
MD5 fce15653f87edf09b3c0ea8ef5e65bc3
BLAKE2b-256 8e66a3c3181f75859fe06fcfb82c83710f1eab7a48c101fea03982cfabf2e4a5

See more details on using hashes here.

File details

Details for the file pyschwab-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyschwab-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.7 Darwin/21.6.0

File hashes

Hashes for pyschwab-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4143ecb2714e2cee2aad1b52edeefdabe54005aa54ea530b251a170e9b7ec0fb
MD5 8cc1850992eb1ae26572fb78ed0c4329
BLAKE2b-256 eeddf98a40699c770327432869de251d05126f577f325dd4f167ce1e619fbe50

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page