Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

schwab-advisor

Typed Python client for the Schwab Advisor Services API — the institutional API set for RIAs custodying at Schwab, not the retail Trader API.

pip install schwab-advisor

Quickstart

Credentials come from the environment (or pass them to SchwabAuth directly):

Variable Meaning
SCHWAB_CLIENT_ID OAuth client id
SCHWAB_CLIENT_SECRET OAuth client secret
SCHWAB_REDIRECT_URI Redirect URI (default https://127.0.0.1)
SCHWAB_TOKEN_FILE Token store (default ~/.schwab_tokens.json)
SCHWAB_ENVIRONMENT sandbox (default) or production
from schwab_advisor import SchwabAdvisorClient

with SchwabAdvisorClient() as client:
    profiles = client.get_account_profiles(page_limit=25, show_account="Show")
    for p in profiles.profiles:
        print(p.formatted_account, p.account_title)

    balances = client.get_balance_detail(profiles.profiles[0].formatted_account)
    positions = client.get_positions_list([p.formatted_account for p in profiles.profiles[:5]])

Every response is a typed dataclass with a raw_data escape hatch, so a field the models do not yet cover is still reachable.

Coverage

Wrappers for the Advisor Services products, grouped by segment:

  • Accounts — account profiles, Account Inquiry (master accounts, accounts, account owners), Client Inquiry, Profiles and account holders, Preferences & Authorizations, Address Changes, Account Synchronization
  • Portfolio — Balances, Positions, Transactions, Cost Basis (realized/unrealized gain-loss, lots, preferences)
  • Move Money — Standing Authorizations, ACH and wire transfers, Move Money Activity, tax-withholding elections
  • Documents & status — Reports (statements, confirmations, tax documents, PDF retrieval), Document Preferences, Alerts, Status, Service Requests, Feature Enrollment
  • Trading — order submission, cancel/replace, order status, blotter and allocation upload

Access is granted per API product and per route on your Schwab app, so what you can actually call depends on your entitlements, not on this library. A 401 carrying InvalidAPICallAsNoApiProductMatchFound in the www-authenticate header means the route is not attached to your app — not that your token is bad.

Development

poetry install
poetry run python -m pytest

The suite is offline and hermetic — every HTTP call is mocked, so it runs without credentials.

Two suites diff the models against Schwab's OpenAPI specifications to catch under-parsing. Those specs are Schwab's to distribute, so they are not vendored here; the suites skip unless you point at a directory containing them:

SCHWAB_SPECS_DIR=/path/to/specs poetry run python -m pytest

Status

Validated end to end against the Schwab sandbox across four rounds of Schwab's own technical-validation scenarios. Model completeness is enforced by a schema-coverage guard; raw_data is retained on every model so drift never blocks a caller.

License

Apache-2.0 — see LICENSE.

Metadata

Release files for schwab-advisor 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for schwab-advisor 0.4.1
File Size Uploaded Provenance Actions
schwab_advisor-0.4.1.tar.gz 66.1 kB With provenance Details for schwab_advisor-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for schwab-advisor 0.4.1
File Interpreter ABI Platform Actions
schwab_advisor-0.4.1-py3-none-any.whl Python 3 none any Details for schwab_advisor-0.4.1-py3-none-any.whl

Total release size: 134.8 kB

Release files / schwab_advisor-0.4.1.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL schwab_advisor-0.4.1.tar.gz
Size 66.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a0a13ebd0b8a78a6ccccc6dcb37ea6acee86bead98233fcb1b61592d7930f860
BLAKE2b-256 checksum
How to use checksums
66855de7f30adfaad21298dd22d239a663352a67fdaf55ac0f26977e82e0d6c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 30, 2026.

Transparency log

Release files / schwab_advisor-0.4.1-py3-none-any.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL schwab_advisor-0.4.1-py3-none-any.whl
Size 68.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8161da99794e22b4a562b88b47c76019aa3a12d92d7bc5e5849b3ded9bd8b7d
BLAKE2b-256 checksum
How to use checksums
bfaab84c40a14abdecfa62b898469db83ec8cea66b9fa5e0f3960fe2e4efe8db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 30, 2026.

Transparency log

Security for schwab-advisor 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Change of provenance

The repository and configuration that created this release differ from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 2 files

Attestation for schwab_advisor-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page