Skip to content

Instantly share code, notes, and snippets.

@bentaber
Created May 15, 2017 00:48
Show Gist options
  • Save bentaber/f5b262a81f8e26c8176487cfc22db4d1 to your computer and use it in GitHub Desktop.
Save bentaber/f5b262a81f8e26c8176487cfc22db4d1 to your computer and use it in GitHub Desktop.
FX Rates
<div class="chart" id="chartTarget"></div>
new ChartworksBuilder({
"token": "952edb9c3e1d4415a407425a2685a4f9",
"target": "#chartTarget",
"symbol": "612982",
"displaySymbol": "SGDUSD",
"timeframe": "1y",
"typeAheadAPI": "https://ccy-pairs.herokuapp.com/search/%s",
"panel.lower.indicator": "macd",
});
<script src="https://chartworks.markitqa.com/content/chartworks/dist/1.4.0/js/chartworks.min.js"></script>
html, body {
margin: 0; padding: 0;
height: 100%;
}
.chart {
height: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment