There exist saying:'If you want to be successful investor, just save your money and wait for recessions'. That means now is exactly such a time.
What i need from my Fortran colleagues is the following. Can you guys help me to connect API of Ameritrade or Quote Tracker to FTN95?
Fortran is ideal for such applications as controlling your stocks and trading since it is easy to manipulate textual content because API exchanges data with online broker in plain ASCII text using or not XML.
Then there exist Clearwin+ which makes all things very easy and self-explanatory. You can write the program which gets stock quotes and analyses them and then informs you about any changes in stocks or indexes which is hard to control manually looking into broker trading software screen like Ameritrade Command Center, Scottrade Pro or Quote Tracker.
What i have done before was HTTP connection to internal Quote Tracker software HTTP server via open port with FTN95 READ_URL@ subroutine.
It works like charm: suppose you need to know what symbols are in your portfolio. You make a command in Fortran
call read_URL@(http://127.0.0.1:16240/req?EnumEquities(),FileSave,0,ier )
and get from Server list of your stocks saved in the FileSave file:
OK MSFT,INTC,AMD,SVFT(Silverfrost 😃 ....
Or you need Citi bank stock prices from 13:00:00 to 13:01:00, you do
call read_URL@(http://127.0.0.1:16240/req?GetHistory(C,13:00:00,13:01:00,0.001,NO),FileSave,0,ier)
and get
OK
09/24/2009,13:00:04,4.86,4.86,4.86,4.86,0
09/24/2009,13:00:19,4.89,4.89,4.89,4.89,285637
09/24/2009,13:00:39,4.84,4.84,4.84,4.84,285637
.........
Really simple.
Unfortunately this easy way of communication with trading software is not allowing you to do everything else you can do. You can automate trading, get news, level I and II quotes etc using another method they recommend. Everything will be encrypted like you usually do if you do trading. For that you need to use Streaming API. Lot of people do that but no one using Fortran. The DLL, Help file and examples in Delphi, C++, C#, VB, Borland C++ Builder are available but i do not know these languages 'intimately' and can not really pay for transferring that into Fortran.
They do basically what Clearwin can easily and much more effectively do too. The simplest code could be as small as 10 lines instead of their tens of thousands.
So my requests to anyone who interested are the following:
for communication with QuoteTracker: if you know any of these languages and know how to make TCP/IP socket connection and make them available to FTN95, can you create simplest example which is doing just one simple function their API allows like 'Login' (connection to the socket) and request a quote from QT like in example above ?
for direct communication with Ameritrade: if you know how to use DLL or Activex, can you make it available to FTN95? Same simplest example how to do that is only needed
First one is more important since it does not depend of specific online brokerage, you can use it with any. This as i said will require just a half a page of Clearwin text, making streaming socket to connect to Quote Tracker internal server (some standard procedure) and execute a single function from the first link below. Everything else then will be clear and done automatically. I am sure if we publish similar example on their site for comparison they will not believe their eyes how simple everything is in FTN95 Fortran
I can send you all the info and files. You can download QuoteTtracker, initial info and examples about communication with its streaming API from here
https://www.quotetracker.com/help/QTStreamingAPI.shtml http://www.quotetracker.com/help/qtserver.shtml
By many reviews, Quote Tracker is one of the the greatest trading software which can be used literally with any online broker in the world with the best customer responds.