CN111402050A - Center-removing matching method and system based on block chain - Google Patents

Center-removing matching method and system based on block chain Download PDF

Info

Publication number
CN111402050A
CN111402050A CN202010167658.7A CN202010167658A CN111402050A CN 111402050 A CN111402050 A CN 111402050A CN 202010167658 A CN202010167658 A CN 202010167658A CN 111402050 A CN111402050 A CN 111402050A
Authority
CN
China
Prior art keywords
order
matching
purchase
orders
block chain
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
CN202010167658.7A
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 Value Internet Technology Co Ltd
Original Assignee
Beijing Value Internet 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 Value Internet Technology Co Ltd filed Critical Beijing Value Internet Technology Co Ltd
Priority to CN202010167658.7A priority Critical patent/CN111402050A/en
Publication of CN111402050A publication Critical patent/CN111402050A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Abstract

The invention belongs to the technical field of computer software, and particularly relates to a block chain-based center-removing matching method and system, which comprise the following steps: the matching server acquires the purchase order and the sale order from the block chain, carries out transaction matching on the purchase order and the sale order, and sends the matching order successfully matched to the block chain; the block chain verifies, calculates and deals the purchase order and the sale order according to the matched orders, records and stores the successfully traded orders, and simultaneously feeds back the traded orders to the matching server; and the matching server updates the trading disk information according to the trading orders fed back by the blockchain. The matching server of the platform matches the purchase order and the sale order, the successfully matched purchase order and sale order are verified, calculated and traded in the block chain, and the successfully traded trade order is recorded and stored, so that the trade information is prevented from being tampered, and the transparency, the safety and the credibility of the trade information are ensured.

Description

Center-removing matching method and system based on block chain
Technical Field
The invention belongs to the technical field of computer software, and particularly relates to a block chain-based center-removing matching method and system.
Background
Blockchains are a term of art in information technology. In essence, the system is a shared database, and the data or information stored in the shared database has the characteristics of 'unforgeability', 'whole-course trace', 'traceability', 'public transparency', 'collective maintenance', and the like. Based on the advantages of the block chain in many aspects, the existing block chain technology is applied to various industries.
In trading systems such as a mainstream digital asset exchange and a stock exchange, a centralized platform server is used for matching and order trading, and data related to trading is stored in the platform server, so that trading information is opaque, the trading information is easily tampered by people, and the safety and the credibility of the trading information cannot be ensured. And secondly, related data of the transaction is stored in a centralized single or multiple platform servers, and is easy to lose, damage and cannot be retrieved. Therefore, the technical scheme of the invention applies the block chain technology to the transaction system.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a center-removing matching method and system based on a block chain.
In a first aspect, the invention provides a block chain-based de-centering matching method, which comprises the following steps:
the matching server acquires the purchase order and the sale order from the block chain, carries out transaction matching on the purchase order and the sale order, and sends the matching order successfully matched to the block chain;
the block chain verifies, calculates and deals the purchase order and the sale order according to the matched orders, records and stores the successfully traded orders, and simultaneously feeds back the traded orders to the matching server;
and the matching server updates the trading disk information according to the trading orders fed back by the blockchain.
Preferably, the purchase order includes, but is not limited to, purchase order hash, purchase quantity, purchase price, and purchase order time;
the sales order includes, but is not limited to, a sales order hash, a quantity sold, a price sold, and a time sold;
the trade order information includes, but is not limited to, current buy orders, sell orders, and trade orders.
Preferably, the matching server sends the matching order to the block chain, and the matching order is the matching order which is obtained by the matching server after multiple signatures are carried out by the private key.
Preferably, the transaction match adopts a match algorithm; the matching algorithm comprises a buy matching algorithm and a sell matching algorithm.
Preferably, the buy-in matching algorithm and the sell-out matching algorithm both use a price-first and time-second matching principle.
In a second aspect, the invention provides a block chain-based de-centering matching system, which comprises a matching server and a block chain;
the matching server is used for acquiring the purchase order and the sale order from the block chain, matching the purchase order and the sale order and sending the matched order which is successfully matched to the block chain; the system is also used for updating trade disk information according to the trade orders fed back by the block chain;
and the block chain is used for verifying, calculating and trading the purchase order and the sale order according to the matched order, recording and storing the successfully traded trade order and simultaneously feeding back the trade order to the matching server.
Preferably, the purchase order includes, but is not limited to, purchase order hash, purchase quantity, purchase price, and purchase order time;
the sales order includes, but is not limited to, a sales order hash, a quantity sold, a price sold, and a time sold;
the trade order information includes, but is not limited to, current buy orders, sell orders, and trade orders.
Preferably, the matching server sends the matching order to the block chain, and the matching order is the matching order which is obtained by the matching server after multiple signatures are carried out by the private key.
Preferably, the transaction match adopts a match algorithm; the matching algorithm comprises a buy matching algorithm and a sell matching algorithm.
Preferably, the buy-in matching algorithm and the sell-out matching algorithm both use a price-first and time-second matching principle.
According to the technical scheme, the purchase orders and the sale orders are matched through the matching server of the platform, the successfully matched purchase orders and sale orders are verified, calculated and traded in the block chain, the successfully traded trade orders are recorded and stored, and the trade information is prevented from being tampered, so that the transparency, the safety and the credibility of the trade information are ensured.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
Fig. 1 is a flowchart of a block chain-based de-centering matching method in this embodiment;
FIG. 2 is a detailed flow chart of the buy-in matching algorithm of this embodiment;
fig. 3 is a specific flowchart of the selling matching algorithm in this embodiment.
Fig. 4 is a structural diagram of the block chain-based de-centering matching system in this embodiment.
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.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
The first embodiment is as follows:
the embodiment provides a block chain-based de-centering matching method, as shown in fig. 1, which includes the following steps:
s1, the matching server acquires the purchase order and the sales order from the blockchain, matches the purchase order and the sales order, and sends the matched order which is matched successfully to the blockchain;
s2, the blockchain verifies, calculates and deals the purchase order and the sales order according to the matched order, records and stores the successfully traded order, and feeds the traded order back to the matching server;
and S3, the matching server updates the trading disk information according to the trading orders fed back by the blockchain.
In this embodiment, when the user makes a purchase order or a sale order on the trading platform, the matching server obtains the purchase order and the sale order from the blockchain. The purchase order of the present embodiment includes, but is not limited to, purchase order hash, purchase quantity, purchase price, and purchase order time; the sales order includes, but is not limited to, a sales order hash, a quantity sold, a price sold, and a time sold; the trade order information includes, but is not limited to, current buy orders, sell orders, and trade orders.
In this embodiment, the matching server uses a matching algorithm to match the transactions, and the matching algorithm includes a buy matching algorithm and a sell matching algorithm. The purchase matching algorithm and the sell matching algorithm both adopt a matching principle of first price priority and second time priority. The user can obtain the maximum transaction amount by the matching principle of price priority and time priority. When a purchase order enters, a purchase matching algorithm is adopted, the purchase order is inquired in the order, and the purchase order is matched with the purchase order. When the purchase orders are matched with the sales orders, the sales orders are sequenced from low to high, the purchase order is matched with the sales order 1 with the lowest price, then the purchase order is matched with the sales order 2 with the lower price, and so on, when the purchase orders of a plurality of the sales orders are the same, the sales orders are matched according to the time sequence until the matching is successful.
Similarly, when a sales order enters, a sales matching algorithm is adopted to query the purchase order in the purchase order and match the sales order with the purchase order. When the sales orders are matched with the purchase orders, the purchase orders are sequenced from high to low in price, the sales orders are matched with the purchase order 1 with the highest price, then the sales orders are matched with the purchase orders 2 with higher prices, and the like, when the prices of a plurality of purchase orders are the same, the sales orders are matched according to the time sequence until the matching is successful.
And after the matching is successful, the matching order is sent to the blockchain, the blockchain verifies, calculates and deals the purchase order and the sale order in the matching order, the trading order is obtained after the trading is successful, the blockchain feeds the trading order back to the matching server, and the matching server updates the data after the trading is successful. One order may match and trade one or more orders, and one order may match and trade one or more orders.
In this embodiment, the matching order sent to the block chain by the matching server is a matching order which is obtained by the matching server after multiple signatures are performed by the private key, so that the security of data in the transmission process is improved.
The purchase matching algorithm of the embodiment, as shown in fig. 2, includes the following specific steps:
a1, acquiring a purchase order;
a2, judging whether a sales order exists, if yes, entering A4, and if not, entering A3;
a3, putting the purchase order into a purchase disk, and ending;
a4, acquiring a sales order from a sales order according to the principle of price priority and time priority;
a5, judging whether the purchase price of the purchase order is more than or equal to the sale price of the sale order, if so, entering A6, and if not, entering A3;
a6, judging whether the purchase quantity of the purchase order is less than or equal to the sale quantity of the sale order, if so, entering A7, and if not, entering A11;
a7, matching and trading the purchase order and the sale order successfully, and completely closing the purchase order;
a8, updating the information of the order in the order;
a9, updating trade disk information according to the trade order of the deal;
a10, pushing quotations, and ending;
a11, matching and trading the purchase order and the sale order successfully, and bargaining the purchase order part;
a12, updating the information of the order in the order;
a12, updating trade disk information according to the trade order of the deal; access to a10 and a 13;
a13, calculating the residual purchase quantity of the purchase order according to the quantity of the deal of the purchase order part, and entering A4.
In this embodiment, when the user buys an order, the price of the purchase order is greater than or equal to that of the sales order, and a deal can be made, and when the number of one sales order is insufficient, one purchase order needs to be made with a plurality of sales orders, and data updating is performed after the deal is made. When one order enters, the matching server judges whether the order exists in the order, if not, the order is put into the order to wait for the next matching, if a plurality of orders exist in the order, the orders are sorted according to the principle of price priority and time priority, and the sorted order 1 is obtained. If the buying price is more than or equal to the selling price 1, further comparing the buying quantity with the selling quantity; if the purchase quantity is less than or equal to the sale quantity, the purchase order is completely traded, and the information after the complete trading is updated; if the number of bought is larger than the number of sold, the bought order is only partially traded, the information after partial trading transaction is updated, and the number of bought which is not traded is calculated. And acquiring the ordered sales orders 2 again, matching and matching according to the mode, acquiring the ordered sales orders 3 from the order again if the sales orders and the sales orders 2 partially agree again, matching and matching according to the mode, and so on until all the sales orders agree.
The selling matching algorithm of the embodiment, as shown in fig. 3, includes the following specific steps:
b1, acquiring a sales order;
b2, judging whether a purchase order exists, if so, entering B4, and if not, entering B3;
b3, putting the order into the order, and ending;
b4, acquiring the purchase order from the purchase disk according to the principle of price priority and time priority;
b5, judging whether the selling price of the selling order is less than or equal to the buying price of the buying order, if so, entering B6, and if not, entering B3;
b6, judging whether the selling quantity of the selling order is less than or equal to the buying quantity of the buying order, if so, entering B7, and if not, entering B11;
b7, successfully matching and trading the sales order and the purchase order, and completely closing the sales order;
b8, updating the information of the purchase order in the purchase disk;
b9, updating trade disk information according to the trade order of the deal;
b10, pushing quotations, and ending;
b11, successfully matching and trading the sales order and the purchase order, and partially bargaining the sales order;
b12, updating the information of the purchase order in the purchase disk;
b12, updating trade disk information according to the trade order of the deal; access to B10 and B13;
and B13, calculating the residual selling quantity of the selling order according to the quantity of the partial bargaining of the selling order, and entering B4.
In this embodiment, when the user sells the order, the price of the selling order is less than or equal to the purchase order, and the transaction can be completed, and when the number of one purchase order is insufficient, one selling order needs to be completed with a plurality of purchase orders, and data updating is performed after the completion of the transaction. When a purchase order enters, the matching server judges whether the purchase order exists in the order, if not, the purchase order is put into the order, the next matching is waited, if a plurality of purchase orders exist in the order, the purchase orders are sequenced according to the principles of price priority and time priority, and the sequenced purchase orders 1 are obtained. If the selling price is less than or equal to the buying price, further comparing the selling quantity with the buying quantity; if the selling quantity is less than or equal to the buying quantity, the selling order is completely bargained, and the information after the complete bargaining transaction is updated; if the selling quantity is larger than the buying quantity, the selling order only has partial bargain, the information after partial bargain transaction is updated, and the remaining selling quantity without bargain is calculated. And acquiring the ordered purchase orders 2 again, matching and matching according to the mode, acquiring the ordered purchase orders 3 from the purchase tray again if the purchase orders partially deal with the purchase orders 2 again, matching and matching according to the mode, and so on until the purchase orders completely deal.
In summary, in the method of this embodiment, the matching server and the block chain store the purchase order, the sales order, the transaction and other information, the purchase order and the sales order are matched through the matching server of the platform, and the successfully matched purchase order and sales order are verified, calculated and transacted in the block chain. In the embodiment, a decentralized matching algorithm and data storage are adopted, the problem that centralized matching is not public is solved, each matched transaction order is recorded by using a block chain technology, and recording is performed on a chain, so that the public, transparent, safe, reliable and falsifiable transaction information is ensured.
Example two:
the embodiment provides a block chain-based de-centering matching system, as shown in fig. 4, including a matching server and a block chain;
the matching server is used for acquiring the purchase order and the sale order from the block chain, matching the purchase order and the sale order and sending the matched order which is successfully matched to the block chain; the system is also used for updating trade disk information according to the trade orders fed back by the block chain;
and the block chain is used for verifying, calculating and trading the purchase order and the sale order according to the matched order, recording and storing the successfully traded trade order and simultaneously feeding back the trade order to the matching server.
In this embodiment, when the user makes a purchase order or a sale order on the trading platform, the matching server obtains the purchase order and the sale order from the blockchain. The purchase order of the present embodiment includes, but is not limited to, purchase order hash, purchase quantity, purchase price, and purchase order time; the sales order includes, but is not limited to, a sales order hash, a quantity sold, a price sold, and a time sold; the trade order information includes, but is not limited to, current buy orders, sell orders, and trade orders.
In this embodiment, the matching server uses a matching algorithm to match the transactions, and the matching algorithm includes a buy matching algorithm and a sell matching algorithm. The purchase matching algorithm and the sell matching algorithm both adopt a matching principle of first price priority and second time priority. The user can obtain the maximum transaction amount by the matching principle of price priority and time priority. When a purchase order enters, a purchase matching algorithm is adopted, the purchase order is inquired in the order, and the purchase order is matched with the purchase order. When the purchase orders are matched with the sales orders, the sales orders are sequenced from low to high, the purchase order is matched with the sales order 1 with the lowest price, then the purchase order is matched with the sales order 2 with the lower price, and so on, when the purchase orders of a plurality of the sales orders are the same, the sales orders are matched according to the time sequence until the matching is successful.
Similarly, when a sales order enters, a sales matching algorithm is adopted to query the purchase order in the purchase order and match the sales order with the purchase order. When the sales orders are matched with the purchase orders, the purchase orders are sequenced from high to low in price, the sales orders are matched with the purchase order 1 with the highest price, then the sales orders are matched with the purchase orders 2 with higher prices, and the like, when the prices of a plurality of purchase orders are the same, the sales orders are matched according to the time sequence until the matching is successful.
And after the matching is successful, the matching order is sent to the blockchain, the blockchain verifies, calculates and deals the purchase order and the sale order in the matching order, the trading order is obtained after the trading is successful, the blockchain feeds the trading order back to the matching server, and the matching server updates the data after the trading is successful. One order may match and trade one or more orders, and one order may match and trade one or more orders.
In this embodiment, the matching order sent to the block chain by the matching server is a matching order which is obtained by the matching server after multiple signatures are performed by the private key, so that the security of data in the transmission process is improved.
The purchase matching algorithm of the embodiment, as shown in fig. 2, includes the following specific steps:
a1, acquiring a purchase order;
a2, judging whether a sales order exists, if yes, entering A4, and if not, entering A3;
a3, putting the purchase order into a purchase disk, and ending;
a4, acquiring a sales order from a sales order according to the principle of price priority and time priority;
a5, judging whether the purchase price of the purchase order is more than or equal to the sale price of the sale order, if so, entering A6, and if not, entering A3;
a6, judging whether the purchase quantity of the purchase order is less than or equal to the sale quantity of the sale order, if so, entering A7, and if not, entering A11;
a7, matching and trading the purchase order and the sale order successfully, and completely closing the purchase order;
a8, updating the information of the order in the order;
a9, updating trade disk information according to the trade order of the deal;
a10, pushing quotations, and ending;
a11, matching and trading the purchase order and the sale order successfully, and bargaining the purchase order part;
a12, updating the information of the order in the order;
a12, updating trade disk information according to the trade order of the deal; access to a10 and a 13;
a13, calculating the residual purchase quantity of the purchase order according to the quantity of the deal of the purchase order part, and entering A4.
In this embodiment, when the user buys an order, the price of the purchase order is greater than or equal to that of the sales order, and a deal can be made, and when the number of one sales order is insufficient, one purchase order needs to be made with a plurality of sales orders, and data updating is performed after the deal is made. When one order enters, the matching server judges whether the order exists in the order, if not, the order is put into the order to wait for the next matching, if a plurality of orders exist in the order, the orders are sorted according to the principle of price priority and time priority, and the sorted order 1 is obtained. If the buying price is more than or equal to the selling price 1, further comparing the buying quantity with the selling quantity; if the purchase quantity is less than or equal to the sale quantity, the purchase order is completely traded, and the information after the complete trading is updated; if the number of bought is larger than the number of sold, the bought order is only partially traded, the information after partial trading transaction is updated, and the number of bought which is not traded is calculated. And acquiring the ordered sales orders 2 again, matching and matching according to the mode, acquiring the ordered sales orders 3 from the order again if the sales orders and the sales orders 2 partially agree again, matching and matching according to the mode, and so on until all the sales orders agree.
The selling matching algorithm of the embodiment, as shown in fig. 3, includes the following specific steps:
b1, acquiring a sales order;
b2, judging whether a purchase order exists, if so, entering B4, and if not, entering B3;
b3, putting the order into the order, and ending;
b4, acquiring the purchase order from the purchase disk according to the principle of price priority and time priority;
b5, judging whether the selling price of the selling order is less than or equal to the buying price of the buying order, if so, entering B6, and if not, entering B3;
b6, judging whether the selling quantity of the selling order is less than or equal to the buying quantity of the buying order, if so, entering B7, and if not, entering B11;
b7, successfully matching and trading the sales order and the purchase order, and completely closing the sales order;
b8, updating the information of the purchase order in the purchase disk;
b9, updating trade disk information according to the trade order of the deal;
b10, pushing quotations, and ending;
b11, successfully matching and trading the sales order and the purchase order, and partially bargaining the sales order;
b12, updating the information of the purchase order in the purchase disk;
b12, updating trade disk information according to the trade order of the deal; access to B10 and B13;
and B13, calculating the residual selling quantity of the selling order according to the quantity of the partial bargaining of the selling order, and entering B4.
In this embodiment, when the user sells the order, the price of the selling order is less than or equal to the purchase order, and the transaction can be completed, and when the number of one purchase order is insufficient, one selling order needs to be completed with a plurality of purchase orders, and data updating is performed after the completion of the transaction. When a purchase order enters, the matching server judges whether the purchase order exists in the order, if not, the purchase order is put into the order, the next matching is waited, if a plurality of purchase orders exist in the order, the purchase orders are sequenced according to the principles of price priority and time priority, and the sequenced purchase orders 1 are obtained. If the selling price is less than or equal to the buying price, further comparing the selling quantity with the buying quantity; if the selling quantity is less than or equal to the buying quantity, the selling order is completely bargained, and the information after the complete bargaining transaction is updated; if the selling quantity is larger than the buying quantity, the selling order only has partial bargain, the information after partial bargain transaction is updated, and the remaining selling quantity without bargain is calculated. And acquiring the ordered purchase orders 2 again, matching and matching according to the mode, acquiring the ordered purchase orders 3 from the purchase tray again if the purchase orders partially deal with the purchase orders 2 again, matching and matching according to the mode, and so on until the purchase orders completely deal.
In summary, in the system of this embodiment, the matching server and the block chain store the purchase order, the sales order, the transaction and other information, the purchase order and the sales order are matched by the matching server of the platform, and the successfully matched purchase order and sales order are verified, calculated and transacted by the block chain. In the embodiment, a decentralized matching algorithm and data storage are adopted, the problem that centralized matching is not public is solved, each matched transaction order is recorded by using a block chain technology, and recording is performed on a chain, so that the public, transparent, safe, reliable and falsifiable transaction information is ensured.
Furthermore, those of ordinary skill in the art will appreciate that the elements or steps of the various examples described in connection with the embodiments disclosed herein may be embodied as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate 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 in the present application, it should be understood that the division of the steps is only one logical functional division, and there may be other division ways in actual implementation, for example, multiple steps may be combined into one step, one step may be split into multiple steps, or some features may be omitted.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (10)

1. A block chain-based center-removing matching method is characterized by comprising the following steps:
the matching server acquires the purchase order and the sale order from the block chain, carries out transaction matching on the purchase order and the sale order, and sends the matching order successfully matched to the block chain;
the block chain verifies, calculates and deals the purchase order and the sale order according to the matched orders, records and stores the successfully traded orders, and simultaneously feeds back the traded orders to the matching server;
and the matching server updates the trading disk information according to the trading orders fed back by the blockchain.
2. The blockchain-based off-center matching method according to claim 1, wherein the purchase orders include but are not limited to purchase order hash, purchase quantity, purchase price and purchase order time;
the sales order includes, but is not limited to, a sales order hash, a quantity sold, a price sold, and a time sold;
the trade order information includes, but is not limited to, current buy orders, sell orders, and trade orders.
3. The block chain-based de-centering matching method as claimed in claim 2, wherein the matching orders sent to the block chain by the matching server are matching orders which are multiply signed by a private key of the matching server.
4. The block chain-based de-centering matching method as claimed in claim 3, wherein the transaction matching adopts a matching algorithm; the matching algorithm comprises a buy matching algorithm and a sell matching algorithm.
5. The blockchain-based de-centering matching method according to claim 4, wherein the buy-in matching algorithm and the sell-out matching algorithm both use a price-first and time-second matching principle.
6. A center-removing matching system based on a block chain is characterized by comprising a matching server and the block chain;
the matching server is used for acquiring the purchase order and the sale order from the block chain, matching the purchase order and the sale order and sending the matched order which is successfully matched to the block chain; the system is also used for updating trade disk information according to the trade orders fed back by the block chain;
and the block chain is used for verifying, calculating and trading the purchase order and the sale order according to the matched order, recording and storing the successfully traded trade order and simultaneously feeding back the trade order to the matching server.
7. The blockchain-based de-centering matching system as claimed in claim 6, wherein the purchase orders include but are not limited to purchase order hash, purchase quantity, purchase price and purchase order time;
the sales order includes, but is not limited to, a sales order hash, a quantity sold, a price sold, and a time sold;
the trade order information includes, but is not limited to, current buy orders, sell orders, and trade orders.
8. The block chain-based de-centering matching system as claimed in claim 7, wherein the matching orders sent to the block chain by the matching server are matching orders which are multiply signed by a private key by the matching server.
9. The block chain based de-centering matching system as claimed in claim 8, wherein the transaction matching adopts a matching algorithm; the matching algorithm comprises a buy matching algorithm and a sell matching algorithm.
10. The block chain based de-centering matching system as claimed in claim 9, wherein the buy matching algorithm and the sell matching algorithm both use a price first and time second matching principle.
CN202010167658.7A 2020-03-11 2020-03-11 Center-removing matching method and system based on block chain Pending CN111402050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010167658.7A CN111402050A (en) 2020-03-11 2020-03-11 Center-removing matching method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010167658.7A CN111402050A (en) 2020-03-11 2020-03-11 Center-removing matching method and system based on block chain

Publications (1)

Publication Number Publication Date
CN111402050A true CN111402050A (en) 2020-07-10

Family

ID=71430684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010167658.7A Pending CN111402050A (en) 2020-03-11 2020-03-11 Center-removing matching method and system based on block chain

Country Status (1)

Country Link
CN (1) CN111402050A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112598517A (en) * 2020-12-24 2021-04-02 临沂市新商网络技术有限公司 Electronic commerce transaction matching method and system for large-scale concurrent requests
CN113095930A (en) * 2021-04-13 2021-07-09 中国工商银行股份有限公司 Transaction matching method and device for banking loan
US20220385477A1 (en) * 2021-06-01 2022-12-01 Springcoin, Inc. Method and Apparatus for Utilizing Off-Platform-Resolved Data as an Input to Code Execution on a Decentralized Platform
CN116051172A (en) * 2023-03-07 2023-05-02 天聚地合(苏州)科技股份有限公司 Data element auxiliary pricing method, device and system based on blockchain

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105761146A (en) * 2016-01-24 2016-07-13 杭州复杂美科技有限公司 Block link matching exchange
CN105989525A (en) * 2015-02-10 2016-10-05 北京菲南斯财务策划中心有限公司 Method and device for matching deals
CN106530080A (en) * 2015-09-14 2017-03-22 成都娇子意航星科技有限公司 Dormant transaction matchmaking method based on queue dynamic change
CN107133872A (en) * 2017-05-06 2017-09-05 杭州复杂美科技有限公司 Block chain information brings platform together
CN107330788A (en) * 2017-06-15 2017-11-07 雷盈科技(上海)有限公司 A kind of block chain digital asset transaction match method, system, device and medium
CN107608661A (en) * 2017-09-14 2018-01-19 北京天德科技有限公司 A kind of high concurrent two dimension based on block chain brings the core algorithm of matrix together
CN108320226A (en) * 2018-02-05 2018-07-24 上海千加信息科技有限公司 The intelligent algorithm that a kind of order applied to decentralization exchange is brought together
CN108830709A (en) * 2018-04-17 2018-11-16 中车工业研究院有限公司 A kind of crowdsourcing transaction system based on block chain
CN108932663A (en) * 2018-06-26 2018-12-04 中国银行股份有限公司 A kind of simulation trade matching method and device
CN109377220A (en) * 2018-10-16 2019-02-22 中国传媒大学 Medium data trade method and system, computer storage medium based on block chain
CN109377359A (en) * 2018-08-22 2019-02-22 江苏银行股份有限公司 A kind of discounted note transaction match method based on block chain
CN109377411A (en) * 2018-10-29 2019-02-22 南方电网科学研究院有限责任公司 Electricity market based on block chain concentrates trade matching method and device
CN109409886A (en) * 2018-10-29 2019-03-01 杭州复杂美科技有限公司 Pledge loaning bill method, equipment and storage medium
CN109492986A (en) * 2018-09-30 2019-03-19 深圳市元征科技股份有限公司 A kind of service cooperation match method and device based on block chain
CN109741181A (en) * 2018-12-29 2019-05-10 南京荣链科技有限公司 A kind of transaction match method, system, server and medium based on intelligent contract
CN110148003A (en) * 2019-05-26 2019-08-20 贾渊培 A kind of carbon emissions trading method and system
CN110264353A (en) * 2019-05-28 2019-09-20 必成汇(成都)科技有限公司 High Availabitity trade match system memory-based and method

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105989525A (en) * 2015-02-10 2016-10-05 北京菲南斯财务策划中心有限公司 Method and device for matching deals
CN106530080A (en) * 2015-09-14 2017-03-22 成都娇子意航星科技有限公司 Dormant transaction matchmaking method based on queue dynamic change
CN105761146A (en) * 2016-01-24 2016-07-13 杭州复杂美科技有限公司 Block link matching exchange
CN107133872A (en) * 2017-05-06 2017-09-05 杭州复杂美科技有限公司 Block chain information brings platform together
CN107330788A (en) * 2017-06-15 2017-11-07 雷盈科技(上海)有限公司 A kind of block chain digital asset transaction match method, system, device and medium
CN107608661A (en) * 2017-09-14 2018-01-19 北京天德科技有限公司 A kind of high concurrent two dimension based on block chain brings the core algorithm of matrix together
CN108320226A (en) * 2018-02-05 2018-07-24 上海千加信息科技有限公司 The intelligent algorithm that a kind of order applied to decentralization exchange is brought together
CN108830709A (en) * 2018-04-17 2018-11-16 中车工业研究院有限公司 A kind of crowdsourcing transaction system based on block chain
CN108932663A (en) * 2018-06-26 2018-12-04 中国银行股份有限公司 A kind of simulation trade matching method and device
CN109377359A (en) * 2018-08-22 2019-02-22 江苏银行股份有限公司 A kind of discounted note transaction match method based on block chain
CN109492986A (en) * 2018-09-30 2019-03-19 深圳市元征科技股份有限公司 A kind of service cooperation match method and device based on block chain
CN109377220A (en) * 2018-10-16 2019-02-22 中国传媒大学 Medium data trade method and system, computer storage medium based on block chain
CN109377411A (en) * 2018-10-29 2019-02-22 南方电网科学研究院有限责任公司 Electricity market based on block chain concentrates trade matching method and device
CN109409886A (en) * 2018-10-29 2019-03-01 杭州复杂美科技有限公司 Pledge loaning bill method, equipment and storage medium
CN109741181A (en) * 2018-12-29 2019-05-10 南京荣链科技有限公司 A kind of transaction match method, system, server and medium based on intelligent contract
CN110148003A (en) * 2019-05-26 2019-08-20 贾渊培 A kind of carbon emissions trading method and system
CN110264353A (en) * 2019-05-28 2019-09-20 必成汇(成都)科技有限公司 High Availabitity trade match system memory-based and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘妍;谭建成;: "基于区块链技术的大用户直购电模式实现研究", vol. 16, no. 07, pages 294 - 100 *
桂学文,等: "《电子商务服务业产业结构与协同发展》", 中国科学技术大学出版社, pages: 176 - 273 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112598517A (en) * 2020-12-24 2021-04-02 临沂市新商网络技术有限公司 Electronic commerce transaction matching method and system for large-scale concurrent requests
CN113095930A (en) * 2021-04-13 2021-07-09 中国工商银行股份有限公司 Transaction matching method and device for banking loan
US20220385477A1 (en) * 2021-06-01 2022-12-01 Springcoin, Inc. Method and Apparatus for Utilizing Off-Platform-Resolved Data as an Input to Code Execution on a Decentralized Platform
US11646897B2 (en) * 2021-06-01 2023-05-09 Springcoin, Inc. Method and apparatus for utilizing off-platform-resolved data as an input to code execution on a decentralized platform
CN116051172A (en) * 2023-03-07 2023-05-02 天聚地合(苏州)科技股份有限公司 Data element auxiliary pricing method, device and system based on blockchain
CN116051172B (en) * 2023-03-07 2023-08-08 天聚地合(苏州)科技股份有限公司 Data element auxiliary pricing method, device and system based on blockchain

Similar Documents

Publication Publication Date Title
CN111402050A (en) Center-removing matching method and system based on block chain
US20200160289A1 (en) Lazy updating and state prediction for blockchain-based applications
US20190392511A1 (en) Bid matching for blockchain-based goods/assets systems and methods
US20190347738A1 (en) System and method for reducing fraud in trade insurance and financing
CA2550822C (en) Profiling item sellers to inform item purchasing decisions and build trust in a multiple-seller marketplace
CN105279682B (en) Method and device for processing transaction information of commodity object
JP2011070418A (en) System for advising on investment in financial product, and program for computer, and storage medium for the same
US7346553B2 (en) License plate trading system and method
JP4682244B2 (en) Trading price determination method and trading price determination device
US20210049606A1 (en) Apparatus and method of fraud prevention
JP2008021141A (en) Purchase order receiving system and purchase order receiving method
CN113902474A (en) Information processing method, device, equipment and computer readable storage medium
JP2007164361A (en) Credit sales system, credit sales method, and credit sales program
JP2007047999A (en) Security settlement balance management system and security settlement balance management program
KR102634818B1 (en) Method and appartus for supproting transactions of commodites
US8660908B2 (en) Online auction propagation
JP4958512B2 (en) Financial product sales support system, financial product sales support method, financial product sales support program
US20130159138A1 (en) Fraudulent-purchase alarm system, fraudulent-purchase alarm method, and recording medium
CN113962786A (en) Commodity bidding method, device and equipment based on block chain and storage medium
JP2005346730A (en) Method of determination of unauthorized utilization of credit card using history information
US20240089104A1 (en) Systems and methods for generating and managing tokens for authenticated assets
KR20140110466A (en) System for computing credit default swap index levels upon consensus of credit derivatives market participants and method therefor
US20230401526A1 (en) Systems and methods for controlled data sharing in supply chains
KR20140124430A (en) Game item transaction method
US20220351208A1 (en) Online transaction system with buyer reputations

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