Kay Herbert:
Try
URLFetch[
"https://apis.tdameritrade.com/apps/300/LogIn?source=#sourceID#&version=#version number#",
"Method" -> "Post",
"Headers" -> {"Content-Type" -> "application/x-www-form-urlencoded"},
"BodyData" -> "userid=#userid#&password=#password#&source=#sourceID#&version=#version number#\n\n",
"Cookies" -> True,
"VerifyPeer" -> True]
These variables are assigned by TD Ameritrade, hopefully you have them
- userid=#userid#
- password=#password#
- source=#sourceID#
- version=#version number#
Also assume you can fill in the proper Mathematica variables and re-work this starter code to work. So the #variable# should be replaced with the correct strings.
Hans