I'm on a Mac (El Capitan). With a little recent help from the emacs.stackexchange.com forum participants, I have written up a few Emacs functions to refresh the TD Ameritrade access token for its API, and to submit custom buy/sell orders for equities (although it could be for options trading too, but that's not my cup of tea). At some point in the future, I hope to write Lisp code to stream TDA data using the API and make trading decisions from within Emacs. For the near foreseeable future, however, I'll be relying upon watching the Thinkorswim desktop application to make decisions to buy/sell. Screen real estate is precious, as I need to see the charts, studies, order flow, etc.

In a nutshell, I only need to tell Emacs: 50.35 RET and then perhaps 15 seconds later 51.25 RET. I have installed KeyboardMaestro, for systemwide keyboard shortcuts offering a variety of options, including executing scripts and so forth.

I have two (2) Emacs options for order submission, either calling the curl executable, or running url-retrieve-synchronously.

Any ideas regarding how to do this Emacs order entry quickly and save screen real estate would be greatly appreciated.

BACKGROUND: There are certain custom orders available through TDA that cannot be executed programmatically from within Thinkorswim, but that should be possible through the API. Speed is the key as I am interested in momentum trades with high volatility.

submitted by /u/lawlist
[link] [comments]