Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Charles Schwab Trader User Preferences API
description: REST API for accessing Charles Schwab retail brokerage accounts. Applications can list linked accounts, retrieve balances and positions, place and cancel equity and option orders, and read order and transaction history. Authentication uses OAuth 2.0 with three-legged authorization code flow; access tokens expire after 30 minutes and refresh tokens after 7 days.
version: '1.0'
contact:
name: Schwab Developer Support
url: https://developer.schwab.com/contact-us
termsOfService: https://developer.schwab.com/terms
servers:
- url: https://api.schwabapi.com/trader/v1
description: Schwab Trader Production
security:
- oauth2: []
tags:
- name: User Preferences
description: User account preferences and metadata
paths:
/userPreference:
get:
operationId: getUserPreference
summary: Get the authenticated user preferences
tags:
- User Preferences
responses:
'200':
description: User preferences
components:
securitySchemes:
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://api.schwabapi.com/v1/oauth/authorize
tokenUrl: https://api.schwabapi.com/v1/oauth/token
scopes:
api: Access Schwab Trader and Market Data APIs
externalDocs:
description: Schwab Trader API Documentation
url: https://developer.schwab.com/products/trader-api--individual