emacs/var/elfeed/db/data/a1/a1b2682c035cbfac96eabc029459f987707317ef
2022-01-03 12:49:32 -06:00

1 line
1.9 KiB
Plaintext

<!-- SC_OFF --><div class="md"><p>I&#39;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&#39;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&#39;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.</p> <p>In a nutshell, I only need to tell Emacs: <code>50.35 RET</code> and then perhaps 15 seconds later <code>51.25 RET</code>. I have installed <code>KeyboardMaestro</code>, for systemwide keyboard shortcuts offering a variety of options, including executing scripts and so forth.</p> <p>I have two (2) Emacs options for order submission, either calling the <code>curl</code> executable, or running <code>url-retrieve-synchronously</code>.</p> <p>Any ideas regarding how to do this Emacs order entry quickly and save screen real estate would be greatly appreciated.</p> <p>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.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/lawlist"> /u/lawlist </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/rsjtfj/ideas_for_quick_emacs_entry_of_orders_to_buysell/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/rsjtfj/ideas_for_quick_emacs_entry_of_orders_to_buysell/">[comments]</a></span>