Sàn

Thời gian

Xem
exportXuất Excel
*% KLGD/ Tổng KLGD | **% GTGD/ Tổng GTGD
Mua Bán Giao dịch ròng Room còn lại Đang sở hữu
Khối lượng Giá trị Khối lượng Giá trị (VNĐ) Khối lượng Giá trị (VNĐ)
{table}
' , base64 = function (s) { return window.btoa(unescape(encodeURIComponent(s))) } , format = function (s, c) { return s.replace(/{(\w+)}/g, function (m, p) { return c[p]; }) } let startDate = '' if (this.refInpDate.value) { startDate = this.refInpDate.value.split(' - ')[0].split('/')[0] + '.' + this.refInpDate.value.split(' - ')[0].split('/')[1] + '.' + this.refInpDate.value.split(' - ')[0].split('/')[2]; } function exportExcel(table, name) { if (!table.nodeType) table = document.getElementById(table) var ctx = { worksheet: name || 'Worksheet', table: table.innerHTML } var a = document.createElement('a'); a.href = uri + base64(format(template, ctx)) a.download = 'GDNN ' + startDate + '.xls'; a.click(); } return exportExcel(table, name) } }, formatNumber(number, sochia = 1) { return number ? ( Math.round((number / sochia) * 100) / 100 ).toLocaleString("en-US") : "0"; }, renderTableHeader() { let html = ` ${this.data?.Symbol} KLGD (Cổ phiếu) %* GTGD (VNĐ) %** Tổng mua ${this.formatNumber(this.data?.BuyVolume)} ${this.formatNumber(this.data?.BuyVolumePercent)}% ${this.formatNumber(this.data?.BuyValue)} ${this.formatNumber(this.data?.BuyValuePercent)}% Tổng bán ${this.formatNumber(this.data?.SellVolume)} ${this.formatNumber(this.data?.SellVolumePercent)}% ${this.formatNumber(this.data?.SellValue)} ${this.formatNumber(this.data?.SellValuePercent)}% Chênh lệch ${this.formatNumber(this.data?.DiffVolume)} ${this.formatNumber(this.data?.DiffValue)} ` document.getElementById("wrapper-information-GDNN-right_table").innerHTML = html this.loading.style.display = 'none'; this.isLoading = false; }, renderTable() { let html = '' var lib = new CafeF_Library(); if (this.data?.ListDataNN.length > 0) { this.data?.ListDataNN?.forEach((item, index) => { html += ` ${item.Symbol} ${this.formatNumber(item.BuyVolume)} ${this.formatNumber(item.BuyValue)} ${this.formatNumber(item.SellVolume)} ${this.formatNumber(item.SellValue)} ${this.formatNumber(item.BuyVolume - item.SellVolume)} ${this.formatNumber(item.BuyValue - item.SellValue)} ${this.formatNumber(item.Room)} ${this.formatNumber(item.Percent)} ` }) } else { html = ` KHÔNG CÓ KẾT QUẢ PHÙ HỢP ` } document.getElementById("data_table_GDNN").innerHTML = html; this.loading.style.display = 'none'; this.isLoading = false; }, renderDateSpicker() { $('input[name="daterange"]').daterangepicker({ "autoUpdateInput": false, "singleDatePicker": true, "maxDate": new Date(), "locale": { "format": "DD/MM/YYYY", "separator": " - ", "applyLabel": "Apply", "cancelLabel": "Cancel", "customRangeLabel": "Custom", "daysOfWeek": [ "CN", "Th2", "Th3", "Th4", "Th5", "Th6", "Th7" ], "applyLabel": "Chọn", "cancelLabel": "Bỏ", "monthNames": [ "Tháng 1", "Tháng 2", "Tháng 3", "Tháng 4", "Tháng 5", "Tháng 6", "Tháng 7", "Tháng 8", "Tháng 9", "Tháng 10", "Tháng 11", "Tháng 12" ], "firstDay": 1 }, opens: 'center' }, function (start, end, label) { }); $('input[name="daterange"]').on('apply.daterangepicker', function (ev, picker) { $(this).val(picker.startDate.format('DD/MM/YYYY')); }); $('input[name="daterange"]').on('cancel.daterangepicker', function (ev, picker) { $(this).val(''); }); }, handleFindDisclosure() { window.location.href = `${domain}tracuulichsu2/3/${this.refInputAC.value}/${this.refInpDate.value}.chn` //window.history.replaceState(null, null, `${this.refInpDate.value}.chn`); this.refInputAC.value this.reRender() }, async reRender() { if (this.isLoading === false) { GDNN.getData() } }, async init() { this.renderDateSpicker() await this.getData() this.renderTableHeader() this.renderTable() } } $(document).ready(function () { if ("hose"== "hose") { document.getElementById('hose').selected = true } else if ("hose" == "upcom") { document.getElementById('upcom').selected = true } else if ("hose" == "vn30") { document.getElementById('vn30').selected = true } else { document.getElementById('hnx').selected = true } if ("today" != "today") { document.getElementById('date-inp-disclosure').value= "today" } GDNN.init() });
(*) Lưu ý: Dữ liệu được tổng hợp từ các nguồn đáng tin cậy, có giá trị tham khảo với các nhà đầu tư.
Tuy nhiên, chúng tôi không chịu trách nhiệm trước mọi rủi ro nào do sử dụng các dữ liệu này.