TWI841062B - Risk control judgment device and transaction system - Google Patents

Risk control judgment device and transaction system Download PDF

Info

Publication number
TWI841062B
TWI841062B TW111144055A TW111144055A TWI841062B TW I841062 B TWI841062 B TW I841062B TW 111144055 A TW111144055 A TW 111144055A TW 111144055 A TW111144055 A TW 111144055A TW I841062 B TWI841062 B TW I841062B
Authority
TW
Taiwan
Prior art keywords
risk control
packet
transaction
package
order
Prior art date
Application number
TW111144055A
Other languages
Chinese (zh)
Other versions
TW202324260A (en
Inventor
賴明祥
高翊傑
Original Assignee
皓德盛科技股份有限公司
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 皓德盛科技股份有限公司 filed Critical 皓德盛科技股份有限公司
Publication of TW202324260A publication Critical patent/TW202324260A/en
Application granted granted Critical
Publication of TWI841062B publication Critical patent/TWI841062B/en

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention discloses a transaction system comprising a user device that generates an order packet based on a product price packet; a risk control judgment device receives the order packet, quickly deserializes the order packet, finds a tag in the order packet and a transaction information corresponding to the tag; the risk control judgment device compares whether the order packet suffices a risk control condition and generates a risk control transaction packet; and an operation center host collects the price of a product on the market and generates the product price packet, and makes a matching transaction based on a risk control transaction packet; wherein, when the order packet meets the risk control condition, the risk control transaction packet is the order packet and is transmitted to the operation center host for making matching transaction; when the order packet does not meet the risk control condition, the risk control transaction packet replaces the order packet, and the risk control transaction packet is transmitted to the operation center host to invalidate the transaction of the order packet.

Description

風控判斷裝置及交易系統 Risk control judgment device and trading system

本發明關於一種風控判斷裝置,尤其具有現場可程式化邏輯閘陣列(Field Programmable Gate Array,以下縮寫為FPGA)晶片的風控判斷裝置及其交易系統。 The present invention relates to a risk control judgment device, in particular a risk control judgment device having a field programmable gate array (FPGA) chip and a trading system thereof.

在金融交易領域上,金融商品的交易金額瞬息萬變,當交易資訊或金融商品資訊傳輸延遲時,易造成用戶偌大的損失,因此如何在分秒必爭的金融交易領域上快速傳遞客戶的交易資訊成了重要的課題。 In the field of financial transactions, the transaction amount of financial products changes rapidly. When the transmission of transaction information or financial product information is delayed, it is easy to cause huge losses to users. Therefore, how to quickly transmit customers' transaction information in the field of financial transactions where every second counts has become an important issue.

當金融商品在行情劇烈波動之前,如何搶在此情況之前進行交易買賣,是本發明急需解決的課題。 How to trade financial products before the market fluctuates violently is an urgent problem that this invention needs to solve.

本發明一實施例目的之一,在於提供一種風控判斷裝置,可在行情劇烈波動之前判斷是否進行交易買賣。 One of the purposes of an embodiment of the present invention is to provide a risk control judgment device that can judge whether to conduct a transaction before the market fluctuates violently.

本發明一實施例目的之一,在於提供一種風控判斷裝置,可以快速判斷使用者的下單封包是否滿足風控條件以在行情劇烈波動之前進行交易。 One of the purposes of an embodiment of the present invention is to provide a risk control judgment device that can quickly judge whether the user's order package meets the risk control conditions so as to conduct transactions before the market fluctuates violently.

本發明揭露一種交易系統包含一使用者裝置,依據一商品價格封包產生一下單封包;一風控判斷裝置,接收該下單封包,快速 地解串(deserialize)該下單封包,並找出該下單封包中的一標籤及對應該標籤的一交易資訊,並且比對該下單封包是否滿足一風控條件,並產生一風控交易封包;以及一作業中心主機,收集市場上的一商品價格並產生該商品價格封包,並依據一風控交易封包進行撮合交易;其中,當該下單封包滿足該風控條件時,則該風控交易封包為該下單封包並傳輸至該作業中心主機進行交易撮合;當該下單封包不滿足該風控條件時,則該風控交易封包取代該下單封包,該風控交易封包傳輸至該作業中心主機使該下單封包的交易無效。 The present invention discloses a trading system comprising a user device, which generates an order package according to a commodity price package; a risk control judgment device, which receives the order package, quickly deserializes the order package, finds a tag in the order package and a transaction information corresponding to the tag, and compares whether the order package meets a risk control condition, and generates a risk control transaction package; and an operation center host, which collects market information. The price of a commodity on the market is generated and the commodity price package is matched according to a risk control transaction package; when the order package meets the risk control conditions, the risk control transaction package is the order package and is transmitted to the operation center host for transaction matching; when the order package does not meet the risk control conditions, the risk control transaction package replaces the order package, and the risk control transaction package is transmitted to the operation center host to make the transaction of the order package invalid.

依據本發明一實施例,風控判斷裝置包含:一標籤解串器,標籤解串器用以對該下單封包進行解串,取得該下單封包中的該標籤以及對應該標籤的該交易資訊;以及一風控判斷單元,比對該標籤以及該交易資訊是否滿足該風控條件。 According to an embodiment of the present invention, the risk control judgment device includes: a tag deserializer, which is used to deserialize the order package to obtain the tag in the order package and the transaction information corresponding to the tag; and a risk control judgment unit, which compares the tag and the transaction information to see whether they meet the risk control condition.

依據本發明一實施例,該標籤解串器將該封包於相同的一時間間隔內分割成複數個封包區塊,且每一個封包區塊對應一預設位元長度。 According to an embodiment of the present invention, the tag deserializer divides the packet into a plurality of packet blocks within the same time interval, and each packet block corresponds to a preset bit length.

依據本發明一實施例,該標籤解串器搜尋每一個封包區塊的一最末端值,該最末端值若出現「=」則代表該封包區塊為封包中的該標籤,而下一個該時間間隔中該封包區塊包含對應該標籤的該交易資訊。 According to an embodiment of the present invention, the tag deserializer searches for a terminal value of each packet block. If the terminal value contains "=", it means that the packet block is the tag in the packet, and the packet block in the next time interval contains the transaction information corresponding to the tag.

依據本發明一實施例,相鄰的該標籤解串器讀取該封包時,具有一預設位元的封包位移量。 According to an embodiment of the present invention, when the adjacent tag deserializer reads the packet, it has a packet displacement of a preset bit.

依據本發明一實施例,相鄰的該標籤解串器讀取該封包時,具有一個位元的封包位移量。 According to an embodiment of the present invention, when the adjacent tag deserializer reads the packet, it has a packet displacement of one bit.

依據本發明一實施例,該風控判斷裝置利用一遮罩表對該封包中固定的一預設位元位置的值進行比對,若該預設位元位置的值滿足一期望值表,則風控判斷裝置自行發出該交易封包至該作業中心主機。 According to an embodiment of the present invention, the risk control judgment device uses a mask table to compare the value of a fixed preset bit position in the packet. If the value of the preset bit position satisfies an expected value table, the risk control judgment device automatically sends the transaction packet to the operation center host.

100:交易系統 100: Trading system

151:作業中心主機 151: Operation center host

113:風控判斷裝置 113: Risk control judgment device

15:使用者裝置 15: User device

111:網路 111: Internet

112:線路 112: Line

153:風控判斷伺服器 153: Risk control judgment server

154:FPGA卡 154:FPGA card

15a:應用程式介面 15a: Application Programming Interface

15b:NIC橋接器 15b: NIC bridge

15c:FPGA管理器 15c:FPGA Manager

15d:PCIe驅動單元 15d: PCIe drive unit

15e:PCIe匯流排 15e: PCIe bus

221~224:標籤解串器 221~224: Tag deserializer

225:風控判斷單元 225: Risk control judgment unit

120a:PCIe接口 120a: PCIe interface

120~123:NIC接口 120~123: NIC interface

P:封包位移量 P: Packet displacement

T0~T3、A1~A2:虛框 T0~T3, A1~A2: virtual frame

12:第一層交換機 12: First layer switch

12a:數據多工器 12a: Data multiplexer

Port1~Port6:連接埠 Port1~Port6: Connection port

〔圖1〕顯示本發明一實施例之交易系統的結構的示意圖。 [Figure 1] shows a schematic diagram of the structure of a trading system of an embodiment of the present invention.

〔圖2〕顯示使用者裝置15與風控判斷裝置113的結構示意圖。 [Figure 2] shows a schematic diagram of the structure of the user device 15 and the risk control judgment device 113.

〔圖3〕顯示風控判斷裝置113用以探測TMP之封包示意圖。 [Figure 3] shows a schematic diagram of the risk control judgment device 113 used to detect TMP packets.

〔圖4〕顯示風控判斷裝置用以探測FIX之封包一實施例之示意圖 [Figure 4] A schematic diagram showing an embodiment of a risk control judgment device for detecting FIX packets

請同時參考圖1與圖2,圖1顯示本發明一實施例之交易系統的結構的示意圖,圖2顯示本發明一實施例之風控判斷裝置。交易系統100包括有一作業中心主機151、一風控判斷裝置113及一使用者裝置15。風控判斷裝置113連接一作業中心主機151及一使用者裝置15,例如可透過網路111連接作業中心主機151及風控判斷裝置113,並透過線路112連接風控判斷裝置113及使用者裝置15。 Please refer to Figure 1 and Figure 2 at the same time. Figure 1 shows a schematic diagram of the structure of a trading system of an embodiment of the present invention, and Figure 2 shows a risk control judgment device of an embodiment of the present invention. The trading system 100 includes an operation center host 151, a risk control judgment device 113, and a user device 15. The risk control judgment device 113 is connected to an operation center host 151 and a user device 15, for example, the operation center host 151 and the risk control judgment device 113 can be connected through a network 111, and the risk control judgment device 113 and the user device 15 can be connected through a line 112.

一實施例中,券商透過一高速週邊元件交互連接匯流排(以下簡稱PCIe)連接風控判斷裝置113進行設定,或券商透過一網路連線至第一層交換機(layer 1 switch)12,並透過第一層交換機12連接該風控判斷裝置113來設定風控判斷裝置113。 In one embodiment, the broker connects the risk control judgment device 113 through a high-speed peripheral component interconnect bus (hereinafter referred to as PCIe) to set it, or the broker connects to the first layer switch (layer 1 switch) 12 through a network and connects the risk control judgment device 113 through the first layer switch 12 to set the risk control judgment device 113.

風控判斷裝置113連接於使用者裝置15的一網路傳輸裝置,使用者裝置15及作業中心主機151通過風控判斷裝置113傳送資料封包。 The risk control judgment device 113 is connected to a network transmission device of the user device 15, and the user device 15 and the operation center host 151 transmit data packets through the risk control judgment device 113.

請注意,風控判斷裝置113包含有風控判斷伺服器153、FPGA卡154、以及第一層交換機12。風控判斷伺服器153包含應用程式介面(API)15a、網路介面控制(network interface controller,以下簡稱NIC)橋接器15b、FPGA管理器15c、以及PCIe驅動單元15d、PCIe匯流排15e;FPGA卡154包含標籤解串器221~224、風控判斷單元225、PCIe接口120a、以及NIC接口120~123;第一層交換機12具有一數據多工器(Mux)12a收集第一層交換機12所接收的複數個封包並傳輸至風控判斷裝置113的一資料庫中(圖未示)。其中,應用程式介面15a是給券商(或作業中心主機151)進行設定風控判斷裝置113的介面。 Please note that the risk control judgment device 113 includes a risk control judgment server 153, an FPGA card 154, and a first-layer switch 12. The risk control judgment server 153 includes an application programming interface (API) 15a, a network interface controller (NIC) bridge 15b, an FPGA manager 15c, a PCIe driver unit 15d, and a PCIe bus 15e; the FPGA card 154 includes a tag deserializer 221~224, a risk control judgment unit 225, a PCIe interface 120a, and a NIC interface 120~123; the first-layer switch 12 has a data multiplexer (Mux) 12a that collects a plurality of packets received by the first-layer switch 12 and transmits them to a database of the risk control judgment device 113 (not shown). Among them, the application programming interface 15a is an interface for the broker (or the operation center host 151) to set up the risk control judgment device 113.

請注意,在一實施例中,FPGA卡154具有四個NIC接口120~123,其中兩個NIC接口120與122分別間接連接作業中心主機151與使用者裝置15,如此一來使用者裝置15依據來自作業中心主機151的一商品價格封包所產生一下單封包,係直接在FPGA卡154中的風控判斷單元225進行判斷後,由FPGA卡154發送風控交易封包至作業中心主機151,因FPGA卡154可進行快速運算以實現低延遲特性,以加速處理程序。 Please note that in one embodiment, the FPGA card 154 has four NIC interfaces 120-123, of which two NIC interfaces 120 and 122 are respectively indirectly connected to the operation center host 151 and the user device 15. In this way, the user device 15 generates an order packet based on a product price packet from the operation center host 151. After the risk control judgment unit 225 in the FPGA card 154 makes a judgment directly, the FPGA card 154 sends the risk control transaction packet to the operation center host 151. Because the FPGA card 154 can perform fast calculations to achieve low latency characteristics, it can speed up the processing process.

在一實施例中,第一層交換機12具有複數個連接埠Port1~Port6,使用者裝置15係連接埠Port1發送下單封包,並由連接埠Port2連接NIC接口120,由FPGA卡154進行運算風控條件判斷,風控交易封包再由NIC接口120傳輸至連接埠Port2,再由連接埠Port2傳輸給連接埠Port6,最後由連接埠Port6傳輸至作業中心主機151。 In one embodiment, the first-layer switch 12 has a plurality of ports Port1 to Port6. The user device 15 sends an order packet through port Port1 and connects to the NIC interface 120 through port Port2. The FPGA card 154 calculates the risk control condition judgment. The risk control transaction packet is then transmitted from the NIC interface 120 to port Port2, and then from port Port2 to port Port6, and finally transmitted from port Port6 to the operation center host 151.

同理,風控判斷伺服器153進行設定時,風控判斷伺服器153連接連接埠Port4,設定資料再由連接埠Port4傳輸至連接埠Port3,最後由設定資料再由連接埠Port3連接傳輸至NIC接口121,再由FPGA卡154的NIC橋接器15b連接到風控判斷伺服器153的PCIe接口120a。 Similarly, when the risk control judgment server 153 is configured, the risk control judgment server 153 is connected to the connection port Port4, and the configuration data is then transmitted from the connection port Port4 to the connection port Port3, and finally the configuration data is transmitted from the connection port Port3 to the NIC interface 121, and then connected to the PCIe interface 120a of the risk control judgment server 153 by the NIC bridge 15b of the FPGA card 154.

一實施例中,風控判斷伺服器153的NIC橋接器15b係連接FPGA卡154的PCIe接口120a,券商或作業中心主機151利用FPGA管理器15c透過NIC橋接器15b來管理配置風控判斷裝置113,且作業中心主機151透過NIC橋接器15b與風控判斷裝置113進行TCP連線,即作業中心主機151透過NIC橋接器15b使其能與風控判斷伺服器153進行PCIe封包交換,最後再由風控判斷裝置113與作業中心主機151 NIC封包交換來完成風控判斷裝置113的設定。 In one embodiment, the NIC bridge 15b of the risk control judgment server 153 is connected to the PCIe interface 120a of the FPGA card 154. The broker or the operation center host 151 uses the FPGA manager 15c to manage and configure the risk control judgment device 113 through the NIC bridge 15b, and the operation center host 151 establishes a TCP connection with the risk control judgment device 113 through the NIC bridge 15b, that is, the operation center host 151 enables the PCIe packet exchange with the risk control judgment server 153 through the NIC bridge 15b, and finally the risk control judgment device 113 and the operation center host 151 NIC packet exchange to complete the setting of the risk control judgment device 113.

在實際應用時,風控判斷裝置113中的風控判斷伺服器153,其設定由券商或作業中心主機151設定,作業中心主機151可預先設定風控判斷裝置113的風控條件,用來確認使用者裝置15發出的下單封包,是否有違反風控條件的規則,即證卷商或是期貨商控制風控判斷裝置113避免客戶(使用者裝置15)的下單封包或交易違反買賣規定。 In actual application, the risk control judgment server 153 in the risk control judgment device 113 is set by the broker or the operation center host 151. The operation center host 151 can pre-set the risk control conditions of the risk control judgment device 113 to confirm whether the order package sent by the user device 15 violates the rules of the risk control conditions. That is, the securities dealer or futures dealer controls the risk control judgment device 113 to prevent the customer (user device 15) from violating the trading regulations by placing an order package or trading.

風控判斷裝置113為一可配置探測器(Configurable Detector)與具有快速校驗和計算功能的可配置TX緩衝區,風控判斷裝置113用以探測金融資訊交換(Financial Information eXchange,以下簡稱FIX)傳輸協定或臺灣期貨交易所訊息傳輸協定(Taifex Message Protocol,以下簡稱TMP)的封包;FPGA管理器15c用以調整或配置風控判斷裝置113的運作,即FPGA管理器15c用以設定風控判斷裝置113中的交易條件,使風控判斷裝置113中的FPGA卡154比對來自作業使用者裝置15所傳送的下單封包是否滿足其交易條件。 The risk control judgment device 113 is a configurable detector and a configurable TX buffer with fast verification and calculation functions. The risk control judgment device 113 is used to detect the Financial Information eXchange (FIX) transmission protocol or the Taifex Message Protocol (TMP) packet; the FPGA manager 15c is used to adjust or configure the operation of the risk control judgment device 113, that is, the FPGA manager 15c is used to set the transaction conditions in the risk control judgment device 113, so that the FPGA card 154 in the risk control judgment device 113 compares the order packet sent from the operation user device 15 to see whether it meets its transaction conditions.

在一實施例中,當來自使用者裝置15的下單封包滿足風控條件時,則風控交易封包為下單封包並由FPGA卡154傳輸至該作業中心主機進行交易撮合;當下單封包不滿足風控條件時,則風控交易封包取代下單封包,由FPGA卡154傳輸風控交易封包至作業中心主機151使下單封包的交易無效。其中,作業中心主機151收集市場上的一商品價格並產生商品價格封包,作業中心主機151依據風控交易封包進行撮合交易。 In one embodiment, when the order package from the user device 15 meets the risk control conditions, the risk control transaction package is the order package and is transmitted by the FPGA card 154 to the operation center host for transaction matching; when the order package does not meet the risk control conditions, the risk control transaction package replaces the order package, and the FPGA card 154 transmits the risk control transaction package to the operation center host 151 to invalidate the transaction of the order package. Among them, the operation center host 151 collects a commodity price on the market and generates a commodity price package, and the operation center host 151 matches the transaction according to the risk control transaction package.

請注意,作業中心主機151依據風控交易封包產生一交易委託回報封包,風控判斷裝置113中的第一層交換機12中的連接埠Port6接收交易委託回報封包,並由連接埠Port6傳輸至連接埠Port2,連接埠Port2傳輸至NIC接口120,風控判斷裝置113中的風控判斷單元225係比對交易委託回報封包對應的下單封包;風控判斷裝置113會針對不符風控條件的下單封包,由風控判斷裝置113添加一錯誤碼於交易委託回報封包中,風控判斷裝置113的NIC接口122傳輸至第一層交換機12中傳輸至連接埠Port5,最後由連接埠Port1將交易委託回報封包傳輸至使用者裝置15。 Please note that the operation center host 151 generates a transaction commission report packet according to the risk control transaction packet, and the port Port6 in the first layer switch 12 in the risk control judgment device 113 receives the transaction commission report packet and transmits it from the port Port6 to the port Port2, and the port Port2 transmits it to the NIC interface 120. The risk control judgment unit 225 in the risk control judgment device 113 compares the transaction commission report packet with the risk control transaction packet. The order packet corresponding to the easy entrustment report packet; the risk control judgment device 113 will add an error code to the transaction entrustment report packet for the order packet that does not meet the risk control conditions, and the NIC interface 122 of the risk control judgment device 113 transmits it to the first layer switch 12 to the connection port Port5, and finally the transaction entrustment report packet is transmitted to the user device 15 by the connection port Port1.

其中,作業中心主機151收集市場上的商品價格並產生商品價格封包,作業中心主機151並依據一風控交易封包進行撮合交易。 The operation center host 151 collects commodity prices in the market and generates commodity price packages. The operation center host 151 also matches transactions based on a risk control transaction package.

請參考圖3,圖3顯示風控判斷裝置113用以探測TMP之封包示意圖。風控判斷裝置113利用一遮罩表(Mask Table)對來自使用者裝置15的下單封包中固定的一預設位元位置的值進行比對,若風控判斷單元225判斷預設位元位置的值滿足一期望值表(EXP Mean Value Table),即Result=(Mask & RX==EXP),則風控判斷裝置113進行前述相對應的動作。 Please refer to Figure 3, which shows a schematic diagram of the risk control judgment device 113 for detecting TMP packets. The risk control judgment device 113 uses a mask table to compare the value of a fixed preset bit position in the order packet from the user device 15. If the risk control judgment unit 225 determines that the value of the preset bit position satisfies an expected value table (EXP Mean Value Table), that is, Result=(Mask & RX==EXP), the risk control judgment device 113 performs the corresponding actions mentioned above.

請注意,為求簡潔,雖僅繪出4個標籤解串器,但本發明不應以此為限。一實施例中,標籤解串器221~224,對下單封包進行解串,用以取得下單封包中的標籤以及對應該標籤的交易資訊。風控判斷單元225利用標籤以及交易資訊,並比對標籤以及交易資訊是否滿足風控條件;當下單封包滿足風控條件時,則下單封包為風控交易封包,風控判斷裝置113傳輸風控交易封包至作業中心主機151。 Please note that for the sake of simplicity, although only four tag deserializers are drawn, the present invention should not be limited to this. In one embodiment, the tag deserializers 221~224 deserialize the order package to obtain the tag in the order package and the transaction information corresponding to the tag. The risk control judgment unit 225 uses the tag and transaction information to compare whether the tag and transaction information meet the risk control conditions; when the order package meets the risk control conditions, the order package is a risk control transaction package, and the risk control judgment device 113 transmits the risk control transaction package to the operation center host 151.

請同時參考圖4,圖4顯示風控判斷裝置用以探測FIX之封包一實施例之示意圖。在本實施例中,相鄰的標籤解串器221~224讀取封包時,具有一預設封包位移量P,且本實施例預設封包位移量P為一個位元的封包位移量;每一個標籤解串器221~224將封包於同一時間內分割成複數個封包區塊,且每一個封包區塊對應一預設位元長度;在本實施例中,預設位元長度為四位元長度,。 Please refer to FIG. 4 at the same time, which shows a schematic diagram of an embodiment of a risk control judgment device for detecting FIX packets. In this embodiment, when adjacent tag deserializers 221~224 read packets, they have a preset packet displacement P, and the preset packet displacement P of this embodiment is a packet displacement of one bit; each tag deserializer 221~224 divides the packet into multiple packet blocks at the same time, and each packet block corresponds to a preset bit length; in this embodiment, the preset bit length is four bits.

請注意,每個方形虛框T0~T3代表不同時間間隔,其標籤解串器221~224分別將下單封包分割成四位元長度的封包區塊,且相鄰的標籤解串器221~224讀取時間相差一個封包位移量P;標籤解串器221~224在同一個虛框中搜尋每一個封包區塊的一最末端值,若最末端值若出現「=」則代表封包區塊為封包中的標籤,則下一個時間間隔中封包區塊包含對應標籤的交易資訊;一實施例中,下一個封包區塊與「01」值之間則為對應該標籤的該交易資訊。 Please note that each square virtual frame T0~T3 represents a different time interval, and its tag deserializer 221~224 divides the order packet into four-bit packet blocks respectively, and the adjacent tag deserializer 221~224 reads the time difference by a packet displacement P; the tag deserializer 221~224 searches for a terminal value of each packet block in the same virtual frame. If the terminal value has "=", it means that the packet block is a tag in the packet, and the packet block in the next time interval contains the transaction information corresponding to the tag; in one embodiment, the transaction information corresponding to the tag is between the next packet block and the "01" value.

舉例而言,虛框T0於標籤解串器221時搜尋到最末端值「=」(如圓形虛框A1);因虛框T1為下一個時間間隔,在虛框T1封包區塊 中,其標籤解串器221在虛框T1中「01」之前的值將為對應該標籤的交易資訊,故橢圓虛框A2的「VV」值為交易資訊。 For example, virtual frame T0 searches for the last value "=" (such as circular virtual frame A1) at the tag deserializer 221; because virtual frame T1 is the next time interval, in the virtual frame T1 packet block, the value before "01" in the tag deserializer 221 in virtual frame T1 will be the transaction information corresponding to the tag, so the "VV" value of the elliptical virtual frame A2 is the transaction information.

最後,風控判斷單元225對標籤與交易資訊進行判斷是否滿足風控條件;當下單封包滿足風控條件時,則風控判斷裝置113中的FPGA卡154發出風控交易封包至作業中心主機151。 Finally, the risk control judgment unit 225 judges whether the tag and transaction information meet the risk control conditions; when the order package meets the risk control conditions, the FPGA card 154 in the risk control judgment device 113 sends a risk control transaction package to the operation center host 151.

綜上所述,本發明風控判斷裝置113利用標籤解串器解串來自使用者裝置15的下單封包,並由FPGA卡154判斷下單封包是否滿足風控條件,讓風控判斷裝置113中的FPGA卡154傳輸風控交易封包以決定是否進行交易買賣,而不再將下單封包回傳至上層的使用者裝置15中應用程式介面15a;故可解決金融商品在行情劇烈波動之前,在此情況之前進行交易買賣的問題。 In summary, the risk control judgment device 113 of the present invention uses a tag deserializer to deserialize the order packet from the user device 15, and the FPGA card 154 determines whether the order packet meets the risk control conditions, so that the FPGA card 154 in the risk control judgment device 113 transmits the risk control transaction packet to determine whether to conduct a transaction, and no longer returns the order packet to the application program interface 15a in the upper user device 15; therefore, it can solve the problem of trading financial products before the market fluctuates violently.

15:使用者裝置 15: User device

151:作業中心主機 151: Operation center host

15a:應用程式介面 15a: Application Programming Interface

15b:NIC橋接器 15b: NIC bridge

15c:FPGA管理器 15c:FPGA Manager

15d:PCIe驅動單元 15d: PCIe drive unit

15e:PCIe匯流排 15e: PCIe bus

153:風控判斷伺服器 153: Risk control judgment server

154:FPGA卡 154:FPGA card

221~224:標籤解串器 221~224: Tag deserializer

225:風控判斷單元 225: Risk control judgment unit

120a:PCIe接口 120a: PCIe interface

120~123:NIC接口 120~123: NIC interface

12:第一層交換機 12: First layer switch

12a:數據多工器 12a: Data multiplexer

113:風控判斷裝置 113: Risk control judgment device

Port1~Port6:連接埠 Port1~Port6: Connection port

Claims (14)

一種交易系統,包含:一使用者裝置,依據一商品價格封包產生一下單封包;一風控判斷裝置,接收該下單封包,快速地解串(deserialize)該下單封包,並找出該下單封包中的一標籤及對應該標籤的一交易資訊,並且比對該下單封包是否滿足一風控條件,並產生一風控交易封包;以及一作業中心主機,收集市場上的一商品價格並產生該商品價格封包,並依據一風控交易封包進行撮合交易;其中,當該下單封包滿足該風控條件時,則該風控交易封包為該下單封包並傳輸至該作業中心主機進行交易撮合;當該下單封包不滿足該風控條件時,則該風控交易封包取代該下單封包,該風控交易封包傳輸至該作業中心主機使該下單封包的交易無效。 A trading system includes: a user device, generating an order package according to a product price package; a risk control judgment device, receiving the order package, quickly deserializing the order package, finding a tag in the order package and a transaction information corresponding to the tag, and comparing whether the order package meets a risk control condition, and generating a risk control transaction package; and an operation center host, collecting market data The price of a product is obtained and the product price package is generated, and a matching transaction is carried out according to a risk control transaction package; wherein, when the order package meets the risk control conditions, the risk control transaction package is the order package and is transmitted to the operation center host for transaction matching; when the order package does not meet the risk control conditions, the risk control transaction package replaces the order package, and the risk control transaction package is transmitted to the operation center host to invalidate the transaction of the order package. 根據請求項1所述的交易系統,其中,該作業中心主機依據風控交易封包產生一交易委託回報封包,該風控判斷裝置接收該交易委託回報封包,該風控判斷裝置係比對該交易委託回報封包對應的該下單封包;該風控判斷裝置針對不符該風控條件的該下單封包,該風控判斷裝置添加一錯誤碼於該交易委託回報封包後,並將該交易委託回報封包傳輸至該使用者裝置。 According to the trading system described in claim 1, the operation center host generates a transaction entrustment report packet according to the risk control transaction packet, the risk control judgment device receives the transaction entrustment report packet, and the risk control judgment device compares the order packet corresponding to the transaction entrustment report packet; the risk control judgment device adds an error code to the transaction entrustment report packet for the order packet that does not meet the risk control condition, and transmits the transaction entrustment report packet to the user device. 根據請求項2所述的交易系統,其中,該風控判斷裝置包含一第一層交換機,該第一層交換機利用一數據多工器(Mux)收集該第一層交換機所接收的複數個封包並傳輸至該風控判斷裝置的一資料庫中。 According to the trading system described in claim 2, the risk control judgment device includes a first-layer switch, and the first-layer switch uses a data multiplexer (Mux) to collect multiple packets received by the first-layer switch and transmit them to a database of the risk control judgment device. 根據請求項2所述的交易系統,其中,該風控判斷裝置包含:一標籤解串器,標籤解串器用以對該下單封包進行解串,取得該下單封包中的該標籤以及對應該標籤的該交易資訊;以及一風控判斷單元,比對該標籤以及該交易資訊是否滿足該風控條件。 According to the trading system described in claim 2, the risk control judgment device comprises: a tag deserializer, which is used to deserialize the order package to obtain the tag in the order package and the transaction information corresponding to the tag; and a risk control judgment unit, which compares the tag and the transaction information to see whether they meet the risk control condition. 根據請求項4所述的交易系統,其中,該標籤解串器將該下單封包於相同的一時間間隔內分割成複數個封包區塊,且每一個封包區塊對應一預設位元長度。 According to the trading system described in claim 4, the tag deserializer divides the order packet into a plurality of packet blocks within the same time interval, and each packet block corresponds to a preset bit length. 根據請求項5所述的交易系統,其中,該標籤解串器搜尋每一個封包區塊的一最末端值,該最末端值若出現「=」則代表該封包區塊為該下單封包中的該標籤,而下一個該時間間隔中該封包區塊為對應該標籤的該交易資訊。 According to the transaction system described in claim 5, the tag deserializer searches for a terminal value of each packet block, and if the terminal value contains "=", it means that the packet block is the tag in the order packet, and the packet block in the next time interval is the transaction information corresponding to the tag. 根據請求項5所述的交易系統,其中,相鄰的該標籤解串器讀取該下單封包時,具有一預設位元的封包位移量。 According to the transaction system described in claim 5, when the adjacent tag deserializer reads the order packet, it has a packet displacement of a preset bit. 根據請求項6所述的交易系統,其中,相鄰的該標籤解串器讀取該下單封包時,具有一個位元的封包位移量。 According to the transaction system described in claim 6, when the adjacent tag deserializer reads the order packet, it has a packet displacement of one bit. 根據請求項1所述的交易系統,其中,該風控判斷裝置利用一遮罩表對該下單封包中的固定一預設位元位置的值進行比對,若該預設位元位置的值滿足一期望值表,則風控判斷裝置發出該風控交易封包至該作業中心主機。 According to the trading system described in claim 1, the risk control judgment device uses a mask table to compare the value of a fixed preset bit position in the order packet. If the value of the preset bit position satisfies an expected value table, the risk control judgment device sends the risk control transaction packet to the operation center host. 一種風控判斷裝置,用來在接收來自一使用者裝置的一下單封包,且包含:一標籤解串器,標籤解串器用以對該下單封包進行解串,取得該下單封包中的該標籤以及對應該標籤的一交易資訊;以及一風控判斷單元,比對該標籤以及該交易資訊是否滿足一風控條件;其中,該風控判斷裝置比對該下單封包是否滿足該風控條件,並產生一風控交易封包;當該下單封包滿足該風控條件時,則該風控交易封包為該下單封包並傳輸至一作業中心主機進行交易撮合;當該下單封包不滿足該風控條件時,則該風控交易封包取代該下單封包,該風控交易封包傳輸至該作業中心主機使該下單封包的交易無效。 A risk control judgment device is used to receive an order package from a user device, and comprises: a tag deserializer, the tag deserializer is used to deserialize the order package to obtain the tag in the order package and a transaction information corresponding to the tag; and a risk control judgment unit, comparing the tag and the transaction information to see whether they meet a risk control condition; wherein the risk control judgment device compares the order package The package satisfies the risk control conditions and generates a risk control transaction package; when the order package satisfies the risk control conditions, the risk control transaction package is the order package and is transmitted to an operation center host for transaction matching; when the order package does not meet the risk control conditions, the risk control transaction package replaces the order package, and the risk control transaction package is transmitted to the operation center host to invalidate the transaction of the order package. 根據請求項10所述的風控判斷裝置,其中,該風控判斷裝置接收一交易委託回報封包,該風控判斷裝置係比對該交易委託回報封包對應的該下單封包;該風控判斷裝置針對不符該風控條件的該下單封包,該風控判斷裝置添加一錯誤碼於該交易委託回報封包後,並將該交易委託回報封包傳輸至該使用者裝置。 According to the risk control determination device described in claim 10, the risk control determination device receives a transaction commission report packet, and the risk control determination device compares the order packet corresponding to the transaction commission report packet; for the order packet that does not meet the risk control condition, the risk control determination device adds an error code to the transaction commission report packet, and transmits the transaction commission report packet to the user device. 根據請求項11所述的風控判斷裝置,其中,該風控判斷裝置包含一第一層交換機,該第一層交換機利用一數據多工器(Mux)收集該第一層交換機所接收的複數個封包並傳輸至該風控判斷裝置的一資料庫中。 According to the risk control judgment device described in claim 11, the risk control judgment device includes a first-layer switch, and the first-layer switch uses a data multiplexer (Mux) to collect a plurality of packets received by the first-layer switch and transmit them to a database of the risk control judgment device. 根據請求項10所述的風控判斷裝置,其中,該標籤解串器將該下單封包於相同的一時間間隔內分割成複數個封包區塊,且每一個封包區塊對應一預設位元長度。 According to the risk control judgment device described in claim 10, the tag deserializer divides the order packet into a plurality of packet blocks within the same time interval, and each packet block corresponds to a preset bit length. 根據請求項13所述的風控判斷裝置,其中,該標籤解串器搜尋每一個封包區塊的一最末端值,該最末端值若出現「=」則代表該封包區塊為封包中的該標籤,而下一個該時間間隔中該封包區塊包含對應該標籤的該交易資訊。 According to the risk control judgment device described in claim 13, the tag deserializer searches for a terminal value of each packet block, and if the terminal value contains "=", it means that the packet block is the tag in the packet, and the packet block in the next time interval contains the transaction information corresponding to the tag.
TW111144055A 2021-11-25 2022-11-17 Risk control judgment device and transaction system TWI841062B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW110144078 2021-11-25
TW110144078 2021-11-25

Publications (2)

Publication Number Publication Date
TW202324260A TW202324260A (en) 2023-06-16
TWI841062B true TWI841062B (en) 2024-05-01

Family

ID=87803621

Family Applications (3)

Application Number Title Priority Date Filing Date
TW111144044A TWI841060B (en) 2021-11-25 2022-11-17 Fast lookup device and transaction risk control device
TW111144055A TWI841062B (en) 2021-11-25 2022-11-17 Risk control judgment device and transaction system
TW111144054A TWI841061B (en) 2021-11-25 2022-11-17 Transaction risk control device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
TW111144044A TWI841060B (en) 2021-11-25 2022-11-17 Fast lookup device and transaction risk control device

Family Applications After (1)

Application Number Title Priority Date Filing Date
TW111144054A TWI841061B (en) 2021-11-25 2022-11-17 Transaction risk control device

Country Status (1)

Country Link
TW (3) TWI841060B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI293161B (en) * 2005-12-07 2008-02-01
CN101739646A (en) * 2008-11-18 2010-06-16 英属维京群岛商钜融资本管理股份有限公司 Systematic risk control method, system and computer program product thereof
US8570866B2 (en) * 2001-07-02 2013-10-29 Hewlett-Packard Development Company, L.P. System and method for processing network packet flows
TW201822521A (en) * 2016-12-02 2018-06-16 台灣大哥大股份有限公司 System and method for mobile device application optimization in telecommunication network
CN109218203A (en) * 2018-09-20 2019-01-15 上海龙弈信息科技有限公司 A kind of Financial Management and risk control processing system and its operation method
CN113452684A (en) * 2021-06-17 2021-09-28 湖南工程学院 Network security detection gateway and system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7644029B2 (en) * 1998-11-23 2010-01-05 New Market Solutions, Llc Digital computer system for a synthetic investment and risk management fund
US11042846B2 (en) * 2013-11-15 2021-06-22 Apple Inc. Generating transaction identifiers
US20170300422A1 (en) * 2016-04-14 2017-10-19 Micron Technology, Inc. Memory device with direct read access
CN107977787A (en) * 2017-11-30 2018-05-01 上海龙弈信息科技有限公司 A kind of transaction risk control processing system and method
CN109828776B (en) * 2018-12-06 2022-05-20 珠海西山居互动娱乐科技有限公司 Method and system for searching and supplementing missing resources
CN109544037B (en) * 2018-12-19 2021-05-25 上海金融期货信息技术有限公司 Non-invasive security futures trading pre-transaction wind control gateway system
TWM577148U (en) * 2019-01-03 2019-04-21 兆豐金融控股股份有限公司 Electronic device for evaluating financial risk
TWM610195U (en) * 2020-10-06 2021-04-11 薩摩亞商美亨有限公司 Financial market merchandise transaction transmission system
TWM609051U (en) * 2020-11-10 2021-03-11 財金資訊股份有限公司 System for converting interface specification of financial transaction application program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8570866B2 (en) * 2001-07-02 2013-10-29 Hewlett-Packard Development Company, L.P. System and method for processing network packet flows
TWI293161B (en) * 2005-12-07 2008-02-01
CN101739646A (en) * 2008-11-18 2010-06-16 英属维京群岛商钜融资本管理股份有限公司 Systematic risk control method, system and computer program product thereof
TW201822521A (en) * 2016-12-02 2018-06-16 台灣大哥大股份有限公司 System and method for mobile device application optimization in telecommunication network
CN109218203A (en) * 2018-09-20 2019-01-15 上海龙弈信息科技有限公司 A kind of Financial Management and risk control processing system and its operation method
CN113452684A (en) * 2021-06-17 2021-09-28 湖南工程学院 Network security detection gateway and system

Also Published As

Publication number Publication date
TW202322026A (en) 2023-06-01
TWI841060B (en) 2024-05-01
TW202324271A (en) 2023-06-16
TWI841061B (en) 2024-05-01
TW202324260A (en) 2023-06-16

Similar Documents

Publication Publication Date Title
US20200174954A1 (en) Encapsulated Accelerator
US10860511B1 (en) Integrated network-attachable controller that interconnects a solid-state drive with a remote server computer
US7937447B1 (en) Communication between computer systems over an input/output (I/O) bus
US8478982B2 (en) Media access control security management in physical layer
TWI424317B (en) Apparatus, method and system for managing timing of a protocol stack
JP5490336B2 (en) Prioritizing low latency in a PCI Express multiple root I / O virtualization environment
EP2453364B1 (en) A method for deterministic SAS discovery and configuration
US8874976B2 (en) Providing error handling support to legacy devices
US8990451B2 (en) Controller for direct access to a memory for the direct transfer of data between memories of several peripheral devices, method and computer program enabling the implementation of such a controller
US8370541B2 (en) Method and system for processing frames in storage controllers
US10114582B1 (en) Dynamically selecting between sync and async replication modes
TWI570649B (en) Financial commodity trading system and financial commodity transaction control method
US20140244888A1 (en) Using pci-e extended configuration space to send ioctls to a pci-e adapter
CN104049692B (en) A kind of blade server
CN110932922A (en) Financial data two-layer network acquisition system based on FPGA and testing method thereof
TWI841062B (en) Risk control judgment device and transaction system
CN117556754B (en) PCIe switch chip pre-silicon simulation system
US20190213156A1 (en) System and method for controlling the performance of serial attached scsi (sas) target devices
US10769092B2 (en) Apparatus and method for reducing latency of input/output transactions in an information handling system using no-response commands
WO2023206963A1 (en) Data processing method and system, and related components
JP2599553B2 (en) A picoprocessor-based coupler that performs complex functions outside the main communication data path.
CN108289117B (en) Multi-party access system based on FPGA and processing method
CN114968855B (en) Consistent access to persistent storage region ranges
US7184411B2 (en) Switch-management agent trap scheme in an infiniband-architecture switch
TWI761236B (en) Transaction risk control device