WidgetsSocial Stream → Documentation & Demo
Widget description
View and copy real traders!
This powerful widget contains your actual live Social Stream (a multilingual loop displaying your last 100 activities) from the Sirix Web platform with configurable parameters, such as:
  • Stream language
  • Inclusion and exclusion of certain instruments from the stream
  • Definitions to follow when choosing to copy a trader
Configurable parameters
Url of the social server
(Please contact Leverate's administrator for this info)
The amount of items that will be delivered from the sever every scheduled period of time
A determination of which instrument will be shown or hidden on the Social Stream
A determination of the stream language key (e.g. 'en')
A determination whether the copy button will appear next to each stream item
Define the Copy button function – the function will be called with one parameter object that contains the information of the clicked item
Implementation example
* Please add the script before the </body> tag.
* If you are already using jQuery please remove the 'Framework.jQuery.js' from the 'js.src'.
<script type="text/javascript"> (function () { var clientUrl = "http://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;Social.Feed.Widget.js&callback=onJsSocailWidgetLoad"; 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=Social.Widget.css"; document.getElementsByTagName("head")[0].appendChild(css); onJsSocailWidgetLoad = function () { $('#social_feed').leverateSocialFeed({ socialWidgetClientUrl: clientUrl, fetchDataUrl: 'YOUR_SERVER_URL', maxItems: 4, language: 'en-us', showCopyButton: true, include: [], //'^EURUSD$' exclude: [], copyClick: function (item) { console.log(item); } }); }; })(); </script>