Details about how to obtain access tokens using OAuth 2.0

Fetch positions, balances and other account related details.

Place equity and complex option trades including advanced orders.

Fetch quotes, chains and historical data via REST and streaming APIs.

Stream market data and account events in real-time.

Create and update custom watchlists.

Examples, response types, property details and explanations.

Create an Access Token

  • Available in Sandbox
  • Available in Production
  • Available to Advisors
  • Supported

Access tokens are the keys used for API access. These tokens should be protected like passwords! You can obtain an access token by exchanging an authorization code. This call is authenticated using Basic Authentication implemented in HTTP specification. Your application client ID will serve as your username and the client secret the password.

Unlike other requests to the Tradier API, this request only returns JSON due to the OAuth 2.0 specification and for compatibility with most OAuth clients.

Due to the OAuth specification, this API endpoint uses HTTP Basic Authentication. You can learn more about HTTP Basic Authentication on Wikipedia or directly reference the specification.




Header Required Values/Example Default
Content-Type Required application/x-www-form-urlencoded
Authorization Required ANyuWJBNwcQwFZLAKSDJ7248ghX1LFy949v
Basic HTTP Authentication. Username: Application client Id, Password: Application client secret


Parameter Type Param Type Required Values/Example Default
grant_type Form String Required authorization_code
Value MUST be set to "authorization_code".
code Form String Required PRpnf1o7
The authorization code from the authorization step.


Response Definition

  "access_token": "oG8RUzo33zKy3gghjkGh2au2LEWA8",
  "expires_in": 86399,
  "issued_at": "2014-05-28T09:33:35-04:00",
  "scope": "read write trade market stream",
  "status": "approved"