CN112200672B - Intelligent contract processing method - Google Patents

Intelligent contract processing method Download PDF

Info

Publication number
CN112200672B
CN112200672B CN202011055321.3A CN202011055321A CN112200672B CN 112200672 B CN112200672 B CN 112200672B CN 202011055321 A CN202011055321 A CN 202011055321A CN 112200672 B CN112200672 B CN 112200672B
Authority
CN
China
Prior art keywords
contract
processing
intelligent contract
transaction
intelligent
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
CN202011055321.3A
Other languages
Chinese (zh)
Other versions
CN112200672A (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.)
Shanghai Yipai Technology Co ltd
Original Assignee
Shanghai Yipai 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 Shanghai Yipai Technology Co ltd filed Critical Shanghai Yipai Technology Co ltd
Priority to CN202011055321.3A priority Critical patent/CN112200672B/en
Publication of CN112200672A publication Critical patent/CN112200672A/en
Application granted granted Critical
Publication of CN112200672B publication Critical patent/CN112200672B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/2455Query execution
    • G06F16/24564Applying rules; Deductive queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an intelligent contract processing method, which belongs to the field of finance, and comprises the following steps: receiving an intelligent contract created by a user client, wherein the intelligent contract comprises a plurality of single contracts, and each single contract comprises contract parameters; responding to a processing instruction sent by a user client, and acquiring market data of contract parameters of each single contract in the intelligent contract; and processing the plurality of single contracts in the intelligent contract according to the market data of the contract parameters of each single contract and the processing rules pre-configured in the intelligent contract. The invention can be used for processing a plurality of single contracts simultaneously and carrying out operations such as trading, index analysis and the like on the single contracts, thereby not only reducing the operation steps of the user and the operation time, but also not increasing the compiling difficulty of a plurality of single contract strategies.

Description

Intelligent contract processing method
Technical Field
The invention relates to the field of finance, in particular to an intelligent contract processing method.
Background
The trading contract refers to a trading contract taking a financial derivative product as an option variety, for example, an option trading contract is an option, for example, when a stock is built in the option trading, a position held after buying the option contract is called a multi-position, which is called a multi-position for short; the position held after selling the equity contract is called the empty position, which is called the empty position for short. A user trading multiple contracts simultaneously to generate multiple positions may be referred to as a multi-legged trade. Generally, when a user conducts an equity transaction, a transaction strategy is formed by adopting a multi-leg transaction mode.
As the financial market matures more and more, traders become more specialized, the mathematical models used become more and more complex, and higher demands are made on the functionality of the trading system. However, current mainstream trading software only deals with a single contract, price difference, price ratio or butterfly arbitrage contract, looks up real-time market conditions, K-line graphs, time-sharing graphs and the like, but hardly meets some personalized requirements, and especially cannot analyze and deal with index contracts belonging to the current mainstream trading software by combining some complex contracts like common contracts or by piecing together the individual index contracts.
Disclosure of Invention
The invention aims to provide an intelligent contract processing method, aiming at the problem that the operation process of a plurality of contracts in the prior art is time-consuming and labor-consuming.
In order to realize the purpose, the technical scheme of the invention is as follows:
an intelligent contract processing method comprises the following steps,
receiving an intelligent contract created by a user client, wherein the intelligent contract comprises a plurality of single contracts, and each single contract comprises contract parameters;
responding to a processing instruction sent by a user client, and acquiring market data of contract parameters of each single contract in the intelligent contract;
and processing a plurality of single contracts in the intelligent contract according to the market data of the contract parameters of each single contract and the processing rules configured in advance in the intelligent contract.
Preferably, the processing instruction is a transaction instruction, and the processing rule is a transaction rule.
Further, the method also comprises the transaction sequence of each single contract, and the step of acquiring market data of contract parameters of each single contract in the intelligent contract comprises,
and acquiring market data of contract parameters of each single contract in the intelligent contract according to the transaction sequence of each single contract.
Preferably, the step of processing the plurality of single contracts in the intelligent contract according to the market data of the contract parameters of each single contract and the processing rules configured in advance in the intelligent contract includes,
extracting a transaction rule configured in advance in the intelligent contract, and acquiring rule parameters of each single contract in the transaction rule configured in advance;
judging whether each single contract meets a trading condition according to the market data of the contract parameters of each single contract and the rule parameters of each single contract, and if so, entering the next step;
and sending the contract parameters and the trading rules of the single contracts meeting the trading conditions to a trading platform, and carrying out trading processing on the plurality of single contracts in the intelligent contract by the trading platform.
Further, the method comprises the following steps,
receiving transaction processing information sent by a transaction platform, and sending the transaction processing information to a user client;
wherein the transaction processing information includes a commission return and a deal return of each individual contract.
Further, when a plurality of single contracts in the intelligent contract are all committed, the step of receiving the transaction processing information sent by the transaction platform and sending the transaction processing information to the user client further comprises,
generating the return of the intelligent contract according to the return of the deal of each single contract in the intelligent contract and a return rule configured in advance in the intelligent contract, and sending the return of the deal of the intelligent contract to a user client.
Preferably, the processing instruction is a market analysis instruction, and the processing rule is a market analysis rule;
the step of processing the plurality of single contracts in the intelligent contract according to the market data of the contract parameters of each single contract and the processing rule pre-configured in the intelligent contract comprises the steps of,
extracting a market condition analysis rule configured in advance in the intelligent contract;
and generating the quotation of the intelligent contract according to the quotation data of the contract parameters of each single contract and a quotation analysis rule pre-configured in the intelligent contract.
Preferably, the processing instruction is an index analysis instruction, and the processing rule is an index calculation rule;
the step of processing the plurality of single contracts in the intelligent contract according to the market data of the contract parameters of each single contract and the processing rule pre-configured in the intelligent contract comprises the steps of,
extracting index calculation rules configured in advance in the intelligent contract;
and obtaining the index of the intelligent contract according to the market data of the contract parameters of each single contract and the index calculation rule pre-configured in the intelligent contract.
In another aspect, the present invention provides an intelligent contract processing apparatus, comprising,
the receiving module is used for receiving the intelligent contract sent by the user client;
the acquisition module is used for responding to a processing instruction sent by a user client and acquiring market data of contract parameters of each single contract in the intelligent contract;
the extraction module is used for extracting a pre-configured processing rule from the intelligent contract;
and the processing module is used for processing the plurality of single contracts in the intelligent contract according to the market data of the contract parameters of the single contracts and the processing rules configured in advance in the intelligent contract.
Preferably, the processing instruction is a transaction instruction, and the processing rule is a transaction rule; the processing module comprises a processing module and a control module,
the analysis unit is used for analyzing rule parameters from the transaction rules;
the judgment unit is used for judging whether each single contract meets transaction conditions or not according to market data of contract parameters of each single contract and rule parameters of each single contract;
and the trading unit is used for sending the contract parameters and the trading rules of the single contracts meeting the trading conditions to a trading platform, and the trading platform carries out trading processing on the plurality of single contracts in the intelligent contract.
By adopting the technical scheme, the plurality of single contracts are integrated into the intelligent contract, and the intelligent contract is configured with the processing rule, so that the server can process the plurality of single contracts integrated in the intelligent contract respectively according to the processing rule and the market data of each single contract, thereby saving the trouble of single processing and saving time and energy.
Drawings
FIG. 1 is a schematic diagram of an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of an intelligent contract processing method;
FIG. 3 is a flowchart of a second embodiment of the intelligent contract processing method of the present invention;
FIG. 4 is a flowchart of a third method of an intelligent contract processing method according to an embodiment of the present invention;
FIG. 5 is a flowchart of a fourth method of an intelligent contract processing method according to the present invention;
FIG. 6 is a schematic diagram of an intelligent contract processing apparatus of the present invention;
FIG. 7 is a block diagram of an intelligent contract processing apparatus according to the present invention;
fig. 8 is a schematic structural diagram of a computer-readable storage medium.
Detailed Description
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings. It should be noted that the description of the embodiments is provided to help understanding of the present invention, and is not intended to limit the present invention. In addition, the technical features involved in the respective embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
It should be noted that, in the description of the present invention, the terms "upper", "lower", "left", "right", "front", "rear", and the like indicate orientations or positional relationships that are used for explaining structures of the present invention based on the drawings, and are only for convenience of describing the present invention, but do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
In the technical scheme, the terms "first" and "second" are only used for referring to the same or similar structures or corresponding structures with similar functions, and are not used for ranking the importance of the structures, or comparing the sizes or other meanings.
In addition, unless expressly stated or limited otherwise, the terms "mounted" and "connected" are to be construed broadly, e.g., the connection may be a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two structures can be directly connected or indirectly connected through an intermediate medium, and the two structures can be communicated with each other. To those skilled in the art, the specific meanings of the above terms in the present invention can be understood in light of the present general concepts, in connection with the specific context of the scheme.
As shown in fig. 1, a specific implementation scenario of the present invention is shown, which includes a user client 100, a server 200, and a plurality of processing platforms 300. The first client 100 and the server 200, and the server 200 and the processing platform 300 are connected through a network 400. The first client 100 may be, but is not limited to, any human-computer interaction electronic product capable of interacting with a user, such as: smart phones, tablet computers, notebook computers, and the like. The server 200 and the processing platform 300 may be, but are not limited to, an electronic device capable of automatically performing numerical calculation and information processing according to instructions set or stored in an implementation manner, and hardware thereof includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like; server 200 and processing platform 300 may also be a desktop computer, a network mainframe, a single network server, a cluster of multiple network servers, or a cloud of multiple servers; here, the Cloud is composed of a large number of computers or web servers based on Cloud computing (Cloud computing), which is one of distributed computing, a virtual supercomputer consisting of a group of loosely coupled computers. Network 400 may include, but is not limited to, the internet, a wide area network, a metropolitan area network, a VPN network, a wireless Ad Hoc network (Ad Hoc network), etc., among others.
Example one
In this embodiment, a specific description is given of the intelligent contract processing method in this application with reference to a specific implementation scenario shown in fig. 1.
An intelligent contract processing method, as shown in fig. 2, includes the following steps,
step S102, receiving an intelligent contract created by a user client, wherein the intelligent contract comprises a plurality of single contracts, and each single contract comprises contract parameters;
in the stock exchange market, traders need to trade stocks through contracts, each single contract comprises a certain number of contract parameters, and the contract parameters can comprise contract codes for identification, trading quantity, trading direction, trading price and other information, and the stock right is circulated among the traders through trading of the single contracts. Traditionally, traders need to trade on an action contract-by-action contract basis, or stock index analysis, policy making, and the like. In the embodiment, the intelligent contracts are created to assemble a plurality of single contracts, so that the plurality of single contracts can be processed in one operation.
Step S104, responding to a processing instruction sent by a user client, and acquiring market data of contract parameters of each single contract in the intelligent contract;
when the server receives a processing instruction sent by the user client, the server needs to process the received intelligent contract, and when the intelligent contract is processed, a basis is needed, and the specific market data of the contract parameters in each single contract is usually obtained from an external processing platform. Taking the transaction price as an example, when the server processes the intelligent contract, the server needs to know the transaction price of each single contract at the current time and possibly the transaction price in the historical time period of each single contract, so that corresponding processing is performed according to the transaction prices at different times.
And step S106, processing the plurality of single contracts in the intelligent contract according to the market data of the contract parameters of each single contract and the processing rules configured in advance in the intelligent contract.
On the basis of acquiring market data of contract parameters of each single contract, the server only needs to know how to process, namely, after acquiring processing rules of each single contract in the intelligent contract, the server can correspondingly process a plurality of single contracts in the intelligent contract. Typically, each single contract is configured with independent processing rules, and the processing rules are pre-configured by the user client and packaged in a smart contract.
The user client side can operate the intelligent contract once, the server can process a plurality of single contracts once according to the method steps, the user client side only needs to configure the single contracts needing to be operated and the corresponding processing rules, then the processing process can be submitted to the server, the server executes complex and tedious processing work of the plurality of single contracts, and the workload of the user client side is greatly reduced.
Example two
In this embodiment, taking a processing instruction as a transaction instruction and a processing rule as a transaction rule as an example, the intelligent contract processing method in the present application is further described in detail, as shown in fig. 3, including the following steps:
step S202, receiving an intelligent contract created by a user client, wherein the intelligent contract comprises a plurality of single contracts, and the single contracts comprise contract parameters;
in the stock exchange market, traders need to trade stocks through contracts, each single contract comprises a certain number of contract parameters, the contract parameters can comprise contract codes, trade quantity, buying and selling directions, trade prices, trade money amount and other information, and the circulation of equity among the traders is realized through the trading of the single contracts. Traditionally, traders need to trade by operating order contracts, or stock index analysis, policy making, etc. on a case-by-case basis. In the embodiment, the intelligent contracts are created to assemble a plurality of single contracts, so that the transaction of the plurality of single contracts can be realized in one operation.
Step S204, in response to a transaction instruction sent by a user client, acquiring market data of contract parameters of each single contract in the intelligent contract;
when a server receives a transaction instruction sent by a user client, the server needs to perform transaction on the received intelligent contract, when the transaction needs to be based, specific market data of contract parameters in each single contract is obtained from an external transaction platform according to the basis, and the market data not only comprises real-time market data, but also comprises historical market data. Taking the transaction price in the contract parameters as an example, according to a simple transaction mode, when the server transacts the intelligent contract, only knowing the current real-time market data, the server can know whether the current transaction price meets the transaction condition, thereby executing or not executing the transaction; the historical market data can be used as a reference for more complex transaction modes.
Step S206, extracting the pre-configured transaction rules in the intelligent contract and obtaining the rule parameters of each single contract in the pre-configured transaction rules;
the trading rules are composed of a series of rule parameters and used for guiding the server to trade each single contract according to the rule parameters, and corresponding rule parameters are created in what way the user client wants to trade. For example, if the user client wants to buy a single contract C of B quantity at a trading price a, the rule parameters include the trading price, the value of which is a; the buying and selling directions, the value of which is the buying; the transaction amount is B; the rule parameters match the single contract C. The server carries out specific transaction according to the rule parameters, and the aim of buying the single contracts C with the quantity of B at the transaction price A is fulfilled.
Step S208, judging whether each single contract meets the trading condition according to the market data of the contract parameter of each single contract and the rule parameter of each single contract, if so, entering the next step;
the server needs to know real-time market data of stocks corresponding to a single contract C acquired from a trading platform in real time, compare real-time trading prices and buying and selling directions in the real-time market data with trading prices A and buying (rule parameters) respectively, and judge that a trading condition is met when a trader sells the stocks corresponding to the single contract C at the trading price A in the current real-time market data, and then carry out the next step; otherwise, if the contract data does not satisfy the contract data, the market data of the contract parameters of each single contract is continuously acquired and compared, that is, step S206 is executed.
It is understood that the transaction rules and rule parameters are not limited to the above examples, and for example, the transaction rules may be set as a timed transaction, and may be bought or sold at a current transaction price when the specified time is reached; the rule parameters can also comprise the accumulated transaction amount on the day, and the transaction can be carried out only when the accumulated transaction amount on the day reaches a certain amount; and so on.
Step S210, sending the contract parameters and the trading rules of the single contracts meeting the trading conditions to a trading platform, and carrying out trading processing on a plurality of single contracts in the intelligent contract by the trading platform;
it can be understood that the server in the present invention does not directly facilitate the trading of the plurality of single contracts, and after the executable trading is determined, the server sends the contract parameters of the single contracts satisfying the trading conditions and the corresponding trading rules to the trading platform, and the trading platform carries out trading processing on the plurality of single contracts in the intelligent contract, that is, the single contracts C with the quantity of B are bought at the trading price a.
Therefore, the intelligent contract which is created by the user client and comprises the plurality of single contracts is processed by the server and then is executed for transaction by the transaction platform, so that the user client can complete the transaction processing of the plurality of single contracts by one-time operation, the time and the labor are greatly saved, and the configuration of a transaction strategy by the user is facilitated.
Step S212, transaction processing information sent by the transaction platform is received and sent to the user client, wherein the transaction processing information comprises entrustment return and deal return of each single contract.
Generally, after receiving the information for trading the contract, the trading platform sends an entrusting reward for receiving the entrusting to the requester, i.e. the server in this embodiment, and also sends a return for trading to the server when the contract has been committed.
The traditional single contract return logic cannot process the return logic of a plurality of combined single contracts, which causes the complexity of the strategy to be increased when the strategy is written and is easy to make mistakes.
Therefore, when a plurality of single contracts in the intelligent contract are all agreed, the step S212 of receiving the transaction processing information sent by the trading platform and sending the transaction processing information to the user client specifically includes the steps of:
generating a return of the intelligent contract according to the return of each single contract in the intelligent contract and a return rule configured in advance in the intelligent contract, and sending the return of the intelligent contract to the user client.
It can be understood that the return of deal of each single contract contains the same type of data, the difference is only that the numerical values are different, and sending the return of deal of each single contract item by item to the user client results in a complicated strategy compiling rule, so that a weight coefficient is configured for each single contract in the return rule, so that the numerical values of one type of data in multiple return of deal can be merged into a total value, and the total values of various types of data are merged into a return of deal, i.e., the return of deal of an intelligent contract, so that the user client can compile the strategy according to the data information in the return of deal of the intelligent contract, which is consistent with the return compiling strategy logic of the traditional single contract, and does not affect the work of strategy research and development personnel.
In addition, it can be understood that when there are a plurality of single contracts in the intelligent contract, the transaction sequence is a non-negligible problem, and therefore in the method steps of the embodiment, the intelligent contract is configured to include the transaction sequence of each single contract. In step S204, the server obtains market data of the contract parameters of each individual contract in the intelligent contract according to the transaction sequence of each individual contract.
Generally, the transaction sequence of a plurality of single contracts is of the following types:
(1) Appointing a single contract to trade first, and then trading other single contracts after the single contract is committed;
(2) Trading is carried out according to the single contract with small trading volume, and trading of other single contracts is carried out after the single contract is traded;
(3) The trading of all the single contracts is performed simultaneously.
EXAMPLE III
In this embodiment, a processing instruction is taken as an index analysis instruction, and a processing rule is taken as an index calculation rule as an example, to further describe in detail the intelligent contract processing method in the present application, as shown in fig. 4, the method includes the following steps:
step S302, receiving an intelligent contract created by a user client, wherein the intelligent contract comprises a plurality of single contracts, and the single contracts comprise contract parameters;
in the stock exchange market, traders need to trade stocks through contracts, each single contract comprises a certain number of contract parameters, the contract parameters can comprise contract codes, trade quantity, buying and selling directions, trade prices, trade money amount and other information, and the circulation of equity among the traders is realized through the trading of the single contracts.
However, it is of interest to the practitioners and users how to conduct transactions at a reasonable point in time, maximizing revenue, and avoiding risk of transactions. In the prior art, a user can only analyze data such as large disc index and trend chart, industry index and trend chart, points of single stock index and trend chart and the like. When the number of stocks concerned by the user is large and the number of single contracts is large, the user is difficult to clearly master the trading situation, and misjudgment is easy to occur, so that economic loss is caused.
At this time, the user needs to be able to quickly obtain the points and trend chart of the multiple selected single contracts, and when there are multiple associated single contracts, the index of the set formed by the multiple associated single contracts is also needed to provide more transaction decision data for the user.
Step S304, responding to an index analysis instruction sent by a user client, and acquiring market data of contract parameters of each single contract in the intelligent contract;
the data such as the index, the points, and the trend chart of the single contracts mentioned in step S302 are used to obtain market data that cannot be separated from the contract parameters of each single contract, so the server needs to obtain relevant data from the trading platform, and the market data also includes real-time market data at the current time and historical market data at a previous time.
And step S306, calculating and analyzing a plurality of single contracts in the intelligent contract according to the market data of the contract parameters of each single contract and the index calculation rule configured in advance in the intelligent contract to obtain the indexes of the intelligent contract.
The index calculation rule may depend on calculation methods such as a relative method, a synthetic method, and a weighting method in the prior art, which is not described in this embodiment again. The index calculation rule is created by the user client, and comprises part or all of the single contracts in the intelligent contracts, and a set formed by the part or all of the single contracts in the intelligent contracts is obtained through market data of contract parameters of each single contract and is used as an integral index, so that the user can conveniently judge the integral trend of the single contracts and adjust the trading strategy according to the integral trend.
It can be understood that the method provided by the embodiment enables the index constructed on the basis of the plurality of single contracts to be obtained after the plurality of single contracts are processed, so that the user can quickly and accurately obtain the overall trend performance of the plurality of single contracts and support a correct trading strategy.
Example four
In this embodiment, a processing instruction is taken as a market analysis instruction, and a processing rule is taken as an example, to further describe in detail the intelligent contract processing method in the present application, as shown in fig. 5, the method includes the following steps:
step S402, receiving an intelligent contract created by a user client, wherein the intelligent contract comprises a plurality of single contracts, and the single contracts comprise contract parameters;
in the stock exchange market, traders need to trade stocks through contracts, each single contract comprises a certain number of contract parameters, the contract parameters can comprise contract codes, trade quantity, buying and selling directions, trade prices, trade money amount and other information, and the circulation of equity among the traders is realized through the trading of the single contracts.
However, it is of interest to the practitioners and users how to conduct transactions at a reasonable point in time, maximizing revenue, and avoiding risk of transactions. In the prior art, a user can only use limited data, for example, various types of data trend graphs, such as a K-line graph. However, when the number of stocks concerned by the user is large and the number of single contracts is large, the user can only check the K-line graph of the stocks corresponding to one single contract each time, and the user cannot clearly grasp the selected single contracts on the whole, so that misjudgment is easy to occur, and economic loss is caused.
Step S404, responding to a market analysis instruction sent by a user client, and acquiring market data of contract parameters of each single contract in the intelligent contract;
the server acquires market data from the trading platform, wherein the market data also comprises real-time market data of the current time and historical market data in a previous period.
Step S406, according to the market data of the contract parameters of each single contract and the market analysis rule configured in advance in the intelligent contract, calculating and analyzing the plurality of single contracts in the intelligent contract to obtain the market of the intelligent contract.
It can be understood that the market data corresponding to each single contract contains the same type of data, and the differences are only numerical values, so that when a customer views the market data corresponding to each single contract one by one, data is disordered, and the market trend of a plurality of single contracts as a whole is difficult to obtain.
Therefore, in this embodiment, the market analysis rule configures a weight coefficient for each single contract, so that the numerical values of the same type of data in the market data of each single contract can be combined into a total value, and the total values of various types of data can be combined into a market, that is, the market of the intelligent contract, so that the user client can know the market of an integrated intelligent contract composed of a plurality of single contracts according to the data information in the market of the intelligent contract, thereby quickly knowing the overall market trend of the plurality of single contracts in the intelligent contract, and facilitating judgment and transaction.
EXAMPLE five
An intelligent contract processing apparatus, as shown in fig. 6, includes,
the receiving module 51, the receiving module 51 is configured to receive an intelligent contract sent by a user client;
the obtaining module 52, the obtaining module 52 is configured to obtain market data of contract parameters of each single contract in the intelligent contract in response to a processing instruction sent by the user client;
the extraction module 53, the extraction module 53 is used for extracting the pre-configured processing rule from the intelligent contract;
and the processing module 54, wherein the processing module 54 is configured to process the plurality of single contracts in the intelligent contract according to the market data of the contract parameters of each single contract and the processing rules configured in advance in the intelligent contract.
In this embodiment, when the processing instruction is a transaction instruction and the processing rule is a transaction rule, the processing module 44 includes,
the analysis unit 541, the analysis unit 541 is used for analyzing rule parameters from the transaction rules;
the judging unit 542 is configured to judge whether each single contract meets the transaction condition according to the market data of the contract parameter of each single contract and the rule parameter of each single contract;
and the trading unit 543 is used for sending the contract parameters and the trading rules of the single contracts meeting the trading conditions to the trading platform, and the trading platform carries out trading processing on the plurality of single contracts in the intelligent contract.
Example six
An intelligent contract processing apparatus, as shown in fig. 7, includes at least one memory 61, at least one processor 62, and a bus 63 connecting different platform systems.
Wherein the memory 61 stores a computer program that can be executed by the processor 62 such that the processor 62 performs the steps of the method described above in this specification. For example, a processor may perform the steps as shown in fig. 2-5.
In this embodiment, the memory 61 may include readable media in the form of volatile memory, such as Random Access Memory (RAM) 611 and/or cache memory 612, and may further include Read Only Memory (ROM) 613.
The memory may also include a program/utility 614 having a set (at least one) of program modules 615, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment.
Bus 63 may be a bus representing one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
The multi-client quality test result sharing device of the present invention may also communicate with one or more external devices 65, such as a keyboard, pointing device, bluetooth device, etc., and may also communicate with one or more devices capable of interacting with the multi-client quality test result sharing device, and/or with any device (e.g., router, modem, etc.) that enables the device to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 66. Also, devices with multiple clients sharing quality detection results may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via network adapter 64. The network adapter 64 may communicate with other modules of the device that share quality detection results with multiple clients via the bus 63. It should be appreciated that although not shown in FIG. 7, other hardware and/or software modules may also be used in conjunction with a device in which multiple clients share quality detection results, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAI D systems, tape drives, and data backup storage platforms, to name a few.
EXAMPLE seven
A computer-readable storage medium storing a program which, when executed, implements the steps of the above-described method. Fig. 8 depicts a program product 7 for implementing the above method according to an embodiment of the invention, which may employ a portable compact disc read only memory (CD-ROM) and comprise program code and may be run on a terminal device, such as a personal computer. However, the program product 7 of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. Program product 7 may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. It will be apparent to those skilled in the art that various changes, modifications, substitutions and alterations can be made in the embodiments without departing from the principles and spirit of the invention, and these embodiments are still within the scope of the invention.

Claims (4)

1. An intelligent contract processing method is characterized in that: comprises the following steps of (a) carrying out,
receiving an intelligent contract created by a user client, wherein the intelligent contract comprises a plurality of single contracts, and each single contract comprises contract parameters;
responding to a processing instruction sent by a user client, and acquiring market data of contract parameters of each single contract in the intelligent contract;
processing a plurality of single contracts in the intelligent contracts according to market data of contract parameters of each single contract and processing rules pre-configured in the intelligent contracts;
when the processing instruction is a transaction instruction and the processing rule is a transaction rule, the step of processing a plurality of single contracts in the intelligent contracts according to the market data of the contract parameters of each single contract and the processing rule pre-configured in the intelligent contracts comprises the following steps:
extracting a transaction rule configured in advance in the intelligent contract, and acquiring rule parameters of each single contract in the transaction rule configured in advance;
judging whether each single contract meets a trading condition according to the market data of the contract parameters of each single contract and the rule parameters of each single contract, and if so, entering the next step;
sending contract parameters and transaction rules of the single contracts meeting the transaction conditions to a transaction platform, and performing transaction processing on a plurality of single contracts in the intelligent contract by the transaction platform;
receiving transaction processing information sent by a transaction platform and sending the transaction processing information to a user client, wherein the transaction processing information comprises entrustment return and deal return of each single contract, and when all the single contracts in the intelligent contract are dealt, the steps of receiving the transaction processing information sent by the transaction platform and sending the transaction processing information to the user client further comprise: generating a return of transaction of the intelligent contract according to the return of transaction of each single contract in the intelligent contract and a return rule configured in advance in the intelligent contract, and sending the return of transaction of the intelligent contract to a user client;
the reporting rule configures a weight coefficient for each single contract, so that the numerical values of one type of data in multiple deal returns are combined into a total value, the total values of various types of data are combined into a deal return, namely the deal return of the intelligent contract, and the user client side carries out policy writing according to data information in the deal return of the intelligent contract.
2. The intelligent contract processing method according to claim 1, characterized in that: the trading sequence of each single contract is also included, and the step of acquiring market data of contract parameters of each single contract in the intelligent contract comprises the steps of,
and acquiring market data of contract parameters of each single contract in the intelligent contract according to the transaction sequence of each single contract.
3. The intelligent contract processing method of claim 1, wherein: when the processing instruction is a market analysis instruction and the processing rule is a market analysis rule, the step of processing the plurality of individual contracts in the intelligent contract according to the market data of the contract parameters of each individual contract and the processing rule pre-configured in the intelligent contract comprises:
extracting a market condition analysis rule configured in advance in the intelligent contract;
and generating the quotation of the intelligent contract according to the quotation data of the contract parameters of each single contract and a quotation analysis rule pre-configured in the intelligent contract.
4. The intelligent contract processing method according to claim 1, characterized in that: when the processing instruction is an index analysis instruction and the processing rule is an index calculation rule, the step of processing the plurality of single contracts in the intelligent contract according to the market data of the contract parameters of each single contract and the processing rule pre-configured in the intelligent contract comprises the following steps:
extracting index calculation rules configured in advance in the intelligent contract;
and obtaining the index of the intelligent contract according to the market data of the contract parameters of each single contract and the index calculation rule pre-configured in the intelligent contract.
CN202011055321.3A 2020-09-30 2020-09-30 Intelligent contract processing method Active CN112200672B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011055321.3A CN112200672B (en) 2020-09-30 2020-09-30 Intelligent contract processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011055321.3A CN112200672B (en) 2020-09-30 2020-09-30 Intelligent contract processing method

Publications (2)

Publication Number Publication Date
CN112200672A CN112200672A (en) 2021-01-08
CN112200672B true CN112200672B (en) 2023-03-17

Family

ID=74008166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011055321.3A Active CN112200672B (en) 2020-09-30 2020-09-30 Intelligent contract processing method

Country Status (1)

Country Link
CN (1) CN112200672B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108257000A (en) * 2018-02-26 2018-07-06 北京阿尔山金融科技有限公司 Intelligent contract realizes system, method and electronic equipment
CN109064327A (en) * 2018-06-29 2018-12-21 浙江超脑时空科技有限公司 A kind of intelligence contract processing method, device and equipment
CN110097359A (en) * 2018-01-29 2019-08-06 阿里巴巴集团控股有限公司 Generate the method and device of intelligent contract
CN110619576A (en) * 2018-06-19 2019-12-27 成都高新信息技术研究院 Decentralized supply chain B2B transaction method and system
CN110968437A (en) * 2019-11-27 2020-04-07 杭州趣链科技有限公司 Method, device, equipment and medium for parallel execution of single contract based on Java intelligent contract
WO2020140649A1 (en) * 2019-01-03 2020-07-09 深圳壹账通智能科技有限公司 Blockchain smart contract management method and apparatus, electronic device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110097359A (en) * 2018-01-29 2019-08-06 阿里巴巴集团控股有限公司 Generate the method and device of intelligent contract
CN108257000A (en) * 2018-02-26 2018-07-06 北京阿尔山金融科技有限公司 Intelligent contract realizes system, method and electronic equipment
CN110619576A (en) * 2018-06-19 2019-12-27 成都高新信息技术研究院 Decentralized supply chain B2B transaction method and system
CN109064327A (en) * 2018-06-29 2018-12-21 浙江超脑时空科技有限公司 A kind of intelligence contract processing method, device and equipment
WO2020140649A1 (en) * 2019-01-03 2020-07-09 深圳壹账通智能科技有限公司 Blockchain smart contract management method and apparatus, electronic device and storage medium
CN110968437A (en) * 2019-11-27 2020-04-07 杭州趣链科技有限公司 Method, device, equipment and medium for parallel execution of single contract based on Java intelligent contract

Also Published As

Publication number Publication date
CN112200672A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
US8229835B2 (en) Determination of implied orders in a trade matching system
US10019759B2 (en) Real-time probability determination based on technical indicators in a financial instrument environment
AU2008207752B2 (en) Algorithmic trading
US11841828B2 (en) Data conversion and distribution systems
CN113283671B (en) Method and device for predicting replenishment quantity, computer equipment and storage medium
NO20230189A1 (en) Environmental, social, and governance (esg) performance trends
Torii et al. Platform design for large-scale artificial market simulation and preliminary evaluation on the K computer
JP2024512076A (en) Asset class backed tokenization platform
CN112102099B (en) Policy data processing method and device, electronic equipment and storage medium
CN104321800A (en) Price target builder
CN112200672B (en) Intelligent contract processing method
US9852470B1 (en) Time period analysis tools for wealth management transactions
US20210103990A1 (en) Automated real time mortgage servicing and whole loan valuation
Hui et al. Research on simple moving average trading system based on SVM
US20220237694A1 (en) Price Superhighway
WO2020031199A1 (en) Method and system for valuation and forecasting for entities
US20160300304A1 (en) Platform for handling multilateral over the counter transactions
WO2008147512A1 (en) System and method for providing a mutual fund rating platform
US9665908B1 (en) Net worth analysis tools
JP2014191829A (en) Method and system for evaluating securities investment value and computer program product
CN118096390A (en) Microsecond-level risk calculation method and microsecond-level risk calculation device based on financial risk rules
KR20230144338A (en) Method and system for high frequency trading
KR20230144337A (en) Method and system for high frequency trading
US9846908B2 (en) Smart complete option strategy display
KR20230109235A (en) Methods, devices, and systems for providing investment and management consulting platform services

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