StockPrice

Below is a browsable image of the model.

  • For an executable version,
  • To view or save the MoML file for this model, click here.
StockPricemodel <h2>SDF Director</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>iterations</td><td>UNBOUNDED</td><td>0</td></tr><tr><td>vectorizationFactor</td><td>1</td><td>1</td></tr><tr><td>allowDisconnectedGraphs</td><td>false</td><td>false</td></tr><tr><td>allowRateChanges</td><td>false</td><td>false</td></tr><tr><td>constrainBufferSizes</td><td>true</td><td>true</td></tr><tr><td>period</td><td>5.0</td><td>5.0</td></tr><tr><td>synchronizeToRealTime</td><td>true</td><td>true</td></tr><tr><td>startTime</td><td>&nbsp;</td><td>null</td></tr><tr><td>stopTime</td><td>&nbsp;</td><td>null</td></tr></table> <h2>Display</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>rowsDisplayed</td><td>10</td><td>10</td></tr><tr><td>columnsDisplayed</td><td>40</td><td>40</td></tr><tr><td>suppressBlankLines</td><td>false</td><td>false</td></tr><tr><td>title</td><td>&nbsp;</td><td>&nbsp;</td></tr></table> <h2>StockTick</h2><table border="1"><tr><td><b>Parameter</b></td><td><b>Expression</b></td><td><b>Value</b></td></tr><tr><td>script</td><td>function fire() {\\n  var stock = valueOf(symbol);\\n  var url = &quot;http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22&quot;\\n    + stock\\n    + &quot;%22)%0A%09%09&amp;env=http%3A%2F%2Fdatatables.org%2Falltables.env&amp;format=json&quot;;\\n  var record = readURL(url);\\n  var json = JSON.parse(record);\\n  var tick = json.query.results.quote.BidRealtime;\\n  send(tick, price);\\n}</td><td>function fire() {\\n  var stock = valueOf(symbol);\\n  var url = &quot;http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22&quot;\\n    + stock\\n    + &quot;%22)%0A%09%09&amp;env=http%3A%2F%2Fdatatables.org%2Falltables.env&amp;format=json&quot;;\\n  var record = readURL(url);\\n  var json = JSON.parse(record);\\n  var tick = json.query.results.quote.BidRealtime;\\n  send(tick, price);\\n}</td></tr><tr><td>initialize</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>wrapup</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>symbol</td><td>&quot;AAPL&quot;</td><td>&quot;AAPL&quot;</td></tr><tr><td>maximumLatency</td><td>10</td><td>10</td></tr></table>