CN111539824A - Automatic stock trading method and system - Google Patents

Automatic stock trading method and system Download PDF

Info

Publication number
CN111539824A
CN111539824A CN202010349243.1A CN202010349243A CN111539824A CN 111539824 A CN111539824 A CN 111539824A CN 202010349243 A CN202010349243 A CN 202010349243A CN 111539824 A CN111539824 A CN 111539824A
Authority
CN
China
Prior art keywords
stock
trading
buying
selling
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010349243.1A
Other languages
Chinese (zh)
Inventor
黄德斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingfan Technology Co ltd
Original Assignee
Beijing Jingfan 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 Beijing Jingfan Technology Co ltd filed Critical Beijing Jingfan Technology Co ltd
Priority to CN202010349243.1A priority Critical patent/CN111539824A/en
Publication of CN111539824A publication Critical patent/CN111539824A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses an automatic stock trading method and system, comprising the following steps: the trading control unit receives a stock buying pre-request input by a user, sends the stock buying pre-request to a trading server, and sends a stock buying identifier returned by the trading server to the user; the trading control unit sends the stock buying request and the stock buying identification to a trading server; the trading server checks the stock buying mark to generate a stock selling mark, and sends the stock selling mark to the trading control unit; the trading control unit generates a stock selling trading rule according to the stock buying request, generates a stock selling instruction when the real-time price of the stock meets the stock selling trading rule, and sends the stock selling instruction and the stock selling identification to the trading server; the trading server checks the stock selling identification, and executes the stock selling instruction after the check is successful. The invention can ensure higher victory ratio and income of the user, reduce manual participation and does not need to stare at the disk in real time.

Description

Automatic stock trading method and system
Technical Field
The invention relates to the technical field of data communication, in particular to an automatic stock trading method and system.
Background
In the stock exchange market, the market quotation is always instantaneous, and a user needs to pay attention to the transaction of the stock quotation in real time and perform analysis operation according to various quotation data, such as determining whether to buy or sell stocks for arbitrage or return the stocks according to own position and cost price.
The existing stock exchange can only be operated by the user, if the client possibly misses the best time of the exchange due to working time and other reasons, even the stock loss of the user is caused; or the user does not have sufficient time to obtain more benefits, the loss of stocks can be caused, and the income of the user is greatly influenced.
Since the stock market is ever changing and various factors need to be fully considered to ensure higher winning rate, it is urgently needed to provide an automatic stock trading method and system to ensure that users obtain higher income as much as possible.
Disclosure of Invention
The present invention is directed to an automatic stock trading method and system, which solve at least one of the problems of the prior art.
In order to achieve the purpose, the invention adopts the technical scheme that:
in a first aspect, an embodiment of the present invention provides an automatic stock trading method, including the following steps:
s100: the trading control unit receives a stock buying pre-request input by a user, sends the stock buying pre-request to a trading server, and sends a stock buying identifier returned by the trading server to the user;
s200: the trading control unit receives a stock buying request and a stock buying identifier input by a user and sends the stock buying request and the stock buying identifier to the trading server;
s300: the trading server receives the stock buying request and the stock buying identification, verifies the stock buying identification, executes buying operation after successful verification and generates a stock selling identification, and sends the stock selling identification to a trading control unit;
s400: the trading control unit generates a stock selling trading rule according to the stock buying request, monitors the price change of the stock in real time, generates a stock selling instruction when the real-time price of the stock meets the stock selling trading rule, and sends the stock selling instruction and the stock selling identification to a trading server;
s500: and the trading server verifies the stock selling identifier and executes a stock selling instruction after the verification is successful.
Further, the trading server does not receive a stock selling instruction sent by the user.
Further, the trading server generates a stock buying identifier according to the stock buying pre-request, wherein the stock buying identifier is a buying code, and the buying code comprises a character string generated by a random algorithm or an encryption algorithm.
Further, the stock buying identification has an effective usage time, and if the stock buying identification is used within the effective usage time or is not used beyond the effective usage time, the stock buying identification is invalid.
Further, in step S300, the trading server generates the stock selling identifier according to the stock buying request and the stock buying identifier.
Further, the stock selling identification is generated by adopting a hash algorithm.
Further, the stock buying request comprises a filling limit parameter and a loss limit parameter, and the trading control unit generates the stock selling trading rule according to the filling limit parameter and the loss limit parameter.
In a second aspect, an embodiment of the present invention provides an automatic stock trading system, including a trading control unit and a trading server; wherein,
the trading control unit receives a stock buying pre-request input by a user, sends the stock buying pre-request to a trading server, and sends a stock buying identifier returned by the trading server to the user;
the trading control unit receives a stock buying request and a stock buying identifier input by a user and sends the stock buying request and the stock buying identifier to the trading server;
the trading server receives the stock buying request and the stock buying identification, verifies the stock buying identification, executes buying operation after successful verification and generates a stock selling identification, and sends the stock selling identification to a trading control unit;
the trading control unit generates a stock selling trading rule according to the stock buying request, monitors the price change of the stock in real time, generates a stock selling instruction when the real-time price of the stock meets the stock selling trading rule, and sends the stock selling instruction and the stock selling identification to a trading server;
and the trading server verifies the stock selling identifier and executes a stock selling instruction after the verification is successful.
Further, the trading server does not receive a stock selling instruction sent by the user.
Further, the trading server generates the stock selling identifier according to the stock buying request and the stock buying identifier.
The invention has the beneficial effects that:
the automatic stock trading method and the automatic stock trading system avoid the reasons of human emotion or working time and the like, and reduce the influence caused by untimely filling or loss stopping, thereby ensuring higher winning rate and income of users;
after buying the stock tickets, the user can reduce manual participation and can sell the stocks without staring at the stock in real time by using the automatic stock trading method and the automatic stock trading system;
in addition, the invention can also send the trading information of the stock to the user after finishing one automatic stock selling period, so that the user can determine whether to carry out the next stock trading according to the actual situation.
Drawings
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flow chart illustrating an automatic stock trading method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an automatic stock trading system according to an embodiment of the present invention.
Detailed Description
The following description is presented to disclose the invention so as to enable any person skilled in the art to practice the invention. The preferred embodiments in the following description are given by way of example only, and other obvious variations will occur to those skilled in the art. The basic principles of the invention, as defined in the following description, may be applied to other embodiments, variations, modifications, equivalents, and other technical solutions without departing from the spirit and scope of the invention.
It is understood that the terms "a" and "an" should be interpreted as meaning that a number of one element or element is one in one embodiment, while a number of other elements is one in another embodiment, and the terms "a" and "an" should not be interpreted as limiting the number.
The terminology used herein is for the purpose of describing various embodiments only and is not intended to be limiting. As used herein, the singular forms are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, numbers, steps, operations, components, elements, or combinations thereof, but do not preclude the presence or addition of one or more other features, numbers, steps, operations, components, elements, or groups thereof.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart of an automatic stock trading method according to an embodiment of the present invention, the automatic stock trading method includes the following steps:
s100: the trading control unit receives a stock buying pre-request input by a user, sends the stock buying pre-request to a trading server, and sends a stock buying identifier returned by the trading server to the user;
further, the trading server generates a stock buying identifier according to the stock buying pre-request, wherein the stock buying identifier can be a buying code, and the buying code comprises a character string generated by a random algorithm or an encryption algorithm; for example, the buy code can be 6 randomly generated numbers, such as 123456; it should be understood that the stock buy identification can also be other identifications, such as pictures, etc.
Specifically, the transaction server comprises a first interface and a second interface; the first interface is used for generating the stock buying identification, and the second interface is used for verifying whether the stock buying identification is correct or not.
S200: the trading control unit receives a stock buying request and a stock buying identifier input by a user and sends the stock buying request and the stock buying identifier to the trading server;
further, an effective use time may be set for the stock buying identifier, and if the stock buying identifier is used within the effective use time or is not used beyond the effective use time, the stock buying identifier is invalid; and simultaneously randomly generating a new stock buying mark.
S300: the trading server receives the stock buying request and the stock buying identification, verifies the stock buying identification, executes buying operation after successful verification and generates a stock selling identification, and sends the stock selling identification to a trading control unit;
further, in step S300, the trading server generates the stock selling identifier according to the stock buying request and the stock buying identifier; preferably, the stock sale identifier is generated by using a hash algorithm, for example.
In one embodiment, the trading server receives the stock buying request information and the buying code, verifies the buying code (for example, 123456), and executes the buying stock ticket operation after the verification is successful;
the stock sale identifier may be a sale code, for example, comprising a string generated using an encryption algorithm. In one embodiment, the selling code is generated by using MD5 Algorithm, specifically, when buying stock tickets successfully, assuming that the stock buying price is 100, MD5 (Message-Digest Algorithm) is performed on the stock buying price 100, the buying code (for example, 123456) and the 32 characters generated randomly to obtain a unique selling code of 32 characters, for example: abcdefghij0123456789abcdefghij01, and then transmits the sell code to the transaction control unit. It is particularly noted that the stock selling identifier (selling code) is only sent to the trading control unit and stored in the trading control unit, but not sent to the user, that is, the user does not have the possibility of obtaining the stock selling identifier (selling code), so that the user can be ensured not to actively carry out selling operation, and the phenomenon that the stock earnings are greatly influenced due to the emotion of people or working time and the like can be avoided, thereby ensuring higher winning rate and earnings of the user.
S400: the trading control unit generates a stock selling trading rule according to the stock buying request, monitors the price change of the stock in real time, generates a stock selling instruction when the real-time price of the stock meets the stock selling trading rule, and sends the stock selling instruction and the stock selling identification to a trading server;
it should be further noted that the trading server only performs signal transmission with the trading control unit, and does not receive the stock selling instruction sent by the user, so that the possibility that the user actively performs selling operation is eliminated from the system architecture design, and further, the greater influence on the stock profit caused by the emotion of people or working time and other reasons is avoided, thereby ensuring the higher winning rate and profit of the user.
Further, the stock buying request may include a balance limit parameter and a loss limit parameter, and the trading control unit generates the stock selling trading rule according to the balance limit parameter and the loss limit parameter, for example, the balance limit parameter may be set to be the stock buying price + 10%, and the loss limit parameter may be the stock buying price-10%; that is, the reserve price is 110% of the stock purchase price, and the stop-loss price is 90% of the stock purchase price, so that when the real-time price of the stock reaches the reserve/stop-loss price, a stock selling instruction is immediately generated.
S500: and the trading server verifies the stock selling identifier and executes a stock selling instruction after the verification is successful.
Further, after completing one automatic stock selling period, the automatic stock trading method may further include the steps of: and sending the trading information of the stocks to the user for the user to look up or determine whether to trade the stocks.
Example two
Fig. 2 is a schematic structural diagram of an automatic stock trading system according to an embodiment of the present invention, referring to fig. 2, the automatic stock trading system includes a trading control unit and a trading server; wherein,
the trading control unit receives a stock buying pre-request input by a user, sends the stock buying pre-request to a trading server, and sends a stock buying identifier returned by the trading server to the user;
the trading control unit receives a stock buying request and a stock buying identifier input by a user and sends the stock buying request and the stock buying identifier to the trading server;
the trading server receives the stock buying request and the stock buying identification, verifies the stock buying identification, executes buying operation after successful verification and generates a stock selling identification, and sends the stock selling identification to a trading control unit;
the trading control unit generates a stock selling trading rule according to the stock buying request, monitors the price change of the stock in real time, generates a stock selling instruction when the real-time price of the stock meets the stock selling trading rule, and sends the stock selling instruction and the stock selling identification to a trading server;
and the trading server verifies the stock selling identifier and executes a stock selling instruction after the verification is successful.
Further, the trading server does not receive a stock selling instruction sent by the user.
Further, the trading server generates a stock buying identifier according to the stock buying pre-request, wherein the stock buying identifier is a buying code, and the buying code comprises a character string generated by a random algorithm or an encryption algorithm.
Further, the stock buying identification has an effective usage time, and if the stock buying identification is used within the effective usage time or is not used beyond the effective usage time, the stock buying identification is invalid.
Further, the trading server generates the stock selling identifier according to the stock buying request and the stock buying identifier.
Further, the stock selling identification is generated by adopting a hash algorithm.
Further, the stock buying request comprises a filling limit parameter and a loss limit parameter, and the trading control unit generates the stock selling trading rule according to the filling limit parameter and the loss limit parameter.
It should be noted that the stock automatic trading system of this embodiment is basically consistent with the stock automatic trading method of the previous embodiment in working process, and the functions of the trading control unit and the trading server are correspondingly consistent, which is not described herein again.
Compared with the prior art, the invention has the following advantages:
the automatic stock trading method and the automatic stock trading system avoid the reasons of human emotion or working time and the like, and reduce the influence caused by untimely filling or loss stopping, thereby ensuring higher winning rate and income of users;
in addition, after buying the stocks, the user can reduce the manual participation and does not need to stare at the stock in real time, and the stock automatic trading method and the stock automatic trading system can finish the selling of the stocks;
in addition, the invention can also send the trading information of the stock to the user after finishing one automatic stock selling period, so that the user can determine whether to carry out the next stock trading according to the actual situation.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or 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 be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present 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 functions, if implemented in the form of software functional units 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 may be embodied in the form of a software product, which is stored in a storage medium and includes 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 storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An automatic stock trading method comprises the following steps:
s100: the trading control unit receives a stock buying pre-request input by a user, sends the stock buying pre-request to a trading server, and sends a stock buying identifier returned by the trading server to the user;
s200: the trading control unit receives a stock buying request and a stock buying identifier input by a user and sends the stock buying request and the stock buying identifier to the trading server;
s300: the trading server receives the stock buying request and the stock buying identification, verifies the stock buying identification, executes buying operation after successful verification and generates a stock selling identification, and sends the stock selling identification to a trading control unit;
s400: the trading control unit generates a stock selling trading rule according to the stock buying request, monitors the price change of the stock in real time, generates a stock selling instruction when the real-time price of the stock meets the stock selling trading rule, and sends the stock selling instruction and the stock selling identification to a trading server;
s500: and the trading server verifies the stock selling identifier and executes a stock selling instruction after the verification is successful.
2. The automatic stock trading method of claim 1, wherein the trading server does not receive a stock selling instruction from a user.
3. The method of claim 1, wherein the trading server generates a stock buy identifier according to the stock buy pre-request, the stock buy identifier is a buy code, and the buy code comprises a string generated by a random algorithm or an encryption algorithm.
4. The automatic stock trading method of claim 1, wherein the stock buy mark has an effective usage time, and if the stock buy mark is used within the effective usage time or is not used beyond the effective usage time, the stock buy mark is invalidated.
5. The method of claim 1, wherein the trading server generates the stock selling label according to the stock buying request and the stock buying label in step S300.
6. The method of claim 5, wherein the stock selling identification is generated using a hash algorithm.
7. An automatic stock trading method according to any one of claims 1 to 6, wherein the stock buy request includes a filling parameter and a loss parameter, and the trading control unit generates the stock sell trading rule based on the filling parameter and the loss parameter.
8. An automatic stock trading system comprises a trading control unit and a trading server; wherein,
the trading control unit receives a stock buying pre-request input by a user, sends the stock buying pre-request to a trading server, and sends a stock buying identifier returned by the trading server to the user;
the trading control unit receives a stock buying request and a stock buying identifier input by a user and sends the stock buying request and the stock buying identifier to the trading server;
the trading server receives the stock buying request and the stock buying identification, verifies the stock buying identification, executes buying operation after successful verification and generates a stock selling identification, and sends the stock selling identification to a trading control unit;
the trading control unit generates a stock selling trading rule according to the stock buying request, monitors the price change of the stock in real time, generates a stock selling instruction when the real-time price of the stock meets the stock selling trading rule, and sends the stock selling instruction and the stock selling identification to a trading server;
and the trading server verifies the stock selling identifier and executes a stock selling instruction after the verification is successful.
9. The automated stock trading system of claim 8, wherein the trading server does not receive stock selling instructions from the user.
10. The automatic stock trading system of any one of claims 8 to 9, wherein the trading server generates the stock selling identifier from the stock buy request and the stock buy identifier.
CN202010349243.1A 2020-04-28 2020-04-28 Automatic stock trading method and system Pending CN111539824A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010349243.1A CN111539824A (en) 2020-04-28 2020-04-28 Automatic stock trading method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010349243.1A CN111539824A (en) 2020-04-28 2020-04-28 Automatic stock trading method and system

Publications (1)

Publication Number Publication Date
CN111539824A true CN111539824A (en) 2020-08-14

Family

ID=71975836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010349243.1A Pending CN111539824A (en) 2020-04-28 2020-04-28 Automatic stock trading method and system

Country Status (1)

Country Link
CN (1) CN111539824A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112529705A (en) * 2020-12-04 2021-03-19 深圳市富途网络科技有限公司 Method for processing orders of port stocks and related products
CN112669148A (en) * 2020-12-22 2021-04-16 深圳市富途网络科技有限公司 Order processing method and device
CN113781219A (en) * 2021-09-06 2021-12-10 上海卡方信息科技有限公司 Real-time algorithm trading system and method in stock trading process

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112529705A (en) * 2020-12-04 2021-03-19 深圳市富途网络科技有限公司 Method for processing orders of port stocks and related products
CN112669148A (en) * 2020-12-22 2021-04-16 深圳市富途网络科技有限公司 Order processing method and device
CN113781219A (en) * 2021-09-06 2021-12-10 上海卡方信息科技有限公司 Real-time algorithm trading system and method in stock trading process

Similar Documents

Publication Publication Date Title
CN111539824A (en) Automatic stock trading method and system
TW561381B (en) Activity management method
CN105531730A (en) Systems, methods, and computer program products for enabling instrument credentials
CN103262114B (en) Stock jobbery analog systems
JP6818061B2 (en) Computer image processing methods and systems for displaying image objects or text in a betting environment
AU2017339721A1 (en) System and method for reverse sealed bid auctions
US8777756B2 (en) Server device, non-transitory server device-readable storage medium, and game system
KR20190120474A (en) Transaction processing method and apparatus thereof
JPWO2004003805A1 (en) Point processing apparatus, point processing method, and program for causing computer to execute the method
JP2023112157A (en) Prize providing device, prize providing system, prize selling method and prize providing program
JP6868603B2 (en) Customer management system
JP2021043620A (en) Information processing device and program
JP7471501B1 (en) Information processing device and information processing method
JP7507834B2 (en) Trade management program, trade management method, and trade management system
KR20190101078A (en) Goods transaction backup system using virtual money
US20100070356A1 (en) Method and system of sales promotion
JP7467018B2 (en) Information processing device and information processing method
KR102148334B1 (en) A device for electrocally acquiring goods through a bid game and a method for acquiring goods through a bid game
JP7201866B1 (en) Information processing device and information processing method
WO2020031316A1 (en) Stadium seat sharing system, method, and program
KR102100617B1 (en) Rewards managing system
AU2010200519A1 (en) Methods and systems for sales promotion
JP2010092281A (en) Service point management system, method, and program
EP1394712A1 (en) Point service system
JP2008305231A (en) Program for financial product trade verification system, recording medium for financial product trade verification system, financial product trade verification device, financial product trade verification system, and management and operation device in financial product trade verification system

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200814