Introduction

Personal Stock Streamer (PSS) is an advanced investment tracking application for Windows.  Part of the feature set that was added in PSS 7.0 was a scripting interface and object model that allows customer familiar with scripting languages to interact with and extend the software.  This document describes that object model.  Currently supported scripting languages are VBScript, JScript/JavaScript, PerlScript, and Python.

Script Functionality

Personal Stock Streamer scripts can perform the following actions:

 

The Personal Stock Streamer object model will be expanded in future releases as necessary, based on feedback from developers.

Usage Model

Personal Stock Streamer supports the following usage scenarios:

 

Sample scripts are provided for many basic functions.

Extensions

Personal Stock Streamer extensions are scripts wrapped in an XML document that are installed by the Extensions manager under the Tools menu.  Extensions are automatically loaded when Personal Stock Streamer is started.

 

The basic extension wrapper looks like this:

 

<pss_extension name="[extension name]" version="[version number]">[extension description]

<author email="[email address]" name="[company or author name]" url="[company or author url]" />

<script language="[VBScript, JScript, PerlScript, or Python]">

<![CDATA[

 

[script code]

 

]]>

</script>

</pss_extension>

 

The extension code can be enclosed in a CDATA section so that you can write straight script code.  Otherwise you would have to change all '<' and '>' characters to their HTML entities '&lt;' and '&gt;', respectively.  For additional information about developing extensions, see the developers section on the Personal Stock Streamer web site.

 

Extensions can also be digitally signed, in which case a <signature> node would appear after the </pss_extension> tag.  At this time only DTLink Software signatures are recognized, but we are working on certificate chain support to allow extension authors to sign their own extensions.  When this support is available it will be announced on the Personal Stock Streamer web site.