Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Client for "Schwab Trader API - Individual"

Files you must create (from your Schwab App settings page):

  • Private folder
  • "appParameters.json"
{
	"client_id":"32 char", 
	"client_secret":"16 char",
	"redirect_uri":"https://domain.ext/folder/"
}

Files that get generated you can check for debugging:

  • API requests and responses: "transactions-log.html"
  • Access Tokens: "accessTokens.json"
  • Account Number: "accountNumbers.json"

For support: traderapi@schwab.com

Trigger functions like this from your web browser

Timings

  • 30 seconds after finishing "auth" you must use the URL variable 'code' to create an access_token
  • 30 minutes until access_token expires before refresh_token needed to get new access_token
  • 7 days to use the refresh_token before you need to re-auth

Notes

  • Change "c:/wamp64/priv/schwab/" in functions.php to your own private data folder (not inside htdocs or www)

About

Get quotes and trade stocks using this PHP client to access the Schwab Developer API

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages