feat: kline data

This commit is contained in:
ding 2021-11-23 11:25:44 +08:00
parent e2aef3912c
commit c4b4f86741

View File

@ -96,18 +96,8 @@ export default {
favorites: {
intervals: ['30', '240', '1D'],
},
customFormatters: {
timeFormatter: {
format: date => {
const _format_str = '%h:%m'
return _format_str.replace('%h', toDouble(date.getUTCHours()), 2).replace('%m', toDouble(date.getUTCMinutes()), 2).replace('%s', date.getUTCSeconds(), 2)
},
},
dateFormatter: {
format: date => `${date.getUTCFullYear()}-${toDouble(date.getUTCMonth() + 1)}-${toDouble(date.getUTCDate())}`,
},
},
disabled_features: [ //
'volume_force_overlay',
'left_toolbar',
'timeframes_toolbar',
'header_symbol_search',
@ -198,5 +188,4 @@ export default {
</script>
<style scoped>
</style>