WidgetsSocial Stream → Documentation & Demo
Demo
Documentation
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
fetchDataUrl
Url of the social server
(Please contact Leverate's administrator for this info)
maxItems
The amount of items that will be delivered from the sever every scheduled period of time
include/exclude
A determination of which instrument will be shown or hidden on the Social Stream
language
A determination of the stream language key (e.g. 'en')
showCopyButton
A determination whether the copy button will appear next to each stream item
copyClick(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>