Batch closing method, device, equipment and storage medium

By customizing the closing targets and quantity of positions and combining with securities market rules, customizing and fast clearing of batch closing positions is achieved, solving the problems of low efficiency and poor user experience in the existing technology, and improving the decline of securities market Clearance efficiency and account loss control.

CN113658000BActive Publication Date: 2024-11-15FUTU NETWORK TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110912027.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-10
Publication Date
2024-11-15
Estimated Expiration
2041-08-10

AI Technical Summary

Technical Problem

Existing batch clearance products cannot customize the position target and quantity, and only support clearance based on filtering conditions and position percentages. They are inefficient and have poor user experience, especially when the securities market continues to fall rapidly.

Method used

Determine the closing target and quantity through the user trigger control button, generate a closing order, and send it to the server for batch processing. It supports custom closing target, quantity and batch closing of different securities markets, and uses sub-items and summary items. The closing target is determined in linkage with the select all button, the maximum value of the closing number is calculated in units of the whole lot, and the closing number is adjusted according to the securities market rules.

Benefits of technology

It improves the efficiency of user clearance, realizes the rapid clearance choice when the securities market continues to fall rapidly, controls account losses within a certain range, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113658000B_ABST
    Figure CN113658000B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for batch closing, the method comprising: determining the closing target based on the user triggering the control button; determining the closing quantity of the closing target based on the user triggering the adjustment button; determining the order type of the closing target based on the closing information; generating a closing order according to the closing target, the closing quantity and the order type; sending the closing order to the server so that the closing order is batch processed by the server. The technical solution of the present application greatly improves the efficiency of user liquidation by supporting customized closing targets, customized closing quantities and batch closing of different securities markets and categories; it realizes that when the securities market falls continuously and rapidly, the batch closing function gives users the option of quick liquidation, and greatly improves the efficiency of liquidation when there are too many positions and no time to operate, thereby controlling account losses within a certain range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and in particular, relates to a method, device, equipment and storage medium for batch liquidation. Background Art

[0002] Existing batch liquidation products cannot select position targets and quantities. They can only be liquidated according to certain screening conditions and position percentages or only for futures, and do not include liquidation of other categories. The liquidation efficiency is low and the user experience is poor. Summary of the invention

[0003] The present application aims to solve at least one of the technical problems in the related art to a certain extent. To this end, one purpose of the present application is to provide a method, device, equipment and storage medium for batch liquidation.

[0004] In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:

[0005] A method for closing positions in batches, comprising:

[0006] Determine the closing target based on the user triggering the control button;

[0007] Determining the closing quantity of the closing target based on the user triggering the adjustment button;

[0008] Based on the closing information, determine the order type of the closing target;

[0009] Generate a closing order according to the closing subject, closing quantity and order type;

[0010] The closing orders are sent to a server so that the closing orders are batch processed by the server.

[0011] Optionally, the determining of the liquidation target based on the user triggering the control button includes any one of the following:

[0012] In response to a closing instruction generated by a user triggering a sub-item button, obtaining the closing subject;

[0013] In response to a closing instruction generated by a user triggering a summary item button, acquiring the closing subject;

[0014] In response to the closing instruction generated by the user triggering the select all button, the closing target is obtained.

[0015] Optionally, the acquiring of the closing target in response to the closing instruction generated by the user triggering the sub-item button includes:

[0016] The user triggers the sub-item button;

[0017] Determine whether there is a summary item corresponding to the sub-item button, and generate a first determination result;

[0018] According to the first judgment result, updating the check state of the summary item button;

[0019] Determine whether all target buttons are checked, and generate a second determination result;

[0020] According to the second judgment result, the check state of the select all button is updated.

[0021] Optionally, the acquiring of the closing target in response to the closing instruction generated by the user triggering the summary item button includes:

[0022] The user triggers the summary item button;

[0023] The check status of all the sub-item buttons is kept synchronized with the check status of the summary item button;

[0024] Determine whether all target buttons are checked, and obtain a fourth determination result;

[0025] According to the fourth determination result, the check state of the select all button is updated.

[0026] Optionally, the acquiring of the closing target in response to the closing instruction generated by the user triggering the Select All button includes:

[0027] The user triggers the select all button;

[0028] The check status of all target buttons is synchronized with the check status of the select all button.

[0029] Optionally, based on the user triggering the adjustment button, determining the closing quantity of the closing target includes:

[0030] Determining the range of the closing quantity based on the user triggering the adjustment button;

[0031] The closing quantity is adjusted.

[0032] Optionally, based on the user triggering the adjustment button, determining the range of the closing quantity includes:

[0033] Based on the user triggering the adjustment button, get the initial closing quantity;

[0034] According to the initial position closing quantity, a maximum value of the position closing quantity is determined.

[0035] Optionally, the maximum value of the liquidation quantity is obtained by the following calculation formula:

[0036] q1=q0-q0modk

[0037] In the formula: q0 is the initial closing quantity; k is the number of lots; q1 is the maximum closing quantity; mod is the remainder function.

[0038] Optionally, determining the maximum value of the closing quantity according to the initial closing quantity includes:

[0039] For a type of underlying asset in the pending order state, the maximum amount of the position to be closed is the difference between the position quantity and the pending buy order quantity, rounded to the nearest lot;

[0040] For Category II assets, when there is no pending order, the maximum amount of positions to be closed is the value of the position quantity rounded to the nearest lot;

[0041] For the three types of targets, if the purchase quantity on the day is equal to the total holding quantity, the maximum value of the closing quantity is 0.

[0042] Optionally, the adjusting the liquidation quantity includes:

[0043] Get the closing quantity;

[0044] Determine whether the closing quantity is an integer multiple of the whole lot size, and obtain a fifth determination result;

[0045] Determining a step value according to the fifth judgment result;

[0046] The closing quantity is adjusted according to the step value.

[0047] Optionally, if the fifth judgment result is that the liquidation quantity is a multiple of the whole lot number, determining the step value according to the fifth judgment result includes:

[0048] Calculate the next count value step of the current closed position quantity;

[0049] If step is smaller than the whole lot, the whole lot is used as the step value;

[0050] If step is greater than or equal to the whole lot size, then the remainder of step and the whole lot size is calculated, and the difference between step and remainder is used as the step value.

[0051] Optionally, based on the position closing information, determining the order type of the position closing target includes:

[0052] Determine the securities market based on the liquidation target;

[0053] Determine the order type based on the securities market in question;

[0054] Determine the display fields according to the order type;

[0055] The order type is determined according to the displayed field.

[0056] The embodiment of the present application further provides a device for closing positions in batches, comprising:

[0057] The target unit is used to determine the target of the position to be closed based on the user triggering the control button;

[0058] A quantity unit, used to determine the closing quantity of the closing target based on the user triggering the adjustment button;

[0059] A type unit, used to determine the order type of the closing target based on the closing information;

[0060] An order unit, used to generate a closing order according to the closing subject, closing quantity and order type;

[0061] The sending unit is used to send the closing orders to the server so that the closing orders can be batch processed by the server.

[0062] An embodiment of the present application further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described above when executing the computer program.

[0063] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the method described above when executed by a processor.

[0064] The embodiments of the present application have the following technical effects:

[0065] The above-mentioned technical solution of the present application and the embodiment of the present application greatly improve the efficiency of user liquidation by supporting customized liquidation targets, customized liquidation quantities and batch liquidation of different securities markets and categories; when the securities market falls continuously and rapidly, the batch liquidation function gives users the option of quick liquidation, which greatly improves the efficiency of liquidation when there are too many positions and no time to operate, thereby controlling account losses within a certain range.

[0066] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 It is a flowchart of a method for batch liquidation provided in an embodiment of the present application;

[0068] Figure 2 It is a guide page for batch liquidation provided in the embodiment of the present application;

[0069] Figure 3 It is a trigger page for batch liquidation provided in the embodiment of the present application;

[0070] Figure 4 It is a block diagram of determining the liquidation target by triggering a sub-item button provided in an embodiment of the present application;

[0071] Figure 5 It is a trigger button interface provided in an embodiment of the present application;

[0072] Figure 6 It is a block diagram of determining the liquidation target by triggering the summary item button provided in an embodiment of the present application;

[0073] Figure 7 It is a block diagram of determining the liquidation target by triggering the select all button provided in an embodiment of the present application;

[0074] Figure 8 is a block diagram of calculating step value provided by an embodiment of the present application;

[0075] Fig. 9 It is a block diagram for determining order types provided in an embodiment of the present application;

[0076] Fig.10 This is the generation page of the order type provided in the embodiment of the present application. DETAILED DESCRIPTION

[0077] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0078] like Figure 1 As shown, an embodiment of the present application provides a method for closing positions in batches, comprising:

[0079] Step S11: determining the closing target based on the user triggering the control button;

[0080] Step S12: determining the closing quantity of the closing target based on the user triggering the adjustment button;

[0081] Step S13: Determine the order type of the closing target based on the closing information;

[0082] Step S14: Generate a closing order according to the closing target, closing quantity and order type;

[0083] Specifically, the closing target is the liquidation settlement target; the closing quantity is the quantity of the liquidation settlement target; the order types include limit orders and market orders.

[0084] Step S15: Send the closing orders to the server so that the closing orders are processed in batches through the server.

[0085] Specifically, the client creates batch closing order objects based on the closing target, closing quantity and order type selected by the user, and combines the trading rules of different markets, and submits them to the server in the form of an array.

[0086] This embodiment of the present application greatly improves the efficiency of user liquidation by supporting customized liquidation targets, customized liquidation quantities, and batch liquidation of different securities markets and categories; when the securities market falls continuously and rapidly, the batch liquidation function gives users the option of quick liquidation, which greatly improves the efficiency of liquidation when there are too many positions to be triggered, thereby controlling account losses within a certain range.

[0087] In an optional embodiment of the present application, in step S11, determining the liquidation target based on the user triggering the control button includes any of the following:

[0088] Step S111: in response to the closing instruction generated by the user triggering the sub-item button, obtaining the closing subject;

[0089] Specifically, triggering includes checking and unchecking a button on a triggering page.

[0090] Step S112: in response to the closing instruction generated by the user triggering the summary item button, obtaining the closing target;

[0091] Specifically, the summary item is an item used for aggregation when the number of underlying stocks and their derivatives held for a certain liquidation target exceeds two.

[0092] Step S113: In response to the closing instruction generated by the user triggering the select all button, the closing target is obtained.

[0093] Specifically, the display of the closing targets on the batch closing check page is consistent with the positions on the previous page. When the user enters the batch closing check page, by default, all positions that meet the closing conditions will be added to the closing process for the user to customize and confirm.

[0094] Combination Figure 2 and Figure 3 , the above embodiments of the present application are implemented by the following implementation methods:

[0095] The user triggers batch closing in the selection column in the client's interactive interface;

[0096] Enter the batch closing page;

[0097] The default is to select all held stocks. In this state, clicking on a stock will select / uncheck it. The market page will not be jumped and sorting is not supported. There is no need to remember the selected stocks when exiting the batch closing process.

[0098] In this embodiment of the present application, the user can trigger the selection / unchecking of a single position button or sub-item button, trigger the selection / unchecking of a summary item button, or trigger a global trigger on all positions by triggering the select all button; through the linkage status of the sub-items, summary items and select all, the determination of the liquidation target is achieved.

[0099] In an optional embodiment of the present application, in step S111, in response to the closing instruction generated by the user triggering the sub-item button, obtaining the closing subject includes:

[0100] Step S1111: the user triggers a sub-item button;

[0101] Step S1112: determining whether there is a summary item corresponding to the sub-item button, and generating a first determination result;

[0102] Step S1113: updating the check status of the summary item button according to the first judgment result;

[0103] Step S1114: determining whether all target buttons are checked, and generating a second determination result;

[0104] Step S1115: According to the second judgment result, update the check state of the select all button.

[0105] This embodiment of the present application realizes the determination of the liquidation target by triggering the sub-item button and associating the corresponding summary item button and the select all button, and the triggering is simple and fast.

[0106] Combination Figure 4 and Figure 5 Specifically, this embodiment of the present application is implemented by the following implementation method:

[0107] 1) The user triggers the sub-item button;

[0108] 2) Combination Figure 5 , determine whether the sub-item button is checked. When it is selectable, you can click to select or cancel the stock holdings, check the box and the name code area, such as Alibaba-W; when it is disabled, when the maximum value of the closed position = the minimum value = 0, it is grayed out and cannot be checked.

[0109] 3) Combination Figure 4, if the sub-item button is checked, then find out whether there is a summary item corresponding to the sub-item button; if there is a summary item corresponding to the sub-item button, then determine whether all sub-item buttons of the summary item are checked; if all sub-item buttons of the summary item are checked, then check all the summary item buttons; if not all sub-item buttons of the summary item are checked, then uncheck the summary item button;

[0110] 4) If there is no summary item corresponding to the sub-item button, check whether all the target buttons are checked; if so, check the Select All button and end the process; if not, uncheck the Select All button and end the process;

[0111] 5) If the sub-item button is not checked, find out whether there is a summary item corresponding to the sub-item button; if so, uncheck the summary item button, uncheck the select all button, and end the process; if not, uncheck the select all button, and end the process.

[0112] In an optional embodiment of the present application, in step S112, in response to the closing instruction generated by the user triggering the summary item button, obtaining the closing subject includes:

[0113] Step S1121: the user triggers the summary item button;

[0114] Step S1122: The check status of all sub-item buttons is kept synchronized with the check status of the summary item button;

[0115] Step S1123: Determine whether all target buttons are checked, and obtain a fourth determination result;

[0116] Step S1124: According to the fourth judgment result, update the check state of the select all button.

[0117] In this embodiment of the present application, the user determines the liquidation target by triggering the summary item button and associating the select all button and the corresponding sub-item button, and the triggering is simple, fast and efficient.

[0118] Combination Figure 6 , this embodiment of the present application can be implemented by the following implementation method:

[0119] The user triggers the summary item button;

[0120] Determine whether the summary item button is checked;

[0121] If the summary item button is checked, all sub-item buttons of the summary item are checked; determine whether all buttons of the target are checked and end the process; if so, check the Select All button, if not, uncheck the Select All button and end the process;

[0122] If the summary item button is not checked, all sub-item buttons of the summary item are unchecked, the Select All button is unchecked, and the process ends.

[0123] In an optional embodiment of the present application, in step S113, in response to the closing instruction generated by the user triggering the select all button, obtaining the closing target includes:

[0124] Step S1131: the user triggers the select all button;

[0125] Step S1132: The check status of all target buttons is synchronized with the check status of the Select All button.

[0126] Combination Figure 7 , this embodiment of the present application can be implemented by the following implementation method:

[0127] The user triggers the Select All button;

[0128] Determine whether the Select All button is checked; if so, all sub-item buttons are checked, all summary item buttons are checked, and the process ends; if not, all sub-item buttons are unchecked, all summary item buttons are unchecked, and the process ends.

[0129] In an optional embodiment of the present application, step S12: determining the closing quantity of the closing target based on the user triggering the adjustment button, includes:

[0130] Step S121: Determine the range of the closing quantity based on the user triggering the adjustment button;

[0131] Step S122: Adjust the closing quantity.

[0132] Specifically, the user clicks the input box to trigger keyboard input, or clicks the plus / minus button to adjust the closing quantity.

[0133] This embodiment of the present application, after determining the range of the liquidation quantity, will further adjust the liquidation quantity to adapt to more securities market trading rules.

[0134] In an optional embodiment of the present application, in step S121, based on the user triggering the adjustment button, determining the range of the liquidation quantity includes:

[0135] Step S1211: based on the user triggering the adjustment button, obtaining the initial closing quantity;

[0136] Step S1212: Determine the maximum number of positions to be closed based on the absolute value.

[0137] Specifically, the closing quantity is generally equal to the position that can be sold (long position) / the position that needs to be bought (short position) of the closing target. However, since it is not convenient for the client to obtain the above field values ​​in batches, the absolute value of the sellable quantity is used instead.

[0138] This embodiment of the present application simplifies the operation of the client and improves the user experience by obtaining the initial closing quantity.

[0139] In an optional embodiment of the present application, in step S1212, the maximum value of the number of positions closed is obtained by the following calculation formula:

[0140] q1=q0-q0 modk

[0141] In the formula: q0 is the initial closing quantity; k is the number of lots; q1 is the maximum closing quantity; mod is the remainder function.

[0142] In this embodiment of the present application, if the closing quantity is not an integer multiple of the whole lot number, an integer multiple of the whole lot number is taken downward as the maximum closing quantity, thereby avoiding the situation where the transaction fails due to odd-lot orders.

[0143] In an optional embodiment of the present application, step S121, the maximum value of the number of positions to be closed is determined according to the initial number of positions to be closed:

[0144] Step S1211: For a type of underlying asset in the pending order state, the maximum amount of positions to be closed is the value of the difference between the open position amount and the pending buy order amount, rounded to the nearest lot;

[0145] Step S1212: For the second category of targets, when there is no pending order, the maximum amount of positions to be closed is the value of the number of positions rounded to the nearest lot;

[0146] Step S1213: For the three types of targets, if the purchase quantity on the day is equal to the total holding quantity, the maximum value of the closing quantity is 0.

[0147] For example, due to the differences in trading rules of different securities markets, it is necessary to consider the situation where the maximum number of positions held and the maximum number of positions closed are not equal in scenarios such as pending orders, Hong Kong stock fractional shares, and A-share T+0. The solutions to the above special scenarios are as follows:

[0148] For a type of target in the pending order state: holding 301 shares of a certain holding company, with a buy order of 100 shares pending for execution, the maximum number of shares to be closed should be 200 shares.

[0149] For the second type of targets (taking Hong Kong stock fractional shares as an example): if you hold 301 shares of a certain holding company, the maximum number of shares to be closed when there are no pending orders should be 300 shares.

[0150] For the three types of targets (taking A-share T+0 as an example): if you buy 100 shares of a certain A-share and there are no pending orders on the day, the maximum number of shares to be closed should be 0 shares.

[0151] This embodiment of the present application takes into account special scenarios, such as pending order scenarios, Hong Kong stock fractional shares and A-share T+0. Different methods for determining the closing quantity are set for different scenarios to ensure that the closing quantity is provided accurately, thereby improving the user experience.

[0152] In an optional embodiment of the present application, in step S122, adjusting the liquidation quantity includes:

[0153] Step S1221: Obtain the number of positions closed;

[0154] Step S1222: Determine whether the closing quantity is an integer multiple of the whole lot size, and obtain a fifth determination result;

[0155] Step S1223: Determine the step value according to the fifth judgment result;

[0156] Specifically, the step value is the value of increasing / decreasing the number of stocks each time the shortcut button is pressed.

[0157] Step S1224: Adjust the closing quantity according to the step value.

[0158] In an optional embodiment of the present application, in step S1224, if the fifth judgment result is that the liquidation quantity is a multiple of the whole lot number, then according to the fifth judgment result, the step value is determined, including:

[0159] Calculate the next count value step of the current closed position quantity;

[0160] If step is less than the whole lot, the whole lot will be used as the step value;

[0161] If step is greater than or equal to the whole lot size, then calculate the remainder of step and the whole lot size, and use the difference between step and remainder as the step value.

[0162] In this embodiment of the present application, when the number of positions closed is not an integer multiple of the whole lot number, the next step is adjusted to an integer multiple; otherwise, the step value is the larger value of the whole lot number and the next counting position value, thereby achieving adjustment of the number of positions closed by calculating the step value.

[0163] Specific, combined Figure 8 , this embodiment of the present application can calculate the step value in the following way:

[0164] 1) Determine whether the current closing quantity is 0;

[0165] 2) If the current closing quantity is 0, the step value is assigned to the whole lot size;

[0166] 3) If the current closing quantity is not 0, determine whether the current closing quantity is a multiple of the whole lot size;

[0167] 4) If the current closing quantity is a multiple of the whole lot, calculate the next counting place value (step) of the current quantity; determine whether step is less than the whole lot; if not, calculate the remainder (remainder) of step and the whole lot, assign the step value to the difference between step and remainder, and end the process; if so, assign the step value to the whole lot, and end the process.

[0168] 5) If the current closing quantity is not a multiple of the whole lot, calculate the remainder of the current closing quantity and the whole lot; determine whether the remainder is the increase step value; if so, assign the step value to the difference between the whole lot and the remainder, and end the process; if not, assign the step value to the remainder, and end the process.

[0169] In this embodiment of the present application, the calculation of the step value takes into account many factors such as the size of the current closed position, the number of lots, critical conditions, etc.; the calculation of the step value takes into account both correctness and triggering convenience, which is of great help in quickly completing transactions.

[0170] In an optional embodiment of the present application, in step S13, based on the liquidation information, determining the order type of the liquidation target includes:

[0171] Step S131: Determine the securities market according to the liquidation target;

[0172] Step S132: Determine the order type according to the securities market;

[0173] Step S133: Determine the display field according to the order type;

[0174] Step S134: Determine the order type based on the displayed fields.

[0175] Specifically, since the securities markets that support batch liquidation include Hong Kong stocks, U.S. stocks, Singapore, A shares and futures, the liquidation information displayed is different due to differences in trading rules in different markets.

[0176] Combination Fig. 9 and Fig.10 For example: 1) When the order type of Hong Kong stocks is limit order (enhanced), the display fields are:

[0177] Name Code / Quantity: Account; Order Type: Check Limit Order (Enhanced); Price: Latest Price; Pre-Market Auction: Allowed; Term: Valid for the current day.

[0178] 2) When the order type for Hong Kong stocks is market order (default), the display fields are:

[0179] Name Code / Quantity: Account; Order Type: Check Market Order; Price: Market Price; Term: Valid for the current day.

[0180] 3) When the order type of US stocks is a limit order, the display fields are:

[0181] Name Code / Quantity: Account; Order Type: Check Limit Order; Price: Latest Price; Pre-Market and Post-Market: Allowed; Term: Valid for the current day.

[0182] 4) When the order type of US stocks is market order (default), the display fields are:

[0183] Name Code / Quantity: Account; Order Type: Check Market Order; Price: Market Price; Term: Valid for the current day.

[0184] 5) When the order type of A shares is a limit order, the display fields are:

[0185] Name Code / Quantity: Account; Order Type: Limit Order; Price: Latest Price; Term: Valid for the current day.

[0186] 6) When the order type in Singapore is a limit order, the display fields are:

[0187] Name Code / Quantity: Account; Order Type: Check Limit Order; Price: Latest Price; Term: Valid for the current day.

[0188] 7) When the order type in Singapore is market order (default), the display fields are:

[0189] Name Code / Quantity: Account; Order Type: Check Market Order; Price: Market Price; Term: Valid for the current day.

[0190] 8) When the futures order type is a limit order, the displayed fields are:

[0191] Name Code / Quantity: Account; Order Type: Check Limit Order; Price: Check Consideration (default); Term: Valid for the current day.

[0192] In this embodiment of the present application, in order to ensure that the batch liquidation targets and quantities meet the user's expectations, the liquidation information is confirmed.

[0193] Combination Fig. 9 and Fig.10 Specifically, this embodiment of the present application can be implemented by the following implementation method:

[0194] 1) Start to determine the order type;

[0195] 2) Determine whether the user selects a market order;

[0196] 3) If the user selects a market order, determine whether the closing target supports market orders; if so, the order type is a market order and the process ends; if not, the order type is a limit order;

[0197] 4) If the user does not select a market order, determine whether the closing target is a Hong Kong stock; if so, the order type is an enhanced limit order; if not, the order type is a limit order.

[0198] Specifically, the server processes the order accordingly based on the trading market, submission period and order type described in the closing order information.

[0199] When all orders are processed, a push message reminder will be sent for each order that is completed or failed.

[0200] When the user enters the today's order page, the status of the batch closing order can be viewed through the following information.

[0201] For example, in the trading scenario of Hong Kong stocks, pre-market bidding is supported; bidding orders for underlying stocks are submitted normally, and warrants and bull / bear options are submitted after the market officially opens; orders are submitted normally during the trading session; after-hours bidding period is T+1 pre-buried orders: after-hours bidding period is carried out through T+1 pre-buried orders; dark market does not support pre-buried orders, and new stocks support liquidation during the dark market trading period, and other positions are T+1 pre-buried orders. In the trading scenario of US stocks, pre-market and post-market bidding periods are supported; during the after-hours period, underlying stocks are placed normally, options are T+1 pre-buried orders, and after the market closes, all are T+1 pre-buried orders. In the trading scenario of A-shares, orders are submitted normally during the trading session; after the market closes, they are carried out through T+1 pre-buried orders. In the trading scenario of Singapore stocks, orders are only submitted during the trading session.

[0202] The embodiment of the present application further provides a device for closing positions in batches, comprising:

[0203] The target unit is used to determine the target of the position to be closed based on the user triggering the control button;

[0204] A quantity unit, used to determine the closing quantity of the closing target based on the user triggering the adjustment button;

[0205] A type unit, used to determine the order type of the closing target based on the closing information;

[0206] An order unit, used to generate a closing order according to the closing subject, closing quantity and order type;

[0207] The sending unit is used to send the closing orders to the server so that the closing orders can be batch processed by the server.

[0208] Optionally, based on the user triggering the control button, the closing target is determined, including any of the following:

[0209] In response to the closing instruction generated by the user triggering the sub-item button, the closing target is obtained;

[0210] In response to a closing instruction generated by a user triggering a summary item button, obtaining a closing target;

[0211] In response to the closing instruction generated by the user triggering the select all button, the closing target is obtained.

[0212] Optionally, in response to a closing instruction generated by a user triggering a sub-item button, obtaining a closing target includes:

[0213] The user triggers the sub-item button;

[0214] Determine whether there is a summary item corresponding to the sub-item button, and generate a first determination result;

[0215] According to the first judgment result, the check state of the summary item button is updated;

[0216] Determine whether all target buttons are checked, and generate a second determination result;

[0217] According to the second judgment result, the check state of the select all button is updated.

[0218] Optionally, in response to a closing instruction generated by a user triggering a summary item button, obtaining a closing target includes:

[0219] The user triggers the summary item button;

[0220] The check status of all sub-item buttons is synchronized with the check status of the summary item button;

[0221] Determine whether all target buttons are checked, and obtain a fourth determination result;

[0222] According to the fourth judgment result, the check state of the select all button is updated.

[0223] Optionally, in response to the closing instruction generated by the user triggering the Select All button, the closing subject is obtained, including:

[0224] The user triggers the Select All button;

[0225] The check state of all target buttons is synchronized with the check state of the Select All button.

[0226] Optionally, based on the user triggering the adjustment button, the closing quantity of the closing target is determined, including:

[0227] Determine the range of the amount of positions to be closed based on the user triggering the adjustment button;

[0228] Adjust the number of closed positions.

[0229] Optionally, based on the user triggering the adjustment button, determine the range of the closing quantity, including:

[0230] Based on the user triggering the adjustment button, get the initial closing quantity;

[0231] Determine the maximum number of positions to close based on absolute values.

[0232] Optionally, the maximum number of positions to be closed is calculated using the following formula:

[0233] q1=q0-q0 modk

[0234] In the formula: q0 is the initial closing quantity; k is the number of lots; q1 is the maximum closing quantity; mod is the remainder function.

[0235] Optionally, determining the maximum value of the closing quantity according to the initial closing quantity includes:

[0236] For a type of underlying asset in the pending order state, the maximum amount of the position to be closed is the value of the difference between the position quantity and the pending buy order quantity, rounded to the nearest lot;

[0237] For Category II assets, when there is no pending order, the maximum amount of positions to be closed is the value of the position quantity rounded to the nearest lot;

[0238] For the three types of targets, if the purchase quantity on the day is equal to the total holding quantity, the maximum value of the closing quantity is 0.

[0239] Optionally, adjust the amount of the closed position, including:

[0240] Get the number of closed positions;

[0241] Determine whether the closing quantity is an integer multiple of the whole lot size, and obtain the fifth determination result;

[0242] Determine the step value according to the fifth judgment result;

[0243] The number of closed positions is adjusted according to the step value.

[0244] Optionally, if the fifth judgment result is that the liquidation quantity is a multiple of the whole lot number, determining the step value according to the fifth judgment result includes:

[0245] Calculate the next count value step of the current closed position quantity;

[0246] If step is smaller than the whole lot, the whole lot is used as the step value;

[0247] If step is greater than or equal to the whole lot size, then the remainder of step and the whole lot size is calculated, and the difference between step and remainder is used as the step value.

[0248] Optionally, based on the closing information, determine the order type of the closing target, including:

[0249] Determine the securities market based on the liquidation target;

[0250] Determine the order type based on the securities market;

[0251] Determine the display fields based on the order type;

[0252] Determine the order type based on the displayed fields.

[0253] An embodiment of the present application further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above method is implemented when the processor executes the computer program.

[0254] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the above method when executed by a processor.

[0255] In addition, other structures and functions of the device in the embodiment of the present application are known to technicians in this field and will not be described here to reduce redundancy.

[0256] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.

[0257] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0258] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0259] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for closing positions in batches, characterized in that: include: Determine the closing targets of different securities markets and categories based on user-triggered control buttons; Determining the closing quantity of the closing target based on the user triggering the adjustment button; Determine the securities market according to the liquidation subject; determine the order type according to the securities market; Determine a display field according to the order type; determine the order type according to the display field, wherein the securities market includes a plurality of different securities markets, each of which has different market trading rules, and the display fields corresponding to different market trading rules are different; Generate a closing order according to the closing subject, closing quantity and order type; Sending the closing orders to a server so that the closing orders are batch processed by the server; Wherein, the method of determining the liquidation target based on the user triggering the control button includes the following methods: The user triggers a sub-item button; determines whether there is a summary item corresponding to the sub-item button, and generates a first determination result; based on the first determination result, updates the check state of the summary item button; determines whether all target buttons are checked, and generates a second determination result; based on the second determination result, updates the check state of the select all button; The user triggers the summary item button; the check status of all the sub-item buttons is kept synchronized with the check status of the summary item button; it is determined whether all target buttons are checked, and a fourth determination result is obtained; according to the fourth determination result, the check status of the select all button is updated; The user triggers the select all button; the check status of all target buttons is synchronized with the check status of the select all button.

2. The method according to claim 1, characterized in that Based on the user triggering the adjustment button, determining the closing quantity of the closing target, including: Determining the range of the closing quantity based on the user triggering the adjustment button; The closing quantity is adjusted.

3. The method according to claim 2, characterized in that Based on the user triggering the adjustment button, the range of the closing quantity is determined, including: Based on the user triggering the adjustment button, get the initial closing quantity; According to the initial position closing quantity, a maximum value of the position closing quantity is determined.

4. The method according to claim 3, characterized in that The maximum value of the closing quantity is obtained by the following calculation formula: q1=q0-q0modk In the formula: q0 is the initial closing quantity; k is the number of lots; q1 is the maximum closing quantity; mod is the remainder function.

5. The method according to claim 3, characterized in that: Determining the maximum value of the closing quantity according to the initial closing quantity includes: For a type of underlying asset in the pending order state, the maximum amount of the position to be closed is the value of the difference between the position quantity and the pending buy order quantity, rounded to the nearest lot; For Category II assets, when there is no pending order, the maximum amount of positions to be closed is the value of the position quantity rounded to the nearest lot; For the three types of targets, if the purchase quantity on the day is equal to the total holding quantity, the maximum value of the closing quantity is 0.

6. The method according to claim 2, characterized in that The adjustment of the closing quantity includes: Get the closing quantity; Determine whether the closing quantity is an integer multiple of the whole lot size, and obtain a fifth determination result; Determining a step value according to the fifth judgment result; The closing quantity is adjusted according to the step value.

7. The method according to claim 6, characterized in that If the fifth judgment result is that the liquidation quantity is a multiple of the whole lot number, then according to the fifth judgment result, the step value is determined, including: Calculate the next count value step of the current closed position quantity; If step is smaller than the whole lot, the whole lot is used as the step value; If step is greater than or equal to the whole lot size, then the remainder of step and the whole lot size is calculated, and the difference between step and remainder is used as the step value.

8. A device for batch liquidation, characterized in that: include: The target unit is used to determine the closing targets of different securities markets and categories based on the user triggering the control button; A quantity unit, used to determine the closing quantity of the closing target based on the user triggering the adjustment button; A type unit, used to determine the order type of the closing target based on the closing information; Determine the securities market according to the liquidation subject; determine the order type according to the securities market; Determine a display field according to the order type; determine the order type according to the display field, wherein the securities market includes a plurality of different securities markets, each of which has different market trading rules, and the display fields corresponding to different market trading rules are different; An order unit, used to generate a closing order according to the closing subject, closing quantity and order type; A sending unit, used for sending the closing orders to a server so that the closing orders are processed in batches by the server; Wherein, in the target unit, the determination of the liquidation target based on the user triggering the control button includes the following methods: The user triggers a sub-item button; determines whether there is a summary item corresponding to the sub-item button, and generates a first determination result; based on the first determination result, updates the check state of the summary item button; determines whether all target buttons are checked, and generates a second determination result; based on the second determination result, updates the check state of the select all button; The user triggers the summary item button; the check status of all the sub-item buttons is kept synchronized with the check status of the summary item button; it is determined whether all target buttons are checked, and a fourth determination result is obtained; according to the fourth determination result, the check status of the select all button is updated; The user triggers the select all button; the check status of all target buttons is synchronized with the check status of the select all button.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.