Transaction processing method, device and equipment
By generating transaction business tables and automating pre-order and order placement operations, the cumbersome process of virtual resource transactions has been solved, improving transaction efficiency and convenience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- FUTU NETWORK TECH (SHENZHEN) CO LTD
- Filing Date
- 2025-11-21
- Publication Date
- 2026-04-14
AI Technical Summary
Existing technologies result in cumbersome virtual resource trading processes, low transaction efficiency, and inconvenient user operation.
By generating a transaction business table, based on transaction information data of different trading directions and market prices, the pre-order and order placement operations are automated, reducing the number of input steps for users on the order placement page.
It improves transaction processing efficiency and user convenience, simplifies the transaction process, and enables users to quickly complete order placement through an intuitive transaction business table.
Smart Images

Figure CN121860765A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a transaction processing method, apparatus, and device. Background Technology
[0002] Currently, investors trade virtual resources through dedicated trading clients. For example, they can select the virtual resource to trade on the client's virtual resource display page, then enter the trading quantity and price on the order page, and finally complete the order generation and placement process using the entered quantity and price. This method suffers from cumbersome procedures and low efficiency. Summary of the Invention
[0003] This application provides a transaction processing method, apparatus, and device that can reduce the steps in the transaction process, improve transaction processing efficiency, and enhance the convenience of user transactions.
[0004] In a first aspect, this application provides a transaction processing method, comprising: acquiring and displaying a transaction business table based on transaction information data corresponding to different market prices under different trading directions for virtual resources; generating pre-order information in response to detecting a pre-order operation for a target cell in the transaction business table, wherein the target cell is the cell in the transaction business table corresponding to the target market price under the target trading direction, and the pre-order information indicates the order quantity based on the target market price under the target trading direction corresponding to the target cell; generating order information based on the market price and trading direction corresponding to the target cell and the order quantity indicated by the pre-order information in response to detecting an order operation for the transaction business table; and sending the order information to a server so that the server executes the order operation based on the order information.
[0005] Secondly, this application provides a transaction processing apparatus, comprising: a data statistics module, used to acquire and display a transaction business table based on transaction information data corresponding to different market prices under different trading directions for virtual resources; an order display module, used to generate pre-order information in response to a pre-order operation detected for a target cell in the transaction business table, wherein the target cell is the cell in the transaction business table corresponding to the target market price under the target trading direction, and the pre-order information indicates the order quantity based on the target market price under the target trading direction corresponding to the target cell; an order generation module, used to generate order information based on the market price and trading direction corresponding to the target cell and the order quantity indicated by the pre-order information in response to an order operation detected for the transaction business table; and an order execution module, used to send the order information to a server so that the server executes the order operation based on the order information.
[0006] Thirdly, this application provides an electronic device, including: a processor and a memory, the memory for storing a computer program, and the processor for calling and running the computer program stored in the memory to perform the methods as described in the first aspect or its various implementations.
[0007] Fourthly, this application provides a computer-readable storage medium for storing a computer program that causes a computer to perform the methods described in the first aspect or its various implementations.
[0008] Fifthly, this application provides a computer program product including computer program instructions that cause a computer to perform the methods as described in the first aspect or its various implementations.
[0009] Sixthly, this application provides a computer program that causes a computer to perform the methods described in the first aspect or its various implementations.
[0010] Other technical features and effects involved in the technical solution of this application will be described in subsequent embodiments, and will not be repeated here to avoid repetition. Attached Figure Description
[0011] The accompanying drawings used in the following description of the embodiments are introduced.
[0012] Figure 1 An application scenario diagram provided for an embodiment of this application; Figure 2 A flowchart of a transaction processing method provided in an embodiment of this application; Figure 3 A schematic diagram illustrating a transaction processing method provided in an embodiment of this application; Figure 4 A schematic diagram illustrating another transaction processing method provided in an embodiment of this application; Figure 5 A schematic diagram illustrating another transaction processing method provided in an embodiment of this application; Figure 6A A schematic diagram illustrating another transaction processing method provided in an embodiment of this application; Figure 6B A schematic diagram illustrating another transaction processing method provided in an embodiment of this application; Figure 6C A schematic diagram illustrating another transaction processing method provided in an embodiment of this application; Figure 7 A schematic diagram illustrating another transaction processing method provided in an embodiment of this application; Figure 8 A schematic diagram illustrating another transaction processing method provided in an embodiment of this application; Figure 9A schematic diagram of a transaction processing apparatus provided in an embodiment of this application; Figure 10 A schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0013] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0014] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0015] In one embodiment, the technical solution of this application can be used in a transaction processing scenario, for example, in a virtual resource transaction scenario. The virtual resource can be stocks, bonds, options, futures, etc., but is not limited to these.
[0016] For example, Figure 1 An application scenario diagram provided for an embodiment of this application, such as... Figure 1 As shown, this application scenario can include terminal devices connected via wired or wireless networks, a first server, and a second server. The first or second server can be a single server, a server cluster consisting of multiple servers, or a cloud platform control center, but is not limited to these. Terminal devices can be mobile phones, tablets, laptops, or desktop computers, but are not limited to these. The terminal devices can have a trading client based on virtual resources installed. The first server is the server corresponding to the trading client, used to provide trading information data to the trading client and to perform operations such as generating pre-order information and order information. The second server is the server corresponding to the exchange, used to execute order placement operations and order execution operations based on the order information.
[0017] It should be noted that, Figure 1 The terminal devices and servers mentioned are merely examples; in practice, other numbers or types of devices may also be included.
[0018] Specifically, the first server can send transaction information data corresponding to different market prices for virtual resources under different trading directions to the terminal device. The trading client on the terminal device can obtain the transaction information data and display it in the transaction business table. Then, the user can trigger a pre-order operation for a target cell in the transaction business table based on the trading client. The trading client can respond by listening to this pre-order operation, generating pre-order information. The target cell is the cell in the transaction business table corresponding to the target market price under the specified trading direction, and the pre-order information indicates the order quantity based on the target market price under the specified trading direction. The pre-order information can be automatically generated by the trading client or generated and sent to the trading client by the first server. Next, the user can trigger an order operation for the transaction business table based on the trading client. The trading client can respond by listening to this order operation, generating order information based on the market price and trading direction corresponding to the target cell, as well as the order quantity indicated by the pre-order information. The order information can also be automatically generated by the trading client or generated and sent to the trading client by the first server. Finally, the trading client can send the order information to the second server, which executes the order operation based on the order information.
[0019] It should be noted that all technical solutions in this application can be combined in any way to form optional embodiments of this application. To avoid repetition, these will not be elaborated upon.
[0020] Furthermore, in the specific embodiments of this application, relevant data, information, requests or instructions such as market prices, transaction information data, transaction business tables, pre-order information, and order information are involved. When the embodiments of this application are applied to specific products or technologies, user permission, consent or authorization is required, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0021] The technical solution of this application will be described in detail below: In one embodiment, Figure 2 A flowchart of a transaction processing method provided in this application embodiment, the method can be performed by, for example... Figure 1 The terminal device shown is used for execution, specifically the transaction client installed on the terminal device, but it is not limited to this.
[0022] like Figure 2 As shown, the method may include S210-S240: S210: Based on the transaction information data corresponding to different market prices of virtual resources under different trading directions, obtain and display the transaction business table.
[0023] The transaction information data includes, but is not limited to: market data of virtual resources, market transaction data of virtual resources in different trading directions at the corresponding market price, such as order volume (including the number of buy orders and the number of sell orders), and personal transaction data of users placing orders for virtual resources, such as the specific buy order information or buy order details of users; furthermore, the transaction information data may also include the actual transaction volume at the corresponding market price.
[0024] For example, a transaction table may include a price column and multiple cell columns. The price column displays market prices, and can display multiple market prices. The price difference between adjacent rows in a price column is the same. The price column can display market prices in ascending or descending order. Furthermore, the market prices corresponding to the price column in the transaction table can be various prices arranged based on following prices. These following prices can be any of several market prices, such as the best bid price, best ask price, latest price, and median price, but are not limited to these.
[0025] Cell columns are used to display transaction information data. Different cell columns are used to display different transaction information data, such as transaction information data in different trading directions. Specifically, a cell column includes multiple cells, each cell corresponding to a market price in the same row of the price column. A cell is used to display the transaction information data for the corresponding market price. In addition, cells can also be used to respond to user-triggered pre-order operations, order operations, and order modification operations, and display pre-order information, generate order modification information and order information based on the market price corresponding to the cell, thereby enabling the server to execute the order operation.
[0026] Furthermore, the unit columns may include a first type of unit column and a second type of unit column. The first type of unit column is used to display market transaction data in the transaction information data, and the second type of unit column is used to display individual transaction data in the transaction information data. Specifically, the first type of unit column may include multiple first-type sub-unit columns for displaying market transaction data in different trading directions. For example, the first type of unit column may include a first-type sub-unit column for displaying the number of buy orders at different market prices and a first-type sub-unit column for displaying the number of sell orders at different market prices. The second type of unit column may include multiple second-type sub-unit columns for displaying individual transaction data in different trading directions. For example, the second type of unit column may include a second-type sub-unit column for displaying the specific buy order information placed by the user at different market prices and a second-type sub-unit column for displaying the specific sell order information placed by the user at different market prices.
[0027] For example, such as Figure 3 As shown, the pricing and trading page can display the trading business table, specifically as follows: Figure 3 The table in the tiered panel order area is shown. Based on this trading table, the price column can display tiered prices, and orders are placed by receiving pre-orders through cell columns. The price column can be displayed in the center of the trading table, and the cell columns for buy and sell orders can be displayed to the left of the price column. Specifically, the first type of sub-cell column (e.g., ...) is used to display the quantity of buy orders at different market prices. Figure 3 The "Buy Order Quantity" column shown in the image and the second type of sub-column (i.e., the "Buy Orders" column shown in the image) used to display specific buy order information for users at different market prices can be displayed to the left of the price column. The first type of sub-column (e.g., the "Sell Order Quantity" column) used to display the number of sell orders at different market prices can be displayed to the left of the price column. Figure 3 The "Sell Order Quantity" column shown in the figure and the second type of sub-cell column (i.e., the "Sell Orders" column shown in the figure) used to display the specific sell order information of users at different market prices can be displayed to the right of the price column.
[0028] Furthermore, the cell columns may also include a third type of cell column, which can be used to display the actual transaction volume at the corresponding market price; such as... Figure 3 The "Transaction Volume" column is shown.
[0029] In one embodiment, based on transaction information data corresponding to different market prices under different trading directions for virtual resources, a transaction business table is obtained and displayed. This includes: formatting the target transaction data corresponding to the target market price in the transaction information data to obtain chart data of a preset chart type; and displaying the chart data of the preset chart type in the corresponding cells of the transaction business table. The preset chart type includes, but is not limited to, bar charts, list charts, line charts, and pie charts.
[0030] Specifically, the transaction client can obtain transaction information data sent by the server and push it into the data processing model. The data processing model can perform preprocessing on the transaction information data, such as filtering, deduplication, and grouping. Then, the preprocessed transaction information data is sent to the view model. The view model formats the preprocessed transaction information data, for example, according to the set display color of the cell column and the preset chart type (such as bar chart), to obtain chart data of the preset chart type. Then, the view model displays the chart data of the preset chart type through the corresponding cells of the transaction business table.
[0031] For example, as mentioned above, the unit column may include a first type of unit column. After obtaining the transaction information data of virtual resources, the market transaction data in the transaction information data under different market prices and transaction directions can be formatted to obtain the chart data corresponding to the market transaction data. Then, based on the chart data corresponding to the market transaction data, the first type of sub-unit columns corresponding to different transaction directions under the first type of unit column can be drawn. Taking the market transaction data including the number of buy orders and the number of sell orders under different market prices as an example, the number of buy orders and the number of sell orders under different market prices can be formatted to obtain the chart data corresponding to the number of buy orders and the number of sell orders (for example, a line chart or bar chart based on the number of buy orders and the number of sell orders). Then, based on the chart data corresponding to the number of buy orders and the number of sell orders, a buy order volume column for displaying the number of buy orders under different market prices and a sell order volume column for displaying the number of sell orders under different market prices can be drawn.
[0032] For example, the unit column may include a second type of unit column. After obtaining the transaction information data of virtual resources, the individual transaction data of users placing orders for virtual resources at different market prices and in different trading directions can be formatted to obtain chart data corresponding to the individual transaction data. Then, based on the chart data corresponding to the individual transaction data, second-type sub-unit columns corresponding to different trading directions can be drawn under the second type of unit column. Taking personal transaction data including user buy or sell order information at different market prices as an example, the transaction quantity of buy orders at different market prices and the transaction quantity of sell orders at different market prices can be formatted to obtain chart data corresponding to buy and sell orders at different market prices. Then, based on the chart data corresponding to buy and sell orders at different market prices, buy order columns and sell order columns can be drawn to display the quantity of buy orders at different market prices and to display the quantity of sell orders at different market prices.
[0033] Furthermore, the transaction table can be infinitely stretched, meaning it responds to upward or downward scrolling, displaying content before or after the current item in the table – essentially allowing for infinite scrolling. Understandably, in response to scrolling, the price and information cell columns in the transaction table can be updated based on the direction of the scroll.
[0034] like Figure 3As shown, the point-price trading page may also include a first area for setting and filling in order information, and a second area for displaying the corresponding virtual resource account's holding information for the virtual resource; the first area displays the virtual resource being traded on the point-price trading page and the virtual resource account, and also includes an order expand / collapse indicator (such as...). Figure 3 As shown in the triangle in the image, the order information can be displayed or collapsed by triggering the initial display icon for that order. The second area can include specific holding data such as the number of virtual resources held by the virtual resource account, cost price, holding profit and loss, unrealized profit and loss, and today's profit and loss. Furthermore, the price-based trading page can also include a third area for quick trading. The third area includes, but is not limited to, buttons for quick trading, such as market order, close order, reverse order, batch cancellation, and special price order buttons, facilitating rapid order processing by triggering these buttons.
[0035] For example, in conjunction with the above content, such as Figure 4 As shown, the position database in the server can send changes to the position data to the server's backend. The position data includes market data and position information for all virtual resources held by the current virtual resource account. The server backend can respond to changes in the position data by forwarding the updated position data to the trading client, thereby triggering the trading client (i.e., the trading client based on the current account) to update the required trading business table. Specifically, the trading client can push the received position data to the data processing model within the trading client. The data processing model filters, deduplicates, and groups the position data. For example, based on the virtual resource currently being traded on the price trading page, the obtained position data is filtered and deduplicated, retaining the current virtual resource account's position information for that virtual resource, such as the position quantity and position cost price. Then, the view model in the trading client can receive the content output by the data processing model and format it according to the set display color of the cell column and the preset chart type (e.g., the ratio processing of the buy / sell volume bar chart). Next, the table in the trading client can receive the formatted data and display it on the trading business table in the order area of the tiered panel, displaying a position label in the cell below the price column where the market price corresponding to the position cost price is located.
[0036] For example, before executing S210, user historical behavior data (e.g., the time when the user viewed the transaction business table, historical operation data performed before viewing the transaction business table, such as viewing the message push module in the trading client, viewing historical order information, etc.) and the user's virtual resource account can be obtained first. Based on the user's historical behavior data, the specific time when the user accessed the business transaction table of the virtual resource corresponding to the virtual resource account can be determined. At a preset time before the specific time, an initial transaction business table is generated based on the transaction information data corresponding to different market prices of the virtual resource under different trading directions (the table content and generation method of the initial transaction business table are similar to those of the regular transaction business table), and the initial transaction business table is cached. Then, S210 includes: generating a transaction business table based on the initial transaction business table. Specifically, the initial business table contains the table content generated from the transaction information data at the preset time before the specific time. The transaction business table can be obtained based on the transaction information data between the preset time and the time when S210 begins, as well as the initial transaction business table. In this way, the initial transaction business table can be generated in advance before displaying the transaction business table, thereby reducing the delay in obtaining the transaction business table and improving the display efficiency of the transaction business table.
[0037] In the above embodiments, massive amounts of raw data, such as transaction information data corresponding to different market prices under different trading directions, can be converted into a clearly structured and intuitive transaction business table. This makes it easier for users to view specific transaction data and to trigger pre-order and order operations in subsequent embodiments. Based on this, corresponding pre-order and order information can be generated, enabling a precise and convenient virtual resource transaction processing process.
[0038] S220: In response to the detection of a pre-order operation for a target cell in the transaction business table, generate pre-order information for the target cell. The target cell is the cell in the transaction business table corresponding to the target market price under the target trading direction. The pre-order information indicates the order quantity based on the target market price under the target trading direction corresponding to the target cell.
[0039] The pre-order operation is a trigger operation targeting a target cell. This can be a cursor hover operation or a click operation on the target cell; there are no restrictions. Specifically, it can monitor in real time whether a pre-order operation is triggered on a cell within a column of the transaction business table. If a pre-order operation is detected on a target cell in the transaction business table, the pre-order information for that cell can be generated and displayed.
[0040] Furthermore, pre-order labels can be generated, and pre-order information can be displayed based on these labels. Specifically, pre-order labels can be generated using a stamp proxy interface, and these labels can be drawn or affixed to the target cell as a stamp, achieving an efficient and lightweight data display method.
[0041] The pre-order tag can be understood as a static, temporary image or non-interactive interface element that does not involve complex internal logic or listening to user mouse clicks, keyboard inputs, or other events.
[0042] For example, in conjunction with the above embodiments, the transaction business table includes a first type of cell column for displaying market transaction data and a second type of cell column for displaying personal transaction data. Specifically, the target cell includes the cell under the first type of cell column. Users can trigger a pre-order operation based on the cell in the first type of cell column. After the pre-order operation is detected, pre-order information can be generated and displayed in the corresponding cell of the second type of cell column.
[0043] Specifically, the first type of unit column includes a first type of sub-unit column associated with different trading directions and a second type of sub-unit column associated with different trading directions. Under the same trading direction, the first type of sub-unit column and the second type of sub-unit column are associated, that is, the cells in the first type of sub-unit column and the second type of sub-unit column under the same trading direction correspond one-to-one with their corresponding market prices. In response to the pre-order operation of the cells under the first type of sub-unit column based on the target trading direction in the first type of unit column, a pre-order label can be generated in the corresponding cell under the second type of sub-unit column corresponding to the target trading direction in the second type of unit column, and the pre-order information can be displayed.
[0044] For example, such as Figure 5 As shown, under the transaction table, the first type of cell columns includes a buy order column displaying the number of buy orders at different market prices and a sell order column displaying the number of sell orders at different market prices. The second type of cell columns includes a buy order quantity column displaying the specific buy order information of users at different market prices and a sell order quantity column displaying the specific sell order information of users at different market prices. Assuming the target cell is the cell in the buy order column corresponding to the market price of 84.46, in response to the cursor hovering over the target cell in the transaction table, a pre-order label can be generated and the pre-order information displayed in the cell corresponding to the market price of 84.46 in the buy order quantity column. Figure 5 As shown in the middle left figure, through Figure 5The oval-shaped pre-order label in the left-hand image displays pre-order information. This pre-order information can include the order quantity based on the target market price under the target trading direction corresponding to the target cell. For example, the order quantity based on the trading price of 84.46 under the buy trading direction is 100.
[0045] S230: In response to the detected order placement operation for the transaction business table, generate order information based on the market price and trading direction corresponding to the target cell and the order quantity indicated by the pre-order information.
[0046] The order placement operation can be a follow-up operation to the pre-order placement operation, specifically a trigger operation targeting the target cell, such as a click operation; for example, the pre-order placement operation is a hover operation where the operation cursor is on the target cell, and the order placement operation can be a series of click operations triggered based on the hover operation; another example is that the pre-order placement operation is a click operation targeting the target cell, and the order placement operation can be a series of double-click operations triggered based on the click operation.
[0047] For example, in conjunction with the above, continue with Figure 5 For example, Figure 5 As shown in the left-hand diagram, assuming the target cell is the cell in the buy order column corresponding to the market price of 84.46, in response to the cursor hovering over the target cell in the transaction table, a pre-order label can be generated and the pre-order information displayed in the cell corresponding to the market price of 84.46 in the buy order quantity column, and the system continues to listen for triggered operations in the transaction table. If a click operation on the target cell is detected, for example, a click operation on the cell in the buy order column corresponding to the market price of 84.46, the system obtains the market price (i.e., 84.46), the transaction direction (i.e., the buy direction), and the order quantity indicated by the pre-order information (e.g., 100) of the target cell, and generates order information.
[0048] In one embodiment, after generating order information, order tags can be generated, and the order information can be displayed based on these tags. Specifically, order tags can be generated using a stamp proxy interface, where they are drawn or affixed to the target cell like a stamp. This reduces data processing workload while still fulfilling the information display function, achieving an efficient and lightweight data display method. The order tag can be understood as a static, temporary image or a non-interactive interface element, not involving complex internal logic or listening for user mouse clicks or keyboard input events.
[0049] In conjunction with the above embodiments, the transaction business table includes a first type of unit column for displaying market transaction data and a second type of unit column for displaying personal transaction data. Specifically, the target cell includes the cells under the first type of unit column. Users can trigger pre-order operations and place orders based on the cells in the first type of unit column. After the pre-order operation, the user can obtain the market price and trading direction corresponding to the target cell, as well as the order quantity indicated by the pre-order information, generate order information, and generate an order label in the corresponding cell of the second type of unit column. The order information is then displayed through the order label.
[0050] Furthermore, after generating order information, order tags can be generated to display the order information via order labels. Simultaneously, the position of the operation cursor can be monitored in real time. Based on the cursor's position, order controls can be generated to display the order information and receive interactive operations input through the cursor. The operation cursor indicates the user's position within the trading client; for example, if the user operates the trading client with a mouse, the operation cursor could be the mouse arrow.
[0051] Specifically, whether to generate an order control can be determined based on the relationship between the cursor's position and the area of the transaction table. In one embodiment, in response to the cursor being outside the transaction table area, an order label is drawn based on the target cell's position, and the order information of the target cell is displayed through the order label; in response to the cursor being within the transaction table area, an order control is drawn based on the target cell's position, and the order information of the target cell is displayed through the order control. The order control is used to receive interactive operations input through the cursor. Furthermore, if the cursor leaves the transaction table area, the drawn order control can be destroyed, and the order information of the target cell can continue to be displayed through the order label.
[0052] To further reduce data processing workload, the generation of an order control can be determined based on the relationship between the cursor's position and the target cell. In one embodiment, in response to the cursor being outside the target cell's area, an order label is drawn based on the target cell's location, displaying the target cell's order information; in response to the cursor being within the target cell's area, an order control is drawn based on the target cell's location, displaying the target cell's order information. The order control receives interactive input via the cursor. Furthermore, if the cursor leaves the target cell's area, the drawn order control can be destroyed, and the target cell's order information can continue to be displayed via the order label.
[0053] As described in the above embodiments, the transaction business table may include a first type of unit column for displaying market transaction data and a second type of unit column for displaying personal transaction data. Specifically, the target cell includes cells under the first type of unit column. Users can trigger pre-order operations and place orders based on cells in the first type of unit column. After the pre-order operation, the user can obtain the market price and trading direction corresponding to the target cell, as well as the order quantity indicated by the pre-order information, generate order information, and generate an order label in the corresponding cell of the second type of unit column. The order information is then displayed through the order label. Furthermore, in response to the operation cursor stopping outside the area of the corresponding cell in the second type of unit column (hereinafter referred to as the target cell, where the target cell is the cell under the second type of sub-unit column with the target trading direction, corresponding to the target market price), the order label is drawn based on the location of the target cell, and the order information of the target cell is displayed through the order label. In response to the operation cursor entering and stopping in the area of the target cell, an order control is drawn based on the location of the target cell, and the order information of the target cell is displayed through the order control. The order control is used to receive interactive operations input by the operation cursor. Furthermore, if the cursor leaves the area of the target cell, the order control drawn above can be destroyed, and the order information of the target cell can continue to be displayed through the order label.
[0054] Specifically, when executing S230, the order quantity indicated by the pre-order information in the order control in S220 can be modified, and correspondingly, order information can be generated according to the modified order quantity indicated by the pre-order information.
[0055] S240: Send the order information to the server so that the server can execute the order placement operation based on the order information.
[0056] For example, in conjunction with the above embodiments, such as Figure 5 As shown in the right-hand diagram, after executing S240, in response to the cursor hovering over the target cell in the transaction table (e.g., the cell to the left of the transaction price 84.46), the cursor can be moved to the target cell location via... Figure 5 The oval-shaped order control in the right-hand image displays order information, which can include the order quantity at the target market price (i.e., the order price) corresponding to the target cell. For example, the order control indicates an order for 100 shares at an order price of 84.46 in the buy direction.
[0057] Through the above embodiments, users can complete order generation and order placement without having to input transaction quantity and transaction price on the order page. Instead, complex transaction information data (transaction direction, transaction price, transaction volume, order quantity, etc.) is intuitively mapped onto specific cells of the transaction business table. This allows users to view clear and intuitive transaction information data and quickly complete the order placement operation through simple pre-order or order placement operations. This reduces the steps in the transaction process, improves transaction processing efficiency, and enhances the convenience of user transactions.
[0058] In one embodiment, after executing S240, the order information can also be modified, specifically including the following steps: S250-1: In response to a drag operation on the order control corresponding to the target cell, control the order control to slide within the area of the transaction business table.
[0059] Similar to the embodiment in S230, after executing S240, in response to the cursor hovering over the target cell in the transaction table, an order control can be drawn based on the location of the target cell, and the order information corresponding to the target cell can be displayed through the order control. Then, in response to a drag operation on the order control, the order control can be controlled to slide within the area of the transaction table.
[0060] In addition, the order control is used to receive interactive operations input through the cursor, such as order modification and cancellation. Specifically, for example... Figure 6A As shown, for any single order, in response to the cursor hovering over the target cell in the transaction table, an order control, represented by the elliptical box shown in the figure, is drawn and displayed based on the target cell's location. Order information can be displayed below this order control. Users can control the order control to slide up and down within the transaction table area. As shown in the following embodiment, the cell corresponding to the position where the sliding stops can be defined as a specific cell. Furthermore, the order control can include an operation indicator, as shown by the inverted triangle in the order control. In response to a click on the operation indicator (e.g., a left-click), the order page is displayed. The order page displays order information and allows adjustments to the order price and quantity.
[0061] In addition, in response to clicks on the operation icon (e.g., right-click), a "Quick Take Profit / Stop Loss" icon or prompt can be displayed. Based on the trigger action or click on the operation icon, the order price and quantity can be automatically adjusted to achieve quick take profit and stop loss.
[0062] like Figure 6BAs shown, if multiple orders exist at the same price level and in the same direction, these multiple orders can be merged to form an order set. This can be implemented in response to... Figure 6B In (a) of the leftmost elliptical order control, clicking the order expansion indicator (as shown by the downward-pointing line) displays the individual order controls for multiple orders within the order collection in a list format. Furthermore, in response to a click on the order expansion indicator (e.g., a right-click), a "Cancel All Orders" indicator or prompt can be displayed, automatically canceling multiple orders directly based on the trigger action on that indicator or the click on the order expansion indicator. Figure 6B As shown in (b) above, for the order controls that display multiple orders in the order collection in list form, the implementation of each order control is the same as described above. Figure 6A The corresponding implementation is similar for a single order. Furthermore, it can also respond to dragging the order control corresponding to the order collection. Figure 6B The leftmost elliptical order control in (a) allows you to modify all orders within the order collection.
[0063] like Figure 6C As shown, stop-loss and take-profit indicators can also be displayed at preset positions within the order control, such as above. Triggering this indicator will display specific stop-loss and take-profit data floating above it; for example, a price increase of 0.1 can trigger a stop-loss order. In response to dragging / sliding operations on the stop-loss and take-profit indicators, a specific cell is determined based on the stopping position of the drag / sliding operation. Alternatively, in response to a sliding operation on a target cell, the stop-loss and take-profit indicators can be controlled to slide along with the target cell, and the specific data in the stop-loss and take-profit indicators will change accordingly. Furthermore, the stop-loss and take-profit indicators also include... Figure 6A Similar to the operation icon of the order control, clicking this operation icon will display the corresponding... Figure 6A A similar order page triggers a similar action.
[0064] S250-2: Get the stop position of the drag operation and determine a specific cell based on the stop position.
[0065] Specifically, the cell where the stop position is located can be determined as a specific cell.
[0066] S250-3: Send an order modification instruction to the server based on the specific market price and trading direction corresponding to a specific cell.
[0067] Specifically, this may include the following steps: obtaining the specific market price and specific trading direction corresponding to a specific cell; if the specific trading direction is consistent with the trading direction of the order information and the specific market price is a valid price, then generating order modification information based on the specific market price and specific trading direction; and sending an order modification instruction for the order information to the server based on the order modification information.
[0068] In other words, the sliding area of the order control can be limited by checking the stop position of the drag operation. When the stop position of the drag operation is not in the same column as the start position of the drag operation or is not on the transaction business table, it can be determined that the drag operation is invalid and no order modification instruction will be initiated.
[0069] Afterwards, the server can respond to the order modification instruction, modify the order information based on the specific market price indicated by the instruction, and notify the trading client to update the order information after the modification is successful.
[0070] In addition, during the execution of S250-1, in order to ensure a stable sliding environment for the order control, the refresh operation for each column in the transaction business table can be stopped. After the execution of S250-2 is completed, the refresh operation for each column in the transaction business table can be resumed.
[0071] For example, the processes S250-1 to S250-3 described above are illustrated below with diagrams, such as... Figure 7 As shown, the table displayed by the trading client (i.e., the trading business table), the trading client itself, and the trading backend (i.e., the server) belong to three vertical swimlanes, corresponding to different execution contents in the above process. Specifically, first, the user starts dragging / sliding an order control corresponding to an order in the table of the trading client. The trading client then locks the table state and stops refreshing the corresponding cell column and price column of buy / sell orders to prevent interface updates from interfering with the dragging operation. Next, when the user drags the order to a target position corresponding to a specific price and releases it, the trading client can resume refreshing the corresponding cell column and price column of buy / sell orders and determine whether the target position is valid, i.e., whether it is in the same column as the dragged order (e.g., both are buy or sell orders), to ensure that the order direction is not modified. Then, if the target position is invalid, the process ends; otherwise, the trading client can extract the price corresponding to that position as the new order price and automatically initiate an order modification request to the server. The server can submit the order modification request to the upstream (i.e., the server corresponding to the exchange). After the upstream processes it successfully and returns a success message for order modification, the server can push the order modification success message to the trading client and update the order through the trading client. When the trading client receives a push notification for an order update, it can request the server (SVR) to retrieve the latest order details, refresh the table interface, and display the updated order at the position corresponding to the specific price, thus completing the entire drag-and-drop order modification process.
[0072] In the above embodiments, the order price in the order information can be intuitively and quickly modified through drag-and-drop interaction, which meets the purpose of modifying the order according to the market trend. At the same time, by locking the refresh and direction verification of the transaction business table, the accuracy of the transaction operation is ensured. In addition, by synchronizing the price after the order is modified in real time, the consistency between the data in the transaction business table and the data processed by the server is ensured.
[0073] In one embodiment, during the execution of S250-1 above, the transaction information data corresponding to each cell in the transaction business table can be updated according to the real-time position of the order control during the sliding process. That is, the transaction business table can be dynamically displayed according to the position of the order control during the drag operation.
[0074] Specifically, it can obtain the real-time position of the order control during the drag-and-drop operation; in response to the real-time position being located in the preset area of the transaction business table, it updates the transaction information data corresponding to each cell in the transaction business table.
[0075] The preset area refers to the upper and lower boundary areas of the currently displayed content in the transaction business table. Specifically, it can be the area where the preset number of unit rows are located at the uppermost or lowermost boundary of the currently displayed content.
[0076] Understandably, at any given time, the transaction table typically displays a maximum of 200 data entries, for example, 200 rows per cell column. When the user scrolls the order control or drags the transaction table's scroll bar to the upper or lower boundary of these 200 rows, the transaction client can dynamically add 200 data entries forward or backward from the upper boundary to ensure timely display of the transaction table. Furthermore, triggering a full refresh of the transaction table will reset the current display to 200 data entries.
[0077] For example, such as Figure 8 As shown, it can respond to scrolling operations on the transaction business table or sliding operations on the order control, and determine whether the scrolling or sliding operation touches the current data boundary of the transaction business table, that is, the boundary of the content currently displayed on the interface. If it touches the current data boundary, it can add table data to the transaction business table.
[0078] In the above embodiments, dynamic visual feedback on the transaction business table can be realized during the drag-and-drop of the order control. By tracking the position of the order control in real time and updating the corresponding data in the transaction business table, users can preview the transaction data at different price levels in real time while adjusting the order control, which can improve the accuracy of order operation and the convenience of viewing transaction data.
[0079] In one embodiment, to facilitate users quickly locating the cell corresponding to the order transaction price in the order information within the transaction business table, a "move down" button and a "move up" button for the business table can be set. This can be implemented through the following steps: S260-1: Determine the positional relationship between the current market price displayed in the transaction business table and the order transaction price in the order information in the current interface; S260-2: If the current market price in the transaction business table is before the order execution price, then activate the order positioning function of the business table move-down button, responding to the trigger operation of the business table move-down button, and control the display of the cell corresponding to the order execution price in the transaction business table in the current interface; S260-3: If the current market price in the transaction business table is after the order execution price, then activate the order positioning function of the business table move-up button. In response to the trigger operation of the business table move-up button, control the display of the cell corresponding to the order execution price in the transaction business table in the current interface.
[0080] For example, the "Move Down" button and the "Move Up" button for the business table can be downward arrows and upward arrows, respectively.
[0081] In addition, if there are multiple order information, and the order transaction price of some order information is before the current market price in the transaction business table, while the order transaction price of other order information is after the current market price in the transaction business table, the order positioning function of the business table down and business table up buttons can be activated simultaneously.
[0082] In addition, it can also respond to scrolling the transaction business table to the header or footer area of the transaction business table, triggering the currently displayed content of the transaction business table to automatically scroll to the target cell corresponding to the order information.
[0083] In the above embodiments, the relative position of the current market price and the order transaction price in the transaction business table can be determined, and the corresponding up and down scroll button positioning function can be automatically activated. This allows users to quickly scroll the cell corresponding to the order information to the visible interface with a single operation, avoiding the problem of low efficiency in manually searching for orders and improving the operational efficiency of order monitoring and management.
[0084] In one embodiment, the transaction business table can also be updated according to changes in transaction information data, which can be achieved through the following steps: S270-1: Monitor changes in transaction information data; S270-2: Based on the scope of changes to the transaction business table corresponding to the change information, determine whether to perform a global change operation or a partial change operation on the transaction business table; S270-3: If it is determined that a global change operation will be performed on the transaction business table, then the global change operation will be performed on the transaction business table according to the change information; S270-4: If it is determined that a partial change operation will be performed on the transaction business table, then the partial change operation will be performed on the transaction business table according to the change information; or, the change information will be stored, and in response to the determination that a global change operation will be performed on the transaction business table, a global change operation will be performed on the transaction business table according to the stored change information.
[0085] The transaction information data includes, but is not limited to, market data, market transaction data of virtual resources in different trading directions at the corresponding market price, personal transaction data of user orders for virtual resources, and actual transaction volume at the corresponding market price. Correspondingly, the change information of the transaction information data includes, but is not limited to, change information of market data, change information of market transaction data, change information of personal transaction data, and change information of actual transaction volume.
[0086] Furthermore, during the generation of the transaction business table, it is often necessary to render the transaction information data in the price column and cell column of the transaction business table based on the list settings information in the table. The list settings information includes price column settings and cell column settings. Price column settings include, but are not limited to, following price type, price step size, and point price tips. Cell column settings include, but are not limited to, color settings. Therefore, change information for the transaction information data also includes changes to the price column settings and the cell column settings.
[0087] After identifying changes to the transaction information data, the scope of changes to the transaction business table can be determined based on the data type of the changes. The scope of changes includes the entire table and the list dimension. Correspondingly, when the scope of changes is the entire table, a global change operation is performed; when the scope of changes is the list dimension, a local change operation is performed.
[0088] As mentioned above, the transaction business table includes a price column and multiple cell columns. Each cell in the cell column corresponds one-to-one with the market price in the same row of the price column, and is used to display the market transaction data or personal transaction data corresponding to the market price in the same row. In other words, both market transaction data and personal transaction data are displayed around the price column, and both market transaction data and personal transaction data have a one-to-one correspondence with the market price. Therefore, the scope of changes to the transaction business table can be determined based on whether the changes to the transaction information data include changes to the market data or changes to the price column settings. Then, based on the scope of changes, it can be determined whether to perform a global change operation or a partial change operation.
[0089] Specifically, if the changes to the transaction information data include changes to market data or price column settings, the scope of the changes to the transaction business table can be determined to be the entire table. If the changes to the transaction information data do not include changes to market data or price column settings, the scope of the changes to the transaction business table can be determined to be the list scope. Furthermore, when the scope of the changes to the transaction business table is determined to be the list dimension scope, the list of targets to be refreshed can be determined based on the changes.
[0090] For example, changes to market data may include: information related to changes in price data such as the latest price and median price; changes to price column settings may include information related to changes in price data for each row under the price column, such as the following price and price step size. In addition, changes to market trading data such as trading volume, buy volume, and sell volume corresponding to different market prices; changes to personal trading data such as user order information at different market prices; and changes to the red / green color scheme or custom price colors in the trading table are all non-market price related changes. If the changes are to the aforementioned market data or price column settings, the scope of the change to the trading table is determined to be the entire table, and a global change operation is performed on the trading table. If the changes are to the aforementioned non-market price related changes, the scope of the change to the trading table is determined to be the list scope, and a partial change operation is performed on the trading table. Furthermore, considering that the data involved in the aforementioned changes that are not related to market prices is returned asynchronously, and may even be updated before the price data, the changes that are not related to market prices can be cached until a global change operation is required on the transaction business table, at which point the corresponding changes can be made.
[0091] In the above embodiments, dynamic updates to the transaction business table can be achieved by monitoring data changes and identifying the scope of changes: partial updates or global updates. This can reduce unnecessary global redraw operations while ensuring data consistency, and can effectively improve rendering performance and interface response speed in scenarios with large data volumes and high-frequency updates.
[0092] Figure 9 This is a schematic diagram of a transaction processing apparatus provided in an embodiment of this application. Figure 9 As shown, the transaction processing device 900 includes: a data statistics module 901, an order processing module 902, an order generation module 903, an order execution module 904, an order modification module 905, a data update module 906, a page display module 907, and a page update module 908, wherein: In one embodiment, the data statistics module 901 is used to acquire and display a transaction business table based on transaction information data corresponding to different market prices under different trading directions for virtual resources; the order processing module 902 is used to generate pre-order information in response to a pre-order operation detected for a target cell in the transaction business table, where the target cell is the cell in the transaction business table corresponding to the target market price under the target trading direction, and the pre-order information indicates the order quantity based on the target market price under the target trading direction corresponding to the target cell; the order generation module 903 is used to generate order information in response to an order operation detected for the transaction business table, based on the market price and trading direction corresponding to the target cell and the order quantity indicated by the pre-order information; and the order execution module 904 is used to send the order information to the server so that the server executes the order operation based on the order information.
[0093] For example, the order processing module 902 is further configured to: in response to the operation cursor being located outside the area of the transaction business table, draw an order label based on the location of the target cell, and display the pre-order information of the target cell through the order label; and / or, in response to the operation cursor being located in the area of the transaction business table, draw an order control based on the location of the target cell, and display the pre-order information of the target cell through the order control; wherein the order control is used to receive the interactive operation input by the operation cursor.
[0094] For example, the order modification module 905 is used to: respond to a drag operation of the order control corresponding to the target cell, control the order control to slide within the area of the transaction business table; obtain the stop position of the drag operation, determine the specific cell based on the stop position; and send an order modification instruction for the order information to the server according to the specific market price and specific trading direction corresponding to the specific cell.
[0095] For example, the order modification module 905 is specifically used to: obtain the specific market price and specific trading direction corresponding to the specific cell; if the specific trading direction is consistent with the trading direction of the order information and the specific market price is a valid price, then generate modification information based on the specific market price and specific trading direction; and send a modification instruction for the order information to the server based on the modification information.
[0096] For example, the data update module 906 is used to: obtain the real-time position of the order control during the drag operation; and update the transaction information data corresponding to each cell in the transaction business table in response to the real-time position being located in a preset area of the transaction business table.
[0097] For example, the transaction business table includes a price column and multiple cell columns; the cell columns correspond to different transaction directions; the cell columns include multiple cells, each cell corresponding to a market price under the price column, and the cell is used to display the transaction information data of the market price corresponding to the price column.
[0098] For example, the data statistics module 901 is specifically used to: format the target transaction information corresponding to the target market price in the transaction information data to obtain chart data of a preset chart type; and display the chart data of the preset chart type in the corresponding cell of the transaction business table.
[0099] For example, the page display module 907 is used to: determine the positional relationship between the current market price displayed in the transaction business table and the order transaction price in the order information in the current interface; if the current market price in the transaction business table is before the order transaction price, then activate the order positioning function of the business table down button, and in response to the trigger operation of the business table down button, control the display of the cell corresponding to the order transaction price in the transaction business table in the current interface; if the current market price in the transaction business table is after the order transaction price, then activate the order positioning function of the business table up button, and in response to the trigger operation of the business table up button, control the display of the cell corresponding to the order transaction price in the transaction business table in the current interface.
[0100] For example, the page update module 908 is used to: listen for changes in transaction information data; determine whether to perform a global change operation or a partial change operation on the transaction business table based on the scope of changes to the transaction business table corresponding to the change information; if it is determined that a global change operation should be performed on the transaction business table, then the global change operation should be performed on the transaction business table based on the change information; if it is determined that a partial change operation should be performed on the transaction business table, then the partial change operation should be performed on the transaction business table based on the change information; or, store the change information and, in response to determining that a global change operation should be performed on the transaction business table, perform a global change operation on the transaction business table based on the stored change information.
[0101] It should be understood that the device embodiments and method embodiments can correspond to each other, and similar descriptions can be referred to the method embodiments. To avoid repetition, further details will not be provided here. Specifically, Figure 9 The apparatus 900 shown can execute the above-described method embodiments, and the aforementioned and other operations and / or functions of each module in the apparatus 900 are respectively for implementing the corresponding processes in the above-described methods. For the sake of brevity, they will not be described in detail here.
[0102] The apparatus 900 of this application embodiment has been described above from the perspective of functional modules in conjunction with the accompanying drawings. It should be understood that this functional module can be implemented in hardware, in software instructions, or in a combination of hardware and software modules. Specifically, the steps of the method embodiments in this application can be completed by integrated logic circuits in the processor's hardware and / or by software instructions. The steps of the method disclosed in this application embodiment can be directly manifested as execution by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. Optionally, the software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps in the above method embodiments.
[0103] Figure 10 This is a schematic diagram of an electronic device provided in an embodiment of this application. Figure 10 As shown, the electronic device 1000 may include: The system includes a memory 1010 and a processor 1020. The memory 1010 stores computer programs and transfers the program code to the processor 1020. In other words, the processor 1020 can retrieve and run the computer program from the memory 1010 to implement the methods described in the embodiments of this application.
[0104] For example, the processor 1020 can be used to execute the above-described method embodiments according to instructions in the computer program.
[0105] In some embodiments of this application, the processor 1020 may include, but is not limited to: General-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0106] In some embodiments of this application, the memory 1010 includes, but is not limited to: Volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
[0107] In some embodiments of this application, the computer program may be divided into one or more modules, which are stored in the memory 1010 and executed by the processor 1020 to perform the method provided in this application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program in the electronic device.
[0108] like Figure 10 As shown, the electronic device may also include: Transceiver 1030, which can be connected to processor 1020 or memory 1010.
[0109] The processor 1020 can control the transceiver 1030 to communicate with other devices; specifically, it can send information or data to other devices or receive information or data sent by other devices. The transceiver 1030 may include a transmitter and a receiver. The transceiver 1030 may further include antennas, and the number of antennas may be one or more.
[0110] It should be understood that the various components in the electronic device are connected through a bus system, which includes a data bus, a power bus, a control bus, and a status signal bus.
[0111] This application also provides a computer storage medium storing a computer program thereon, which, when executed by a computer, enables the computer to perform the methods of the above-described method embodiments. Alternatively, embodiments of this application also provide a computer program product containing instructions that, when executed by a computer, cause the computer to perform the methods of the above-described method embodiments.
[0112] When implemented using software, it can be implemented entirely or partially as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, the computer can perform all or part of the corresponding processes in the methods of the embodiments of this application, producing the functions achievable by the methods of the embodiments of this application. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVDs)), or semiconductor media (e.g., solid state disks (SSDs)).
[0113] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0114] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0115] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. For example, the functional modules in the various embodiments of this application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0116] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A transaction processing method, characterized in that, include: Based on the transaction information data corresponding to different market prices of virtual resources under different trading directions, obtain and display the transaction business table; In response to the detection of a pre-order operation for a target cell in the transaction business table, pre-order information is generated. The target cell is the cell in the transaction business table corresponding to the target market price under the target trading direction. The pre-order information indicates the order quantity based on the target market price under the target trading direction corresponding to the target cell. In response to the detection of an order placement operation for the transaction business table, order information is generated based on the market price and trading direction corresponding to the target cell and the order quantity indicated by the pre-order information; The order information is sent to the server so that the server can execute the order placement operation based on the order information.
2. The method according to claim 1, characterized in that, After generating order information based on the market price and trading direction corresponding to the target cell and the order quantity indicated by the pre-order information, the process includes: In response to the cursor hovering outside the area of the transaction table, an order label is drawn based on the location of the target cell, and the order information of the target cell is displayed through the order label; and / or, In response to the operation cursor being placed in the area of the transaction business table, an order control is drawn based on the location of the target cell, and the order information of the target cell is displayed through the order control; The order control is used to receive interactive operations input through the operation cursor.
3. The method according to claim 2, characterized in that, The method further includes: In response to a drag operation on the order control corresponding to the target cell, the order control is controlled to slide within the area of the transaction business table; Obtain the stop position of the drag operation, and determine a specific cell based on the stop position; Based on the specific market price and specific trading direction corresponding to the specific cell, an order modification instruction is sent to the server for the order information.
4. The method according to claim 3, wherein sending an order modification instruction for the order information to the server based on the specific market price and specific trading direction corresponding to the specific cell includes: Obtain the specific market price and specific trading direction corresponding to the specific cell; If the specific trading direction is consistent with the trading direction of the order information, and the specific market price is a valid price, then the order information is generated based on the specific market price and the specific trading direction. Based on the order modification information, a modification instruction for the order information is sent to the server.
5. The method according to claim 3, further comprising: Obtain the real-time position of the order control during the drag-and-drop operation; In response to the real-time location being located in a preset area of the transaction business table, the transaction information data corresponding to each cell in the transaction business table is updated.
6. The method according to claim 1, characterized in that, The transaction table includes a price column and multiple cell columns; The cell columns correspond to different transaction directions; The unit column includes multiple cells, and each cell corresponds to a market price under the price column. The cell is used to display the transaction information data of the market price corresponding to the price under its respective price column.
7. The method according to claim 1, characterized in that, The process of acquiring and displaying a transaction business table based on transaction information data corresponding to different market prices for virtual resources under different trading directions includes: For the target transaction data corresponding to the target market price in the transaction information data, the target transaction information is formatted to obtain chart data of a preset chart type; The chart data of the preset chart type is displayed in the corresponding cell of the transaction business table.
8. The method according to claim 1, characterized in that, The method further includes: Determine the positional relationship between the current market price displayed in the transaction business table on the current interface and the order transaction price in the order information; If the current market price in the transaction business table is before the order transaction price, then the order positioning function of the business table move-down button is activated. In response to the trigger operation of the business table move-down button, the cell corresponding to the order transaction price in the transaction business table is displayed in the current interface. If the current market price in the transaction business table is after the order transaction price, the order positioning function of the business table move-up button is activated. In response to the trigger operation of the business table move-up button, the cell corresponding to the order transaction price in the transaction business table is displayed in the current interface.
9. The method according to any one of claims 1-8, characterized in that, The method further includes: Monitor changes to the transaction information data; Based on the scope of changes to the transaction business table corresponding to the change information, determine whether to perform a global change operation or a partial change operation on the transaction business table; If it is determined that a global change operation will be performed on the transaction business table, then the global change operation will be performed on the transaction business table according to the change information; If it is determined that a partial change operation will be performed on the transaction business table, then the partial change operation will be performed on the transaction business table according to the change information; or, the change information will be stored, and in response to determining that a global change operation will be performed on the transaction business table, the global change operation will be performed on the transaction business table according to the stored change information.
10. A transaction processing apparatus, characterized in that, include: The data statistics module is used to obtain and display the transaction business table based on the transaction information data corresponding to different market prices of virtual resources under different trading directions; The order display module is used to respond to the detection of a pre-order operation for a target cell in the transaction business table, and generate pre-order information. The target cell is the cell in the transaction business table corresponding to the target market price under the target trading direction. The pre-order information indicates the order quantity based on the target market price under the target trading direction corresponding to the target cell. The order generation module is used to respond to the listening for order placement operations on the transaction business table, and generate order information based on the market price and trading direction corresponding to the target cell and the order quantity indicated by the pre-order information; The order execution module is used to send the order information to the server so that the server can execute the order placement operation based on the order information.
11. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the method of any one of claims 1-9 by executing the executable instructions.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1-9.