Thinkorswim Rtd Excel

Posted on  by 

Thinkorswim

Your code
as a service
Monetise your repos, packages & libraries in a flash with gitstore. sign up with github sign up with email

Hi I'm usign the RTD function in excel to retrieve data from Thinkorswim. The data comes in as text (I presume, since its on the left side of the cell), I need the data to be number, so I can use it in calculations. See attached spreadsheet for example (you need thinkorswim to get the function to work).

ExcelThinkorswim Rtd Excel

Listen to real-time data feed from ThinkOrSwim using Node JS and Excel

Excel

RTD is an Excel function that, for our purposes, opens up communications with ThinkOrSwim. RTD can act upon information sent between parenthesis in a particular order: “TOS.RTD” is sent as the 1 st RTD parameter. Have you ever wondered how to include real time live data from Thinkorswim platform into a spreadsheet? Once you learn this simple technique, you will be abl. Connecting ThinkOrSwim to Excel via RTD Hi forum. I have the tradingplatform Think or Swim (ToS) and would like to get live datafeed from ToS to Excel via the RTD.

Only works with Windows operating systems due to limitations with ThinkOrSwim.

Setup

  1. Launch ThinkOrSwim and log in.
  2. Open 'MarketWatch' tab and customize a data set.
    1. Click the tiny settings icon in the right most column then click 'Customize'.
  3. Click the 'Show actions menu' button (list icon) in the top right.
  4. Hover over 'Export' and click 'To Microsoft Excel'.
    1. The current watchlist, formatted for Excel, is copied to the clipboard.
  5. Open 'tos-rtd.xlsm' from the tos_rtd repository.
  6. Either paste directly into the Excel document or into 'scanner.csv' and save the file.
    1. The Excel script is written to 'pick up' the changes made to scanner.csv every minute.
  7. Using a terminal app like Command Prompt navigate to the tos_rtd directory and run 'node listen.js'.

Once a watchlist has been configured, only step #1, #5, and #7 are needed. To edit a watchlist, all steps are required.

Connecting Thinkorswim To Excel

How it works

Excel acts as a middle man between ThinkOrSwim and Node JS by importing data from TOS and exporting for use with Node.

  • ThinkOrSwim creates a new RTD server instance for use with RTD client applications like Microsoft Excel.
  • Once the RTD connection has been established, an Excel script (VBA) runs in the background to listen for changes to the Excel document.
  • If a change is detected, that row of data is exported to a file in the tos_rtd directory in a querystring format:

Thinkorswim Excel Spreadsheets

Thinkorswim rtd excel download
  • The Node JS script 'listen.js' uses a built-in function to listen for changes in the 'data-stream' directory and parses the contents of the changed file.

Coments are closed