Blockchain matching exchange APP system development | digital currency trading platform construction

After years of market development, how long the digital currency trading platform has been optimized and changed, there are currently many trading modes: such as currency, OTC, C2C, leverage, contracts, etc. In addition to trading platforms, digital currencies also There are other products, blockchain asset management, mining, exchange machines, blockchain payment and other related software.
What is a matchmaking transaction?
Simply put, the matchmaking transaction is: Zhao San in the village wants to buy a sugar cake, Li Si wants to sell a sugar cake, but Zhao San does not know Li Si, and they want to use me as an intermediary to make an acceptable offer. Within, mutual deals. The market decides everything. Zhao San wanted to spend money on sugar cakes. Li Si quoted 100 yuan, while Wang Wu rushed to bring out the gloves and went home to marry his wife. He was willing to sell them to Zhao San for 90 yuan.
The prerequisite for the exchange of currency transactions is that the buying price must be higher than or equal to the selling price. When the buying price is equal to the selling price, the transaction price is the buying price or the selling price, and the latest transaction price is the selling price. If the previous transaction price is higher than or equal to the purchase price, then the latest transaction price is the purchase price. If the previous transaction price is between the selling price and the purchase price, then the latest transaction price is the previous transaction price.
The principle of currency matching transactions:
1. Matching transaction algorithm The core business module of the matching engine is the matching transaction algorithm. On the one hand, the task of the matching transaction algorithm is to complete the fair and reasonable arrangement and matching function of the orders placed by customers, and also to ensure the matching The matching business of different financial transaction systems such as the fairness, efficiency and scalability of the algorithm is different.
2. An important part of the order queue matching transaction is the buying and selling order. By matching the buying and selling orders, the transaction records are finally lined up; therefore, for the orders that cannot be matched immediately, there needs to be a buy queue and a sell queue to save the orders. The principle of "price priority" and "time priority at the same price", the buying queue is arranged in the order of the commissioned price "from low to high", and the selling queue is arranged in the order of the commissioned price from "low to high"
The advantage of the distributed framework of the exchange is that the decoupling of different systems and modules is important, which reduces the dependency between various subsystems and sub-modules. Each module can be developed independently and deployed independently without interfering with each other, which is convenient for rapid development. Distributed structure such as locating faults is to split a complete system into independent subsystems according to business functions. In a distributed structure, each subsystem is called a "service". These subsystems can run independently in the web container, and communicate between them through RPC.
 

Guess you like

Origin blog.csdn.net/weixin_50841886/article/details/111637453