CN110895585B - Stock data acquisition method and device, terminal equipment and storage medium - Google Patents
Stock data acquisition method and device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN110895585B CN110895585B CN201910995493.XA CN201910995493A CN110895585B CN 110895585 B CN110895585 B CN 110895585B CN 201910995493 A CN201910995493 A CN 201910995493A CN 110895585 B CN110895585 B CN 110895585B
- Authority
- CN
- China
- Prior art keywords
- data
- stock
- market
- query request
- shareholder
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/954—Navigation, e.g. using categorised browsing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The application relates to a stock data acquisition method, a device, a terminal device and a storage medium, wherein the method comprises the following steps: detecting whether a data query request is received, wherein the data query request is used for querying stockholder increase and decrease holding data of stocks; after receiving the data query request, obtaining a market type of stocks carried in the data query request, wherein the market type comprises: the port market, the U.S. market and the A-stock market; and determining stockholder increase and decrease holding data corresponding to the market type of the stock according to the market type of the stock. The method and the device for analyzing and comparing the change situation of the stockholder increase/decrease holding data of a single market type or multiple market types and the trend of the large plate can analyze and compare the change situation and the trend of the large plate, and can meet the analysis and processing requirements of a user on the stockholder increase/decrease holding data in a more comprehensive and detailed manner.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for obtaining stock data, a terminal device, and a storage medium.
Background
Stockholder holding data, which is generally used to represent data generated by holding and holding actions of a stock by a stockholder, wherein the holding actions of the stock by the stockholder are generally that the stockholder purchases the stock in large quantity when the stock price of the stock is low, and therefore, the generated data is called stockholder holding data; the action of holding down the stock by the stockholder generally refers to that when the stock price of the stock by the stockholder is higher, the stock is selected to be sold or the stock is selected to be cleared for profit, and therefore the generated data becomes stockholder holding down data. The change situation of the stockholder increase and decrease holding data caused by the actions of the stockholder on the increase and hold and the decrease hold of the stock can generate certain influence on the stock price, so that the increase and decrease holding situations of the stock by other stockholders are influenced, and the analysis and the processing of the stockholder increase and decrease holding data are very important.
The related technology can only analyze and process the stockholder increase and decrease data of the A stock, is limited to a single A stock market, and cannot meet the analysis and processing requirements of users on the stockholder increase and decrease data of various market types.
In view of the above, there is an urgent need for a method capable of satisfying the analysis processing requirements of stockholder increase and decrease data of various market types.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, embodiments of the present application provide a method, an apparatus, a terminal device, and a storage medium for obtaining stock data.
In view of the above, in a first aspect, an embodiment of the present application provides a stock data obtaining method, where the method includes the following steps:
detecting whether a data query request is received, wherein the data query request is used for querying stockholder increase and decrease holding data of stocks;
after receiving the data query request, obtaining a market type of stocks carried in the data query request, wherein the market type comprises: the port market, the U.S. market and the A-stock market;
and determining stockholder increase and decrease holding data corresponding to the market type of the stock according to the market type of the stock.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the method further includes:
determining a data hierarchy of the shareholder holding data;
and displaying the shareholder holding data by adopting a display control corresponding to the data hierarchy according to the data hierarchy of the shareholder holding data.
With reference to the first aspect, in a second possible implementation manner of the first aspect, a data hierarchy of the shareholder holding data includes primary data, the primary data is used to represent summarized data of the shareholder holding data of different time nodes, and a display control corresponding to the primary data is a primary display control;
the detecting whether the data query request is received includes:
when a first trigger operation aiming at the primary display control is detected, determining that the data query request is received, wherein the first trigger operation comprises a long press operation aiming at a first screen of the primary display control;
the displaying the shareholder holding data by adopting a display control corresponding to the data hierarchy according to the data hierarchy of the shareholder holding data comprises the following steps:
determining an operation position of the first trigger operation;
acquiring primary data corresponding to the operation position of the first trigger operation;
and displaying the primary data in a floating window of the primary display control.
With reference to the first aspect, in a third possible implementation manner of the first aspect, a data hierarchy of the shareholder holding data includes secondary data, the secondary data is used for representing shareholder holding data of different stocks at a closest time node, and a display control corresponding to the secondary data is a secondary display control;
the detecting whether the data query request is received includes:
when a second trigger operation aiming at the secondary display control is detected, determining that the data query request is received, wherein the second trigger operation comprises a sliding operation aiming at a second screen of the secondary display control;
the displaying the shareholder holding data by adopting a display control corresponding to the data hierarchy according to the data hierarchy of the shareholder holding data comprises the following steps:
acquiring secondary data corresponding to the second trigger operation;
and displaying the secondary data in the secondary display control.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the method further includes:
acquiring the number of the secondary data;
and when the number of the secondary data exceeds a set threshold value, updating the secondary data.
With reference to the first aspect, in a fifth possible implementation manner of the first aspect, the detecting whether a data query request is received includes:
detecting whether a switching operation of a market type of the stock is received;
determining that the data query request is received when a switching operation of a market type of the stock is received.
In a second aspect, an embodiment of the present application provides a stock data obtaining apparatus, where the detecting unit is configured to detect whether a data query request is received, where the data query request is used to query shareholder holding data of a stock;
an obtaining unit, configured to obtain, after receiving the data query request, a market type of a stock carried in the data query request, where the market type includes: the gang market, the American market and the A market;
and the first determining unit is used for determining stockholder increase and decrease holding data corresponding to the market type of the stock according to the market type of the stock.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the apparatus further includes:
a second determination unit, configured to determine a data hierarchy of the shareholder holding data;
and the display unit is used for displaying the shareholder holding data by adopting a display control corresponding to the data hierarchy according to the data hierarchy of the shareholder holding data.
In a third aspect, an embodiment of the present application provides a terminal device, where the terminal device includes: at least one processor, memory, at least one network interface, and a user interface;
the at least one processor, memory, at least one network interface, and user interface are coupled together by a bus system;
the processor is configured to execute the steps of the stock data acquisition method according to the first aspect by calling a program or instructions stored in the memory.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which an stock data acquisition program is stored, and the stock data acquisition program, when executed by a processor, implements the steps of the stock data acquisition method according to the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the stock data acquisition method comprises the steps of detecting whether a data query request is received or not, wherein the data query request is used for querying stockholder increase/decrease holding data of stocks; after receiving the data query request, obtaining a market type of the stock carried in the data query request, wherein the market type comprises: the port market, the U.S. market and the A-stock market; and determining stockholder increase and decrease holding data corresponding to the market type of the stock according to the market type of the stock. The embodiment of the application aims at the harbor stock market, the American stock market and the A stock market, can conveniently analyze and compare the change situation of the stockholder increase/decrease holding data of a single market type or a plurality of market types and the trend of the big tray, and can more comprehensively and detailedly meet the analysis processing requirements of the user on the stockholder increase/decrease holding data.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a stock data obtaining method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of another method for obtaining stock data according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a stock data acquisition apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 some embodiments of the present application, but not all 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.
A server implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "part", or "unit" used to indicate elements are used only for facilitating the description of the present invention, and do not have a specific meaning per se. Thus, "module" and "component" may be used in a mixture.
The embodiment of the application provides a stock data acquisition method, stock increase and decrease holding data corresponding to market types are acquired by acquiring the market types (such as a harbor stock market, a American stock market, an A stock market and the like) of stocks carried in data query requests, the change situation and the trend of a large disk of the stock increase and decrease holding data of a single market type or multiple market types can be conveniently analyzed and compared, and the analysis processing requirements of a user on the stock increase and decrease holding data can be more comprehensively and detailedly met.
It should be noted that, although the market type of the stock is exemplified in the foregoing, it should be understood by those skilled in the art that the market type of the stock may also be set according to actual needs, as long as it is ensured that shareholder reduction data of the market type meeting the needs of the user can be obtained, and the embodiment of the present application is not limited thereto.
An embodiment of the present application provides a stock data obtaining method, as shown in fig. 1, the method may include the following steps:
s101, whether a data query request is received or not is detected, and the data query request is used for querying stockholder increase and decrease holding data of stocks.
Optionally, the stockholder holding data is generally used to represent data generated by holding and holding actions taken by a large stockholder on a stock, wherein the data generated by holding and holding actions taken by the large stockholder on the stock is referred to as stockholder holding data, and the data generated by holding and holding actions taken by the large stockholder on the stock is referred to as stockholder holding data.
Optionally, a data query request for querying increase or decrease of holding data of a shareholder is sent to the server by the terminal device, and the terminal device sends the data query request under the following three conditions: in the first situation, when a user clicks a screen of the terminal equipment to enter a page of summarized data of shareholder holding data of different time nodes; the second case, when the user switches the market type of stocks, for example, from the harbor market to the American market, or from the American market to the A market; the third case is when the user slides down a page holding data (recent refers to the recent time node) plus or minus the stakeholder. For these three cases, the detection of whether a data query request is received will be described in detail later, and will not be described herein again.
It should be noted that, although the step S101 describes a scheme related to detecting a data query request, a person skilled in the art should understand that the data query request may also be detected in other ways, and this is not limited in this embodiment of the present application.
S102, after receiving the data query request, obtaining the market type of the stock carried in the data query request, wherein the market type comprises: the port market, the U.S. market, and the A-stock market.
S103, determining stockholder increase and decrease holding data corresponding to the market type of the stock according to the market type of the stock.
It should be noted that although fig. 1 describes a related scheme for obtaining stock data, those skilled in the art should understand that other market types of stock data may be obtained continuously.
The embodiment of the application aims at the harbor stock market, the American stock market and the A stock market, can conveniently analyze and compare the change situation of the stockholder increase/decrease holding data of a single market type or a plurality of market types and the trend of the big tray, and can more comprehensively and detailedly meet the analysis processing requirements of the user on the stockholder increase/decrease holding data.
In order to facilitate understanding of the embodiments of the present application, the following description will be given by way of specific examples.
As shown in fig. 2, fig. 2 shows another stock data acquisition method, which, based on the embodiment shown in fig. 1, further includes the following steps:
s201, detecting whether a data query request is received or not, wherein the data query request is used for querying stockholder holding and holding data of stocks.
S202, after the data query request is received, the market type of the stocks carried in the data query request is obtained.
Alternatively, the market types of stocks include, but are not limited to, the port market, the U.S. market, and the A-stock market.
S203, determining stockholder increase and decrease holding data corresponding to the market type of the stock according to the market type of the stock.
And S204, determining the data hierarchy of the shareholder increase and decrease data.
And S205, displaying the shareholder increase/decrease holding data by adopting a display control corresponding to the data hierarchy according to the data hierarchy of the shareholder increase/decrease holding data.
According to the embodiment of the application, the display controls of different levels are adopted to display the shareholder holding increase and decrease data of different levels, the data query requirements of different users can be met, and the satisfaction degree of the users is improved.
Optionally, the data hierarchy of the shareholder holding data includes first-level data, the first-level data is used for representing summarized data of the shareholder holding data of different time nodes, and the display control corresponding to the first-level data is a first-level display control; in the above step, detecting whether a data query request is received includes:
when a first trigger operation aiming at the primary display control is detected, determining that the data query request is received, wherein the first trigger operation comprises a long-press operation aiming at a first screen of the primary display control;
in the above step, displaying the shareholder holding data by using a display control corresponding to the data hierarchy according to the data hierarchy of the shareholder holding data, includes:
determining an operation position of the first trigger operation;
acquiring primary data corresponding to the operation position of the first trigger operation;
and displaying the primary data in a floating window of the primary display control.
Optionally, the drawing method of the first-level display control includes:
the server returns stockholder holding increasing and decreasing data under the corresponding market type according to the market type of the stock carried in the data query request sent by the terminal equipment, wherein the stockholder holding increasing and decreasing data comprises but is not limited to: examples of the graphs include, but are not limited to, bar graphs in which the time (e.g., in days) is used as an axis of abscissas, the total amount of shareholder held, and the total amount of shareholder held are used as axes of ordinates, and the formats of the graphs include, but are not limited to, bar graphs in which the total amount of shareholder held, and the number of shareholder held are distinguished by different bar colors, for example, the total amount of shareholder held is represented by a red bar graph, the total amount of shareholder held is represented by a green bar graph, and the number of shareholder held is represented by a gray broken line.
Screening out the maximum value and the minimum value of the total shareholder sum from the total shareholder sum, dividing the total shareholder sum per day by the maximum value of the total shareholder sum, multiplying the maximum value by the height of a specified maximum histogram, and calculating the height of a bar required to be drawn in the ordinate direction of the total shareholder sum per day; and calculating the width of the columnar bars corresponding to each stockholder increase holding total amount and each stockholder decrease holding total amount according to the number of the stockholder increase holding total amount, the number of the stockholder decrease holding total amount, the width of the columnar diagram and the interval between the columnar bars corresponding to each stockholder increase holding total amount and each stockholder decrease holding total amount, traversing the stockholder increase holding total amount and the stockholder decrease holding total amount in sequence, calculating the coordinates of each columnar bar, and drawing the columnar diagram and a broken line diagram connecting the columnar bars.
Optionally, the display method of the first-level display control includes:
when the user presses the histogram, the touch position of the screen clicked by the finger of the user is obtained, the coordinate of the columnar bar pressed by the finger of the user at present is calculated according to the touch position, the stockholder holding increase and decrease data (such as the total holding amount of the stockholders, the total holding amount of the stockholders and the number of the holders) corresponding to the columnar bar are searched according to the coordinate of the columnar bar, and the stockholder holding increase and decrease data are filled in the floating window for displaying.
Optionally, when the user drags a bar in the bar graph, recording an offset of the currently dragged bar dragged from the current position to the target position, updating shareholder holding data corresponding to the bar according to the offset of the bar and the width of the bar, and refreshing the bar graph. According to the method and the device for updating the shareholder holding data, the accuracy of the data is improved according to the mode that the user operates the histogram to update the shareholder holding data in time, and the user can check the data conveniently.
Optionally, in the embodiment of the present application, when the terminal device initiates a data query request, it is determined whether a packet of the server is received, and if the packet of the server is not received, an abnormal log is recorded, and the process is ended; and if the return packet of the server is received, analyzing the data, inserting the data into the data layer, updating the current stockholder increase and decrease holding data, informing the interface layer, and drawing a chart on the interface layer. Wherein the data layer primarily maintains the current market type of the stock.
Optionally, the data hierarchy of the shareholder holding data includes second-level data, the second-level data is used for representing the shareholder holding data of different stocks at the closest time node, and the display control corresponding to the second-level data is a second-level display control; in the above step, detecting whether a data query request is received includes:
when a second trigger operation aiming at the secondary display control is detected, determining that the data query request is received, wherein the second trigger operation comprises a sliding operation aiming at a second screen of the secondary display control;
in the above step, displaying the shareholder holding data by using a display control corresponding to the data hierarchy according to the data hierarchy of the shareholder holding data, includes:
acquiring secondary data corresponding to the second trigger operation;
and displaying the secondary data in the secondary display control.
Optionally, the drawing method of the secondary display control includes:
filling the secondary data, namely the stockholder holding data of different stocks of the node at the latest time, which can also be called recent stockholder holding data, into the IGList control, and displaying a corresponding view according to the filled data, wherein the format of the view comprises but is not limited to a table.
Optionally, the method further includes:
acquiring the number of pieces of secondary data;
and when the number of the secondary data exceeds a set threshold value, updating the secondary data.
For example, the set threshold is 20, and when the number of pieces of secondary data slid down by the user is 30, it indicates that the number of pieces of secondary data exceeds 20, and the secondary data needs to be paged and requested, i.e., updated. And (3) pulling the first 20 pieces of secondary data through paging, then sending the zone bits together when sending a data request next time, returning the remaining 10 pieces of secondary data by the server according to the received zone bits, and informing the interface layer to refresh the current view after updating the secondary data.
It should be noted that the setting of the threshold value is not limited in the embodiment of the present application, and those skilled in the art should understand that the threshold value may also be set to other values.
Optionally, in the above step, detecting whether a data query request is received includes:
detecting whether a switching operation of a market type of the stock is received;
determining that the data query request is received when a switching operation of a market type of the stock is received.
Optionally, the switching operation may be that the user switches from the gang market to the American market by clicking the histogram, or switches from the American market to the A market; or the user may slide each element in the secondary display control left and right, for example, data corresponding to the date, the stock name, the shareholder name, the number of changed shares, or the number of changed shares, when a finger of the user slides a certain element in the secondary display control, the IGList control may calculate an offset for sliding the element, and at the same time, the IGList control acquires a plurality of currently visible elements (elements displayed on a screen) according to a protocol function for implementing the IGList, traverses the plurality of currently visible elements, changes the offset of each element in the plurality of currently visible elements, and achieves a visual effect that the plurality of elements slide together. It should be noted that when a user slides a certain element, the user does not need to select the element intentionally, and which element in the current IGList control should be selected to respond to the drag gesture of the user is calculated according to the drag area of the finger of the user, which can also be understood as a fuzzy control mode.
Optionally, the visual effect that the user drags the element to slide can be achieved by actively setting the offset of the element, and the visual effect that all the elements slide together can also be achieved.
As shown in fig. 3, fig. 3 shows a stock data acquisition apparatus, the apparatus including:
a detecting unit 31, configured to detect whether a data query request is received, where the data query request is used to query shareholder holding data of a stock;
an obtaining unit 32, configured to obtain, after receiving the data query request, a market type of a stock carried in the data query request, where the market type includes: the port market, the U.S. market and the A-stock market;
a first determining unit 33, configured to determine shareholder holding data corresponding to the market type of the stock according to the market type of the stock.
In another embodiment of the present application, the apparatus further comprises:
a second determination unit configured to determine a data hierarchy of the shareholder holding data;
and the display unit is used for displaying the shareholder holding data by adopting a display control corresponding to the data hierarchy according to the data hierarchy of the shareholder holding data.
An embodiment of the present application further provides a computer-readable storage medium, where a stock data obtaining program is stored on the computer-readable storage medium, and when the stock data obtaining program is executed by a processor, the steps of the stock data obtaining method according to the method embodiments are implemented, for example, including:
detecting whether a data query request is received, wherein the data query request is used for querying stockholder increase and decrease holding data of a stock;
after receiving the data query request, obtaining a market type of the stock carried in the data query request, wherein the market type comprises: the port market, the U.S. market and the A-stock market;
and determining stockholder increase and decrease holding data corresponding to the market type of the stock according to the market type of the stock.
Fig. 4 is a schematic structural diagram of a terminal device according to another embodiment of the present invention. The terminal device 400 shown in fig. 4 includes: at least one processor 401, memory 402, at least one network interface 404, and other user interfaces 403. The various components in the terminal device 400 are coupled together by a bus system 405. It is understood that the bus system 405 is used to enable connection communication between these components. The bus system 405 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 405 in fig. 4.
The user interface 403 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that memory 402 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a programmable Read-only memory (PROM), an erasable programmable Read-only memory (erasabprom, EPROM), an electrically erasable programmable Read-only memory (EEPROM), or a flash memory. The volatile memory may be a Random Access Memory (RAM) which functions as an external cache. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (StaticRAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced synchronous SDRAM (ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM), and direct memory bus random access memory (DRRAM). The memory 402 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 402 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 4021 and application programs 4022.
The operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is configured to implement various basic services and process hardware-based tasks. The application 4022 includes various applications, such as a media player (MediaPlayer), a Browser (Browser), and the like, for implementing various application services. A program for implementing the method according to the embodiment of the present invention may be included in the application 4022.
In this embodiment of the present invention, by calling a program or an instruction stored in the memory 402, specifically, a program or an instruction stored in the application 4022, the processor 401 is configured to execute the method steps provided by the method embodiments, for example, including:
detecting whether a data query request is received, wherein the data query request is used for querying stockholder increase and decrease holding data of stocks;
after receiving the data query request, obtaining a market type of stocks carried in the data query request, wherein the market type comprises: the port market, the U.S. market and the A-stock market;
and determining stockholder increase and decrease holding data corresponding to the market type of the stock according to the market type of the stock.
The method disclosed in the above embodiments of the present invention may be applied to the processor 401, or implemented by the processor 401. The processor 401 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 401. The processor 401 may be a general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 402, and the processor 401 reads the information in the memory 402 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for apparatus or system embodiments, since they are substantially similar to method embodiments, they are described in relative terms, as long as they are described in partial descriptions of method embodiments. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (8)
1. A stock data acquisition method is applied to a server, and the method comprises the following steps:
the server detects whether a data query request sent by the terminal equipment when a user clicks a screen of the terminal equipment to enter a page of summarized data of shareholder holding data of different time nodes or the user slides downwards the page of the recent shareholder holding data, wherein the data query request is used for querying the shareholder holding data of the stock;
after the server receives the data query request, the server obtains a market type of the stock carried in the data query request, wherein the market type comprises: the port market, the U.S. market and the A-stock market;
the server determines stockholder holding data corresponding to the market type of the stock according to the market type of the stock; and sending the shareholder holding data serving as a return packet to the terminal equipment;
wherein the method further comprises:
determining a data hierarchy of the shareholder holding data, wherein the data hierarchy of the shareholder holding data comprises primary data and secondary data;
and displaying the shareholder holding data by adopting a display control corresponding to the data hierarchy according to the data hierarchy of the shareholder holding data.
2. The method according to claim 1, wherein the data hierarchy of the shareholder holding data comprises primary data, the primary data is used for representing summarized data of the shareholder holding data of different time nodes, and the showing control corresponding to the primary data is a primary showing control;
the detecting whether the data query request is received includes:
when a first trigger operation aiming at the primary display control is detected, determining that the data query request is received, wherein the first trigger operation comprises a long press operation aiming at a first screen of the primary display control;
the displaying the shareholder holding data by adopting a display control corresponding to the data hierarchy according to the data hierarchy of the shareholder holding data comprises the following steps:
determining an operation position of the first trigger operation;
acquiring primary data corresponding to the operation position of the first trigger operation;
and displaying the primary data in a floating window of the primary display control.
3. The method according to claim 1, wherein the data hierarchy of the shareholder holding data comprises secondary data, the secondary data is used for representing shareholder holding data of different stocks at the nearest time node, and the display control corresponding to the secondary data is a secondary display control;
the detecting whether the data query request is received includes:
when a second trigger operation aiming at the secondary display control is detected, determining that the data query request is received, wherein the second trigger operation comprises a sliding operation aiming at a second screen of the secondary display control;
the displaying the shareholder holding data by adopting a display control corresponding to the data hierarchy according to the data hierarchy of the shareholder holding data comprises the following steps:
acquiring secondary data corresponding to the second trigger operation;
and displaying the secondary data in the secondary display control.
4. The method of claim 3, further comprising:
acquiring the number of the secondary data;
and when the number of the secondary data exceeds a set threshold value, updating the secondary data.
5. The method of claim 1, wherein the detecting whether a data query request is received comprises:
detecting whether a switching operation of a market type of the stock is received;
determining that the data query request is received when a switching operation of a market type of the stock is received.
6. An apparatus for acquiring stock data, applied to a server, the apparatus comprising:
the detection unit is used for detecting whether a data query request sent by the server when a user clicks a screen of the terminal equipment to enter a page of summarized data of shareholder holding data of different time nodes or the user slides down the page of recent shareholder holding data, wherein the data query request is used for querying the shareholder holding data of the stock;
an obtaining unit, configured to, after the server receives the data query request, obtain, by the server, a market type of a stock carried in the data query request, where the market type includes: the port market, the U.S. market and the A-stock market;
a first determining unit, configured to determine, by the server, shareholder holding data corresponding to a market type of the stock according to the market type of the stock; and sending the shareholder holding data serving as a return packet to the terminal equipment;
wherein the apparatus further comprises:
the second determining unit is used for determining the data level of the shareholder holding data, and the data level of the shareholder holding data comprises primary data and secondary data;
and the display unit is used for displaying the shareholder holding data by adopting a display control corresponding to the data hierarchy according to the data hierarchy of the shareholder holding data.
7. A terminal device, characterized in that the terminal device comprises: at least one processor, memory, at least one network interface, and a user interface;
the at least one processor, memory, at least one network interface, and user interface are coupled together by a bus system;
the processor is adapted to perform the steps of the stock data acquisition method according to any one of claims 1 to 5 by calling a program or instructions stored in the memory.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an stock data acquisition program that, when executed by a processor, implements the steps of the stock data acquisition method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910995493.XA CN110895585B (en) | 2019-10-18 | 2019-10-18 | Stock data acquisition method and device, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910995493.XA CN110895585B (en) | 2019-10-18 | 2019-10-18 | Stock data acquisition method and device, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110895585A CN110895585A (en) | 2020-03-20 |
CN110895585B true CN110895585B (en) | 2022-08-23 |
Family
ID=69786196
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910995493.XA Active CN110895585B (en) | 2019-10-18 | 2019-10-18 | Stock data acquisition method and device, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110895585B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115829734A (en) * | 2022-10-21 | 2023-03-21 | 深圳价值在线信息科技股份有限公司 | Data processing method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105989540A (en) * | 2015-02-10 | 2016-10-05 | 上海华颂软件科技有限公司 | Stock selecting method and system |
CN108764291A (en) * | 2018-04-26 | 2018-11-06 | 平安科技(深圳)有限公司 | Method and storage medium when electronic device, the stock based on machine learning are selected |
CN109657044A (en) * | 2018-12-14 | 2019-04-19 | 北京向上心科技有限公司 | Data retrieval method, data reordering method, device, terminal and storage medium |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7991672B2 (en) * | 2007-06-29 | 2011-08-02 | William Rory Crowder | System and method of visual illustration of stock market performance |
JP5033165B2 (en) * | 2009-07-10 | 2012-09-26 | 有限会社増田経済研究所 | Market information search and display system, and market price information search and display method in the system |
TWI559247B (en) * | 2011-06-23 | 2016-11-21 | Stock analysis method, the computer can read the storage media and computer program products | |
CN102385526A (en) * | 2011-11-16 | 2012-03-21 | 深圳市大赢家网络有限公司 | Method and device for sharing stock data among multiple processes |
CN105847329B (en) * | 2016-03-15 | 2023-04-07 | 优品财富管理有限公司 | Management equipment and method based on stock data server |
CN106909602A (en) * | 2016-08-26 | 2017-06-30 | 阿里巴巴集团控股有限公司 | A kind of information query method and device |
CN108170852A (en) * | 2018-01-19 | 2018-06-15 | 深圳市富途网络科技有限公司 | A kind of stock searching method of efficiently and accurately |
CN109492029A (en) * | 2018-11-13 | 2019-03-19 | 程在舒 | A kind of stock information displaying method |
-
2019
- 2019-10-18 CN CN201910995493.XA patent/CN110895585B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105989540A (en) * | 2015-02-10 | 2016-10-05 | 上海华颂软件科技有限公司 | Stock selecting method and system |
CN108764291A (en) * | 2018-04-26 | 2018-11-06 | 平安科技(深圳)有限公司 | Method and storage medium when electronic device, the stock based on machine learning are selected |
CN109657044A (en) * | 2018-12-14 | 2019-04-19 | 北京向上心科技有限公司 | Data retrieval method, data reordering method, device, terminal and storage medium |
Non-Patent Citations (1)
Title |
---|
怎么在同花顺里直接搜索查看自己想看的那支股票;匿名用户;《https://wenwen.sogou.com/z/q915141629.htm?fr=wap&_t=223535&rcer=》;20081018;第1-2页 * |
Also Published As
Publication number | Publication date |
---|---|
CN110895585A (en) | 2020-03-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108388604B (en) | User authority data management apparatus, method and computer readable storage medium | |
US8990353B2 (en) | Recommended alteration to a processing system | |
CN108334525A (en) | A kind of method for exhibiting data and device | |
US8583618B2 (en) | Determination of graphical format to present search results | |
CN105183873A (en) | Malicious clicking behavior detection method and device | |
CN109445884B (en) | Function label display method and terminal equipment | |
US20150120802A1 (en) | Method, Apparatus, and System for Distributing Information in Graphic Code | |
EP4528548A1 (en) | Data processing method and apparatus, and device and storage medium | |
CN111026775A (en) | Determination method, device, server and storage medium for associated indicators | |
US20120124068A1 (en) | Document management apparatus and method for controlling same | |
CN110895585B (en) | Stock data acquisition method and device, terminal equipment and storage medium | |
CN110598188A (en) | Method and device for displaying annotations and computer-readable storage medium | |
CN109101259B (en) | A method, device and terminal for updating OSDMap cache container | |
AU2014201566C1 (en) | Document tracking tool | |
CN110515618B (en) | Page information input optimization method, equipment, storage medium and device | |
CN104268231B (en) | A kind of file access method, device and Intelligent File System | |
CN109358794B (en) | WEB application program page refreshing method, device, computer equipment and storage medium | |
CN111026981A (en) | Visual display method, device and equipment for hot topics | |
CN112231111A (en) | Data pasting method and device, electronic equipment and storage medium | |
CN111352973B (en) | Data processing method, device, electronic equipment and computer readable storage medium | |
CN115982444A (en) | Label generation method and device, storage medium, computing device | |
US11860922B1 (en) | Tagging documents to display with context sensitivity for improved user experience | |
CN102314292A (en) | Method and system for generating web services | |
US9367647B2 (en) | Method of providing system design | |
CN112948729B (en) | Elastic custom content presentation method and device, computer equipment and storage medium |
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 |