CN113362171A - Data processing method, device and storage medium - Google Patents
Data processing method, device and storage medium Download PDFInfo
- Publication number
- CN113362171A CN113362171A CN202110594107.3A CN202110594107A CN113362171A CN 113362171 A CN113362171 A CN 113362171A CN 202110594107 A CN202110594107 A CN 202110594107A CN 113362171 A CN113362171 A CN 113362171A
- Authority
- CN
- China
- Prior art keywords
- data
- grouping
- holding
- taken
- position holding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/06—Asset management; Financial planning or analysis
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Human Computer Interaction (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Game Theory and Decision Science (AREA)
- Human Resources & Organizations (AREA)
- Operations Research (AREA)
- User Interface Of Digital Computer (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the application discloses a data processing method, a data processing device and a storage medium, wherein the method comprises the following steps: acquiring and displaying position taking data of a target account, wherein the position taking data comprises position taking lists corresponding to all target objects held by the target account; carrying out position holding grouping processing on data belonging to the same object identifier in position holding data according to a position holding grouping strategy to obtain and display position holding grouped data, wherein each group of position holding grouped data comprises a summary row and in-group position holding sub-item data; and expanding or contracting the position holding list and/or the position holding grouped data in response to a user operation instruction. According to the embodiment of the application, the data belonging to the same object identifier in the position-taken data are subjected to position-taken grouping processing according to the position-taken grouping strategy to obtain position-taken grouping data, the position-taken data are subjected to grouping display, the position-taken list or the position-taken grouping data are unfolded or folded by responding to an operation instruction input by a user, and the browsing efficiency and the interaction efficiency are improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method, apparatus, and storage medium.
Background
Most of the securities product position taking data are displayed in a tiled mode on the market at present, but when the position taking is more in the tiled mode, the browsing efficiency is very low, the screen space is occupied, a user cannot quickly know the position taking condition of the same standard derivative, and the whole interaction efficiency is low.
Disclosure of Invention
The embodiment of the application provides a data processing method, a data processing device and a storage medium, which can improve browsing efficiency and interaction efficiency.
In a first aspect, a data processing method is provided, the method including: acquiring and displaying position taking data of a target account, wherein the position taking data comprises position taking lists corresponding to all target objects held by the target account; carrying out position holding grouping processing on data belonging to the same object identifier in the position holding data according to a position holding grouping strategy to obtain position holding grouping data, and displaying the position holding grouping data, wherein each group of position holding grouping data comprises summary row and in-group position holding sub-item data; and expanding or contracting the position holding list and/or the position holding grouped data in response to a user operation instruction.
In some embodiments, the taken position grouping policy comprises:
the futures position-taking grouping strategy is used for indicating that when futures position-taking grouping is carried out, position-taking data corresponding to futures in the same holding period are grouped, wherein the data belonging to the same object identifier comprises position-taking data corresponding to futures in the same holding period;
and the stock and derivative grouping strategy is used for indicating that the position taken data corresponding to the stocks and derivatives of the same object are grouped when the stocks and derivatives are grouped, wherein the data belonging to the same object identifier comprises the position taken data corresponding to the stocks and derivatives of the same object.
In some embodiments, the performing position-taking grouping processing on the position-taking data according to the position-taking grouping strategy to obtain position-taking grouping data, and displaying the position-taking grouping data includes:
taking the object identification of each position taking object in the position taking list as a key, sorting position taking data with the same key into an array as a value according to the position taking grouping strategy to obtain a key value pair, and storing the key value pair into a hash table;
traversing the hash table, determining the corresponding position data as position grouping data when the position holding number in the array of the hash table is larger than a set threshold value, and establishing a grouping structure and integrating the position holding grouping data;
and sequencing and displaying the position holding grouped data.
In some embodiments, the ranking the position taken packet data comprises:
sequencing and displaying the position holding grouped data according to the position holding field; or
Acquiring data attribute parameters of the position-taken grouped data, determining sequencing parameters of the position-taken grouped data based on the data attribute parameters, and sequencing and displaying the position-taken grouped data based on the sequencing parameters.
In some embodiments, the sorting the position-taken data according to the position-taken field comprises:
sorting and displaying the summary rows of all the position-taken grouped data based on the position-taken fields;
and ordering and displaying the data of the position-holding sub-items in each group of the position-holding grouped data according to the positive stock priority principle and based on the position-holding field.
In some embodiments, the data attribute parameters include historical viewing frequency, historical viewing time, and revenue parameters corresponding to the position data;
the determining the sorting parameter of the position-taken grouped data based on the data attribute parameter to sort and display the position-taken grouped data based on the sorting parameter comprises the following steps:
determining a time coefficient of the position data based on a current time and the historical viewing time;
determining a heat parameter based on a product between the time coefficient and the historical viewing frequency;
displaying the position holding grouped data which are profitable according to the heat parameter in a first display area corresponding to the profit parameter when the profit parameter is profitable;
and displaying the position holding grouped data of the loss according to the heat parameter in a corresponding second display area when the profit parameter is the loss, wherein the first display area is displayed in preference to the second display area.
In some embodiments, the determining the time of day coefficient of the position taken packet data based on the current time of day and the historical viewing time of day comprises:
if the historical viewing time comprises the current time, determining a time coefficient of the position holding grouped data corresponding to the current time as a first time coefficient;
if the current time is not included in the historical viewing time, determining the time coefficient of the position holding grouped data corresponding to the current time as a second time coefficient; wherein the first time instant coefficient is greater than the second time instant coefficient.
In some embodiments, the expanding or contracting the position taking list and/or the position taking grouping data in response to the user operation instruction comprises:
when the user operation instruction is a list expansion instruction, controlling the position holding list to expand so as to display all position holding data on the current page; or
And when the user operation instruction is a list retraction instruction, controlling the position holding list to retract so as to display the preset number of position holding data on the current page.
In some embodiments, the expanding or contracting the position taking list and/or the position taking grouping data in response to the user operation instruction comprises:
when the user operation instruction is a grouping expansion instruction, the position holding grouped data is controlled to be expanded so as to display the summary row and the position holding sub-item data in the group of the position holding grouped data; or
And when the user operation instruction is a grouping retraction instruction, controlling the position holding grouped data to retract so as to display a summary line of the position holding grouped data.
In some embodiments, when said displaying said summary row of position taken data and said data of position taken sub-items within a group, further comprises: and displaying the temporary option identifier for the temporary option in the position holding sub-item data in the group.
In some embodiments, the method further comprises:
and caching the display state of the position holding grouped data so as to display according to the cached display state of the position holding grouped data when the client is restarted next time.
In some embodiments, the displaying the position taken data of the target account comprises:
sorting the position data based on position field;
and displaying the sorted position holding data in the position holding list.
In a second aspect, there is provided a data processing apparatus, the apparatus comprising:
the first processing unit is used for acquiring and displaying position taking data of a target account, wherein the position taking data comprises position taking lists corresponding to all target objects held by the target account;
the second processing unit is used for carrying out position holding grouping processing on data belonging to the same object identifier in the position holding data according to a position holding grouping strategy to obtain position holding grouped data and displaying the position holding grouped data, wherein each group of position holding grouped data comprises a summary line and in-group position holding sub-item data;
and the control unit is used for responding to a user operation instruction to unfold or fold the position holding list and/or the position holding grouped data.
In a third aspect, a computer-readable storage medium is provided, in which a computer program is stored, the computer program being adapted to be loaded by a processor for performing the steps of the data processing method according to the first aspect.
In a fourth aspect, a computer device is provided, the computer device comprising a processor and a memory, the memory having stored therein a computer program, the processor being configured to perform the steps in the data processing method according to the first aspect by calling the computer program stored in the memory.
The embodiment of the application provides a data processing method, a data processing device and a storage medium, wherein position taking data of a target account are acquired and displayed, wherein the position taking data comprise position taking lists corresponding to all target objects held by the target account; carrying out position holding grouping processing on data belonging to the same object identifier in position holding data according to a position holding grouping strategy to obtain position holding grouped data, and displaying the position holding grouped data, wherein each group of position holding grouped data comprises a summary row and in-group position holding sub-item data; displaying the position holding grouping data in a position holding list; and expanding or contracting the position holding list and/or the position holding grouped data in response to a user operation instruction. According to the embodiment of the application, the data belonging to the same object identifier in the position-taken data are subjected to position-taken grouping processing according to the position-taken grouping strategy to obtain position-taken grouping data, the position-taken data are subjected to grouping display, the position-taken list or the position-taken grouping data are unfolded or folded by responding to an operation instruction input by a user, and the browsing efficiency and the interaction efficiency are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1A is a schematic flow chart of a data processing method according to an embodiment of the present application.
Fig. 1B is a schematic view of a first application scenario provided in the embodiment of the present application.
Fig. 1C is a schematic view of a second application scenario provided in the embodiment of the present application.
Fig. 1D is a schematic view of a third application scenario provided in the embodiment of the present application.
Fig. 1E is a schematic diagram of a fourth application scenario provided in the embodiment of the present application.
Fig. 1F is a schematic view of a fifth application scenario provided in the embodiment of the present application.
Fig. 1G is a schematic view of a sixth application scenario provided in the embodiment of the present application.
Fig. 1H is a schematic view of a seventh application scenario provided in the embodiment of the present application.
Fig. 1I is a schematic view of an eighth application scenario provided in the embodiment of the present application.
Fig. 1J is a schematic view of a ninth application scenario provided in the embodiment of the present application.
Fig. 1K is a schematic view of a tenth application scenario provided in the embodiment of the present application.
Fig. 1L is a schematic view of an eleventh application scenario provided in the embodiment of the present application.
Fig. 2 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a data processing method, a data processing device, computer equipment and a storage medium. Specifically, the data processing method of the embodiment of the present application may be executed by a computer device, where the computer device may be a terminal or a server or other devices. The terminal may be a terminal device such as a smart phone, a tablet Computer, a notebook Computer, a touch screen, a game machine, a Personal Computer (PC), a Personal Digital Assistant (PDA), and the like. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, middleware service, a domain name service, a security service, a content distribution network service, a big data and artificial intelligence platform, but is not limited thereto.
Most of the existing market displays the position taking data of the securities products in a tiled mode, but the tiled mode is low in browsing efficiency and occupies a screen space when the position taking is more, and a user cannot quickly know the position taking condition of the derivatives of the same standard.
However, the current mode of position taking grouping does not perform personalized processing aiming at different securities categories, the data processing and sorting mechanism is imperfect, the position taking list does not support retraction, or the expansion does not support expansion on the current page, and the overall interaction efficiency is low.
Therefore, the embodiment of the application provides a data processing method, a device and a storage medium, which can perform position taking grouping processing on position taking data according to a position taking grouping strategy to obtain position taking grouped data, perform grouping display on the position taking data, and realize expansion or retraction of a position taking list or position taking grouped data by responding to an operation instruction input by a user, thereby improving browsing efficiency and interaction efficiency.
The following are detailed below. It should be noted that the description sequence of the following embodiments is not intended to limit the priority sequence of the embodiments.
The embodiments of the present application provide a data processing method, which may be executed by a terminal or a server, or may be executed by both the terminal and the server; the embodiment of the present application is described by taking an example in which a data processing method is executed by a terminal.
Referring to fig. 1A to 1L, fig. 1A is a schematic flow chart of a data processing method according to an embodiment of the present application, and fig. 1A to 1L are schematic application scenarios according to the embodiment of the present application. It should be noted that the data processing method according to the embodiment of the present application can be applied to the data processing apparatus according to the embodiment of the present application, and the data processing apparatus can be configured on a computer device. The specific process can be as follows:
The subject matter may be referred to as a subject asset or a base asset, and may be stocks, futures, options, securities, virtual currency, or foreign exchanges, and refers to financial instruments or goods that an option holder exercises to buy or sell.
The position data is a core data of security software, and the real-time performance and the accuracy of the data need to be ensured. Meanwhile, the holding has difference aiming at different trading markets and different varieties of display data logics. The change of the position data is mainly caused by the change of the order transaction state. When the data is changed, the server informs the client through a push mechanism. And after the client acquires the latest position data, informing an interface to refresh and display. The position taking data is presented in the position taking view of the client in the form of a position taking list, and position taking information corresponding to all targets held by the target account is shown in the position taking list.
For example, in the data processing infrastructure, data processing may be performed by a position-taking module. The position taking module 11 has a relatively heavy business logic and a relatively large difference in different scenes, so that the responsibility needs to be clearly divided for each module, for example, as shown in fig. 1B, the position taking module may include a position taking control module 11, a position taking data module 12, a position taking setting module 13, a position taking grouping module 14, a position taking field module 15, and a position taking interface module 16.
And the position holding control module 11 is used for coordinating position holding data and interface display.
And the position holding data module 12 is used for processing position holding data, such as data monitoring, data sorting, sorting management and the like.
And the position holding setting module 13 is used for processing individualized configuration of the position holding interface.
And the position taking grouping module 14 is used for processing a position taking grouping algorithm and unfolding logic and folding logic of position taking grouping.
And the position holding field module 15 is used for processing the display logic of the position holding field in each service scene.
And the position taking interface module 16 is responsible for assembling the position taking interface, processing position taking interface rendering, and expanding logic and retracting logic of the position taking list.
For example, each time the position taken data of the target account is acquired, the latest position taken data is acquired. Fig. 1C shows a timing chart of acquiring and displaying the taken position data of the target account, the security account in fig. 1C is used as the target account, the user logs in and enters a taken position page through the client, a taken position view is displayed on the taken position page, the taken position view acquires the taken position data through the security account (the target account), monitors the change of the taken position data, monitors the change of the taken position setting, refreshes the taken position list in the taken position view based on the acquired taken position data, the monitored taken position data change or the monitored taken position setting change, and displays the refreshed taken position list. Before the change of the position taking data is monitored, the asset server pushes the position taking change information to the position taking data module, the security account number pulls back the position taking data from the position taking data module so that the security account number monitors the position taking data change information, and the security account number sends the position taking data change information to the position taking view so that the position taking view refreshes the position taking list according to the position taking data change information. Before the change of the taken-position setting is monitored, the taken-position setting module sends a message of the changed taken-position setting (the changed set item of the taken-position) to the security account so that the security account monitors the message of the changed taken-position setting, and the security account sends the message of the changed taken-position setting (the changed set item of the taken-position) to the taken-position view so that the taken-position view refreshes the taken-position list according to the message of the changed taken-position setting, and displays the refreshed taken-position list.
And when the user clicks a grouping expansion position holding button displayed on the position holding view, pulling the position holding detail data from the position holding data module, and displaying the position holding detail data and refreshing the position holding list.
In some embodiments, the displaying the position taken data of the target account comprises:
sorting the position data based on position field;
and displaying the sorted position holding data in the position holding list.
For example, the position holding list supports sorting the position holding fields of all data, after the position holding data is acquired, sorting according to the position holding fields, and then displaying the sorted position holding data in the position holding list.
And 102, carrying out position holding grouping processing on data belonging to the same object identifier in the position holding data according to a position holding grouping strategy to obtain position holding grouped data, and displaying the position holding grouped data, wherein each group of position holding grouped data comprises a summary line and in-group position holding sub-item data.
The position-taking grouping data processing can enable the user to quickly know the position-taking condition of the same object, and help the user to more effectively see the effect of the trading strategy. The grouping support is unfolded and folded, so that the user can be helped to improve the position holding management efficiency.
For example, the processing logic for the position taken packet data processing may include:
(1) and displaying summarized data: and the summary line displays the stock information and the grouped position holding quantity, and calculates and summarizes the position holding market value, the present profit and loss, the position holding profit and loss, the realized profit and loss, the non-realized profit and loss, the position holding ratio and the like.
(2) And displaying the position taken data: and displaying each piece of position taken data of the user.
(3) Carrying out sequencing treatment: the position holding list supports sorting all data fields; and preferably, the summary rows are sorted, and then the taken positions in the groups are sorted.
(4) Displaying a temporary identifier: the derivatives have a limited duration, and the temporary identifications are displayed for options that expire within N trading days, such as for options that expire within 5 trading days.
In some embodiments, the position grouping policies include futures position grouping policies, and stock and derivatives grouping policies:
the futures position taking grouping strategy is used for dividing position taking data corresponding to futures in the same holding period into a group when futures position taking grouping is indicated, wherein the data belonging to the same object identifier comprise position taking data corresponding to futures in the same holding period;
and the stock and derivative grouping strategy is used for indicating that the position taken data corresponding to the stocks and derivatives of the same object are grouped when the stocks and derivatives are grouped, wherein the data belonging to the same object identifier comprises the position taken data corresponding to the stocks and derivatives of the same object.
When the position taking grouping data processing is performed, the data belonging to the same object identifier (such as undleyStockId) in the position taking data corresponding to the target account are grouped, and the grouping relationship can be maintained by a background, so that the subsequent extension and maintenance of the grouping rule are facilitated.
For example, FIG. 1D shows a timing diagram of a position taken packet data process. The user logs in the target account through the client, enters a position taking page corresponding to the target account, displays a position taking view on the position taking page, and refreshes a position taking list based on the position taking view Provider. The method comprises the following steps that a position holding view acquires position holding data from position holding data Provider, the position holding view Provider transmits a position holding list to position holding display data Provider, and position holding interface display data are acquired; the method comprises the steps that the position-taken display data Provider sends position-taken grouping data (position-taken Group data) to a position-taken grouping processing module so that the position-taken grouping processing module obtains the position-taken grouping data, wherein the position-taken grouping data comprise summarized derivatives; the method comprises the steps that the data Provider is displayed by taking a position to process the expanding logic and the retracting logic of a position taking Group, a position taking Group list (position taking Group list) needing to be displayed is returned to the position taking view Provider, the position taking view Provider transmits the position taking Group list (position taking Group list) to a position taking view controller, and an instruction for refreshing an interface is sent; the position-taken view controller transmits a position-taken Group list (position-taken list) to the position-taken view model generator, returns a position-taken CellModel array to the position-taken view controller from the position-taken view model generator, assembles data in the Cell model through the position-taken view controller and displays position-taken information. The Provider provides a general interface for various data sources, and the Provider component is mainly used for realizing the function of data sharing among different application programs.
In some embodiments, the performing position-taking grouping processing on the position-taking data according to the position-taking grouping strategy to obtain position-taking grouping data, and displaying the position-taking grouping data includes:
taking the object identification of each position taking object in the position taking list as a key, sorting position taking data with the same key into an array as a value according to the position taking grouping strategy to obtain a key value pair, and storing the key value pair into a hash table;
traversing the hash table, determining the corresponding position data as position grouping data when the position holding number in the array of the hash table is larger than a set threshold value, and establishing a grouping structure and integrating the position holding grouping data;
and sequencing and displaying the position holding grouped data.
For example, as shown in fig. 1E, step 102 may be implemented by steps 1021 to 1027, specifically:
and step 1028, displaying the position holding grouping data.
For example, the set threshold may be set to 1, and the taken position group does not group the targets having only one stock and derivatives, and is directly displayed in a tiled manner, so that the operation efficiency of the user can be improved. If the stock and the derivative of two or more stock and derivatives are held, the position taking grouping is needed, the unfolding and the folding of position taking grouping data are realized by carrying out grouping display and data summarization on the position taking data of the stock and the derivative of the same stock and derivative, the efficiency of managing the stock account data by a user can be effectively improved, and the user can quickly know the position taking information of the same stock and derivative.
If the stock and other derivatives are held at the same time and two or more derivatives of a certain target are held, the stock is taken to group and a new summary is added. For example, the summary row field shows contents including the name code of the summary row, the summary market value (such as no quantity), the positive stock market price (such as no cost price), today's profit and loss, the position taken profit and loss (such as "realized profit and loss" and "not realized profit and loss" separately summarized under the average cost price), the position taken proportion, and the like. For example, the aggregated market value is the positive stock market value + the derivative market value; the income and loss of this day is the positive income and loss of this day + the income and loss of this day of derivatives; the position holding excess and loss are equal to the position holding excess and loss of the positive strand and the position holding excess and loss of the derivatives; the ratio of the holding position is the ratio of the positive strand holding position to the derivative holding position.
In some embodiments, the ranking the position taken packet data comprises:
sequencing and displaying the position holding grouped data according to the position holding field; or
Acquiring data attribute parameters of the position-taken grouped data, determining sequencing parameters of the position-taken grouped data based on the data attribute parameters, and sequencing and displaying the position-taken grouped data based on the sequencing parameters.
In some embodiments, the ranking the position taken packet data comprises:
sorting and displaying the summary rows of all the position-taken grouped data based on the position-taken fields;
and ordering and displaying the data of the position-holding sub-items in each group of the position-holding grouped data according to the positive stock priority principle and based on the position-holding field.
The sorting of the position-taken grouping can be divided into two-stage sorting, the collected rows of the position-taken grouping data are sorted and displayed based on the position-taken fields, and then the position-taken in the group of the position-taken grouping data are sorted and displayed based on the position-taken fields according to the principle that the right stock is prior.
For example, the ordering rule for the out-of-group fields is: and carrying out sequencing display according to any one of fields of name codes of the summary lines, the summary market value, the positive stock market price, the summary present profit and loss, the summary position taking profit and loss and the like. Such as by default to the name code of the summary row, or the display may be reordered according to the user-selected target field when the user selects a target field (e.g., summary market value).
For example, the ordering rule for the fields in the group is: if the group has the positive strand, the positive strand is arranged in the first strand; if no positive stock exists in the group, the display can be sorted according to the sorting mode selected by the position holding list.
And firstly, carrying out the outside-group sequencing display according to the summary row, and then carrying out the inside-group sequencing display according to the sequencing rule of the inside-group fields.
In some embodiments, the data attribute parameters include historical viewing frequency, historical viewing time, and revenue parameters corresponding to the position data;
the determining the sorting parameter of the position-taken grouped data based on the data attribute parameter to sort and display the position-taken grouped data based on the sorting parameter comprises the following steps:
determining a time coefficient of the position data based on a current time and the historical viewing time;
determining a heat parameter based on a product between the time coefficient and the historical viewing frequency;
displaying the position holding grouped data which are profitable according to the heat parameter in a first display area corresponding to the profit parameter when the profit parameter is profitable;
and displaying the position holding grouped data of the loss according to the heat parameter in a corresponding second display area when the profit parameter is the loss, wherein the first display area is displayed in preference to the second display area.
In some embodiments, the determining the time of day coefficient of the position taken packet data based on the current time of day and the historical viewing time of day comprises:
if the historical viewing time comprises the current time, determining a time coefficient of the position holding grouped data corresponding to the current time as a first time coefficient;
if the current time is not included in the historical viewing time, determining the time coefficient of the position holding grouped data corresponding to the current time as a second time coefficient; wherein the first time instant coefficient is greater than the second time instant coefficient.
For example, the number of views of each position holding sub-item data in each position holding grouped data group in each group in a specific period (such as one week or one month) may be counted in the background, and the total number of views of each position holding grouped data group may be counted, where the total number of views may be the sum of the number of views of all position holding sub-item data in each group, or may be the average number of views of each position holding sub-item data in each group, and the historical view frequency corresponding to each position holding grouped data group is obtained according to the number of views of each position holding sub-item data in each group or the total number of views of each position holding grouped data group.
For example, in determining the time coefficient, the historical viewing time of the user may be counted, which is the time when the user looked up the position data in the historical period, such as 9 am, 10 am, 1 pm and half pm, 3 pm, and the like. The current time is the time when the user currently views the position holding grouped data, and the time coefficient of the position holding grouped data can be determined based on the current time and the historical viewing time. Specifically, the larger the time coefficient is, the closer the current time is to the viewing habit of the user is. For example, the historical viewing time includes 9 am, 10 am, 1 pm and half pm and 3 pm, and if the current time is 9 am, the historical viewing time includes the current time, the time coefficient of the position holding packet data corresponding to the current time is determined to be the first time coefficient. For example, the historical viewing time includes 9 am, 10 am, 1 pm and half pm and 3 pm, and if the current time is 5 pm, the current time is not included in the historical viewing time, and the time coefficient of the position holding packet data corresponding to the current time is determined to be the second time coefficient. The first time coefficient is greater than the second time coefficient, for example, the first time coefficient is 0.8, and the second time coefficient is 0.5.
For example, the profit parameter includes a profit parameter and a loss parameter for indicating the profit and loss of the position-taken packet data corresponding to the current time. For example, the heat parameter may be determined based on a product of a time of day coefficient and a history viewing frequency, with the higher the heat coefficient, the closer the ranking position. And sequencing and displaying the position taking grouping data based on the income parameter and the heat parameter. In the data display process, the position holding grouped data corresponding to the profit and the loss can be divided into two areas for displaying, and the position holding sub-item data of the position holding grouped data contained in each display area is displayed in an ordering mode according to the heat parameter. The first display area is used for displaying position holding grouping data in the profit and the second display area is used for displaying position holding grouping data in the loss, and the first display area is displayed in priority to the second display area. For example, the first display area and the second display area may be displayed in a split screen manner, such as the first display area being displayed on the upper half of the display interface and the second display area being displayed on the lower half of the display interface. For example, the first display area and the second display area may be displayed independently, and when the first display area and the second display area both have position holding grouping data, the position holding grouping data of the first display area may be preferentially displayed, and the second display area is displayed on the display interface by a switching instruction generated by a corresponding identifier of the second display area, which is acted on the display interface by a user, and the first display area is displayed by hiding the first display area or a small window; when the user wants to view the first display area again, the first display area is displayed on the display interface through a switching instruction generated by the first display area corresponding identifier acted on the display interface by the user, and the second display area is hidden or displayed in a small window.
In the embodiment, the habit of the user and the display mode of the position-taking grouped data are combined, the arrangement sequence of the position-taking grouped data is determined based on the habit of the user and the income state, the data are efficiently displayed, the orderliness and the effectiveness of data display are improved, the position-taking grouped data can be more efficiently checked and obtained for the user, and the data checking and trading efficiency is improved.
For example, the presentation rule of the summary row of the non-tradeable subject matter such as the index takes the constant index as an example:
name code: a constant index of 800000;
market value: derivatives add up to market value (no quantity);
the current price is as follows: current index of constant 29385.61 (no cost price);
profit and loss today: adding the obtained derivatives to the obtained product;
and (3) taking the position to profit and lose: adding the position holding profit and loss of the derivatives;
the ratio of taken positions: the ratio of the taken positions of the derivatives is added.
And 103, expanding or contracting the position holding list and/or the position holding grouped data in response to a user operation instruction.
In some embodiments, the expanding or contracting the position taking list and/or the position taking grouping data in response to the user operation instruction comprises:
when the user operation instruction is a list expansion instruction, controlling the position holding list to expand so as to display all position holding data on the current page; or
And when the user operation instruction is a list retraction instruction, controlling the position holding list to retract so as to display the preset number of position holding data on the current page.
Wherein the position holding list supports expanding all and retracting the position holding list on the current page. Specifically, the taken position list is controlled to be expanded or contracted in response to the user operation instruction. When the user operation instruction is a list expansion instruction, controlling the position holding list to expand; as shown in fig. 1F, when the position holding list is in the expanded state, all position holding data corresponding to all position holding data can be displayed by sliding up and down if the maximum display number of the current page exceeds the total position holding number; in addition, a stow button for "stowing" may be displayed below the position taken list displayed on the current page, and the display state of the position taken list may be controlled to be switched from the deployed state to the stowed state by touching the stow button. When the user operation instruction is a list retraction instruction, controlling the position holding list to retract; as shown in fig. 1G, when the position holding list is in the retracted state, only the preset number of position holding data is displayed, for example, the preset number of position holding data is 10, so as to facilitate the user to view other account data, for example, if the total number of position holding data is greater than the preset number of position holding data, a view button for "viewing all (the total number of position holding)" may be displayed below the position where the preset number of position holding data is displayed, and the display state of the position holding list may be controlled to be switched from the retracted state to the extended state by touching the view button, so as to view position holding data corresponding to the total number of position holding data.
In some embodiments, the method further comprises:
and caching the display state of the position holding list so as to display according to the cached display state of the position holding list when the client is restarted next time.
For example, the display state of the taken-position list is memorized as the display state of the extended state or the retracted state when the client is started next time, and the display state of the last taken-position list is displayed when the client is started next time, for example, when the client is exited last time, the display state of the taken-position list is the extended state, and the taken-position list displayed when the client is started next time is the extended state.
In some embodiments, the expanding or contracting the position taking list and/or the position taking grouping data in response to the user operation instruction comprises:
when the user operation instruction is a grouping expansion instruction, the position holding grouped data is controlled to be expanded so as to display the summary row and the position holding sub-item data in the group of the position holding grouped data; or
And when the user operation instruction is a grouping retraction instruction, controlling the position holding grouped data to retract so as to display a summary line of the position holding grouped data.
In some embodiments, when said displaying said summary row of position taken data and said data of position taken sub-items within a group, further comprises:
and displaying the temporary option identifier for the temporary option in the position holding sub-item data in the group.
Wherein, the position holding group can support the interaction of unfolding and folding. Specifically, the position holding grouping data is controlled to be unfolded or folded in response to a user operation instruction. When the user operation instruction is a packet unfolding instruction, controlling the position holding packet data to be unfolded; as shown in fig. 1H, in the expanded state, the summary line and all the intra-group taken-position sub-item data are displayed, for example, the summary line displays the subject matter information and the number of sub-items, the intra-group taken-position sub-item data of the subject matter is displayed below the summary line, and as shown in an area a in the figure, the temporary mark is displayed for the temporary right; when the user operation instruction is a grouping retraction instruction, retraction of the position holding grouping data is controlled; as shown in fig. 1I, in the retracted state, as shown in the region b in the figure, only the summary row data is displayed to facilitate the user to view other taken-position data, the whole summary row is taken-position and clicked to be expanded or retracted, and the summary row displays the subject information and the number of sub-items.
In some embodiments, the method further comprises:
and caching the display state of the position holding grouped data so as to display according to the cached display state of the position holding grouped data when the client is restarted next time.
The client restarts and reserves the last display state through a cache mechanism, for example, the client is in an expansion state in a default state, and the background needs to remember the expansion state to restart and reserve the last expansion state; and the display state synchronization of all modules of the client is realized by utilizing a notification mechanism, for example, the expansion state synchronization of all modules of the client is realized. Wherein, the expanded or folded state is the same as the display state of a trading account page, a security account page, a stock quotation page, a trading order page and the like. Specifically, the display states of all the position taking grouping data are memorized when the client is started next time, the display states are the unfolding state or the folding state, so that the display state of the position taking grouping data of the last time is displayed when the client is started next time, for example, when the client is quitted last time, the display state of the target position taking grouping data is the folding state, the target position taking grouping data displayed when the client is started next time is the folding state, and at this time, only the summary row data of the target position taking grouping data is displayed.
The stock information frame of the summary row is clicked to support expansion and retraction, other parts can be clicked to jump to the quotation page, and for example, the right stock and all derivatives in the group can be clicked to jump to the quotation page. Data gathered in the same group can be used as a taken position; when calculating the number of taken positions, only the number of the added taken positions and the summary row which are not grouped can be counted.
The option to be expired is specially marked, for example, a temporary mark is displayed for the option to be expired, for example, the temporary time of the temporary mark may be the same as the time notified before the expiration, and if the user touches the temporary mark, the temporary time may be displayed.
For example, as shown in fig. 1J, a user enters a transaction account page, the position holding grouping data is sent to the position holding grouping module through the position holding module corresponding to the transaction account page, the position holding grouping module loads and caches the expansion state of the position holding grouping data after acquiring the position holding grouping data, the position holding data is grouped, and the position holding data grouping result is fed back to the position holding module corresponding to the transaction account page, so that the position holding module corresponding to the transaction account page updates the interface of the transaction account page according to the position holding data grouping result, and the client restarts to reserve the expansion state. Meanwhile, a packet expansion state notification is monitored through a position holding module corresponding to the transaction lower form page, and when an expansion change notification is received, an interface of the transaction lower form page is updated, so that the expansion state synchronization of all modules of the client is realized by utilizing a notification mechanism. In addition, when the user inputs a grouping expansion/grouping retraction instruction in the transaction account page, the position holding module corresponding to the transaction account page sends a grouping display state change notice, and the interface of the transaction account page is updated.
Wherein, the futures position support the first shortcut operation, for example, as shown in fig. 1K, the first shortcut operation may include one-key position leveling, reverse hand position, position shifting, position clearing, and the like. Specifically, based on the first shortcut operation instruction, the futures position is controlled to perform the first shortcut operation. Aiming at the characteristic that the future market changes rapidly, the future position list supports the first rapid operations of leveling, reversing hands, moving and clearing positions, and the like, so that the ordering efficiency of a user is greatly improved. The first shortcut operation instruction may include one or more of a leveling instruction, an anti-hand instruction, a moving instruction and a clearing instruction.
The position holding list can support the transverse sliding to view more data fields, and when the position holding list slides to the rightmost side of the position holding list, second shortcut operation is supported, and the second shortcut operation can comprise sharing, trading, hiding and the like. As shown in fig. 1L, on the rightmost side of the taken position list, a second shortcut operation button is displayed. For example, only the icon e representing the hidden small eye is reserved on the second shortcut operation button corresponding to the summary row, and when the icon e representing the hidden small eye of the summary row is closed, only the summary row is closed, and the position taken in the group is not closed. And the second shortcut operation button corresponding to the sub-item data of taken position in the group comprises sharing (icon c), trading (icon d) and hiding (icon e).
According to the embodiment of the application, data processing is carried out on the position data according to the position grouping strategy and the data processing logic, integral interaction is carried out based on the position grouping module, and then the position data of stocks and derivatives of the same object are displayed in a grouping mode, data gathering can be carried out on the position grouping data, the position grouping data support unfolding function and folding function, the efficiency of managing the stock account data by a user can be effectively improved, the user can quickly know the position information of the same object, and further trading decision is improved.
All the above technical solutions can be combined arbitrarily to form the optional embodiments of the present application, and are not described herein again.
The position taking data of the target account are obtained and displayed, wherein the position taking data comprise position taking lists corresponding to all target objects held by the target account; carrying out position holding grouping processing on data belonging to the same object identifier in position holding data according to a position holding grouping strategy to obtain position holding grouped data, and displaying the position holding grouped data, wherein each group of position holding grouped data comprises a summary row and in-group position holding sub-item data; displaying the position holding grouping data in a position holding list; and expanding or contracting the position holding list and/or the position holding grouped data in response to a user operation instruction. According to the embodiment of the application, the data belonging to the same object identifier in the position-taken data are subjected to position-taken grouping processing according to the position-taken grouping strategy to obtain position-taken grouping data, the position-taken data are subjected to grouping display, the position-taken list or the position-taken grouping data are unfolded or folded by responding to an operation instruction input by a user, and the browsing efficiency and the interaction efficiency are improved.
In order to better implement the data processing method of the embodiment of the present application, an embodiment of the present application further provides a data processing apparatus. Referring to fig. 2, fig. 2 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure. Among them, the data processing apparatus 200 may include:
the first processing unit 201 is configured to acquire and display position taking data of a target account, where the position taking data includes position taking lists corresponding to all target objects held by the target account;
the second processing unit 202 is configured to perform a position holding grouping process on data belonging to the same object identifier in the position holding data according to a position holding grouping policy to obtain position holding grouping data, and display the position holding grouping data, where each group of position holding grouping data includes a summary line and sub-item data of position holding in the group;
a control unit 203, configured to expand or contract the position holding list and/or the position holding grouping data in response to a user operation instruction.
In some embodiments, the first processing unit 201 is further configured to:
sorting the position data based on position field;
and displaying the sorted position holding data in the position holding list.
In some embodiments, the taken position grouping policy comprises:
the futures position-taking grouping strategy is used for indicating that when futures position-taking grouping is carried out, position-taking data corresponding to futures in the same holding period are grouped, wherein the data belonging to the same object identifier comprises position-taking data corresponding to futures in the same holding period;
and the stock and derivative grouping strategy is used for indicating that the position taken data corresponding to the stocks and derivatives of the same object are grouped when the stocks and derivatives are grouped, wherein the data belonging to the same object identifier comprises the position taken data corresponding to the stocks and derivatives of the same object.
In some embodiments, the second processing unit 202 is further configured to:
taking the object identification of each position taking object in the position taking list as a key, sorting position taking data with the same key into an array as a value according to the position taking grouping strategy to obtain a key value pair, and storing the key value pair into a hash table;
traversing the hash table, determining the corresponding position data as position grouping data when the position holding number in the array of the hash table is larger than a set threshold value, and establishing a grouping structure and integrating the position holding grouping data;
and sequencing and displaying the position holding grouped data.
In some embodiments, the second processing unit 202 is configured to:
sequencing and displaying the position holding grouped data according to the position holding field; or
Acquiring data attribute parameters of the position-taken grouped data, determining sequencing parameters of the position-taken grouped data based on the data attribute parameters, and sequencing and displaying the position-taken grouped data based on the sequencing parameters.
In some embodiments, the data attribute parameters include historical viewing frequency, historical viewing time, and profit parameter corresponding to the position taken packet data, and the second processing unit 202 is configured to determine an ordering parameter of the position taken packet data based on the data attribute parameters, so as to perform ordering display on the position taken packet data based on the ordering parameter, specifically including:
determining a time coefficient of the position data based on a current time and the historical viewing time;
determining a heat parameter based on a product between the time coefficient and the historical viewing frequency;
displaying the position holding grouped data which are profitable according to the heat parameter in a first display area corresponding to the profit parameter when the profit parameter is profitable;
and displaying the position holding grouped data of the loss according to the heat parameter in a corresponding second display area when the profit parameter is the loss, wherein the first display area is displayed in preference to the second display area.
In some embodiments, the second processing unit 202 is configured to determine a time coefficient of the position taken packet data based on the current time and the historical viewing time, and specifically includes:
if the historical viewing time comprises the current time, determining a time coefficient of the position holding grouped data corresponding to the current time as a first time coefficient;
if the current time is not included in the historical viewing time, determining the time coefficient of the position holding grouped data corresponding to the current time as a second time coefficient; wherein the first time instant coefficient is greater than the second time instant coefficient.
In some embodiments, the second processing unit 202 is configured to perform sequencing display on the position taken packet data according to the position taken field, and specifically includes:
sorting and displaying the summary rows of all the position-taken grouped data based on the position-taken fields;
and ordering and displaying the data of the position-holding sub-items in each group of the position-holding grouped data according to the positive stock priority principle and based on the position-holding field.
In some embodiments, the control unit 203 is configured to:
when the user operation instruction is a list expansion instruction, controlling the position holding list to expand so as to display all position holding data on the current page; or
And when the user operation instruction is a list retraction instruction, controlling the position holding list to retract so as to display the preset number of position holding data on the current page.
In some embodiments, the control unit 204 is configured to:
when the user operation instruction is a grouping expansion instruction, the position holding grouped data is controlled to be expanded so as to display the summary row and the position holding sub-item data in the group of the position holding grouped data; or
And when the user operation instruction is a grouping retraction instruction, controlling the position holding grouped data to retract so as to display a summary line of the position holding grouped data.
In some embodiments, the control unit 204 is further configured to display a temporary identifier for the temporary option in the data of the position taken sub-item in the group when the summary row of the position taken data and the data of the position taken sub-item in the group are displayed.
In some embodiments, the control unit 204 is further configured to buffer a display status of the position taken packet data, so as to display the position taken packet data according to the buffered display status when the client is restarted next time.
All the above technical solutions can be combined arbitrarily to form the optional embodiments of the present application, and are not described herein again.
It is to be understood that apparatus embodiments and method embodiments may correspond to one another and that similar descriptions may refer to method embodiments. To avoid repetition, further description is omitted here. Specifically, the apparatus shown in fig. 2 may execute the data processing method embodiment, and the foregoing and other operations and/or functions of each unit in the apparatus implement corresponding processes of the method embodiment, which are not described herein again for brevity.
Correspondingly, the embodiment of the application further provides a computer device, which can be a terminal or a server, and the terminal can be a smart phone, a tablet computer, a notebook computer, a smart television, a smart sound box, a wearable smart device, a personal computer, or the like. The server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, big data and artificial intelligence platform and the like. As shown in fig. 3, fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer apparatus 300 includes a processor 301 having one or more processing cores, a memory 302 having one or more computer-readable storage media, and a computer program stored on the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. Those skilled in the art will appreciate that the computer device configurations illustrated in the figures are not meant to be limiting of computer devices and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components.
The processor 301 is a control center of the computer apparatus 300, connects various parts of the entire computer apparatus 300 by various interfaces and lines, performs various functions of the computer apparatus 300 and processes data by running or loading software programs and/or modules stored in the memory 302, and calling data stored in the memory 302, thereby monitoring the computer apparatus 300 as a whole.
In the embodiment of the present application, the processor 301 in the computer device 300 loads instructions corresponding to processes of one or more application programs into the memory 302, and the processor 301 executes the application programs stored in the memory 302 according to the following steps, so as to implement various functions:
acquiring and displaying position taking data of a target account, wherein the position taking data comprises position taking lists corresponding to all target objects held by the target account; carrying out position holding grouping processing on data belonging to the same object identifier in the position holding data according to a position holding grouping strategy to obtain position holding grouping data, and displaying the position holding grouping data, wherein each group of position holding grouping data comprises summary row and in-group position holding sub-item data; and expanding or contracting the position holding list and/or the position holding grouped data in response to a user operation instruction.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In some embodiments, as shown in FIG. 3, computer device 300 further comprises: a display unit 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected to the display unit 303, the rf circuit 304, the audio circuit 305, the input unit 306, and the power source 307. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 3 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components.
The display unit 303 may be used to display information input by or provided to a user and various graphical user interfaces of the computer device, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 303 may include a display panel and a touch panel.
The rf circuit 304 may be used for transceiving rf signals to establish wireless communication with a network device or other computer device via wireless communication, and for transceiving signals with the network device or other computer device.
The audio circuit 305 may be used to provide an audio interface between the user and the computer device through speakers, microphones. The audio circuit 305 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 305 and converted into audio data, which is then processed by the audio data output processor 301, and then transmitted to, for example, another computer device via the radio frequency circuit 304, or output to the memory 302 for further processing. The audio circuit 305 may also include an earbud jack to provide communication of a peripheral headset with the computer device.
The input unit 306 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The power supply 307 is used to power the various components of the computer device 300. In some embodiments, the power supply 307 may be logically coupled to the processor 301 through a power management system, such that functions of managing charging, discharging, and power consumption are performed through the power management system. Power supply 307 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown in fig. 3, the computer device 300 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which are not described in detail herein.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, and the computer programs can be loaded by a processor to execute the steps in any data processing method provided by the present application. The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any data processing method provided in the embodiments of the present application, beneficial effects that can be achieved by any data processing method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the foregoing embodiments.
The foregoing detailed description is directed to a data processing method, a data processing apparatus, and a storage medium provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the methods and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (12)
1. A method of data processing, the method comprising:
acquiring and displaying position taking data of a target account, wherein the position taking data comprises position taking lists corresponding to all target objects held by the target account;
carrying out position holding grouping processing on data belonging to the same object identifier in the position holding data according to a position holding grouping strategy to obtain position holding grouping data, and displaying the position holding grouping data, wherein each group of position holding grouping data comprises summary row and in-group position holding sub-item data;
and expanding or contracting the position holding list and/or the position holding grouped data in response to a user operation instruction.
2. The data processing method of claim 1, wherein the taken position grouping policy comprises:
the futures position-taking grouping strategy is used for indicating that when futures position-taking grouping is carried out, position-taking data corresponding to futures in the same holding period are grouped, wherein the data belonging to the same object identifier comprises position-taking data corresponding to futures in the same holding period;
and the stock and derivative grouping strategy is used for indicating that the position taken data corresponding to the stocks and derivatives of the same object are grouped when the stocks and derivatives are grouped, wherein the data belonging to the same object identifier comprises the position taken data corresponding to the stocks and derivatives of the same object.
3. The data processing method according to claim 2, wherein the performing the position-taking grouping processing on the position-taking data according to the position-taking grouping strategy to obtain position-taking grouping data, and displaying the position-taking grouping data comprises:
taking the object identification of each position taking object in the position taking list as a key, sorting position taking data with the same key into an array as a value according to the position taking grouping strategy to obtain a key value pair, and storing the key value pair into a hash table;
traversing the hash table, determining the corresponding position data as position grouping data when the position holding number in the array of the hash table is larger than a set threshold value, and establishing a grouping structure and integrating the position holding grouping data;
and sequencing and displaying the position holding grouped data.
4. The data processing method according to claim 3, wherein said displaying the position taken packet data in an ordered manner comprises:
sequencing and displaying the position holding grouped data according to the position holding field; or
Acquiring data attribute parameters of the position-taken grouped data, determining sequencing parameters of the position-taken grouped data based on the data attribute parameters, and sequencing and displaying the position-taken grouped data based on the sequencing parameters.
5. The data processing method according to claim 4, wherein the data attribute parameters comprise historical viewing frequency, historical viewing time and profit parameters corresponding to the position taken grouping data;
the determining the sorting parameter of the position-taken grouped data based on the data attribute parameter to sort and display the position-taken grouped data based on the sorting parameter comprises the following steps:
determining a time coefficient of the position data based on a current time and the historical viewing time;
determining a heat parameter based on a product between the time coefficient and the historical viewing frequency;
displaying the position holding grouped data which are profitable according to the heat parameter in a first display area corresponding to the profit parameter when the profit parameter is profitable;
and displaying the position holding grouped data of the loss according to the heat parameter in a corresponding second display area when the profit parameter is the loss, wherein the first display area is displayed in preference to the second display area.
6. The data processing method of claim 5, wherein the determining a time of day coefficient for the position taken packet data based on the current time of day and the historical viewing time of day comprises:
if the historical viewing time comprises the current time, determining a time coefficient of the position holding grouped data corresponding to the current time as a first time coefficient;
if the current time is not included in the historical viewing time, determining the time coefficient of the position holding grouped data corresponding to the current time as a second time coefficient; wherein the first time instant coefficient is greater than the second time instant coefficient.
7. The data processing method according to claim 4, wherein the sorting display of the position taken packet data according to the position taken field comprises:
sorting and displaying the summary rows of all the position-taken grouped data based on the position-taken fields;
and ordering and displaying the data of the position-holding sub-items in each group of the position-holding grouped data according to the positive stock priority principle and based on the position-holding field.
8. The data processing method according to any one of claims 1 to 7, wherein the expanding or contracting the position taken list and/or the position taken grouping data in response to a user operation instruction comprises:
when the user operation instruction is a list expansion instruction, controlling the position holding list to expand so as to display all position holding data on the current page; or
And when the user operation instruction is a list retraction instruction, controlling the position holding list to retract so as to display the preset number of position holding data on the current page.
9. The data processing method according to any one of claims 1 to 7, wherein the expanding or contracting the position taken list and/or the position taken grouping data in response to a user operation instruction comprises:
when the user operation instruction is a grouping expansion instruction, the position holding grouped data is controlled to be expanded so as to display the summary row and the position holding sub-item data in the group of the position holding grouped data; or
And when the user operation instruction is a grouping retraction instruction, controlling the position holding grouped data to retract so as to display a summary line of the position holding grouped data.
10. The data processing method of claim 9, wherein the method further comprises:
and caching the display state of the position holding grouped data so as to display according to the cached display state of the position holding grouped data when the client is restarted next time.
11. A data processing apparatus, characterized in that the apparatus comprises:
the first processing unit is used for acquiring and displaying position taking data of a target account, wherein the position taking data comprises position taking lists corresponding to all target objects held by the target account;
the second processing unit is used for carrying out position holding grouping processing on data belonging to the same object identifier in the position holding data according to a position holding grouping strategy to obtain position holding grouped data and displaying the position holding grouped data, wherein each group of position holding grouped data comprises a summary line and in-group position holding sub-item data;
and the control unit is used for responding to a user operation instruction to unfold or fold the position holding list and/or the position holding grouped data.
12. A computer-readable storage medium, characterized in that it stores a computer program adapted to be loaded by a processor for performing the steps of the data processing method according to any one of claims 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110594107.3A CN113362171B (en) | 2021-05-28 | 2021-05-28 | Data processing method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110594107.3A CN113362171B (en) | 2021-05-28 | 2021-05-28 | Data processing method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113362171A true CN113362171A (en) | 2021-09-07 |
CN113362171B CN113362171B (en) | 2023-07-25 |
Family
ID=77528147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110594107.3A Active CN113362171B (en) | 2021-05-28 | 2021-05-28 | Data processing method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113362171B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114647685A (en) * | 2022-03-28 | 2022-06-21 | 北京字节跳动网络技术有限公司 | Data processing method, device, equipment and medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110153362A1 (en) * | 2009-12-17 | 2011-06-23 | Valin David A | Method and mechanism for identifying protecting, requesting, assisting and managing information |
CN104915363A (en) * | 2014-12-05 | 2015-09-16 | 杭州时代银通软件有限公司 | Data processing method and device |
CN108509548A (en) * | 2018-03-20 | 2018-09-07 | 北京资配易投资顾问有限公司 | Liquidation method, device and the distributed type assemblies system for settling account of stock account |
CN109658215A (en) * | 2018-12-10 | 2019-04-19 | 平安科技(深圳)有限公司 | Transaction account calculation method, device and computer readable storage medium |
CN110404252A (en) * | 2019-07-31 | 2019-11-05 | 网易(杭州)网络有限公司 | Information displaying method and device, electronic equipment, storage medium |
CN110414926A (en) * | 2019-07-03 | 2019-11-05 | 平安科技(深圳)有限公司 | Account management method, device and computer readable storage medium |
CN111338910A (en) * | 2020-05-19 | 2020-06-26 | 腾讯科技(深圳)有限公司 | Log data processing method, log data display method, log data processing device, log data display device, log data processing equipment and log data storage medium |
CN111612630A (en) * | 2020-04-13 | 2020-09-01 | 广发证券股份有限公司 | Multi-item fund financing account profit and loss calculation method and device |
CN112634042A (en) * | 2020-12-29 | 2021-04-09 | 深圳市丽海弘金科技有限公司 | Asset allocation method, device, terminal equipment and storage medium |
-
2021
- 2021-05-28 CN CN202110594107.3A patent/CN113362171B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110153362A1 (en) * | 2009-12-17 | 2011-06-23 | Valin David A | Method and mechanism for identifying protecting, requesting, assisting and managing information |
CN104915363A (en) * | 2014-12-05 | 2015-09-16 | 杭州时代银通软件有限公司 | Data processing method and device |
CN108509548A (en) * | 2018-03-20 | 2018-09-07 | 北京资配易投资顾问有限公司 | Liquidation method, device and the distributed type assemblies system for settling account of stock account |
CN109658215A (en) * | 2018-12-10 | 2019-04-19 | 平安科技(深圳)有限公司 | Transaction account calculation method, device and computer readable storage medium |
CN110414926A (en) * | 2019-07-03 | 2019-11-05 | 平安科技(深圳)有限公司 | Account management method, device and computer readable storage medium |
CN110404252A (en) * | 2019-07-31 | 2019-11-05 | 网易(杭州)网络有限公司 | Information displaying method and device, electronic equipment, storage medium |
CN111612630A (en) * | 2020-04-13 | 2020-09-01 | 广发证券股份有限公司 | Multi-item fund financing account profit and loss calculation method and device |
CN111338910A (en) * | 2020-05-19 | 2020-06-26 | 腾讯科技(深圳)有限公司 | Log data processing method, log data display method, log data processing device, log data display device, log data processing equipment and log data storage medium |
CN112634042A (en) * | 2020-12-29 | 2021-04-09 | 深圳市丽海弘金科技有限公司 | Asset allocation method, device, terminal equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
中公教育优就业研究院著: "《计算机二级无纸化考试 MS Office全真模拟3合1 中公版》", 30 July 2017, pages: 24 - 28 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114647685A (en) * | 2022-03-28 | 2022-06-21 | 北京字节跳动网络技术有限公司 | Data processing method, device, equipment and medium |
CN114647685B (en) * | 2022-03-28 | 2024-04-12 | 北京字节跳动网络技术有限公司 | Data processing method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN113362171B (en) | 2023-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10817256B2 (en) | Volume control | |
CN111931097B (en) | Information display method and device, electronic equipment and storage medium | |
WO2017020714A1 (en) | Method and apparatus for recommending information and assisting recommending information | |
JP7573652B2 (en) | Page switching method, device and electronic device | |
CN111246257B (en) | Video recommendation method, device, equipment and storage medium | |
US20120173993A1 (en) | Point of interest preview for electronic mail | |
US20230214400A1 (en) | Search across multiple user interfaces | |
CN109783757A (en) | Render method and device, the system, storage medium, electronic device of webpage | |
Vega-Redondo | Network organizations | |
US20160255174A1 (en) | Data file and rule driven synchronous or asynchronous document generation | |
CN113362171B (en) | Data processing method, device and storage medium | |
CN109936504A (en) | Method, apparatus, server apparatus and the storage medium of picture presentation | |
US10757060B2 (en) | Message notification method and terminal | |
US20210200734A1 (en) | Data structure to array conversion | |
CN111078998B (en) | Information retrieval method, device, storage medium and server | |
CN112783860A (en) | Method and device for constructing mirror database, storage medium and computer equipment | |
CN111309960A (en) | Singing bill recommendation method and device | |
CN115329161A (en) | Financial market list display method and device, storage medium and equipment | |
CN114117178A (en) | Information processing method and device and electronic equipment | |
CN116955271A (en) | Method and device for storing data copy, electronic equipment and storage medium | |
CN114880562A (en) | Method and device for recommending information | |
CN114257826A (en) | Live comment information display method and device, storage medium and computer equipment | |
CN115002137B (en) | Offline message processing method and device, computer equipment and storage medium | |
CN114915850A (en) | Video playing control method and device, electronic equipment and storage medium | |
CN116089474B (en) | Data caching method, device, equipment and medium in custom editing mode |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |