Skip to content

Instantly share code, notes, and snippets.

@erysaj
Created January 9, 2018 18:59
Show Gist options
  • Select an option

  • Save erysaj/32af7c750aa9fa18954bf75c079b3ff0 to your computer and use it in GitHub Desktop.

Select an option

Save erysaj/32af7c750aa9fa18954bf75c079b3ff0 to your computer and use it in GitHub Desktop.
BTC/USD chart in TradingView widget
<!DOCTYPE html>
<html>
<head>
<style>
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}
body > div {
overflow: hidden;
}
</style>
<title>Chart Demo</title>
</head>
<body>
<!-- TradingView Widget BEGIN -->
<script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
<script type="text/javascript">
new TradingView.widget({
"autosize": true,
"symbol": "BITSTAMP:BTCUSD",
"interval": "D",
"timezone": "Etc/UTC",
"theme": "Light",
"style": "1",
"locale": "en",
"toolbar_bg": "#f1f3f6",
"enable_publishing": false,
"allow_symbol_change": true,
"save_image": false,
"hideideas": true
});
</script>
<!-- TradingView Widget END -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment