Files
NSG_PORTAL_V2/components/dynamic-page/page-component/templates/others/stocks/Full.vue
T

57 lines
1.1 KiB
Vue
Raw Normal View History

2024-07-05 13:05:21 +07:00
<script setup lang="ts">
2024-07-05 14:29:49 +07:00
import { nanoid } from 'nanoid';
2024-07-05 13:05:21 +07:00
import JSWidget from '@/components/widget/JSwidget.vue';
const widgetOptions = {
"symbols": [
2024-07-05 14:29:49 +07:00
{
2024-07-05 13:05:21 +07:00
"proName": "FOREXCOM:SPXUSD",
"title": "S&P 500 Index"
2024-07-05 14:29:49 +07:00
},
{
2024-07-05 13:05:21 +07:00
"proName": "FOREXCOM:NSXUSD",
"title": "US 100 Cash CFD"
2024-07-05 14:29:49 +07:00
},
{
2024-07-05 13:05:21 +07:00
"proName": "FX_IDC:EURUSD",
"title": "EUR to USD"
2024-07-05 14:29:49 +07:00
},
{
2024-07-05 13:05:21 +07:00
"proName": "BITSTAMP:BTCUSD",
"title": "Bitcoin"
2024-07-05 14:29:49 +07:00
},
{
2024-07-05 13:05:21 +07:00
"proName": "BITSTAMP:ETHUSD",
"title": "Ethereum"
2024-07-05 14:29:49 +07:00
}
2024-07-05 13:05:21 +07:00
],
"isTransparent": false,
2024-07-05 14:29:49 +07:00
"showSymbolLogo": true,
2024-07-05 13:05:21 +07:00
"colorTheme": "dark",
"locale": "en"
2024-07-05 14:29:49 +07:00
}
2024-07-05 13:05:21 +07:00
</script>
<template>
<div>
<JSWidget
2024-07-05 14:29:49 +07:00
:CONTAINER_ID="nanoid(10)"
2024-07-05 13:05:21 +07:00
:SCRIPT_ID="nanoid(10)"
2024-07-05 14:29:49 +07:00
SCRIPT_SRC="https://s3.tradingview.com/external-embedding/embed-widget-tickers.js"
2024-07-05 13:05:21 +07:00
:options="widgetOptions"
2024-07-05 14:29:49 +07:00
:inside="true"
2024-07-05 13:05:21 +07:00
widgetKey="TradingView"
/>
</div>
</template>
<style lang="scss" scoped>
div {
width: 100%;
font-size: 24px;
display: flex;
align-items: center;
justify-content: center;
}
</style>
2024-07-05 14:29:49 +07:00