WidgetsMarket Rates Grid → Documentation & Demo
Demo
Documentation
Widget description
This widget allows you to view a list of popular instruments with quotes that have been divided into relevant groups. You are able to edit and use them according to your personal preferences.
Configurable parameters
groups
The Groups and their Instruments
engine
The engine type (EngineType.Push, EngineType.Poll)
showSpread
Set value to true if you want to show instruments spread
(You need to set percision value for each instrument as configured in your trading platform)
updateInterval
The data poll time interval (Only for EngineType.Poll and Min value is 5 seconds)
Implementation example
* Please add the script before the </body> tag.
                
<script type="text/javascript"> (function () { var clientUrl = "https://developers.sirixtrader.com"; var js = document.createElement('script'); js.type = 'text/javascript'; js.async = true; js.src = clientUrl + '/PageScripts/GetJavaScript/?files=Framework.jQuery.js;Framework.jQuery.Tpl.js;RatesEngine.js;MarketRates.Grid.Widget.js&callback=window.onMarketRatesWidgetLoad'; document.getElementsByTagName('head')[0].appendChild(js); var css = document.createElement('link'); css.type = 'text/css'; css.async = true; css.rel = 'stylesheet'; css.href = clientUrl + '/PageScripts/GetCss/?files=MarketRates.Grid.Widget.css'; document.getElementsByTagName('head')[0].appendChild(css); onMarketRatesWidgetLoad = function () { $('#market_rates').leverateMarketRatesGrid({ socialWidgetClientUrl: clientUrl, showSpread:false, groups: { Forex: [{ name: 'EURUSD', precision: 3 }, 'EURGBP', 'GBPUSD'], Commodities: ['WTI', 'Gold', 'Silver', 'Suger', 'Oil'], Indices: ['NSDQ', 'FTSE', 'CAC', 'DOW', 'SP500', 'DAX'], Stocks: ['APPLE', 'GOOGLE', 'INTEL', 'YAHOO', 'MSFT', 'IBM'] }, updateInterval: 5 }); } })(); </script>
* Add the following to the <head> tag in order to support IE8 and under.