CN113360539B - Market subscription-based subscription information pushing method, device, equipment and medium - Google Patents

Market subscription-based subscription information pushing method, device, equipment and medium Download PDF

Info

Publication number
CN113360539B
CN113360539B CN202110913490.4A CN202110913490A CN113360539B CN 113360539 B CN113360539 B CN 113360539B CN 202110913490 A CN202110913490 A CN 202110913490A CN 113360539 B CN113360539 B CN 113360539B
Authority
CN
China
Prior art keywords
subscription
information
market
code
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110913490.4A
Other languages
Chinese (zh)
Other versions
CN113360539A (en
Inventor
刘振民
张文成
何志东
吴峰波
严乐男
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huarui Distributed Technology Co.,Ltd.
Original Assignee
Shenzhen Archforce Financial 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 Archforce Financial Technology Co Ltd filed Critical Shenzhen Archforce Financial Technology Co Ltd
Priority to CN202110913490.4A priority Critical patent/CN113360539B/en
Publication of CN113360539A publication Critical patent/CN113360539A/en
Application granted granted Critical
Publication of CN113360539B publication Critical patent/CN113360539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Abstract

The invention discloses a market subscription-based subscription information pushing method, a market subscription-based subscription information pushing device, market subscription-based subscription information pushing equipment and a market subscription-based subscription information pushing medium, wherein the market subscription-based subscription information pushing method comprises the following steps: the initial code subscription information can be updated according to the market condition subscription request to obtain updated code subscription information, whether the updated code subscription information meets the subscription condition is judged, if yes, the initial subscription type information is updated according to the market condition subscription request to obtain updated subscription type information, and matched market condition data information is obtained from the market condition database according to the updated code subscription information and the updated subscription type information and is pushed to the client in real time. The invention belongs to the technical field of information pushing, and can quickly update initial code subscription information and initial subscription type information based on an input market quotation subscription request, so that a client can quickly adjust market quotation data information pushed to a client through less operation, the efficiency of adjusting subscription requirements is greatly improved, and the client can quickly acquire the adjusted market quotation data information.

Description

Market subscription-based subscription information pushing method, device, equipment and medium
Technical Field
The present invention relates to the field of information push technologies, and in particular, to a method, an apparatus, a device, and a medium for pushing subscription information based on market subscription.
Background
With the continuous opening of financial markets in China, the participation degree of high-frequency trading in the markets is higher and higher, customers need to quickly and timely master required market changes, and trade decisions are made according to the market changes. The client needs to make subscription requirements according to own requirements, and the server feeds back corresponding subscription information to the client according to the subscription requirements of the client. However, as market conditions change, a client needs to adjust subscription requirements, and in the conventional technical method, the operation is cumbersome when the subscription requirements are changed, so that the client cannot quickly acquire the adjusted subscription information. Therefore, the prior art method has the problem that the subscription requirement cannot be adjusted quickly.
Disclosure of Invention
The embodiment of the invention provides a market subscription-based subscription information pushing method, device, equipment and medium, aiming at solving the problem that the subscription requirement cannot be quickly adjusted in the prior art.
In a first aspect, an embodiment of the present invention provides a method for pushing subscription information based on market subscription, including:
if a market subscription request from the client is received, updating prestored initial code subscription information according to the market subscription request to obtain corresponding updated code subscription information;
judging whether the updated code subscription information meets preset subscription conditions or not;
if the updated code subscription information meets the subscription condition, updating the initial subscription type information according to the market condition subscription request to obtain corresponding updated subscription type information;
acquiring the market data information matched with the update code subscription information and the update subscription type information from a pre-stored market database and pushing the market data information to the client in real time.
In a second aspect, an embodiment of the present invention provides a subscription information pushing apparatus based on market subscription, including:
the system comprises an update code subscription information acquisition unit, a code update unit and a code update unit, wherein the update code subscription information acquisition unit is used for updating prestored initial code subscription information according to a market quotation subscription request if the market quotation subscription request from the client is received, so as to obtain corresponding update code subscription information;
an update code subscription information judgment unit for judging whether the update code subscription information satisfies a preset subscription condition;
an update subscription type information obtaining unit, configured to update the initial subscription type information according to the market subscription request if the update code subscription information satisfies the subscription condition, so as to obtain corresponding update subscription type information;
and the market data information pushing unit is used for acquiring market data information matched with the update code subscription information and the update subscription type information from a pre-stored market database and pushing the market data information to the client in real time.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor, when executing the computer program, implements the method for pushing subscription information based on market subscription according to the first aspect.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to execute the method for pushing subscription information based on market subscription according to the first aspect.
The embodiment of the invention provides a method, a device, equipment and a medium for pushing subscription information based on market subscription. The initial code subscription information can be updated according to the market condition subscription request to obtain updated code subscription information, whether the updated code subscription information meets the subscription condition is judged, if yes, the initial subscription type information is updated according to the market condition subscription request to obtain updated subscription type information, and matched market condition data information is obtained from the market condition database according to the updated code subscription information and the updated subscription type information and is pushed to the client in real time. By the method, the initial code subscription information and the initial subscription type information can be quickly updated based on the input market quotation subscription request, so that a client can quickly adjust market quotation data information pushed to the client through less operation, the efficiency of adjusting subscription requirements is greatly improved, and the client can quickly acquire the adjusted market quotation data information.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a subscription information pushing method based on market subscription according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario of a subscription information pushing method based on market subscription according to an embodiment of the present invention;
fig. 3 is a schematic sub-flow diagram of a subscription information pushing method based on market subscription according to an embodiment of the present invention;
fig. 4 is another schematic sub-flow diagram of a subscription information pushing method based on market subscription according to an embodiment of the present invention;
fig. 5 is another schematic sub-flow diagram of a subscription information pushing method based on market subscription according to an embodiment of the present invention;
fig. 6 is another schematic sub-flow diagram of a subscription information pushing method based on market subscription according to an embodiment of the present invention;
fig. 7 is another schematic sub-flow diagram of a subscription information pushing method based on market subscription according to an embodiment of the present invention;
fig. 8 is another schematic sub-flow diagram of a subscription information pushing method based on market subscription according to an embodiment of the present invention;
fig. 9 is a schematic block diagram of a subscription information pushing apparatus based on market subscription according to an embodiment of the present invention;
FIG. 10 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic flowchart illustrating a subscription information pushing method based on market subscription according to an embodiment of the present invention; fig. 2 is a schematic view of an application scenario of a subscription information pushing method based on market subscription according to an embodiment of the present invention; the subscription information pushing method based on market subscription is applied to a management server 10, and is executed through application software installed in the management server 10, the management server 10 establishes network connection with at least one client 20 to realize transmission of data information, the management server 10 is a server side capable of receiving a market subscription request and obtaining market data information to push to the client 20, such as a server constructed by an enterprise or a government department, and the client 20 is a terminal device capable of allowing a user to input the market subscription request and receive the market data information to display, such as a desktop computer, a notebook computer, a tablet computer or a mobile phone. As shown in FIG. 1, the method includes steps S110 to S140.
S110, if a market subscription request from the client is received, updating the pre-stored initial code subscription information according to the market subscription request to obtain corresponding updated code subscription information.
And if a market subscription request from the client is received, updating the pre-stored initial code subscription information according to the market subscription request to obtain corresponding updated code subscription information. The client can input a market subscription request to the client and send the market subscription request to the management server through the client, and the management server can receive the market subscription request, wherein the market subscription request includes subscription requirements of the client, and the market subscription request can be request information received by the management server from the client for the first time or request information received by the management server from the client again. The initial code subscription information, which is subscription information stored in the management server in advance and uniquely corresponding to the client, can be updated according to the market subscription request, and the updated code subscription information can be obtained after the initial code subscription information is updated, wherein the initial code subscription information comprises a subscription set and a subscription state, the subscription set is used for storing code information, and the code information comprises but is not limited to stock codes, fund codes, bond codes and futures codes.
In an embodiment, as shown in fig. 3, step S110 includes sub-steps S111, S112, S113, S114, S115, and S116.
S111, judging the type and the subscription range of the market subscription request; and S112, if the subscription range of the market subscription request is all and the types of the market subscription request are increased subscriptions, emptying the subscription set and modifying the subscription state into a deleted subscription state to obtain updated code subscription information.
The market subscription request comprises a type and a subscription range, wherein the type is a specific type required by the market subscription request for operation, the type comprises two types of subscription addition and subscription deletion, the subscription range is a specific range required by the market subscription request for subscription, the subscription range comprises a covered specific range of subscription codes, the type of the market subscription request can be judged, the subscription range of the market subscription request is judged, and the judgment result of the subscription range is partial or full.
And if the subscription range is judged to be all and the types are subscription increasing, clearing the subscription set, modifying the subscription state to a subscription deletion state, and obtaining updated code subscription information corresponding to the market subscription request, wherein the meaning represented by the combination of the subscription set and the subscription state is 'subscription deletion empty', namely all codes are subscribed.
And S113, if the subscription range of the market subscription request is all and the type is deletion subscription, emptying the subscription set and modifying the subscription state into an increased subscription state to obtain updated code subscription information.
And if the subscription range is judged to be all and the type is the deletion subscription, clearing the subscription set, modifying the subscription state to be the subscription increasing state, and obtaining updated code subscription information corresponding to the market subscription request, wherein the meaning represented by the combination of the subscription set and the subscription state is 'subscription increasing empty', namely that all codes are not subscribed.
S114, if the subscription range of the market subscription request is partial and the type is subscription adding or subscription deleting, judging whether the subscription state is matched with the type.
And if the subscription range of the market subscription request is judged to be partial and the type is subscription adding or subscription deleting, continuously judging whether the subscription state is matched with the type of the current market subscription request.
S115, if the subscription state is matched with the type, adding the subscription codes contained in the subscription range into the subscription set to obtain updated code subscription information.
If the subscription state is matched with the type of the current market subscription request, the subscription codes contained in the subscription range are added into the subscription set, the subscription codes contained in the subscription range are added into the code information contained in the subscription set at this time, and the subscription state is not changed, so that the corresponding changed code subscription information is obtained.
S116, if the subscription state is not matched with the type, deleting the subscription codes contained in the subscription range from the subscription set to obtain updated code subscription information.
And if the subscription state is not matched with the type of the current market subscription request, deleting the subscription codes contained in the subscription range from the subscription set, wherein the code information of the subscription set does not contain the corresponding subscription codes in the subscription range at the moment, and the subscription state is not changed to obtain the corresponding changed code subscription information.
According to the method, the type can be flexibly configured in the market subscription request by the client, so that the subscription requirement can be adjusted more conveniently by the client, the subscription requirement can be adjusted rapidly by the client through less operation, namely, the initial code subscription information can be updated through less operation, and the initial code subscription information of the management server can be updated rapidly to obtain the updated code subscription information.
In one embodiment, as shown in FIG. 4, step S160 includes sub-steps S1161, S1162, and S1163.
S1161, judging whether the subscription set contains the object code corresponding to the subscription code in the subscription range.
When the subscription codes included in the subscription range are deleted from the subscription set, it may be determined whether the subscription set includes the object codes corresponding to the subscription codes first, or whether the subscription set includes the object codes corresponding to each subscription code one by one.
S1162, if the subscription set contains the object code corresponding to the subscription range, deleting the object code from the subscription set to update the subscription set.
And if the subscription set comprises the object codes corresponding to each subscription code, deleting the object codes matched with the subscription codes from the subscription set so as to obtain an updated subscription set.
And S1163, if the subscription set does not contain the target code corresponding to the subscription range, feeding back prompt information with invalid subscription to the client.
If the middle part of the subscription set contains the target code corresponding to each subscription code in the subscription range, the update of the subscription set is not finished, and the prompt information of invalid subscription can be fed back to the client so as to prompt the user of the client.
S120, judging whether the update code subscription information meets preset subscription conditions.
And judging whether the updated code subscription information meets preset subscription conditions. Whether the update code subscription information meets preset subscription conditions can be judged, and the subscription conditions can be that the update code subscription information at least comprises a subscribed code.
In an embodiment, as shown in fig. 5, step S120 includes sub-steps S121, S122, S123 and S124.
S121, judging whether the subscription set of the update code subscription information is empty; and S122, if the subscription set is empty, judging whether the subscription state of the update code subscription information is an increased subscription state.
Specifically, it may be determined whether the subscription set is empty, and if the subscription set is empty, it may be determined whether the subscription state of the update code subscription information is the incremental subscription state.
And S123, if the subscription state is the subscription increasing state, judging that the updated code subscription information does not meet the subscription condition.
If the subscription state is an increased subscription state, the meaning represented by the combination of the subscription set and the subscription state is 'increased subscription empty', that is, all codes are not subscribed, and it can be determined that the updated code subscription information does not satisfy the subscription condition.
If the updated code subscription information does not meet the subscription condition, the corresponding market data information does not need to be acquired and pushed to the client, at this time, the client of the client can continue to wait for inputting the market subscription request again next time, and if the market subscription request which is input again is received, the steps are repeatedly executed.
S124, if the subscription set is not empty or the subscription state is not an increased subscription state, determining that the updated code subscription information meets the subscription condition.
If the subscription set is not empty, the update code subscription information at least comprises a subscribed code, and the update code subscription information can be judged to meet the subscription condition; if the subscription set is empty and the subscription state is not the subscription increasing state, the meaning represented by the combination of the subscription set and the subscription state is 'subscription deletion empty', that is, all codes are subscribed, then it can be determined that the updated code subscription information meets the subscription condition.
S130, if the updated code subscription information meets the subscription condition, updating the initial subscription type information according to the market information subscription request to obtain corresponding updated subscription type information.
And if the updated code subscription information meets the subscription condition, updating the initial subscription type information according to the market information subscription request to obtain corresponding updated subscription type information. The market subscription request also comprises a data type value, the data type value is a numerical value used for recording the data type, and the initial subscription type information can be updated according to the data type value in the market subscription request to obtain updated subscription type information under the condition that the updated code subscription information meets the subscription condition. The initial subscription type information is information for recording subscription types, each code can correspond to multiple subscription types, and a client can select a required subscription type from the multiple subscription types to subscribe.
In one embodiment, as shown in fig. 6, step S130 includes sub-steps S131 and S132.
S131, analyzing the data type value of the market subscription request according to a preset analysis rule to obtain corresponding analysis type information.
The data type value of the market subscription request can be analyzed according to the analysis rule, the data type value can be a numerical value represented by a 10-system or 16-system, the analysis type information can be obtained after the data type value is analyzed, the analysis type information contains the subscription type required by the client, the client can be supported to perform combined subscription in a bit operation mode through the data type value, the convenience of subscription operation of the client is greatly improved, and the subscription operation amount of the client is reduced.
In an embodiment, as shown in fig. 7, step S131 includes substeps S1311, S1312, and S1313.
S1311, converting the data type value into a corresponding binary number value. S1312, acquiring the position of a non-zero digit in the binary numerical value from right to left to obtain corresponding non-zero position information. S1313, obtaining the type matched with the non-zero position information in the analysis rule as analysis type information matched with the data type value.
Specifically, the data type value may be first converted to obtain a corresponding binary value. For example, the data type value is a 16-system number "0 x 0000001B", which corresponds to a binary value of "00 … 00011011".
And acquiring the position of a non-zero digit in the binary number value obtained by conversion from right to left to obtain non-zero position information corresponding to the binary number value. If the non-zero position information corresponding to the binary value is acquired from right to left, the non-zero position information is 1, 2, 4 and 5.
If the analysis rule includes type information corresponding to each position, the type matched with each position in the non-zero position information in the analysis rule can be obtained according to the non-zero position information and is used as the analysis type information matched with the data type value.
For example, the parsing rule is: 1-1 minute k-line, 2-5 minute k-line, 3-10 minute k-line, 4-15 minute k-line, 5-30 minute k-line … …. Then the type of the analysis rule matched with the non-zero position information is obtained as follows: 1-minute k-line, 5-minute k-line, 15-minute k-line, and 30-minute k-line, and the four types are combined to be corresponding analysis type information.
S132, updating the initial subscription type information according to the subscription type contained in the analysis type information to obtain corresponding updated subscription type information.
If the analysis type information contains the specific type to which the client needs to subscribe, the initial subscription type information can be updated according to the subscription type contained in the analysis type information to obtain updated subscription type information matched with the analysis type information, and the subscription type contained in the updated subscription type information obtained after updating is the same as the subscription type contained in the analysis type information.
S140, acquiring the market data information matched with the update code subscription information and the update subscription type information from a pre-stored market database and pushing the market data information to the client in real time.
Acquiring the market data information matched with the update code subscription information and the update subscription type information from a pre-stored market database and pushing the market data information to the client in real time. The market data base is a database which is configured in the management server in advance and used for storing various market data, and the management server can update the market data contained in the market data base in real time according to the change of the market. The market data base contains various types of market data corresponding to each code, matched market data information can be obtained from the market data base according to the updated code subscription information and the updated subscription type information and pushed to the client, and the market data information is the obtained information matched with the market subscription request, namely the market data information can meet the current subscription requirements of the client.
In an embodiment, as shown in fig. 8, step S140 includes sub-steps S141, S142, S143, and S144.
And S141, judging the subscription type of the update code subscription information.
And S142, if the subscription type of the update code subscription information is an increased subscription type, acquiring the subscription codes contained in the subscription set of the update code subscription information as market situation codes.
Specifically, the subscription type of the update code subscription information may be determined first, and if the subscription type is the incremental subscription type, the subscription code included in the subscription set of the update code subscription information may be directly used as the market information code.
S143, if the subscription type of the update code subscription information is a delete subscription type, acquiring the codes left in the subscription set except the update code subscription information in the market situation database as market situation codes.
If the subscription type of the updated code subscription information is a delete subscription type, the subscription code can be removed from the codes in the market conditions database according to the subscription code contained in the subscription set, and the rest codes in the subscription code can be used as market conditions codes.
S144, acquiring data information matched with the quotation codes and the subscription types contained in the updated subscription type information from the quotation database, and pushing the data information as the quotation data information to the client in real time.
The method can acquire the code market data corresponding to the market codes from the market database, acquire the data information matched with the subscription type from the code market data as the finally acquired market data information according to the subscription type contained in the updated subscription type information, and can push the market data information to the client side sending the market subscription request in real time.
In the method for pushing subscription information based on market subscription provided by the embodiment of the invention, the initial code subscription information can be updated according to the market subscription request to obtain the updated code subscription information, whether the updated code subscription information meets the subscription condition is judged, if yes, the initial subscription type information is updated according to the market subscription request to obtain the updated subscription type information, and the matched market data information is obtained from the market database according to the updated code subscription information and the updated subscription type information and is pushed to the client in real time. By the method, the initial code subscription information and the initial subscription type information can be quickly updated based on the input market quotation subscription request, so that a client can quickly adjust market quotation data information pushed to the client through less operation, the efficiency of adjusting subscription requirements is greatly improved, and the client can quickly acquire the adjusted market quotation data information.
An embodiment of the present invention further provides a market subscription-based subscription information pushing device, where the market subscription-based subscription information pushing device is configured to execute any one of the foregoing market subscription-based subscription information pushing methods, specifically, refer to fig. 9, and fig. 9 is a schematic block diagram of the market subscription-based subscription information pushing device according to the embodiment of the present invention.
As shown in fig. 9, the subscription information pushing device 100 based on market subscription includes an update code subscription information obtaining unit 110, an update code subscription information judging unit 120, an update subscription type information obtaining unit 130, and a market data information pushing unit 140.
The update code subscription information obtaining unit 110 is configured to, if a market subscription request from the client is received, update pre-stored initial code subscription information according to the market subscription request to obtain corresponding update code subscription information.
In one embodiment, the update code subscription information obtaining unit 110 includes sub-units: the judging unit is used for judging the type and the subscription range of the market subscription request; a first updating unit, configured to empty the subscription set and modify the subscription state to a delete subscription state if the subscription range of the market subscription request is full and the type of the market subscription request is an add subscription, so as to obtain updated code subscription information; a second updating unit, configured to empty the subscription set and modify the subscription state to an increased subscription state if the subscription range of the market subscription request is full and the type of the market subscription request is a delete subscription, so as to obtain updated code subscription information; a subscription state judging unit, configured to judge whether the subscription state matches with the type if the subscription range of the market subscription request is partial and the type is subscription addition or subscription deletion; a subscription code adding unit, configured to add a subscription code included in the subscription range to the subscription set if the subscription state matches the type, so as to obtain updated code subscription information; and the subscription code deleting unit is used for deleting the subscription codes contained in the subscription range from the subscription set to obtain updated code subscription information if the subscription state is not matched with the type.
In one embodiment, the subscription code deletion unit includes a subunit: a subscription code judging unit, configured to judge whether the subscription set includes a target code corresponding to the subscription code in the subscription range; a subscription set updating unit, configured to delete a target code from the subscription set to update the subscription set if the subscription set includes the target code corresponding to the subscription range; and the prompt information feedback unit is used for feeding back prompt information with invalid subscription to the client if the subscription set does not contain the target code corresponding to the subscription range.
An update code subscription information determining unit 120, configured to determine whether the update code subscription information meets a preset subscription condition.
In one embodiment, the update code subscription information determination unit 120 includes sub-units: a subscription set judgment unit, configured to judge whether the subscription set of the update code subscription information is empty; a state judgment unit, configured to judge whether the subscription state of the update code subscription information is an increased subscription state if the subscription set is empty; a first determining unit, configured to determine that the updated code subscription information does not satisfy the subscription condition if the subscription state is an increased subscription state; a second determining unit, configured to determine that the update code subscription information satisfies the subscription condition if the subscription set is not empty or the subscription state is not an incremental subscription state.
An update subscription type information obtaining unit 130, configured to update the initial subscription type information according to the market subscription request if the update code subscription information meets the subscription condition, so as to obtain corresponding update subscription type information.
In an embodiment, the update subscription type information obtaining unit 130 includes sub-units: the analysis type information acquisition unit is used for analyzing the data type value of the market subscription request according to a preset analysis rule to obtain corresponding analysis type information; and the initial subscription type information updating unit is used for updating the initial subscription type information according to the subscription type contained in the analysis type information to obtain corresponding updated subscription type information.
In an embodiment, the parsing type information obtaining unit includes a sub-unit: the data type value conversion unit is used for converting the data type value into a corresponding binary number value; a non-zero position information obtaining unit, configured to obtain, from right to left, a position of a non-zero digit in the binary number to obtain corresponding non-zero position information; a type information obtaining unit, configured to obtain a type that matches the non-zero position information in the parsing rule as parsing type information that matches the data type value.
And a market data information pushing unit 140, configured to obtain market data information matched with the update code subscription information and the update subscription type information from a pre-stored market database, and push the market data information to the client in real time.
In an embodiment, the market data information pushing unit 140 includes sub-units: and the updating code subscription information judging unit is used for judging the subscription type of the updating code subscription information. A first quotation code acquiring unit, configured to acquire a subscription code included in a subscription set of the update code subscription information as a quotation code if the subscription type of the update code subscription information is an incremental subscription type; a second market information code obtaining unit, configured to obtain, if the subscription type of the update code subscription information is a delete subscription type, a code remaining in the subscription set excluding the update code subscription information in the market information database as a market information code; and the information pushing unit is used for acquiring data information matched with the quotation codes and the subscription types contained in the updated subscription type information from the quotation database, and pushing the data information serving as the quotation data information to the client in real time.
The subscription information pushing device based on the market subscription provided by the embodiment of the invention is applied to the subscription information pushing method based on the market subscription, and can update the initial code subscription information according to the market subscription request to obtain the updated code subscription information, judge whether the updated code subscription information meets the subscription condition, update the initial subscription type information according to the market subscription request to obtain the updated subscription type information if the updated code subscription information meets the subscription condition, and acquire the matched market data information from the market database according to the updated code subscription information and the updated subscription type information and push the matched market data information to the client in real time. By the method, the initial code subscription information and the initial subscription type information can be quickly updated based on the input market quotation subscription request, so that a client can quickly adjust market quotation data information pushed to the client through less operation, the efficiency of adjusting subscription requirements is greatly improved, and the client can quickly acquire the adjusted market quotation data information.
The subscription information pushing device based on market subscription can be implemented in the form of a computer program, and the computer program can be run on a computer device as shown in fig. 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device can be a management server used for executing a market subscription-based subscription information pushing method so as to receive market subscription requests and obtain market data information to push the market data information to the client.
Referring to fig. 10, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a storage medium 503 and an internal memory 504.
The storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, may cause the processor 502 to execute a market subscription-based subscription information pushing method, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
The processor 502 is used to provide computing and control capabilities that support the operation of the overall computer device 500.
The internal memory 504 provides an environment for running the computer program 5032 in the storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute a subscription information pushing method based on market subscription.
The network interface 505 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 10 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 500 to which aspects of the present invention may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The processor 502 is configured to run a computer program 5032 stored in the memory to implement the corresponding functions in the subscription information pushing method based on market subscription.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 10 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 10, and are not described herein again.
It should be understood that, in the embodiment of the present invention, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 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. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a volatile or non-volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the above-mentioned subscription information pushing method based on market subscription.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. 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 invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only a logical division, and there may be other divisions when the actual implementation is performed, or units having the same function may be grouped into one unit, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not 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 also be an electric, mechanical or other form of connection.
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 of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a computer-readable storage medium, which includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage media comprise: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A subscription information pushing method based on market subscription is characterized in that the method is applied to a management server, the management server establishes network connection with at least one client to realize data information transmission, and the method comprises the following steps:
if a market subscription request from the client is received, updating prestored initial code subscription information according to the market subscription request to obtain corresponding updated code subscription information;
judging whether the updated code subscription information meets preset subscription conditions or not;
if the updated code subscription information meets the subscription condition, updating the initial subscription type information according to the market condition subscription request to obtain corresponding updated subscription type information;
acquiring market data information matched with the update code subscription information and the update subscription type information from a pre-stored market database and pushing the market data information to the client in real time;
the initial code subscription information comprises a subscription set and a subscription state, and the updating of the pre-stored initial code subscription information according to the market subscription request to obtain the corresponding updated code subscription information comprises the following steps:
judging the type and the subscription range of the market subscription request;
if the subscription range of the market subscription request is all and the type is an increase subscription, clearing the subscription set and modifying the subscription state into a delete subscription state to obtain updated code subscription information;
if the subscription range of the market subscription request is all and the type is deletion subscription, emptying the subscription set and modifying the subscription state into an increased subscription state to obtain updated code subscription information;
if the subscription range of the market subscription request is partial and the type is subscription adding or subscription deleting, judging whether the subscription state is matched with the type;
if the subscription state is matched with the type, adding the subscription codes contained in the subscription range into the subscription set to obtain updated code subscription information;
and if the subscription state is not matched with the type, deleting the subscription codes contained in the subscription range from the subscription set to obtain updated code subscription information.
2. The method for pushing subscription information based on market subscription according to claim 1, wherein said deleting the subscription codes included in the subscription scope from the subscription set to obtain updated code subscription information comprises:
judging whether the subscription set contains target codes corresponding to the subscription codes in the subscription range;
if the subscription set contains the target codes corresponding to the subscription range, deleting the target codes from the subscription set to update the subscription set;
and if the subscription set does not contain the target code corresponding to the subscription range, feeding back prompt information with invalid subscription to the client.
3. The method for pushing subscription information based on market subscription according to claim 1, wherein said determining whether the updated code subscription information satisfies a preset subscription condition includes:
judging whether the subscription set of the update code subscription information is empty or not;
if the subscription set is empty, judging whether the subscription state of the updated code subscription information is an increased subscription state;
if the subscription state is an increased subscription state, judging that the updated code subscription information does not meet the subscription condition;
and if the subscription set is not empty or the subscription state is not an increased subscription state, judging that the updated code subscription information meets the subscription condition.
4. The method for pushing subscription information based on market subscription according to claim 1, wherein the updating the initial subscription type information according to the market subscription request to obtain corresponding updated subscription type information comprises:
analyzing the data type value of the market subscription request according to a preset analysis rule to obtain corresponding analysis type information;
and updating the initial subscription type information according to the subscription type contained in the analysis type information to obtain corresponding updated subscription type information.
5. The market subscription-based subscription information pushing method according to claim 4, wherein the analyzing the data type value of the market subscription request according to a preset analysis rule to obtain corresponding analysis type information comprises:
converting the data type value into a corresponding binary number value;
acquiring the position of a non-zero digit in the binary number value from right to left to obtain corresponding non-zero position information;
and acquiring the type matched with the non-zero position information in the analysis rule as analysis type information matched with the data type value.
6. The method for pushing subscription information based on market subscription according to claim 1, wherein the step of obtaining market data information matched with the update code subscription information and the update subscription type information from a pre-stored market database and pushing the market data information to the client in real time comprises:
judging the subscription type of the update code subscription information;
if the subscription type of the update code subscription information is an increased subscription type, acquiring a subscription code contained in a subscription set of the update code subscription information as a market situation code;
if the subscription type of the update code subscription information is a delete subscription type, acquiring codes left in the subscription set except the update code subscription information in the market situation database as market situation codes;
and acquiring data information matched with the quotation codes and the subscription types contained in the updated subscription type information from the quotation database, and pushing the data information as the quotation data information to the client in real time.
7. A subscription information pushing device based on market subscription is characterized by comprising:
the system comprises an update code subscription information acquisition unit, a code update unit and a code update unit, wherein the update code subscription information acquisition unit is used for updating prestored initial code subscription information according to a market quotation subscription request if the market quotation subscription request from a client is received, so as to obtain corresponding update code subscription information;
an update code subscription information judgment unit for judging whether the update code subscription information satisfies a preset subscription condition;
an update subscription type information obtaining unit, configured to update the initial subscription type information according to the market subscription request if the update code subscription information satisfies the subscription condition, so as to obtain corresponding update subscription type information;
the market data information pushing unit is used for acquiring market data information matched with the updating code subscription information and the updating subscription type information from a prestored market database and pushing the market data information to the client in real time;
the update code subscription information acquisition unit includes a subunit:
the judging unit is used for judging the type and the subscription range of the market subscription request; a first updating unit, configured to empty the subscription set and modify the subscription state to a delete subscription state if the subscription range of the market subscription request is full and the type of the market subscription request is an add subscription, so as to obtain updated code subscription information; a second updating unit, configured to empty the subscription set and modify the subscription state to an increased subscription state if the subscription range of the market subscription request is full and the type of the market subscription request is a delete subscription, so as to obtain updated code subscription information; a subscription state judging unit, configured to judge whether the subscription state matches with the type if the subscription range of the market subscription request is partial and the type is subscription addition or subscription deletion; a subscription code adding unit, configured to add a subscription code included in the subscription range to the subscription set if the subscription state matches the type, so as to obtain updated code subscription information; and the subscription code deleting unit is used for deleting the subscription codes contained in the subscription range from the subscription set to obtain updated code subscription information if the subscription state is not matched with the type.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the market subscription based subscription information push method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the market subscription based subscription information push method according to any one of claims 1 to 6.
CN202110913490.4A 2021-08-10 2021-08-10 Market subscription-based subscription information pushing method, device, equipment and medium Active CN113360539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110913490.4A CN113360539B (en) 2021-08-10 2021-08-10 Market subscription-based subscription information pushing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110913490.4A CN113360539B (en) 2021-08-10 2021-08-10 Market subscription-based subscription information pushing method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN113360539A CN113360539A (en) 2021-09-07
CN113360539B true CN113360539B (en) 2021-11-05

Family

ID=77540786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110913490.4A Active CN113360539B (en) 2021-08-10 2021-08-10 Market subscription-based subscription information pushing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113360539B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202871080U (en) * 2012-10-15 2013-04-10 福建格通电子信息科技有限公司 Renewable infrared forwarding system
EP3116190A1 (en) * 2015-07-07 2017-01-11 Accenture Global Services Limited Threat assessment level determination and remediation for a cloud-based multi-layer security architecture
CN107632852A (en) * 2017-07-26 2018-01-26 阿里巴巴集团控股有限公司 Information updating method and device
CN109996216A (en) * 2018-01-02 2019-07-09 中国移动通信有限公司研究院 Subscribe to request processing method, network entity and ability open platform
CN111104594A (en) * 2019-12-12 2020-05-05 上海金纳信息科技有限公司 Market quotation pushing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140040375A1 (en) * 2012-07-31 2014-02-06 Schlumberger Technology Corporation Distributed subscription based notification service for integrated petro-technical application environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202871080U (en) * 2012-10-15 2013-04-10 福建格通电子信息科技有限公司 Renewable infrared forwarding system
EP3116190A1 (en) * 2015-07-07 2017-01-11 Accenture Global Services Limited Threat assessment level determination and remediation for a cloud-based multi-layer security architecture
CN107632852A (en) * 2017-07-26 2018-01-26 阿里巴巴集团控股有限公司 Information updating method and device
CN109996216A (en) * 2018-01-02 2019-07-09 中国移动通信有限公司研究院 Subscribe to request processing method, network entity and ability open platform
CN111104594A (en) * 2019-12-12 2020-05-05 上海金纳信息科技有限公司 Market quotation pushing method and device

Also Published As

Publication number Publication date
CN113360539A (en) 2021-09-07

Similar Documents

Publication Publication Date Title
US20170329747A1 (en) System and method for optimizing electronic document layouts
CN111241444A (en) Webpage embedded point code adding method and device, computer equipment and storage medium
CN112561485B (en) Warranty product rule determination method and device, computer equipment and storage medium
CN110830577A (en) Service request call tracking method and device, computer equipment and storage medium
CN111240688A (en) excel file analysis method and device, computer equipment and storage medium
CN111694572A (en) Code format conversion method, device, computer equipment and storage medium
CN114185900B (en) Service data processing method, device, computer equipment and storage medium
CN113360539B (en) Market subscription-based subscription information pushing method, device, equipment and medium
CN110633304B (en) Combined feature screening method, device, computer equipment and storage medium
CN112631676B (en) Code dynamic loading method, device and computer readable storage medium
CN117236941A (en) Enterprise grading-based payment settlement method, device, equipment and medium
CN108804561B (en) Data synchronization method and device
CN111090649A (en) Data information paging query method and device, computer equipment and storage medium
US20070294286A1 (en) System and Method for Processing Event Predicates
CN115599801A (en) Data query method, system, electronic equipment and storage medium
CN114463125A (en) Transaction issuing and transaction updating method, device, equipment and storage medium
CN113885989A (en) User operation guiding method, device, equipment and medium based on naive Bayes
CN112416988A (en) Supply and demand matching method and device based on artificial intelligence and computer equipment
CN112187667A (en) Data downloading method, device, equipment and storage medium
CN112184027A (en) Task progress updating method and device and storage medium
US20150120347A1 (en) System and method for updating organization family tree information
CN113989011B (en) Market data processing method and device, computer equipment and readable storage medium
CN117539899A (en) Data query method, device, equipment and storage medium based on condition combination
CN112199428B (en) Application management system, method and terminal equipment of functional data block
CN111061688B (en) Statistical variable naming method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Room 2301, building 5, Shenzhen new generation industrial park, 136 Zhongkang Road, Meidu community, Meilin street, Futian District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen Huarui Distributed Technology Co.,Ltd.

Address before: Room 2301, building 5, Shenzhen new generation industrial park, 136 Zhongkang Road, Meidu community, Meilin street, Futian District, Shenzhen, Guangdong 518000

Patentee before: SHENZHEN ARCHFORCE FINANCIAL TECHNOLOGY Co.,Ltd.