CN106157347B - Resource exchange data processing method, device and system - Google Patents

Resource exchange data processing method, device and system Download PDF

Info

Publication number
CN106157347B
CN106157347B CN201610531144.9A CN201610531144A CN106157347B CN 106157347 B CN106157347 B CN 106157347B CN 201610531144 A CN201610531144 A CN 201610531144A CN 106157347 B CN106157347 B CN 106157347B
Authority
CN
China
Prior art keywords
boundary
line
data
parameter
channel
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
Application number
CN201610531144.9A
Other languages
Chinese (zh)
Other versions
CN106157347A (en
Inventor
刘建国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610531144.9A priority Critical patent/CN106157347B/en
Publication of CN106157347A publication Critical patent/CN106157347A/en
Application granted granted Critical
Publication of CN106157347B publication Critical patent/CN106157347B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]

Landscapes

  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method, a device and a system for processing resource exchange data. The method comprises the following steps: responding to the operation that a user selects to display a K line graph corresponding to a resource, sending a K line graph display request corresponding to the resource to a network server, wherein the request designates a K line analysis period; receiving a plurality of pieces of K line data for K line drawing and a plurality of pieces of boundary data for channel drawing corresponding to the K line analysis period from the web server; and drawing and displaying a K line graph with a channel according to the plurality of pieces of K line data and the plurality of pieces of boundary data. The application also discloses a corresponding device and a corresponding system. According to the technical scheme disclosed by the application, a mode of automatically drawing a K line graph with a channel is provided.

Description

Resource exchange data processing method, device and system
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, an apparatus, and a system for resource exchange processing.
Background
With the development of internet technology, users can exchange physical resources or virtual resources with other users or product providers, service providers and the like on the internet. When a resource is exchanged, a K-line graph (also called a candle graph) can be used to show the exchange situation of the resource, and a user analyzes resource exchange data by using the K-line graph. In particular, the K-line graph may present the user with the exchange information for each analysis period (e.g., day, week, month).
Disclosure of Invention
The embodiment of the invention provides a resource exchange data processing method, which is used for providing a mode of automatically drawing a K line graph with a channel, and comprises the following steps:
responding to the operation that a user selects to display a K line graph corresponding to a resource, sending a K line graph display request corresponding to the resource to a network server, wherein the request designates a K line analysis period;
receiving a plurality of pieces of K line data for K line drawing and a plurality of pieces of boundary data for channel drawing corresponding to the K line analysis period from the web server;
and drawing and displaying a K line graph with a channel according to the plurality of pieces of K line data and the plurality of pieces of boundary data.
The embodiment of the invention also provides a resource exchange data processing method, which is used for providing a mode of automatically drawing the K line graph with the channel, and comprises the following steps:
responding to a K line graph display request corresponding to a resource from user equipment, wherein the request designates a K line analysis period, and acquiring a plurality of K line data for K line drawing corresponding to the resource from a resource exchange data server, wherein each piece of K line data comprises a time parameter and a resource exchange value parameter in the K line analysis period;
dividing the plurality of K line data into a plurality of groups of K line data according to a preset channel drawing period and time parameters in the K line data;
for each group of K line data, determining boundary data for channel drawing according to the group of K line data;
and sending the multiple groups of K line data and the boundary data corresponding to each group of K line data to the user equipment so that the user equipment draws and displays a K line graph with a channel according to the multiple groups of K line data and the boundary data corresponding to each group of K data.
The embodiment of the invention provides a resource exchange data processing device, which provides a mode of automatically drawing a K line graph with a channel, and comprises:
the system comprises a sending module, a network server and a processing module, wherein the sending module is used for responding to the operation that a user selects to display a K line graph corresponding to a resource, sending a K line graph display request corresponding to the resource to the network server, and the request appoints a K line analysis period;
a receiving module, configured to receive, from the network server, a plurality of pieces of K line data for K line drawing and a plurality of pieces of boundary data for channel drawing corresponding to the K line analysis period;
and the processing module is used for drawing and displaying the K line graph with the channel according to the plurality of pieces of K line data and the plurality of pieces of boundary data.
The embodiment of the invention also provides a resource exchange data processing device, which provides a mode of automatically drawing the K line graph with the channel, and comprises the following components:
the system comprises an acquisition module, a resource management module and a resource exchange data server, wherein the acquisition module is used for responding to a K line graph display request corresponding to a resource from user equipment, the request designates a K line analysis period, and a plurality of K line data used for K line drawing and corresponding to the resource are acquired from the resource exchange data server, and each piece of K line data comprises a time parameter and a resource exchange value parameter in the K line analysis period;
the processing module is used for dividing the plurality of pieces of K line data into a plurality of groups of K line data according to a preset channel drawing period and time parameters in the K line data; for each group of K line data, determining boundary data for channel drawing according to the group of K line data;
and the sending module is used for sending the plurality of groups of K line data and the boundary data corresponding to each group of K line data to the user equipment so that the user equipment draws and displays a K line graph with a channel according to the plurality of groups of K line data and the boundary data corresponding to each group of K line data.
The embodiment of the invention provides a resource exchange data processing system, which provides a mode of automatically drawing a K line graph with a channel, and comprises:
the user equipment is used for responding to the operation that a user selects to display a K line graph corresponding to a resource, sending a K line graph display request corresponding to the resource to the network server, wherein the request designates a K line analysis period; receiving a plurality of pieces of K line data for K line drawing and a plurality of pieces of boundary data for channel drawing corresponding to the K line analysis period from the web server; drawing and displaying a K line graph with a channel according to the plurality of pieces of K line data and the plurality of pieces of boundary data;
the network server is used for responding to a K line graph display request corresponding to a resource from user equipment, wherein the request designates a K line analysis period, and a plurality of K line data used for K line drawing and corresponding to the resource are acquired from a resource exchange data server, and each piece of K line data comprises a time parameter and a resource exchange value parameter in the K line analysis period; dividing the plurality of K line data into a plurality of groups of K line data according to a preset channel drawing period and time parameters in the K line data; for each group of K line data, determining boundary data for channel drawing according to the group of K line data; and sending the multiple groups of K line data and the boundary data corresponding to each group of K line data to the user equipment so that the user equipment draws and displays a K line graph with a channel according to the multiple groups of K line data and the boundary data corresponding to each group of K data.
By adopting the technical scheme, the K line graph with the channel can be drawn and displayed according to the received multiple pieces of K line data which correspond to the K line analysis period and are used for drawing the K line and the multiple pieces of boundary data used for drawing the channel, so that a mode of automatically drawing the K line graph with the channel is provided, and a user does not need to manually draw the K line graph with the channel.
Drawings
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 that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic block diagram of an implementation environment in accordance with various embodiments of the present invention;
FIG. 2 is an exemplary flow chart of a resource exchange data processing method according to an embodiment of the present invention;
FIG. 3 is a K-line graph with a channel in an embodiment of the invention;
FIG. 4 is a K-line graph with a channel in an embodiment of the invention;
FIG. 5 is an exemplary flowchart of a resource exchange data processing method according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a resource exchange data processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a resource exchange data processing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
The inventor of the present invention finds in the research process that with the development and popularization of the internet, users can exchange physical resources or virtual resources with other users or product providers and service providers on the internet. For example, with some internet applications, a user may complete a transaction of a physical product (or called a physical resource) by using a smart device such as a mobile terminal, a personal computer, and a tablet computer, for example, to buy or sell the physical product. With some internet applications, users can also complete trading of financial products (or called virtual resources) such as stocks, funds, bonds, and even futures, such as buying or selling stocks, making or redeeming funds, bonds, and so on, with the help of smart devices.
When resource exchange is performed, in order to clearly observe resource exchange conditions, a user needs to manually draw a channel on a K line. Particularly, when the number of analysis cycles included in the K-line graph is large, the user needs to spend much time and effort to complete the drawing of the K-line channel.
In view of this, the embodiments of the present invention provide a method, an apparatus, and a system for processing resource exchange data. Fig. 1 is a schematic diagram of an implementation environment according to various embodiments of the present invention. As shown in FIG. 1, the implementation environment includes a resource exchange data server 110, a web server 120, and a user device 130.
The resource exchange data server 110 and the network server 120 may be respectively a server, a server cluster composed of several servers, or a cloud computing service center.
The user device 130 may be a cell phone, iPad, tablet, laptop portable computer, desktop computer, and the like.
The resource exchange data server 110 and the web server 120, and the web server 120 and the user equipment 130 may be connected to each other through a wireless network or a wired network, respectively.
Fig. 2 is an exemplary flowchart of a resource exchange data processing method according to an embodiment of the present invention. As shown in fig. 2, the method may include the following steps.
Step 201: and responding to the operation of displaying the K line graph corresponding to the resource selected by the user, and sending the K line graph corresponding to the resource to the network server.
In one embodiment, a user may select a resource to be presented in a list of resources in an interface provided by a user device. Taking stock trading as an example, a user can select corresponding stocks from a popular stock list; or, the user selects the corresponding stock from a pre-established self-selected stock list. Further, the user selects a K-line graph analysis period (e.g., a day K-line graph, a week K-line graph, a month K-line graph).
Step 202: receiving a plurality of pieces of K-line data for K-line drawing and a plurality of pieces of boundary data for channel drawing corresponding to the K-line analysis period from the web server.
In one embodiment, each K-line data includes a time parameter and a resource exchange value parameter within the K-line analysis period. The resource exchange value parameters include at least a first deal value parameter and a last deal price parameter. The resource exchange value parameter may also include a highest value parameter, a lowest value parameter, and a volume. This value parameter may be characterized by the price of the resource. Still taking a stock exchange as an example, if the K-line analysis period is day, the time parameter in the K-line data is a certain day (trading day), the resource exchange value parameter includes the opening price and closing price of the stock on the day, and the resource exchange value parameter may also include the highest price, lowest price and volume of the stock on the day. Still taking a stock exchange as an example, if the K-line analysis period is a week, the time parameter in the K-line data corresponding to the current week is the latest date in the week (for example, today is Tuesday, the latest date in the current week is the date in Tuesday), the time parameter in the K-line data corresponding to the previous week is the date in Friday in the week, the resource exchange value parameter includes the opening price of the week for the stock, the closing price for Friday, and the resource exchange value parameter may further include the highest price, the lowest price and the volume of the week for the stock.
In one embodiment, each piece of boundary data includes a position parameter of a first boundary point and a position parameter of a second boundary point, where the position parameter of the first boundary point includes a highest value and a corresponding time parameter of each first exchange value parameter and each last exchange value parameter in a preset channel drawing period, and the position parameter of the second boundary point includes a lowest value and a corresponding time parameter of each first exchange value parameter and each last exchange value parameter in the preset channel drawing period. Still taking stock trading as an example, assuming that the K-line analysis period is day, the channel plotting period is 20 trading days (four weeks). In the channel plotting cycles 2016/05/31-2016/06/30 (shown in FIG. 3), the position parameters of the first boundary point (corresponding to point A in FIG. 3) are (71.07, 2016/06/24) and the position parameters of the second boundary point (corresponding to point C in FIG. 3) are (48.72, 2016/06/01).
Step 203: and drawing and displaying a K line graph with a channel according to the plurality of pieces of K line data and the plurality of pieces of boundary data.
In one embodiment, a corresponding drawing function may be called to draw a K line according to the plurality of pieces of K line data. Still taking stock trading as an example, for the drawing of a K-line graph with an analysis period being days, K-line data corresponding to a trading day 2016/06/24 includes a time parameter 2016/06/24, an opening price of 71.07, a closing price of 64.40, a maximum price of 71.28, and a minimum price of 64.24. Accordingly, in the K-line graph, a rectangle is drawn according to the time parameter, the opening price and the closing price. Specifically, according to the time parameter 2016/06/24, the opening price 71.07 and the closing price 64.40, the drawing coordinates of the four points of the rectangular cylinder on the drawing canvas are determined to be (150, 50), (160,50), (150, 45) and (160, 45), respectively. A vertical line passing through the center of the rectangle is determined based on the time parameter, the highest price and the lowest price. Specifically, according to the time parameter 2016/06/24, the highest price 71.28 and the lowest price 64.24, the drawing coordinates on the drawing canvas corresponding to the vertical line are determined to be (155, 51) and (155, 45), respectively. Thereafter, the move and scribe-and-draw functions are called to draw the corresponding graphics, respectively. Calling a move draw function (e.g., the function cxt. moveto) and passing (155, 51) into the move draw function, such that the draw function moves the draw start point to the coordinate point (155, 51), taking the vertical line between the highest and lowest prices as an example; a line drawing function (e.g., the function cxt. lineto) is called and (155, 45) is passed into the line drawing function so that the drawing function draws a vertical line between two points (155, 51) and (155, 45).
In one embodiment, a corresponding drawing function is called to draw the channel of the K line according to the plurality of pieces of boundary data. Specifically, for each piece of boundary data, a corresponding drawing function is called, and the determined position parameters of each first boundary point and the determined position parameters of each second boundary point are transmitted into the drawing function, so that the drawing function draws the first boundary line of the channel by sequentially connecting the first boundary points, and draws the second boundary line of the channel by sequentially connecting the second boundary points.
Still taking a stock trade as an example, as shown in fig. 3, two pieces of boundary data are received, namely a first piece of boundary data and a second piece of boundary data. Wherein the first piece of boundary data comprises position parameters (71.07, 2016/06/24) of the first boundary point (corresponding to point a, its drawing coordinates (155, 50) on the drawing canvas) and position parameters (48.72, 2016/06/01) of the second boundary point (corresponding to point C, its drawing coordinates (122, 35)), and the second piece of boundary data comprises position parameters (50.81, 2016/05/14) of the first boundary point (corresponding to point B, its drawing coordinates (113, 41)) and position parameters (40.21, 2016/05/12) of the second boundary point (corresponding to point D, its drawing coordinates (107, 32)). And calling a moving drawing function and a scribing drawing function to draw a first boundary line and a second boundary line of the channel respectively. Specifically, a move draw function is invoked and coordinates (155, 50) are passed into the move draw function, such that the draw function moves a draw start point to coordinate point a (155, 50); calling a line drawing function and passing (113, 41) into the line drawing function such that the drawing function connects the coordinates (155, 50) and the coordinates (113, 41) to form a first boundary line; calling a mobile drawing function and passing coordinates (122, 35) into the mobile drawing function such that the drawing function moves a drawing start point to coordinates (122, 35); a line drawing function is called and passed (107, 32) into the line drawing function such that the drawing function connects the coordinates (122, 35) and the coordinates (107, 32) to form a second boundary line.
In one embodiment, each piece of K-line data and each piece of boundary data received may be directly represented as corresponding coordinates on a canvas on which the K-line graph is drawn.
Also taking the above stock trading as an example, the K-line data corresponding to trading date 2016/06/24 is represented as coordinates (150, 50), (160,50), (150, 45), (160, 45), (155, 51) and (155, 45) on the drawing canvas. Wherein, four coordinates (150, 50), (160,50), (150, 45) and (160, 45) represent four vertexes of a rectangle corresponding to the opening price and the closing price, and two coordinates (155, 51) and (155, 45) represent vertical lines corresponding to the highest price and the lowest price. The boundary data corresponding to the channel drawing cycles (2016/05/31-2016/0630) is represented as coordinates (155, 50) and (122, 35) on the drawing canvas, representing the position information of the first boundary point and the second boundary point, respectively. Correspondingly, the user equipment can draw the K line graph with the channel directly according to the received coordinates in the above mode.
In one embodiment, in response to the user selecting a time interval, a part corresponding to the time interval is cut from the drawn K-line graph with channels, and is displayed.
In one embodiment, in response to a drag operation performed by a user for a first boundary point, moving the first boundary point to an end position of the drag operation, and calling a corresponding drawing function to adjust the first boundary line where the first boundary point is located; and responding to a drag operation executed by the user aiming at a second boundary point, moving the second boundary point to the termination position of the drag operation, and calling a corresponding drawing function to adjust the second boundary line where the second boundary point is located.
Still taking a stock trade as an example, as shown in fig. 4, after showing a K-line graph with a channel to the user, the user may drag coordinate point a upward to adjust the first boundary line of the channel. Specifically, a final position point a 'of the drag operation for the point a drag operation, which corresponds to the coordinates (155, 53) on the drawing canvas, may be acquired, the line AB may be cleared by calling the clear function, and the line between the coordinate points a' and B may be redrawn by calling the move drawing function and the line drawing function. Alternatively, a clear function is called to clear the first and second boundary lines of the K-line and the channel, a move draw function and a scribe-and-draw function are called to redraw the K-line, and coordinate points a' and B are connected to form a new first boundary line and coordinate points C and D are reconnected to form a new second boundary line.
Corresponding to the above method for processing resource exchange data of the user equipment, the web server also needs to execute a corresponding data processing method in a matching manner. The flow of the data processing method of the web server side according to the embodiment of the invention is shown in fig. 5, and the method mainly comprises the following steps:
step 501: and responding to a K line graph display request corresponding to a resource from the user equipment, and acquiring a plurality of pieces of K line data for K line drawing corresponding to the resource from a resource exchange data server.
The request specifies a K-line analysis period, and each piece of K-line data comprises a time parameter and a resource exchange value parameter in the K-line analysis period.
Step 502: and dividing the plurality of K line data into a plurality of groups of K line data according to a preset channel drawing period and the time parameters in the K line data.
Still taking the stock trading example above, if the K-line analysis period is days and each channel drawing period is 20 trading days, every 20 pieces of K-line data are divided into one group. For example, 20 pieces of K-line analysis data corresponding to 20 transaction days are included in the channel plotting periods 2016/05/31 to 2016/06/30.
Step 503: and determining boundary data for drawing the channel according to the group of K line data for each group of K line data.
In one embodiment, the resource exchange worth parameters include at least a first exchange worth parameter and a last exchange worth parameter within the K-line analysis period.
In one embodiment, the highest value and the lowest value are determined from each first exchange value parameter and each last exchange value parameter included in the set of K lines of data; determining a time parameter corresponding to the highest value and a time parameter corresponding to the lowest value; and determining the highest value and the time parameter corresponding to the highest value as the position parameter of a first boundary point, determining the lowest value and the time parameter corresponding to the lowest value as the position parameter of a second position point, wherein the boundary data comprises the position parameter of the first boundary point and the position parameter of the second position point.
Still taking the above stock trading as an example, if the K-line analysis period is day and each passage drawing period is 20 trading days, 20 opening prices and 20 closing prices are included in total in the passage drawing periods 2016/05/31-2016/06/30. From the 20 opening prices and the 20 closing prices, the highest value 71.07 and the lowest value 48.72 are selected. According to the K-line data, the time parameter corresponding to the highest value 71.07 is 2016/06/24, and the time parameter corresponding to the lowest value 48.72 is 2016/06/01. Correspondingly, the determined channel rendering cycle 2016/05/31-2016/06/30 boundary data includes position parameters (71.07, 2016/06/24) for the first position point and position parameters (48.72, 2016/06/01) for the second boundary point.
Step 504: and sending the plurality of groups of K line data and the boundary data corresponding to each group of K line data to the user equipment.
The following are embodiments of the apparatus of the present invention that may be used to perform corresponding method embodiments of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the description of the embodiments of the method of the present invention.
Fig. 6 is an exemplary block diagram of a resource exchange data processing apparatus according to an embodiment of the present invention. The resource exchange data processing apparatus 600 may implement part or all of the user equipment 130 shown in fig. 1 by software, hardware or a combination of both. The apparatus may include: a sending module 601, a receiving module 602, a processing module 603 and a presentation module 604. Wherein the content of the first and second substances,
the sending module 601 is configured to send a K line graph display request corresponding to a resource to a network server in response to an operation of a user selecting to display a K line graph corresponding to the resource, where the request specifies a K line analysis period;
the receiving module 602 is configured to receive, from the network server, a plurality of pieces of K line data for K line drawing and a plurality of pieces of boundary data for channel drawing corresponding to the K line analysis period;
the processing module 603 is configured to draw a K-line graph with a channel according to the plurality of pieces of K-line data and the plurality of pieces of boundary data;
the display module 604 is used for displaying the K line graph with channels drawn by the processing module 603.
In one embodiment, the processing module 603 is configured to call a corresponding drawing function to draw a K line according to the plurality of pieces of K line data; and calling corresponding drawing functions to draw the channels of the K lines according to the plurality of pieces of boundary data.
In one embodiment, each piece of boundary data includes a position parameter of a first boundary point and a position parameter of a second boundary point, where the position parameter of the first boundary point includes a highest value and a corresponding time parameter of each first exchange value parameter and each last exchange value parameter in a preset channel drawing period, and the position parameter of the second boundary point includes a lowest value and a corresponding time parameter of each first exchange value parameter and each last exchange value parameter in the preset channel drawing period;
the processing module 603 is configured to call a corresponding drawing function for each piece of boundary data, and transfer the determined position parameters of each first boundary point and the determined position parameters of each second boundary point into the drawing function, so that the drawing function draws the first boundary line of the channel by sequentially connecting the first boundary points, and draws the second boundary line of the channel by sequentially connecting the second boundary points.
In one embodiment, the processing module 603 is further configured to, in response to the user selecting a time interval, cut a portion corresponding to the time interval from the plotted K-line graph with channels;
the presentation module 604 is further configured to present the intercepted portion of the processing module.
In one embodiment, the processing module 603 is further configured to, in response to a drag operation performed by a user for a first boundary point, move the first boundary point to an end position of the drag operation, and call a corresponding drawing function to adjust the first boundary line where the first boundary point is located; and responding to a drag operation executed by the user aiming at a second boundary point, moving the second boundary point to the termination position of the drag operation, and calling a corresponding drawing function to adjust the second boundary line where the second boundary point is located.
The modules 601 and 604 may be instruction modules stored in the memory 611 of the apparatus 600, and the instruction modules include instructions executable by the processor. When the processor 610 in the apparatus 600 executes the instructions in the modules 601 and 604, various functions of the modules 601 and 604 can be implemented.
Fig. 7 is an exemplary block diagram of a resource exchange data processing apparatus according to an embodiment of the present invention. The resource exchange data processing apparatus 700 may implement part or all of the network server 120 shown in fig. 1 by software, hardware, or a combination of both. The apparatus may include: an obtaining module 701, a processing module 702 and a sending module 703. Wherein the content of the first and second substances,
the obtaining module 701 is configured to respond to a K line graph display request corresponding to a resource from a user equipment, where the request specifies a K line analysis period, and obtain, from a resource exchange data server, a plurality of pieces of K line data for K line drawing corresponding to the resource, where each piece of K line data includes a time parameter and a resource exchange value parameter in the K line analysis period;
the processing module 702 is configured to divide the multiple pieces of K line data into multiple sets of K line data according to a preset channel drawing period and a time parameter in the K line data; for each group of K line data, determining boundary data for channel drawing according to the group of K line data;
the sending module 703 is configured to send the multiple sets of K line data and the boundary data corresponding to each set of K line data to the user equipment, so that the user equipment draws and displays a K line graph with a channel according to the multiple sets of K line data and the boundary data corresponding to each set of K line data.
In one embodiment, the resource exchange worth parameters include at least a first exchange worth parameter and a last exchange worth parameter within the K-line analysis period;
the processing module 702 is configured to determine a highest value and a lowest value from each first exchange value parameter and each last exchange value parameter included in the group of K line data; determining a time parameter corresponding to the highest value and a time parameter corresponding to the lowest value; and determining the highest value and the time parameter corresponding to the highest value as the position parameter of a first boundary point, determining the lowest value and the time parameter corresponding to the lowest value as the position parameter of a second position point, wherein the boundary data comprises the position parameter of the first boundary point and the position parameter of the second position point.
The module 701 and 703 may be instruction modules stored in the memory 711 of the device 700, and the instruction modules include instructions executable by the processor. When the processor 710 in the apparatus 700 executes the instructions in the modules 701 and 703, various functions of the modules 701 and 703 can be implemented.
The control system for on-line playing of a media file in the embodiment of the present invention includes a resource exchange data server 110, a web server 120 and at least one user device 130 as shown in fig. 1. Wherein the content of the first and second substances,
the user equipment 130 is configured to send a K-line diagram display request corresponding to a resource to the web server 120 in response to an operation of selecting to display a K-line diagram corresponding to the resource by a user, where the request specifies a K-line analysis period; receiving a plurality of pieces of K line data for K line drawing and a plurality of pieces of boundary data for channel drawing corresponding to the K line analysis period from the web server; drawing and displaying a K line graph with a channel according to the plurality of pieces of K line data and the plurality of pieces of boundary data;
the network server 120 is configured to respond to a K-line graph display request corresponding to a resource from a user equipment, where the request specifies a K-line analysis period, and obtain, from the resource exchange data server 110, a plurality of pieces of K-line data for K-line drawing corresponding to the resource, where each piece of K-line data includes a time parameter and a resource exchange value parameter in the K-line analysis period; dividing the plurality of K line data into a plurality of groups of K line data according to a preset channel drawing period and time parameters in the K line data; for each group of K line data, determining boundary data for channel drawing according to the group of K line data; and sending the plurality of groups of K line data and the boundary data corresponding to each group of K line data to the user equipment 130.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. The functional modules of the embodiments may be located in one terminal or network node, or may be distributed over a plurality of terminals or network nodes.
In addition, each of the embodiments of the present invention can be realized by a data processing program executed by a data processing apparatus such as a computer. It is clear that the data processing program constitutes the invention. Further, the data processing program, which is generally stored in one storage medium, is executed by directly reading the program out of the storage medium or by installing or copying the program into a storage device (such as a hard disk and/or a memory) of the data processing device. Such a storage medium therefore also constitutes the present invention. The storage medium may use any type of recording means, such as a paper storage medium (e.g., paper tape, etc.), a magnetic storage medium (e.g., a flexible disk, a hard disk, a flash memory, etc.), an optical storage medium (e.g., a CD-ROM, etc.), a magneto-optical storage medium (e.g., an MO, etc.), and the like.
The invention therefore also provides a storage medium in which a data processing program is stored which is designed to carry out any one of the embodiments of the method according to the invention described above.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (11)

1. A method for processing resource-switched data, the method comprising:
responding to the operation that a user selects to display a K line graph corresponding to a resource, sending a K line graph display request corresponding to the resource to a network server, wherein the request designates a K line analysis period;
receiving a plurality of pieces of K line data used for K line drawing and a plurality of pieces of boundary data used for channel drawing, wherein each piece of boundary data comprises a position parameter of a first boundary point and a position parameter of a second boundary point, the position parameter of the first boundary point comprises each first exchange value parameter and the highest value in each last exchange value parameter in a preset channel drawing period and a corresponding time parameter, and the position parameter of the second boundary point comprises each first exchange value parameter and the lowest value in each last exchange value parameter in the preset channel drawing period and a corresponding time parameter;
drawing and displaying a K line graph with a channel according to the plurality of pieces of K line data and the plurality of pieces of boundary data, and the method comprises the following steps: according to two pieces of boundary data in the plurality of pieces of boundary data, connecting first boundary points of the two pieces of boundary data to form a first boundary line of the channel, and connecting second boundary points of the two pieces of boundary data to form a second boundary line of the channel;
responding to a drag operation executed by a user aiming at a first boundary point, moving the first boundary point to the termination position of the drag operation, and calling a corresponding drawing function to adjust the first boundary line where the first boundary point is located;
responding to a drag operation executed by the user aiming at a second boundary point, moving the second boundary point to the termination position of the drag operation, and calling a corresponding drawing function to adjust the second boundary line where the second boundary point is located;
and in response to the operation that the user selects a time interval, cutting a part corresponding to the time interval from the drawn K line graph with the channel, and displaying the part.
2. The method of claim 1, wherein said plotting a K-line graph having channels comprises:
calling a corresponding drawing function to draw K lines according to the plurality of pieces of K line data;
and calling corresponding drawing functions to draw the channels of the K lines according to the plurality of pieces of boundary data.
3. The method of claim 2, wherein said calling the corresponding drawing function to draw the channel of the K line according to the plurality of pieces of boundary data comprises:
and for each piece of boundary data, calling a corresponding drawing function and transmitting the determined position parameters of each first boundary point and the determined position parameters of each second boundary point into the drawing function, so that the drawing function draws the first boundary line of the channel by sequentially connecting the first boundary points, and draws the second boundary line of the channel by sequentially connecting the second boundary points.
4. A method for processing resource-switched data, the method comprising:
responding to a K line graph display request corresponding to a resource from user equipment, wherein the request designates a K line analysis period, and acquiring a plurality of K line data for K line drawing corresponding to the resource from a resource exchange data server, wherein each piece of K line data comprises a time parameter and a resource exchange value parameter in the K line analysis period;
dividing the plurality of K line data into a plurality of groups of K line data according to a preset channel drawing period and time parameters in the K line data;
determining boundary data for channel drawing according to each group of K line data, wherein each boundary data comprises a position parameter of a first boundary point and a position parameter of a second boundary point, the position parameter of the first boundary point comprises the highest value and the corresponding time parameter of each first exchange value parameter and each last exchange value parameter in a preset channel drawing period, and the position parameter of the second boundary point comprises the lowest value and the corresponding time parameter of each first exchange value parameter and each last exchange value parameter in the preset channel drawing period;
and sending the multiple groups of K line data and the boundary data corresponding to each group of K line data to the user equipment so that the user equipment draws and displays a K line graph with a channel according to the multiple groups of K line data and the boundary data corresponding to each group of K data.
5. The method of claim 4, the resource exchange worth parameters comprising at least a first exchange worth parameter and a last exchange worth parameter within the K-line analysis period;
determining boundary data for channel rendering according to the set of K-line data includes:
determining the highest value and the lowest value from each first exchange value parameter and each last exchange value parameter in the group of K line data;
determining a time parameter corresponding to the highest value and a time parameter corresponding to the lowest value;
and determining the highest value and the time parameter corresponding to the highest value as the position parameter of a first boundary point, determining the lowest value and the time parameter corresponding to the lowest value as the position parameter of a second boundary point, wherein the boundary data comprises the position parameter of the first boundary point and the position parameter of the second boundary point.
6. A resource-switched data processing apparatus, characterized in that the apparatus comprises:
the system comprises a sending module, a network server and a processing module, wherein the sending module is used for responding to the operation that a user selects to display a K line graph corresponding to a resource, sending a K line graph display request corresponding to the resource to the network server, and the request appoints a K line analysis period;
a receiving module, configured to receive, from the network server, multiple pieces of K line data for K line drawing and multiple pieces of boundary data for channel drawing, where each piece of boundary data includes a position parameter of a first boundary point and a position parameter of a second boundary point, the position parameter of the first boundary point includes a highest value and a corresponding time parameter in each first exchange value parameter and each last exchange value parameter in a preset channel drawing period, and the position parameter of the second boundary point includes a lowest value and a corresponding time parameter in each first exchange value parameter and each last exchange value parameter in the preset channel drawing period;
the processing module is used for drawing a K line graph with a channel according to the plurality of pieces of K line data and the plurality of pieces of boundary data, connecting first boundary points of the two pieces of boundary data to form a first boundary line of the channel according to two pieces of boundary data in the plurality of pieces of boundary data, and connecting second boundary points of the two pieces of boundary data to form a second boundary line of the channel;
the display module is used for displaying the K line graph with the channel drawn by the processing module;
the processing module is further used for responding to a dragging operation executed by a user aiming at a first boundary point, moving the first boundary point to the termination position of the dragging operation, and calling a corresponding drawing function to adjust the first boundary line where the first boundary point is located; responding to a drag operation executed by the user aiming at a second boundary point, moving the second boundary point to the termination position of the drag operation, and calling a corresponding drawing function to adjust the second boundary line where the second boundary point is located;
the processing module is also used for responding to the operation that the user selects a time interval, and intercepting a part corresponding to the time interval from the drawn K line graph with channels; the display module is further used for displaying the intercepted part of the processing module.
7. The apparatus according to claim 6, wherein the processing module is configured to call a corresponding drawing function to draw a K line according to the plurality of pieces of K line data; and calling corresponding drawing functions to draw the channels of the K lines according to the plurality of pieces of boundary data.
8. The apparatus according to claim 7, wherein each piece of boundary data includes a position parameter of a first boundary point and a position parameter of a second boundary point, wherein the position parameter of the first boundary point includes a highest value and a corresponding time parameter of each first exchange value parameter and each last exchange value parameter in a preset channel drawing period, and the position parameter of the second boundary point includes a lowest value and a corresponding time parameter of each first exchange value parameter and each last exchange value parameter in the preset channel drawing period;
the processing module is used for calling a corresponding drawing function according to each piece of boundary data and transmitting the determined position parameters of the first boundary points and the determined position parameters of the second boundary points into the drawing function, so that the drawing function draws the first boundary lines of the channel by sequentially connecting the first boundary points and draws the second boundary lines of the channel by sequentially connecting the second boundary points.
9. A resource-switched data processing apparatus, characterized in that the apparatus comprises:
the system comprises an acquisition module, a resource management module and a resource exchange data server, wherein the acquisition module is used for responding to a K line graph display request corresponding to a resource from user equipment, the request designates a K line analysis period, and a plurality of K line data used for K line drawing and corresponding to the resource are acquired from the resource exchange data server, and each piece of K line data comprises a time parameter and a resource exchange value parameter in the K line analysis period;
the processing module is used for dividing the plurality of pieces of K line data into a plurality of groups of K line data according to a preset channel drawing period and time parameters in the K line data; determining boundary data for channel drawing according to each group of K line data, wherein each boundary data comprises a position parameter of a first boundary point and a position parameter of a second boundary point, the position parameter of the first boundary point comprises the highest value and the corresponding time parameter of each first exchange value parameter and each last exchange value parameter in a preset channel drawing period, and the position parameter of the second boundary point comprises the lowest value and the corresponding time parameter of each first exchange value parameter and each last exchange value parameter in the preset channel drawing period;
and the sending module is used for sending the plurality of groups of K line data and the boundary data corresponding to each group of K line data to the user equipment so that the user equipment draws and displays a K line graph with a channel according to the plurality of groups of K line data and the boundary data corresponding to each group of K line data.
10. The apparatus of claim 9, the resource exchange worth parameters comprising at least a first exchange worth parameter and a last exchange worth parameter within the K-line analysis period;
the processing module is used for determining the highest value and the lowest value from each first exchange value parameter and each last exchange value parameter in the group of K line data; determining a time parameter corresponding to the highest value and a time parameter corresponding to the lowest value; and determining the highest value and the time parameter corresponding to the highest value as the position parameter of a first boundary point, determining the lowest value and the time parameter corresponding to the lowest value as the position parameter of a second boundary point, wherein the boundary data comprises the position parameter of the first boundary point and the position parameter of the second boundary point.
11. A resource-switched data processing system, the system comprising:
user equipment configured to: responding to the operation that a user selects to display a K line graph corresponding to a resource, sending a K line graph display request corresponding to the resource to a network server, wherein the request designates a K line analysis period; receiving a plurality of pieces of K line data for K line drawing and a plurality of pieces of boundary data for channel drawing corresponding to the K line analysis period from the web server; drawing and displaying a K line graph with a channel according to the plurality of pieces of K line data and the plurality of pieces of boundary data, and the method comprises the following steps: according to two pieces of boundary data in the plurality of pieces of boundary data, connecting first boundary points of the two pieces of boundary data to form a first boundary line of the channel, and connecting second boundary points of the two pieces of boundary data to form a second boundary line of the channel; responding to a drag operation executed by a user aiming at a first boundary point, moving the first boundary point to the termination position of the drag operation, and calling a corresponding drawing function to adjust the first boundary line where the first boundary point is located; responding to a drag operation executed by the user aiming at a second boundary point, moving the second boundary point to the termination position of the drag operation, and calling a corresponding drawing function to adjust the second boundary line where the second boundary point is located; in response to the operation that the user selects a time interval, intercepting a part corresponding to the time interval from the drawn K line graph with the channel, and displaying the part;
the network server is used for responding to a K line graph display request corresponding to a resource from the user equipment, wherein the request designates a K line analysis period, and a plurality of K line data used for K line drawing and corresponding to the resource are acquired from a resource exchange data server, wherein each piece of K line data comprises a time parameter and a resource exchange value parameter in the K line analysis period; dividing the plurality of K line data into a plurality of groups of K line data according to a preset channel drawing period and time parameters in the K line data; determining boundary data for channel drawing according to each group of K line data, wherein each boundary data comprises a position parameter of a first boundary point and a position parameter of a second boundary point, the position parameter of the first boundary point comprises the highest value and the corresponding time parameter of each first exchange value parameter and each last exchange value parameter in a preset channel drawing period, and the position parameter of the second boundary point comprises the lowest value and the corresponding time parameter of each first exchange value parameter and each last exchange value parameter in the preset channel drawing period; and sending the plurality of groups of K line data and the boundary data corresponding to each group of K line data to the user equipment.
CN201610531144.9A 2016-07-07 2016-07-07 Resource exchange data processing method, device and system Active CN106157347B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610531144.9A CN106157347B (en) 2016-07-07 2016-07-07 Resource exchange data processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610531144.9A CN106157347B (en) 2016-07-07 2016-07-07 Resource exchange data processing method, device and system

Publications (2)

Publication Number Publication Date
CN106157347A CN106157347A (en) 2016-11-23
CN106157347B true CN106157347B (en) 2020-04-03

Family

ID=58062892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610531144.9A Active CN106157347B (en) 2016-07-07 2016-07-07 Resource exchange data processing method, device and system

Country Status (1)

Country Link
CN (1) CN106157347B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106846434A (en) * 2017-01-19 2017-06-13 沃民高新科技(北京)股份有限公司 The method and apparatus for showing operation signal
CN107845036A (en) * 2017-11-02 2018-03-27 浙江富帝科技有限公司 In a kind of banking software from animation line confirmation method
CN107918914A (en) * 2017-11-02 2018-04-17 浙江富帝科技有限公司 A kind of time series data segmentation method in banking software
CN108198233A (en) * 2017-12-31 2018-06-22 广州金十信息科技有限公司 A kind of method for drafting, electronic equipment and the storage medium of K line charts

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876894A (en) * 2009-04-29 2010-11-03 左睿 Multi-stage derivation type market data trend accurate tracking method
CN102110273A (en) * 2009-12-29 2011-06-29 黄肇基 Method for interpreting trend of K-line structure diagram by utilizing pearl colour-ribbon diagram
CN103544647A (en) * 2012-07-10 2014-01-29 廖倡兴 Method and system for displaying on-demand interval prices of financial commodity
CN103793844A (en) * 2012-10-30 2014-05-14 三竹资讯股份有限公司 Device and method of stock market automation technology analysis
CN105225002A (en) * 2015-09-21 2016-01-06 清华大学 Based on adolescent psychology pressure trend Forecasting Methodology and the system of microblogging

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020014360A (en) * 2000-08-17 2002-02-25 이은한 Method for making stock graph

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876894A (en) * 2009-04-29 2010-11-03 左睿 Multi-stage derivation type market data trend accurate tracking method
CN102110273A (en) * 2009-12-29 2011-06-29 黄肇基 Method for interpreting trend of K-line structure diagram by utilizing pearl colour-ribbon diagram
CN103544647A (en) * 2012-07-10 2014-01-29 廖倡兴 Method and system for displaying on-demand interval prices of financial commodity
CN103793844A (en) * 2012-10-30 2014-05-14 三竹资讯股份有限公司 Device and method of stock market automation technology analysis
CN105225002A (en) * 2015-09-21 2016-01-06 清华大学 Based on adolescent psychology pressure trend Forecasting Methodology and the system of microblogging

Also Published As

Publication number Publication date
CN106157347A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN106157347B (en) Resource exchange data processing method, device and system
US11221743B2 (en) Information processing method, terminal, server, and computer storage medium
CN104954410A (en) Message pushing method, device thereof and server
US9727201B2 (en) Contextual help
CN110362242A (en) A kind of map methods of exhibiting and terminal device
CN109118456A (en) Image processing method and device
EP4009232A1 (en) Image generation method, device, and storage medium
CN113837194A (en) Image processing method, image processing apparatus, electronic device, and storage medium
CN108388395B (en) Image clipping method and device and terminal
CN112260933B (en) Communication method, communication device, electronic equipment and medium
CN110647599B (en) Method and apparatus for displaying information
CN114817664A (en) Big data based data display method and related equipment
CN113468354A (en) Method and device for recommending chart, electronic equipment and computer readable medium
CN112861504A (en) Text interaction method, device, equipment, storage medium and program product
CN109634827A (en) Method and apparatus for generating information
CN111737372A (en) Map data generation method and device
CN112308074A (en) Method and device for generating thumbnail
CN111340620B (en) Device and method for displaying difference information between inner disc and outer disc
CN109587038A (en) Information push method and device
CN110620805B (en) Method and apparatus for generating information
CN109657183B (en) Method and apparatus for processing information
CN110333812B (en) Interactive display method and device for sliding operation, storage medium and electronic device
CN113792201A (en) Method and device for pushing information
CN111813838B (en) Data processing method and device and electronic equipment
CN107870817B (en) Multi-dimensional parameter display method, client and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant