Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Security transaction data compression method and device

A technology of transaction data and compression method, which is applied in the computer field, and can solve the problems of divided loading, slow loading, poor user experience, etc.

Inactive Publication Date: 2018-01-12
SINA COM TECH (CHINA) CO LTD
View PDF4 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present application provides a method and device for compressing securities transaction data to solve the problem that in the prior art, the storage space occupied by the securities transaction data is large, and the loading speed is slow due to the huge volume of the securities transaction data, and the loading occurs in batches. poor user experience technical issues

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Security transaction data compression method and device
  • Security transaction data compression method and device
  • Security transaction data compression method and device

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment approach 1

[0192] When the original securities transaction data is stock daily K-line data, and the first type of data item is a date, in the above steps S103 and S104:

[0193] The previous time point is a preset reference date; correspondingly, the first relative change value is the actual number of days or non-weekend days between the date corresponding to the time point and the preset reference date.

[0194] For the Shanghai Stock Exchange, the above-mentioned base date can be 1990-12-19. 1990-12-19 is the date when the Shanghai Stock Exchange officially opened for business. In the field, this date is also called "DAY0". Of course, the above-mentioned base date can also be other dates, and the setting of the base date may be different for different exchanges.

specific Embodiment approach 2

[0195] When the original securities transaction data is stock daily K-line data, and the first type of data item is a date, in the above steps S103 and S104:

[0196] The previous time point is the previous time point of the time point; correspondingly, the first relative change value is the actual number of days or the difference between the date corresponding to this time point and the date corresponding to the previous time point Weekend days.

[0197] In the above method 1 and the above method 2, due to the original representation of the date, the date in the original securities transaction data is replaced with the actual number of days or the difference between the date and the preset base date or the date of the previous trading day After the difference of the number of non-weekend days, the data volume of this data item representing "date" can be reduced. For example, assuming that the base date is 1990-12-19, the date in the daily K-line data generated on 1990-12-20 is ex...

specific Embodiment approach 3

[0198] On the basis of the second embodiment above, when the first relative change value is the number of non-weekend days between the date corresponding to the time point and the date corresponding to the previous time point, the preset data processing Methods, including:

[0199] When the first relative change value is equal to 1, the date corresponding to the time point is cleared; otherwise, the date corresponding to the time point is replaced with the first relative change value corresponding to the time point.

[0200] In general, the Shanghai Stock Exchange and Shenzhen Stock Exchange are only open from Monday to Friday every week. Therefore, when the date in the K-line data of the stock day is compressed, when a certain trading day differs from the previous trading day When the number of non-weekend days is 1, it means that the trading day is continuous with the previous trading day, and the data item indicating the date corresponding to the trading day can be cleared to fu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a security transaction data compression method and device. The method comprises the steps of obtaining original security transaction data including multiple data items and corresponding to multiple time points respectively; for each time point except a starting time point, executing the steps of calculating first relative change values of data items of a first type, whereinthe data items correspond to the time point and the previous time point respectively; according to a preset data processing method, processing the original security transaction data corresponding tothe time point, and obtaining processed security transaction data, wherein the preset data processing method includes the steps of replacing the data item of the first type corresponding to the time point according to the first relative change value corresponding to the time point; according to a setting mode of variable storage space length, setting the storage space length which the processed security transaction data needs to occupy; writing the processed security transaction data into a storage format of the corresponding set storage space length. The purpose of compressing the original security transaction data can be achieved.

Description

Technical field [0001] This application relates to the field of computer technology, in particular to a method and device for compressing securities transaction data. Background technique [0002] In today's society, the Internet has become the main tool for people to obtain all kinds of information. For example, securities investors often obtain securities trading information through financial websites to help them conduct investment analysis. Correspondingly, financial websites will also provide rich and comprehensive securities trading information to attract visits and clicks from securities investors, thereby relying on website traffic, traffic and click-through rates in exchange for income. [0003] In order to provide securities investors with rich and comprehensive securities trading information, financial websites often need to obtain securities trading data from relevant partners such as stock exchanges. At present, the financial website directly obtains the original sec...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F3/06G06Q40/04
Inventor 黄旭
Owner SINA COM TECH (CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products