CN112669148A - Order processing method and device - Google Patents

Order processing method and device Download PDF

Info

Publication number
CN112669148A
CN112669148A CN202011531204.XA CN202011531204A CN112669148A CN 112669148 A CN112669148 A CN 112669148A CN 202011531204 A CN202011531204 A CN 202011531204A CN 112669148 A CN112669148 A CN 112669148A
Authority
CN
China
Prior art keywords
order
server
transaction
user
price
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.)
Pending
Application number
CN202011531204.XA
Other languages
Chinese (zh)
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.)
Shenzhen Futu Network Technology Co Ltd
Original Assignee
Shenzhen Futu Network Technology 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 Shenzhen Futu Network Technology Co Ltd filed Critical Shenzhen Futu Network Technology Co Ltd
Priority to CN202011531204.XA priority Critical patent/CN112669148A/en
Publication of CN112669148A publication Critical patent/CN112669148A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the application provides a method and a device for processing orders, wherein the method comprises the following steps: the method comprises the steps that a server receives a fixed point trigger order sent by a terminal, wherein information carried by the fixed point trigger order comprises information of a target object and a preset trigger price for triggering transaction; the server adds the fixed point trigger order into one of at least two groups according to user information; the server acquires the real-time price of the target object; and when the real-time price reaches the preset trigger price, the server sends a transaction order to a service server for providing order transaction service. By adopting the embodiment of the application, the fixed point trigger orders are grouped, so that the reliability of fixed point trigger order bargaining can be improved.

Description

Order processing method and device
Technical Field
The present application relates to the field of financial technologies, and in particular, to a method and an apparatus for processing an order.
Background
With the rapid development of financial markets, more and more people participate in stock trading, and related financial software is continuously developed and advanced.
At present, related financial software can trigger transaction when the conditions set by a user are met, but the situation that the triggering is not timely or not triggered may occur, so that the problem of how to improve the reliability of fixed-point triggering order bargaining is needed to be solved.
Disclosure of Invention
The embodiment of the application discloses a method and a device for processing orders, which aim to solve the problem of low reliability of fixed-point triggering order bargaining.
A first aspect of an embodiment of the present application provides a method for processing an order, including:
the method comprises the steps that a server receives a fixed point trigger order sent by a terminal, wherein information carried by the fixed point trigger order comprises information of a target object and a preset trigger price for triggering transaction;
the server adds the fixed point trigger order into one of at least two groups according to user information;
the server acquires the real-time price of the target object;
and when the real-time price reaches the preset trigger price, the server sends a transaction order to a service server for providing order transaction service.
In one possible implementation, the method further includes:
the server respectively backs up the at least two groups;
and if the fixed point trigger service of the group in which the fixed point trigger order is positioned fails or fails, the server sends the transaction order to the service server through the backup group of the order trigger order.
In one possible implementation, the obtaining, by the server, the real-time price of the target object includes:
the server acquires original market data in real time;
slicing the real-time price data of the target object in the original market data according to a preset price difference range or a preset data capacity range;
and determining whether to trigger the fixed point trigger order according to the sliced data.
In a possible implementation manner, when the real-time price reaches the preset trigger price, the server sends a transaction order to a service server for providing an order-making service, including:
the server acquires the position taken by the target object held by the user;
when the real-time price reaches the preset trigger price, the server determines the transaction type of the fixed-point trigger order according to the position taking condition of the user, if the user has the position taking of the target object, the transaction type is the flat position operation, and if the user does not have the position taking of the target object, the transaction type is the position building operation.
In a possible implementation manner, if the user does not have taken a position of the target object and the fixed-point trigger order is to sell the target object, the server sends a trade order for emptying the target object to the service server when the real-time price reaches the preset trigger price.
In a possible implementation manner, the information carried in the fixed-point trigger order further includes a transaction amount, and before the server sends the transaction order to a service server for providing an order transaction service, the method further includes:
the server acquires account fund conditions of the user;
when the account fund of the user cannot meet the transaction of the transaction amount, the server sends a transaction order of the maximum transaction amount which can be supported by the account fund of the user to the business server;
or the server sends prompt information to the terminal, wherein the prompt information is used for prompting that the current account fund of the user is insufficient, and if an instruction which is sent by the user through the terminal and used for indicating to continue trading is received, the server sends a trading order of the maximum trading quantity which can be supported by the account fund of the user to the business server.
In a possible implementation manner, the information carried in the fixed-point trigger order further includes a transaction amount, and before the server sends the transaction order to a service server for providing an order transaction service, the method further includes:
the server acquires the position holding quantity of the target object held by the user;
when the position number of the user cannot meet the position transaction of the deal number, the server sends a transaction order of the maximum transaction number which can be supported by the position number of the user to the service server;
or the server sends prompt information to the terminal, wherein the prompt information is used for prompting that the current account of the user is insufficient in position, and if an instruction which is sent by the user through the terminal and used for indicating continuous transaction is received, the server sends a transaction order of the maximum transaction amount which can be supported by the position holding amount of the user to the service server.
In a possible implementation manner, the time for the server to receive the fixed-point trigger order sent by the terminal includes a transaction time period and a non-transaction time period, the transaction time period is a time period in which the service server operates, and the non-transaction time period is a time period in which the service server stops operating.
A second aspect of the embodiments of the present application provides an apparatus for processing an order, including:
the receiving and sending module is used for receiving a fixed point trigger order sent by the terminal, wherein the information carried by the fixed point trigger order comprises the information of a target object and a preset trigger price for triggering transaction;
the processing module is used for adding the fixed point trigger order into one of at least two groups according to user information;
the processing module is further used for acquiring the real-time price of the target object;
the receiving and sending module is further used for sending the transaction order to a service server for providing order transaction service.
A third aspect of the embodiments of the present application provides an apparatus for processing an order, including: a processor and a memory;
the processor is connected to the memory, where the memory is configured to store program codes, and the processor is configured to call the program codes to execute the method in any one of the above-mentioned first aspect or any one of the possible implementation manners of the first aspect.
A fourth aspect of embodiments of the present application provides a computer storage medium storing a computer program, where the computer program includes program instructions that, when executed by a processor, perform a method as described in the first aspect of embodiments of the present application or any one of the possible implementations of the first aspect.
A fifth aspect of embodiments of the present application provides a computer program product, including: computer program code for causing a computer to perform the method of the first aspect or any of the possible implementations of the first aspect when the computer program code runs on a computer.
According to the method and the device, the order is grouped, so that the overall horizontal expansion capacity of the trigger service can be increased, the services of different groups are not interfered with each other, and the trigger reliability is guaranteed; by backing up the order, when part of the trigger services are unavailable, other trigger services can still be operated, and the reliability of triggering is further ensured; when the original market data is obtained, the real-time price data of the target object in the original market data is sliced, so that the data processing efficiency can be improved, and a fixed-point trigger order can be triggered more timely; by automatically determining the transaction type or sending the transaction order of the maximum transaction quantity which can be supported by the account fund or the position taken by the user when the fund or the position taken by the user is insufficient, the setting operation of the user can be reduced, the flexibility of triggering the order at a fixed point is improved, and the experience degree of the user is improved; and the fixed-point trigger order can be received in any time period, so that the flexibility and the user experience of the fixed-point trigger order are further improved.
Drawings
The drawings used in the embodiments of the present application are described below.
FIG. 1 is a block diagram of a system for processing an order according to an embodiment of the present disclosure;
FIG. 2 is a flow chart illustrating a method for processing an order according to an embodiment of the present disclosure;
FIG. 3 is a block diagram of an apparatus for processing an order according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of another apparatus for processing an order according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present application are described below with reference to the drawings in the embodiments of the present application.
The terms "comprising" and "having," and any variations thereof, in the description and claims of this application and the drawings described above, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Fig. 1 is a schematic diagram of an order data processing system according to an embodiment of the present application. As shown in fig. 1, the system architecture may include: a terminal 10, a server 20 and a service server 30.
The terminal 10 may also be referred to as a User Equipment (UE). It may be deployed on land, including indoors or outdoors, hand-held, worn, or vehicle-mounted; can also be deployed on the water surface (such as a ship and the like); and may also be deployed in the air (e.g., airplanes, balloons, satellites, etc.). It may also be referred to as a user terminal, terminal device, access terminal device, in-vehicle terminal, UE unit, UE station, mobile station, remote terminal device, mobile device, UE terminal device, mobile terminal, wireless communication device, UE agent, or UE device, etc. The terminals may be fixed or mobile, etc. The specific form of the mobile phone can be a mobile phone (mobile phone), a tablet computer (Pad), a computer with a wireless transceiving function, a vehicle-mounted terminal device, a wireless terminal in a smart home (smart home), a wearable terminal device and the like.
The server 20, which may also be referred to as a background server, may provide various services related to the application for the user. For example, in the present application, a service for processing a fixed-point trigger order, a market slicing process, grouping and backing up the fixed-point trigger order, and the like may be provided for a user, after the terminal 10 sends the fixed-point trigger order to the server, the server 20 obtains information of the fixed-point trigger order, such as a preset trigger price and the like, and a real-time price of the target object, and when the real-time price of the target object reaches the preset trigger price, the server 20 submits the fixed-point trigger order to the service server 30.
The transaction server 30, which is used to provide the price information of the object and the transaction such as matching orders in the present application, may receive the fixed-point triggering orders submitted by the server 20 to match, and may be an exchange server of a trading market such as stocks and futures.
The method for processing an order provided in the embodiment of the present application is described in detail below with reference to the steps in fig. 2.
Please refer to fig. 2, which is a flowchart illustrating a method for processing an order according to an embodiment of the present disclosure; the method can comprise the following steps:
s201, the server receives a fixed point trigger order sent by the terminal.
The information carried by the fixed point trigger order received by the server comprises the information of the target object and a preset trigger price for triggering transaction. The subject matter, which may also be referred to as a subject or underlying asset, may be a stock, futures, option, security, virtual currency, or foreign exchange, etc., and refers to a financial instrument or article that an option holder exercises to buy or sell. The target object refers to the object that the server receives and triggers the order to relate to the transaction. The preset trigger price is used for judging whether to trigger the trading operation of the order, when the real-time price of the target object reaches the preset trigger price, the trading operation of the order is triggered, otherwise, the trading operation is not triggered. For example, a user a places one more spot trigger orders for a target object such as 02813 in a stock, where 02813 is a stock code, the preset trigger price set when the real-time price of 02813 is 90 is 110, and if the trend of 02813 is an upward trend, then when the real-time price of 02813 rises to the preset trigger price 110, a trading operation of the order is triggered. Wherein, making more indicates that the user buys the target object at a certain price, namely buys the object into the opening bin, and when the user wants to sell the target object when leaving the field, namely sell the object into the opening bin, the more making process is completed; making an empty indicates that the user sells the target object at a certain price, namely, sells out and opens a warehouse, and when the user wants to leave the field, the user buys the target object, namely, buys a flat warehouse, the process of making an empty is completed.
Optionally, after the server receives the fixed-point trigger order, the wind control service in the server performs wind control check on the order, for example, by sending a prompt message indicating whether to confirm placing the order to the terminal, if the user confirms placing the order at the terminal, the server performs subsequent operations, where the subsequent operations are operations shown as S202-S204; if the user does not order at the terminal, the server finishes the service and stops subsequent operation, so that misoperation is effectively prevented; or, the user inputs information in the terminal to perform information comparison to judge whether the operation is the operation of the user, if the operation is the operation of the user, the server performs subsequent operation, and if the operation is the operation of another person, the server ends the service and stops the subsequent operation or the user inputs information in the terminal again to perform information comparison, so that the fund safety of the user is guaranteed; alternatively, the wind control service may also implement the wind control check in other ways, and the embodiment of the present application is not limited in any way.
Optionally, the time for the server to receive the fixed-point trigger order sent by the terminal includes a transaction time period and a non-transaction time period, the transaction time period is a time period for the service server to work, and the non-transaction time period is a time period for the service server to stop working. If the time for the server to receive the fixed point trigger order is the transaction time period, immediately activating the order to perform subsequent operation after the server receives the order; and if the time for the server to receive the fixed point trigger order is the non-trading time period, the server stores the order and activates the order to perform subsequent operation when the next trading time period starts. Therefore, the flexibility of triggering orders at fixed points can be improved, and the experience of the user is improved.
S202, the server adds the fixed point trigger order into one of at least two groups according to user information.
Wherein the user information may include at least one of: the user nationality, the user account level or the user fund level, for example, the user nationality includes nationality of a country, nationality of B country, nationality of C country and the like, the user account level includes advanced users, general users and the like, and the user fund level includes billions, millions and the like. The fixed point trigger orders are grouped according to any item of the user information, for example, the fixed point trigger orders are grouped according to the nationality of the user, and can be divided into a country A group, a country B group, a country C group and the like, the fixed point trigger orders are grouped according to the user account level, and can be divided into a high-level user group, a general user group and the like; alternatively, the fixed-point trigger orders are grouped according to the one or more user information, for example, the fixed-point trigger orders are grouped according to the nationality of the user and the user account level, and may be classified into a country a premium user group, a country a general user group, a country B premium user group, and the like. The overall horizontal expansion capability of the trigger service can be increased by grouping, and services of different groups do not interfere with each other, so that the reliability of the trigger service is ensured.
Optionally, the server performs backup on at least two groups respectively. Multiple trigger services may be deployed within a group of trigger services, with fixed point trigger orders for the group backed up within a group. For example, there are two groups, i.e., a group a and a group B, there are A, B, C fixed point trigger orders in the group a, there are D, E fixed point trigger orders in the group B, and there are A, B, C and six fixed point trigger orders a ', B', and C 'in the group a after the group is backed up, where a', B ', and C' are backups of A, B, C, and likewise, there are D, E in the group B, so that there are D, E and four fixed point trigger orders D ', E' in the group B after the backup, where D ', E' are backups of D, E, respectively. It should be noted that a backup includes, but is not limited to, a copy. By backing up the fixed-point trigger orders of the group in the group, normal operation of triggering can be guaranteed through other available trigger services when the trigger services of the same group are unavailable, so that reliability of the trigger services is guaranteed.
S203, the server obtains the real-time price of the target object.
Optionally, after the server obtains the original market data from the third-party market source, the original market data is converted into the internal coded market data, the internal coded market data is sliced according to a preset time length, a preset price difference range or a preset data capacity range to obtain market slice data, and the sliced market slice data is used as a real-time price of the target object to judge whether the preset trigger price is reached so as to determine whether the fixed-point trigger order is triggered. Third party sources include, but are not limited to, API interfaces and business servers.
For example, when slicing data according to a preset time length, the preset time length includes, but is not limited to, 10 milliseconds (ms)
) Or 100ms, and the embodiments of the present application are not limited in any way. If the preset time length is 10ms, the fixed point trigger order is multidirectional, the preset trigger price is 103, and the real-time price of the target object when the fixed point trigger order is received is 90, the server performs slicing processing once after acquiring the original market data within the time length range of 10ms according to the preset time length, so that the original market data within the time length range of 10ms after slicing processing form a price segment, if the 5 original market data of 100, 102, 101, 99 and 103 sequentially exist in the price segment, if the fixed point trigger order is not triggered before, the 5 original market data are sequentially used as the real-time price of the target object and compared with the preset trigger price, and when the first 4 data in the original market data in the price segment are compared with the preset trigger price one by one, the fixed point trigger order is not triggered, when the real-time price of the target object reaches the preset trigger price when the real-time price is compared with the 5 th data 103 in the original market data in the price segment, triggering the fixed point trigger order; if the preset trigger price of the fixed-point trigger order is 110, the 5 original market data do not trigger the fixed-point trigger order, the server continues to compare the original market data after the 5 original market data of the price segment with the preset trigger price, and if all the original market data of the price segment do not trigger the fixed-point trigger service, the server compares the price segment formed by the original market data within the next 10ms time length range after slicing with the preset trigger price until the fixed-point trigger order is triggered.
It should be noted that the preset trigger price is a critical value, and the fixed-point trigger order can be triggered when the preset value reaches or exceeds the preset trigger price. For example, when data slicing is performed according to a preset time length, if the preset time length is 10ms, a fixed point trigger order is multidirectional, a preset trigger price is 101, and a real-time price of a target object when the fixed point trigger order is received is 90, the server performs slicing processing once after acquiring original market data within a time length range of 10ms according to a preset data capacity, so that the original market data within the time length range of 10ms after slicing processing form a price segment of market slice data, if 5 original market data of 100, 102, 101, 99, and 103 sequentially exist in the price segment, if the fixed point trigger order is not triggered before, the real-time price of the target object using the 5 original market data is sequentially compared with the preset trigger price, the first original market data 100 in the price segment is compared with the preset trigger price 101, at this time, the real-time price of the target object does not reach the preset trigger price, so the fixed-point trigger order is not triggered, and when the second original market data 102 in the price segment is compared with the preset trigger price 101, the fixed-point trigger order is triggered. This is because the real-time price at which the order was received is 90 and the pre-set trigger price is 101, then the fixed trigger order is triggered when the real-time price of the target object is 102, which is the expected expectation of the user.
For example, when data slicing is performed according to a preset data capacity range, if the preset data capacity is 8 megabits (M), a fixed point trigger order is made multidirectional, the preset trigger price is 103, and the real-time price of a target object when the fixed point trigger order is received is 90, the server performs slicing processing once after 8M original market data is acquired according to the preset data capacity, so that the sliced 8M original market data form a price segment, if the 5 original market data of 100, 102, 101, 99, and 103 sequentially exist in the price segment, if the fixed point trigger order is not triggered before, the 5 original market data are sequentially used as the real-time price of the target object and compared with the preset trigger price, when the first 4 data in the original market data in the price segment are compared with the preset trigger price one by one, the fixed point trigger order is not triggered, and when the real-time price of the target object reaches a preset trigger price when the real-time price is compared with the 5 th data 103 in the original market data in the price segment, the fixed point trigger order is triggered; if the preset trigger price of the fixed-point trigger order is 110, the 5 original quotation data do not trigger the fixed-point trigger order, the server continuously compares the original quotation data after the 5 original quotation data of the price segment with the preset trigger price one by one, and if all the original quotation data of the price segment do not trigger the fixed-point trigger service, the server compares the price segment formed by the next 8M original quotation data after slicing processing with the preset trigger price until the fixed-point trigger order is triggered.
Similarly, for example, when data slicing is performed according to the preset data capacity range, if the preset data capacity is 8M, the fixed point trigger order is a null direction, the preset trigger price is 80, and the real-time price of the target object when the fixed point trigger order is received is 90, then the server performs slicing processing once after 8M original market data is acquired according to the preset data capacity, so that the sliced 8M original market data forms a price segment of market slice data, if 5 original market data of 83, 81, 79, 80, and 82 sequentially exist in the price segment, if the fixed point trigger order is not triggered before, the fixed point trigger order is triggered when 79 of the 5 original market data are compared.
When data slicing is performed according to the preset price difference range, the preset price difference range can be a fixed percentage of the closing price of the previous day, a fixed percentage of the opening price of the current day, and the like, and the embodiment of the application is not limited at all. For example, if the preset price difference range is a fixed percentage ratio of the closing price of the previous day, if there are raw market data of 120.2, 120.5, 120.9, 121.5, 121.4, 121.1 in sequence, and the closing price of the previous day is 120, and the fixed percentage ratio is 1%, then the price difference range is 1.2, the server will take three raw market data of 120.2, 120.5, 120.9 as a price segment, so that the 3 raw market data are all in the range of 120 to 121.1, and the next data 121.5 does not belong to the range, so that the server performs the slicing operation among the two raw market data of 120.9 and 121.5, so that the price segment contains only three raw market data of 120.2, 120.5, 120.9, and only one raw market data of 121.5, the price segment belongs to the next 121.2 to 122.3 range, and the 121.4 also belongs to the range of 121.2 to 122.3, so that the same price segment and the raw market data belong to the range of 121.2 to 121.5, and the other two raw market data of 121.1, so that the server does not belong to the range of 121.2 to 121.3, and 121.5, the operation of slicing the original data to form a price segment is the same as the operation of slicing the data according to the preset data capacity range to obtain the price segment, and the description is omitted here.
The original market data are divided into one data segment through slicing processing and compared with the preset trigger price, and compared with the original market data and the preset trigger price which are directly divided without slicing, the original market data and the preset trigger price can improve the processing efficiency of the server by controlling the number of the data.
S204, when the real-time price reaches the preset trigger price, the server sends a transaction order to a service server for providing order transaction service.
Optionally, the trading price of the trading order sent by the server to the service server may be an opening price set by the user or the preset trigger price, which is not limited in any way in the embodiment of the present application.
Optionally, when the real-time price of the target object reaches the preset trigger price, whether to send the transaction order to the service server is judged according to a transaction principle set by the user, the transaction principle includes, but is not limited to, a transaction principle of pre-transaction and a transaction principle of wind control priority, the pre-transaction principle is that the target object still sends the transaction order with the real-time price to the service server when exceeding the preset trigger price, and the pre-transaction principle of wind control is that the target object stops sending the transaction order to the service server when exceeding the preset trigger price by the preset trigger price ratio. For example, for a user with an aggressive trading style, a priority trading principle can be preset, that is, as long as a target object reaches a preset trigger price, a trading order is sent to a service server; for users with conservative trading styles, a trading principle with wind control priority can be preset, namely when the real-time price of the target object reaches and far exceeds the preset trigger price, the risk is controlled, and at the moment, a trading order is not sent to the business server. It should be noted that, the criterion for determining whether the target object far exceeds the preset trigger price includes, but is not limited to, a certain fixed value exceeding the preset trigger price or a fixed percentage ratio exceeding the preset trigger price, and if the criterion is determined to exceed the certain fixed value of the preset trigger price, most examples are taken, if the preset trigger price is 200 and the fixed value is 10, when the real-time price of the target object reaches 210 or more, the real-time price of the target object at that time is determined to be far exceeding the preset trigger price, so as not to send the transaction order to the service server; if the judgment basis is that the preset trigger price exceeds the fixed percentage of the preset trigger price, if the preset trigger price is 100 and the fixed percentage is 5%, when the real-time price of the target object is 105 or more, the real-time price of the target object is judged to be far beyond the preset trigger price so as not to send a transaction order to the service server, thereby meeting the requirements of users with different styles, and improving the flexibility of fixed-point triggering and the user experience.
Optionally, the server obtains a position taking condition of a target object held by the user, when the real-time price of the target object reaches a preset trigger price, a wind control service in the server determines a transaction type of the fixed-point trigger order according to the position taking condition of the user, if the user has the position taking condition of the target object, the transaction type of the fixed-point trigger order is a position leveling operation, and if the user does not have the position taking condition of the target object, the transaction type of the fixed-point trigger order is a position building operation, so that the transaction can be performed more timely, benefits of the user are guaranteed, and the experience degree of the user is improved. The term "bin building" refers to an operation of a user to newly buy or newly sell a certain number of objects without having a certain object, the term "bin taken" refers to a state of the user after the user has performed the bin building operation, the term "bin leveled" refers to an operation of the user to sell a bought object or a bought object, and the term "no bin taken" refers to a state of the user after the user has performed the bin leveling operation.
Optionally, the information carried by the fixed-point trigger order further includes a transaction amount, before the server sends the transaction order to a service server for providing an order transaction service, the server obtains the account fund condition of the user, and when the account fund of the user cannot meet the transaction amount, the server sends the transaction order with the maximum transaction amount that can be supported by the account fund of the user to the service server; or the server sends a prompt message for prompting that the current account fund of the user is insufficient to the terminal, and if an instruction for indicating to continue trading sent by the user through the terminal is received, the server sends a trading order of the maximum trading quantity which can be supported by the account fund of the user to the business server. For example, the fixed point trigger order has a transaction amount of 10 hands, the fund required for completing the fixed point trigger order of the transaction amount is 1000 hands, the fund of the user is 300 hands, and at this time, the account fund of the user cannot meet the transaction of the transaction amount, and then the server sends the transaction order with the maximum transaction amount of 3 hands which can be supported by the account fund of the user to the service server; or the server sends a prompt message for prompting that the current account of the user is insufficient in funds to the terminal, and if the user still selects to trade after receiving the prompt message, the server sends a trade order with the maximum trade quantity of 3 hands which can be supported by the funds of the account of the user to the business server after receiving an instruction which is sent by the user through the terminal and used for indicating to continue trading, so that the trading can be carried out more timely, the benefit of the user is ensured, and the experience degree of the user is improved.
Optionally, the information carried by the fixed-point trigger order further includes a transaction amount, and before the server sends the transaction order to a service server for providing an order transaction service, the server acquires a position holding amount of the target object held by the user; when the position number of the user cannot meet the position transaction of the deal number, the server sends a transaction order of the maximum transaction number which can be supported by the position number of the user to the service server; or the server sends prompt information for prompting that the current account of the user is insufficient in position to the terminal, and if an instruction for indicating to continue trading is received, which is sent by the user through the terminal, the server sends a trading order of the maximum trading number that can be supported by the position holding number of the user to the service server. For example, the transaction amount carried by the fixed-point trigger order is 10 hands, the taken-place amount of the user acquired by the server is 4 hands, at this time, the server sends a transaction order with the maximum transaction amount of 4 hands that can be supported by the taken-place amount of the user to the service server or the server sends a prompt message for prompting that the current account of the user is insufficient to the terminal, if the user still selects a transaction after receiving the prompt message, the server sends the transaction order with the maximum transaction amount of 4 hands that can be supported by the account of the user to the service server after receiving an instruction sent by the user through the terminal for instructing to continue the transaction, so that the setting operation of the user can be reduced, the flexibility of the fixed-point trigger order is improved, and the experience degree of the user is improved.
Referring to fig. 3, a schematic composition diagram of an apparatus for processing an order according to an embodiment of the present application is shown, where the apparatus for processing an order can be applied to the server 20 in the embodiment corresponding to fig. 1, and includes:
the receiving and sending module 301 is configured to receive a fixed-point trigger order sent by a terminal, where information carried in the fixed-point trigger order includes information of a target object and a preset trigger price for triggering a transaction;
a processing module 302, configured to add the fixed point trigger order to one of at least two groups according to user information;
the processing module 302 is further configured to obtain a real-time price of the target object;
the transceiver module 301 is further configured to send a trade order to a service server for providing an order-making service.
Optionally, the time for the server to receive the fixed-point trigger order sent by the terminal includes a transaction time period and a non-transaction time period, the transaction time period is a time period for the service server to work, and the non-transaction time period is a time period for the service server to stop working.
Optionally, the processing module 302 is further configured to backup the at least two groups respectively.
Optionally, the processing module 302 is further configured to obtain original market data in real time; slicing the real-time price data of the target object in the original market data according to a preset price difference range or a preset data capacity range; determining whether to trigger the fixed point trigger order based on the sliced data.
Optionally, the processing module 302 is further configured to obtain a taken position condition of the target object held by the user;
when the real-time price reaches the preset trigger price, the server determines the transaction type of the fixed-point trigger order according to the position taking condition of the user, if the user has the position taking of the target object, the transaction type is the flat position operation, and if the user does not have the position taking of the target object, the transaction type is the position building operation.
Optionally, the processing module 302 is further configured to, when the user does not have a taken position of the target object and the fixed-point trigger order is to sell the target object, send, by the server, a trade order for emptying the target object to the service server when the real-time price reaches the preset trigger price.
Optionally, the processing module 302 is further configured to obtain account fund status of the user;
when the account fund of the user cannot meet the transaction of the transaction amount, the server sends a transaction order of the maximum transaction amount which can be supported by the account fund of the user to the business server;
or the server sends prompt information to the terminal, wherein the prompt information is used for prompting that the current account fund of the user is insufficient, and if an instruction which is sent by the user through the terminal and used for indicating to continue trading is received, the server sends a trading order of the maximum trading quantity which can be supported by the account fund of the user to the business server.
Optionally, the processing module 302 is further configured to obtain a position taken number of the target object held by the user;
when the position number of the user cannot meet the position transaction of the deal number, the server sends a transaction order of the maximum transaction number which can be supported by the position number of the user to the service server;
or the server sends prompt information to the terminal, wherein the prompt information is used for prompting that the current account of the user is insufficient in position, and if an instruction which is sent by the user through the terminal and used for indicating continuous transaction is received, the server sends a transaction order of the maximum transaction amount which can be supported by the position holding amount of the user to the service server.
For detailed functional description, please refer to the description in the embodiment of the method in fig. 2, which is not repeated herein.
Fig. 4 is a schematic diagram of another apparatus for processing an order according to an embodiment of the present disclosure. Can include the following steps:
a processor 410, a memory 420, and a network interface 430. The processor 410, the memory 420 and the network interface 430 are connected by a bus 440, the memory 420 is used for storing instructions, and the processor 410 is used for executing the instructions stored by the memory 420, so as to implement the steps executed by the server in the method corresponding to fig. 2, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
The memory 420 may be integrated in the processor 410, or may be separately provided from the processor 410.
In the apparatus for processing an order shown in fig. 4, the network interface 430 may be communicatively connected to a user terminal, and may also be communicatively connected to a service server for providing an order-making service. The processor 410 controls the network interface 430 to communicate with the user terminal and the service server by executing instructions stored by the memory 420.
As an implementation, the processor 410 may be considered to be implemented by a dedicated processing chip, a processing circuit, a processor, or a general-purpose chip.
As another implementation manner, a manner of using a general-purpose computer to implement the server provided in the embodiment of the present application may be considered. Program code that implements the functions of the processor 410 and the transceiver 430 are stored in the memory 420, and a general-purpose processor implements the functions of the processor 410 and the network interface 430 by executing the code in the memory 420.
As another implementation manner of the present embodiment, a computer-readable storage medium is provided, on which instructions are stored, and when executed, the instructions perform the method on the terminal side or the server side in the above method embodiments.
As another implementation of the present embodiment, a computer program product is provided, which contains instructions that, when executed, perform the method on the terminal side or the server side in the above method embodiments.
According to the method and apparatus provided in the embodiment of the present application, a system is further provided in the embodiment of the present application, and includes the terminal, the server, the service server, and the like, a composition manner of the system may be as shown in fig. 1, and a method executed by the terminal and the server may be as described in the embodiment shown in fig. 2, which is not described herein again.
Those skilled in the art will appreciate that only one memory and processor are shown in fig. 4 for ease of illustration. In a practical terminal or server, there may be multiple processors and memories. The memory may also be referred to as a storage medium or a storage device, and the like, which is not limited in this application.
It should be understood that, in the embodiment of the present Application, the processor may be a Central Processing Unit (CPU), and the processor may also be other 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, and the like.
It will also be appreciated that the memory referred to in the embodiments of the application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM) which serves as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static RAM (Static RAM, SRAM for short), Dynamic RAM (DRAM for short), Synchronous DRAM (SDRAM for short), Double Data Rate SDRAM (DDR SDRAM for short), Enhanced SDRAM (ESDRAM for short), SLDRAM (SLDRAM for short), and Direct Rambus RAM (DR RAM for short).
It should be noted that when the processor is a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, the memory (memory module) is integrated into the processor.
It should be noted that the memory described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The bus may include a power bus, a control bus, a status signal bus, and the like, in addition to the data bus. But for clarity of illustration the various buses are labeled as buses in the figures.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in a processor. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor. The software module may be located in ram, flash memory, rom, prom, eprom, or eeprom storage media, registers, etc. that are well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor. To avoid repetition, it is not described in detail here.
In the embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various Illustrative Logical Blocks (ILBs) and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical function division, and in actual implementation, there may be another division manner, for example, a more detailed logical function division may be performed by using a plurality of modules, a plurality of modules or components may also be combined or may be integrated into another system, or some features may be omitted, or may not be executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), among others.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of processing an order, comprising:
the method comprises the steps that a server receives a fixed point trigger order sent by a terminal, wherein information carried by the fixed point trigger order comprises information of a target object and a preset trigger price for triggering transaction;
the server adds the fixed point trigger order into one of at least two groups according to user information;
the server acquires the real-time price of the target object;
and when the real-time price reaches the preset trigger price, the server sends a transaction order to a service server for providing order transaction service.
2. The method of claim 1, further comprising:
the server respectively backs up the at least two groups;
and if the fixed point trigger service of the group in which the fixed point trigger order is positioned fails or fails, the server sends the transaction order to the service server through the backup group of the order trigger order.
3. The method of claim 2, wherein the server obtaining the real-time price of the target subject matter comprises:
the server acquires original market data in real time;
slicing the real-time price data of the target object in the original market data according to a preset price difference range or a preset data capacity range;
and determining whether to trigger the fixed point trigger order according to the sliced data.
4. The method of claim 3, wherein when the real-time price reaches the preset trigger price, the server sends a trade order to a service server for providing an order-making service, comprising:
the server acquires the position taken by the target object held by the user;
when the real-time price reaches the preset trigger price, the server determines the transaction type of the fixed-point trigger order according to the position taking condition of the user, if the user has the position taking of the target object, the transaction type is a position leveling operation, and if the user does not have the position taking of the target object, the transaction type is a position building operation.
5. The method of claim 4, wherein if the user has no taken position of the target object and the fixed-point trigger order is to sell the target object, the server sends a trade order to the business server to empty the target object when the real-time price reaches the preset trigger price.
6. The method according to claim 1, wherein the information carried by the fixed point trigger order further includes a transaction amount, and before the server sends a transaction order to a service server for providing an order transaction service, the method further includes:
the server acquires account fund conditions of the user;
when the account fund of the user cannot meet the transaction of the transaction amount, the server sends a transaction order of the maximum transaction amount which can be supported by the account fund of the user to the business server;
or the server sends prompt information to the terminal, wherein the prompt information is used for prompting that the current account fund of the user is insufficient, and if an instruction which is sent by the user through the terminal and used for indicating to continue trading is received, the server sends a trading order of the maximum trading quantity which can be supported by the account fund of the user to the business server.
7. The method according to claim 1, wherein the information carried by the fixed point trigger order further includes a transaction amount, and before the server sends a transaction order to a service server for providing an order transaction service, the method further includes:
the server acquires the position holding quantity of the target object held by the user;
when the position number of the user cannot meet the position transaction of the deal number, the server sends a transaction order of the maximum transaction number which can be supported by the position number of the user to the service server;
or the server sends prompt information to the terminal, wherein the prompt information is used for prompting that the current account of the user is insufficient in position, and if an instruction which is sent by the user through the terminal and used for indicating continuous transaction is received, the server sends a transaction order of the maximum transaction amount which can be supported by the position holding amount of the user to the service server.
8. The method according to claims 1-7, wherein the time for the server to receive the fixed point trigger order sent by the terminal includes a trading time period and a non-trading time period, the trading time period is a time period in which the service server operates, and the non-trading time period is a time period in which the service server stops operating.
9. An apparatus for processing an order, comprising:
the receiving and sending module is used for receiving a fixed point trigger order sent by the terminal, wherein the information carried by the fixed point trigger order comprises the information of a target object and a preset trigger price for triggering transaction;
the processing module is used for adding the fixed point trigger order into one of at least two groups according to user information;
the processing module is further used for acquiring the real-time price of the target object;
the receiving and sending module is further used for sending the transaction order to a service server for providing order transaction service.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any one of claims 1-8.
CN202011531204.XA 2020-12-22 2020-12-22 Order processing method and device Pending CN112669148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011531204.XA CN112669148A (en) 2020-12-22 2020-12-22 Order processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011531204.XA CN112669148A (en) 2020-12-22 2020-12-22 Order processing method and device

Publications (1)

Publication Number Publication Date
CN112669148A true CN112669148A (en) 2021-04-16

Family

ID=75407733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011531204.XA Pending CN112669148A (en) 2020-12-22 2020-12-22 Order processing method and device

Country Status (1)

Country Link
CN (1) CN112669148A (en)

Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2616364A1 (en) * 2006-12-29 2008-06-29 Thomas Stark Dynamic computer software for trading securities
CN101523355A (en) * 2006-08-04 2009-09-02 多伦多证券交易所 Failover system and method
CN103092840A (en) * 2011-10-28 2013-05-08 上海邮电设计咨询研究院有限公司 Method for acquiring self-increment mass data files from multiple sources
CN103400298A (en) * 2013-08-19 2013-11-20 王林 Method for monitoring stock transaction
US20130325683A1 (en) * 2012-05-29 2013-12-05 Fmr Llc Dynamic Trading Services For Passive Investors
CN104166601A (en) * 2014-08-14 2014-11-26 浙江宇视科技有限公司 Storage data backup method and device
CN105812202A (en) * 2014-12-31 2016-07-27 阿里巴巴集团控股有限公司 Log real time monitoring and early warning method and device employing same
CN106355498A (en) * 2016-09-27 2017-01-25 上海红宋网络科技有限公司 Stock trading management system
CN106446296A (en) * 2016-11-28 2017-02-22 泰康保险集团股份有限公司 Method for processing trading messages and trading system
CN106709053A (en) * 2017-01-06 2017-05-24 深圳市中博科创信息技术有限公司 Data slice management method and system
CN106919684A (en) * 2017-03-02 2017-07-04 百度在线网络技术(北京)有限公司 Data export method, device, equipment and storage medium
CN106934031A (en) * 2017-03-14 2017-07-07 中国银行股份有限公司 The monitoring of focus record and processing method and processing device in real time processing system
CN107578334A (en) * 2017-09-07 2018-01-12 张毅 The execution method and distributed transaction system of a kind of electronic transaction strategy
CN107679986A (en) * 2017-10-11 2018-02-09 伊比特科技(深圳)有限公司 Method and system for fast transaction stock
CN107862581A (en) * 2017-11-22 2018-03-30 阿里巴巴集团控股有限公司 The implementation method and device of staple commodities online transaction
CN108229563A (en) * 2018-01-04 2018-06-29 众安信息技术服务有限公司 A kind of treasury bond futures actively do city's system
CN108961059A (en) * 2018-07-11 2018-12-07 海南新软软件有限公司 Digital cash exception transaction monitoring method, apparatus and system
CN109033003A (en) * 2018-08-07 2018-12-18 天津市滨海新区信息技术创新中心 The method, apparatus and heterogeneous system that data stream sliced sheet compares
CN109343941A (en) * 2018-08-14 2019-02-15 阿里巴巴集团控股有限公司 Task processing method, device, electronic equipment and computer readable storage medium
CN110162686A (en) * 2019-05-23 2019-08-23 百度在线网络技术(北京)有限公司 Service search method, apparatus, server, equipment and medium
CN111105308A (en) * 2018-10-29 2020-05-05 腾讯科技(深圳)有限公司 Asset data processing method, device and equipment
CN111291035A (en) * 2020-03-23 2020-06-16 东软睿驰汽车技术(沈阳)有限公司 Method and device for slicing data and related product
CN111539824A (en) * 2020-04-28 2020-08-14 北京静帆科技有限公司 Automatic stock trading method and system
CN111666492A (en) * 2020-04-30 2020-09-15 中国平安财产保险股份有限公司 Information pushing method, device and equipment based on user behaviors and storage medium

Patent Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101523355A (en) * 2006-08-04 2009-09-02 多伦多证券交易所 Failover system and method
CA2616364A1 (en) * 2006-12-29 2008-06-29 Thomas Stark Dynamic computer software for trading securities
CN103092840A (en) * 2011-10-28 2013-05-08 上海邮电设计咨询研究院有限公司 Method for acquiring self-increment mass data files from multiple sources
US20130325683A1 (en) * 2012-05-29 2013-12-05 Fmr Llc Dynamic Trading Services For Passive Investors
CN103400298A (en) * 2013-08-19 2013-11-20 王林 Method for monitoring stock transaction
CN104166601A (en) * 2014-08-14 2014-11-26 浙江宇视科技有限公司 Storage data backup method and device
CN105812202A (en) * 2014-12-31 2016-07-27 阿里巴巴集团控股有限公司 Log real time monitoring and early warning method and device employing same
CN106355498A (en) * 2016-09-27 2017-01-25 上海红宋网络科技有限公司 Stock trading management system
CN106446296A (en) * 2016-11-28 2017-02-22 泰康保险集团股份有限公司 Method for processing trading messages and trading system
CN106709053A (en) * 2017-01-06 2017-05-24 深圳市中博科创信息技术有限公司 Data slice management method and system
CN106919684A (en) * 2017-03-02 2017-07-04 百度在线网络技术(北京)有限公司 Data export method, device, equipment and storage medium
CN106934031A (en) * 2017-03-14 2017-07-07 中国银行股份有限公司 The monitoring of focus record and processing method and processing device in real time processing system
CN107578334A (en) * 2017-09-07 2018-01-12 张毅 The execution method and distributed transaction system of a kind of electronic transaction strategy
CN107679986A (en) * 2017-10-11 2018-02-09 伊比特科技(深圳)有限公司 Method and system for fast transaction stock
CN107862581A (en) * 2017-11-22 2018-03-30 阿里巴巴集团控股有限公司 The implementation method and device of staple commodities online transaction
CN108229563A (en) * 2018-01-04 2018-06-29 众安信息技术服务有限公司 A kind of treasury bond futures actively do city's system
CN108961059A (en) * 2018-07-11 2018-12-07 海南新软软件有限公司 Digital cash exception transaction monitoring method, apparatus and system
CN109033003A (en) * 2018-08-07 2018-12-18 天津市滨海新区信息技术创新中心 The method, apparatus and heterogeneous system that data stream sliced sheet compares
CN109343941A (en) * 2018-08-14 2019-02-15 阿里巴巴集团控股有限公司 Task processing method, device, electronic equipment and computer readable storage medium
CN111105308A (en) * 2018-10-29 2020-05-05 腾讯科技(深圳)有限公司 Asset data processing method, device and equipment
CN110162686A (en) * 2019-05-23 2019-08-23 百度在线网络技术(北京)有限公司 Service search method, apparatus, server, equipment and medium
CN111291035A (en) * 2020-03-23 2020-06-16 东软睿驰汽车技术(沈阳)有限公司 Method and device for slicing data and related product
CN111539824A (en) * 2020-04-28 2020-08-14 北京静帆科技有限公司 Automatic stock trading method and system
CN111666492A (en) * 2020-04-30 2020-09-15 中国平安财产保险股份有限公司 Information pushing method, device and equipment based on user behaviors and storage medium

Similar Documents

Publication Publication Date Title
US8175959B2 (en) System and method for implementing financial transaction
WO2015088853A1 (en) Launching a client application based on a message
CN111209113B (en) Resource allocation method, device, equipment and storage medium based on intelligent contract
CN105825376A (en) Method for processing resource account transaction and wireless electronic device
KR102137577B1 (en) Method for transfer mediation using cryptocurrency and apparatus using the same
US11216877B2 (en) Automated electronic trade matching systems and methods
CN108154245A (en) The method and device of Order splitting
CN114745662A (en) Service information processing method and device, computer equipment and storage medium
CN112669148A (en) Order processing method and device
CN111353855B (en) Method, device, system and storage medium for processing bulk commodity transaction
CN112132668A (en) Order processing method and device
JP2018139138A (en) Methods of mitigating communication risks in electronic trading system
CN108573446B (en) Bank card authentication method, device, equipment and readable storage medium
CN109214932A (en) Order processing method, apparatus, computer equipment and storage medium
CN115080250B (en) Data processing method, device and system
CN110930213A (en) Service data processing method and device, computer equipment and storage medium
CN107249187A (en) The terminal management method and system of countermark
CN115567579A (en) Information binding method and device, computer equipment and storage medium
US9928538B2 (en) Method and apparatus for processing user information
CN117333299A (en) Data processing method and device for virtual resources
KR20170033288A (en) Method for Managing Distribution Service
CN115908013A (en) Data processing method, device, equipment, storage medium and program product
TWM561875U (en) Automatic trading system
CN116433380A (en) Transaction data processing method, device, equipment, medium and program product
KR20160047904A (en) Method for indirectly payment through proximity sensing between the mobile terminal and server for the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination