CN108833446A - A kind of method for converting protocol and device based on Fix agreement request packet - Google Patents

A kind of method for converting protocol and device based on Fix agreement request packet Download PDF

Info

Publication number
CN108833446A
CN108833446A CN201810867017.5A CN201810867017A CN108833446A CN 108833446 A CN108833446 A CN 108833446A CN 201810867017 A CN201810867017 A CN 201810867017A CN 108833446 A CN108833446 A CN 108833446A
Authority
CN
China
Prior art keywords
fix
request packet
request
packet
fix agreement
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
CN201810867017.5A
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.)
Gf Securities Co ltd
Original Assignee
Gf Securities 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 Gf Securities Co ltd filed Critical Gf Securities Co ltd
Priority to CN201810867017.5A priority Critical patent/CN108833446A/en
Publication of CN108833446A publication Critical patent/CN108833446A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Abstract

The invention discloses a kind of method for converting protocol and device based on Fix agreement request packet, use FIX agreement as being uniformly accessed into agreement, and it is adapted to for the different agreement of different transaction systems, client only needs the protocol frame using FIX agreement in this way, different transaction systems can be docked, it solves the existing agreement actually accessed and standard is chaotic, access will access other transaction systems for the client of some transaction system exploitation, the technical issues of modification cost is huge, also brings additional cost to the operation maintenance of stock trader.

Description

A kind of method for converting protocol and device based on Fix agreement request packet
Technical field
The present invention relates to the communications field more particularly to a kind of method for converting protocol and device based on Fix agreement request packet.
Background technique
Currently, the supplier of each transaction system, there is a transaction system of oneself, and each transaction system, there is oneself Communications protocol, and each stock trader for various aspects consider, the transaction system of a supplier will not be only used, which results in Inside stock trader, different transaction systems is accessed, needs to be developed using the agreement of different vendor.
And as widely used financial information exchange agreement (the Financial Information in international finance field EXchange, FIX agreement), various manufacturers are due to various problems left over by history, and support is also inadequate, this makes the association actually accessed Negotiation standard is chaotic, and access will access other transaction systems for the client of some transaction system exploitation, modifies cost It is huge, additional cost is also brought to the operation maintenance of stock trader.
Summary of the invention
A kind of method for converting protocol based on Fix agreement request packet provided by the invention is solved and existing is actually accessed Agreement and standard are chaotic, and access will access other transaction systems for the client of some transaction system exploitation, are modified as This is huge, and additional cost is also brought to the operation maintenance of stock trader.
A kind of method for converting protocol based on Fix agreement request packet provided by the invention, including:
If Fix agreement access server receives the Fix agreement request packet of client transmission, according to the Fix agreement Functional request and non-functional request in request packet are handled and are encapsulated, and by the Fix agreement request after encapsulation Protocol conversion server is forwarded a packet to, so that the protocol conversion server is according to the request normative translation of each transaction system Fix agreement request packet, and each transaction system is sent by the Fix agreement request packet after conversion;
The Fix agreement access server receives the return Fix agreement request packet that the protocol conversion server is sent, The return Fix agreement request packet is for the protocol conversion server by each transaction system according to the Fix after the conversion What agreement request packet was sent returns what request normative translation of the packet based on each transaction system obtained;
The return Fix agreement request packet is sent the client by the Fix agreement access server.
Optionally, if the Fix agreement access server receives the Fix agreement request packet of client transmission, basis Functional request and non-functional request in the Fix agreement request packet are handled and are encapsulated, and will be described in after encapsulation Fix agreement request forwards a packet to protocol conversion server, so that request of the protocol conversion server according to each transaction system Fix agreement request packet described in normative translation, and send each transaction system for the Fix agreement request packet after conversion and have Body includes:
If Fix agreement access server receives the Fix agreement request packet of client transmission, according to the Fix agreement The session state-maintenance that functional request in request packet carries out user obtains the session information of user, according to described The field value in the Fix agreement request packet is extracted in non-functional request in Fix agreement request packet, with protobuf agreement into Row encapsulation, and the Fix agreement request after encapsulation is forwarded a packet into protocol conversion server, so that the protocol translation service Device Fix agreement request packet according to the request normative translation of each transaction system, and by the Fix agreement request packet after conversion It is sent to each transaction system.
Optionally, the Fix agreement access server sends the client for the return Fix agreement request packet and has Body includes:
The Fix agreement access server is according to the session information of the user by the return Fix agreement request packet It is sent to the client.
Optionally, described to make protocol conversion server Fix according to the request normative translation of each transaction system Agreement request packet specifically includes:
So that the protocol conversion server obtains the title and type of each field of the request specification of each transaction system, And from the Fix request packet, extracts corresponding value and carry out the title of each field and the assignment of type.
Optionally, described from the Fix request packet, extract the tax that corresponding value carries out the title and type of each field Further include after value:
If the corresponding type of described value belongs to enumerated value, the enumerated value in Fix request and each transaction system are searched The corresponding relationship of specification respective field enumerated value is requested, corresponding conversion and assignment are carried out.
A kind of method for converting protocol based on Fix agreement request packet provided by the invention, including:
After if protocol conversion server receives the encapsulation of Fix agreement access server forwarding sent by client Fix agreement request packet, then the Fix agreement request packet according to the request normative translation of each transaction system, and by the institute after conversion It states Fix agreement request packet and is sent to each transaction system;
The protocol conversion server receives each transaction system and is sent according to the Fix agreement request packet after the conversion Return packet, and the request normative translation based on each transaction system obtain return Fix agreement request packet;
The return Fix agreement request is forwarded a packet to the Fix agreement access server by the protocol conversion server, So that the return Fix agreement request packet is sent the client by the Fix agreement access server.
Optionally, Fix agreement request packet described in the request normative translation according to each transaction system specifically includes:
The title and type of each field of the request specification of each transaction system are obtained, and from the Fix request packet, is mentioned Corresponding value is taken to carry out the title of each field and the assignment of type.
Optionally, described from the Fix request packet, extract the tax that corresponding value carries out the title and type of each field Further include after value:
If the corresponding type of described value belongs to enumerated value, the enumerated value in Fix request and each transaction system are searched The corresponding relationship of specification respective field enumerated value is requested, corresponding conversion and assignment are carried out.
A kind of protocol conversion apparatus based on Fix agreement request packet provided by the invention is arranged in Fix agreement access service On device, including:
First forwarding module, if the Fix agreement request packet for receiving client transmission, according to the Fix agreement Functional request and non-functional request in request packet are handled and are encapsulated, and by the Fix agreement request after encapsulation Protocol conversion server is forwarded a packet to, so that the protocol conversion server is according to the request normative translation of each transaction system Fix agreement request packet, and each transaction system is sent by the Fix agreement request packet after conversion;
First receiving module, the return Fix agreement request packet sent for receiving the protocol conversion server are described Return Fix agreement request packet is for the protocol conversion server by each transaction system according to the Fix agreement after the conversion What request packet was sent returns what request normative translation of the packet based on each transaction system obtained;
First sending module, for sending the client for the return Fix agreement request packet.
A kind of protocol conversion apparatus based on Fix agreement request packet provided by the invention is arranged in protocol conversion server On, including:
First conversion module, if after for receiving the encapsulation sent by client that Fix agreement access server forwards Fix agreement request packet, then the Fix agreement request packet according to the request normative translation of each transaction system, and will be after conversion The Fix agreement request packet is sent to each transaction system;
Second conversion module is sent for receiving each transaction system according to the Fix agreement request packet after the conversion Return packet, and the request normative translation based on each transaction system obtain return Fix agreement request packet;
Second forwarding module, for the return Fix agreement request to be forwarded a packet to the Fix agreement access server, So that the return Fix agreement request packet is sent the client by the Fix agreement access server.
As can be seen from the above technical solutions, the present invention has the following advantages that:
A kind of method for converting protocol based on Fix agreement request packet provided by the invention, including:Fix agreement access service If device receives the Fix agreement request packet of client transmission, requested according to the functionality in the Fix agreement request packet and non- Functionality request is handled and is encapsulated, and the Fix agreement request after encapsulation is forwarded a packet to protocol conversion server, is made Protocol conversion server Fix agreement request packet according to the request normative translation of each transaction system is obtained, and will be after conversion The Fix agreement request packet be sent to each transaction system;The Fix agreement access server receives the agreement and turns The return Fix agreement request packet of server transmission is changed, the return Fix agreement request packet is that the protocol conversion server will be each Transaction system turns according to request specification of the packet based on each transaction system of returning that the Fix agreement request packet after the conversion is sent It gets in return;The return Fix agreement request packet is sent the client by the Fix agreement access server, uses FIX Agreement, which is used as, is uniformly accessed into agreement, and is adapted to for the different agreement of different transaction systems, and such client only needs to make With the protocol frame of FIX agreement, so that it may dock different transaction systems, solve the existing agreement actually accessed and standard is mixed Disorderly, access will access other transaction systems for the client of some transaction system exploitation, and modification cost is huge, also give certificate The operation maintenance of quotient brings the technical issues of additional cost.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other attached drawings according to these attached drawings.
Fig. 1 is an a kind of implementation of method for converting protocol based on Fix agreement request packet provided in an embodiment of the present invention The architecture diagram of example;
Fig. 2 is an a kind of implementation of method for converting protocol based on Fix agreement request packet provided in an embodiment of the present invention The flow diagram of example;
Fig. 3 is a kind of another reality of the method for converting protocol based on Fix agreement request packet provided in an embodiment of the present invention Apply the flow diagram of example;
Fig. 4 is an a kind of implementation of protocol conversion apparatus based on Fix agreement request packet provided in an embodiment of the present invention The structural schematic diagram of example.
Fig. 5 is an a kind of implementation of protocol conversion apparatus based on Fix agreement request packet provided in an embodiment of the present invention The structural schematic diagram of example.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention Range.
Fig. 1 is an a kind of implementation of method for converting protocol based on Fix agreement request packet provided in an embodiment of the present invention The architecture diagram of example, as shown in Figure 1, wherein access server is Fix agreement access server, transform server is Protocol conversion server, database are protocol conversion rule database, and Client is client;
Referring to figure 2., a kind of method for converting protocol based on Fix agreement request packet provided in an embodiment of the present invention can wrap It includes:
Step S100:If Fix agreement access server receives the Fix agreement request packet of client transmission, according to Fix Functional request and non-functional request in agreement request packet are handled and are encapsulated, and by the Fix agreement request after encapsulation Protocol conversion server is forwarded a packet to, so that request normative translation Fix agreement of the protocol conversion server according to each transaction system Request packet, and each transaction system is sent by the Fix agreement request packet after conversion;
In the embodiment of the present invention, when carrying out the protocol conversion based on Fix agreement request packet, if Fix agreement is needed to access Server receives the Fix agreement request packet of client transmission, then according in Fix agreement request packet functional request and NOT function Energy property request is handled and is encapsulated, and the Fix agreement request after encapsulation is forwarded a packet to protocol conversion server, so that agreement Change server is according to the request normative translation Fix agreement request packet of each transaction system, and by the Fix agreement request packet after conversion It is sent to each transaction system;
Optionally, it if Fix agreement access server receives the Fix agreement request packet of client transmission, is assisted according to Fix The session state-maintenance that functional request in view request packet carries out user obtains the session information of user, according to Fix The field value in Fix agreement request packet is extracted in non-functional request in agreement request packet, is packaged with protobuf agreement, And the Fix agreement request after encapsulation is forwarded a packet into protocol conversion server, so that protocol conversion server is according to each transaction The request normative translation Fix agreement request packet of system, and each transaction system is sent by the Fix agreement request packet after conversion;
It should be noted that access server (Fix agreement access server), for accessing the Fix of client transmission User is requested access, session management and subsequent conversion logic to carry out by agreement request, and centralized maintenance user session Isolation;
It should be noted that FIX:Financial Information eXchange (FIX) financial information exchange agreement, The open protocol provided by international FIX association and organization, it is therefore an objective to the process for pushing international trade electronization, in all kinds of ginsengs Between person, including investment manager, broker, buyer, the seller set up electronic communications protocol in real time.
The Fix request of user reaches access server, carries out basic solution to Fix request by access server Analysis, and the functional request of Fix is handled, verifying logs in, and safeguards session state of user etc..The non-functional of Fix is asked It asks, extracts necessary field value, and be packaged with the inside protobuf agreement of system, be transmitted to transform server (protocol conversion server);
Step S101, Fix agreement access server receives the return Fix agreement request of protocol conversion server transmission Packet, returning to Fix agreement request packet is that protocol conversion server sends each transaction system according to the Fix agreement request packet after conversion Request normative translation of the packet based on each transaction system of returning obtain;
If being asked if Fix agreement access server receives the Fix agreement request packet of client transmission according to Fix agreement It asks functional request and non-functional request in packet to be handled and encapsulated, and the Fix agreement request packet after encapsulation is forwarded To protocol conversion server, so that request normative translation Fix agreement request packet of the protocol conversion server according to each transaction system, And after by the Fix agreement request packet after conversion sending each transaction system, Fix agreement access server is needed to receive agreement The return Fix agreement request packet that change server is sent, return to Fix agreement request packet as protocol conversion server is by each transaction System returns what request normative translation of the packet based on each transaction system obtained according to what the Fix agreement request packet after conversion was sent;
Optionally, so that protocol conversion server has according to the request normative translation Fix agreement request packet of each transaction system Body includes:
So that the title and type of each field that the request that protocol conversion server obtains each transaction system standardizes, and from In Fix request packet, extracts corresponding value and carry out the title of each field and the assignment of type.
It should be noted that parsing the corresponding field of backpack body after transform server receives request, determines and need to turn The target protocol of shifting;
Optionally, it from Fix request packet, extracts corresponding value and gone back after the title of each field and the assignment of type Including:
If being worth corresponding type belongs to enumerated value, the request of the enumerated value and each transaction system in Fix request is searched The corresponding relationship of specification respective field enumerated value carries out corresponding conversion and assignment.
It should be noted that determining which for needing to be converted into target protocol according to the request Packet type and target protocol of Fix One request;Obtain each field of target protocol request, the title including field, type etc., then from original Fix request packet In, it extracts corresponding value and carries out assignment;If Value Types belong to enumerated value, the enumerated value and target searched in Fix request are assisted The corresponding relationship of respective field enumerated value is discussed, corresponding conversion and assignment are carried out.All these transformation rules, all foundation Regular data inside database database (protocol conversion rule database) inside tables of data;
Wherein, database database (protocol conversion rule database), for store Fix agreement with it is each Transformation rule between the agreement of TradeSystem (transaction system), title, data type including each field, field Enumerated value corresponding relationship, essential option, option needed for each full message etc..
Step S102:Fix agreement access server is sent to client for Fix agreement request packet is returned;
The return Fix agreement request packet of protocol conversion server transmission is received in Fix agreement access server, is returned Fix agreement request packet is time packet that protocol conversion server sends each transaction system according to the Fix agreement request packet after conversion After request normative translation based on each transaction system obtains, need Fix agreement access server that will return to Fix agreement request Packet is sent to client
Optionally, Fix agreement access server will return to Fix agreement request packet according to the session information of user and send To client;
A kind of method for converting protocol based on Fix agreement request packet provided by the invention, including:Fix agreement access service If device receives the Fix agreement request packet of client transmission, requested according to the functionality in Fix agreement request packet and non-functional Property request handled and encapsulated, and the Fix agreement request after encapsulation is forwarded a packet into protocol conversion server, so that agreement turns Server is changed according to the request normative translation Fix agreement request packet of each transaction system, and the Fix agreement request packet after conversion is sent out It is sent to each transaction system;Fix agreement access server receives the return Fix agreement request packet of protocol conversion server transmission, Returning to Fix agreement request packet is that protocol conversion server sends each transaction system according to the Fix agreement request packet after conversion Return what request normative translation of the packet based on each transaction system obtained;Fix agreement access server will return to Fix agreement request packet hair It is sent to client, uses FIX agreement as being uniformly accessed into agreement, and fitted for the different agreement of different transaction systems Match, such client only needs the protocol frame using FIX agreement, so that it may dock different transaction systems, solve existing reality The agreement and standard of border access are chaotic, and access will access other transaction systems for the client of some transaction system exploitation The technical issues of system, modification cost is huge, also brings additional cost to the operation maintenance of stock trader.
The above is a kind of retouching in detail for one embodiment progress to method for converting protocol based on Fix agreement request packet It states, a kind of another embodiment of method for converting protocol based on Fix agreement request packet will be described in detail below.
Referring to Fig. 3, a kind of another implementation of method for converting protocol based on Fix agreement request packet provided by the invention Example, including:
Step S200:If protocol conversion server receive Fix agreement access server forwarding encapsulation after by client Fix agreement request packet after holding the encapsulation sent, then according to the request normative translation Fix agreement request packet of each transaction system, and Each transaction system is sent by the Fix agreement request packet after conversion;
In the embodiment of the present invention, when carrying out the protocol conversion based on Fix agreement request packet, if needing protocol translation service Device receives the Fix agreement request packet of Fix agreement access server forwarding sent by client, then according to each transaction system Normative translation Fix agreement request packet is requested, and sends each transaction system for the Fix agreement request packet after conversion;
It should be noted that access server (Fix agreement access server), for accessing the Fix of client transmission User is requested access, session management and subsequent conversion logic to carry out by agreement request, and centralized maintenance user session Isolation;
It should be noted that FIX:Financial Information eXchange (FIX) financial information exchange agreement, The open protocol provided by international FIX association and organization, it is therefore an objective to the process for pushing international trade electronization, in all kinds of ginsengs Between person, including investment manager, broker, buyer, the seller set up electronic communications protocol in real time.
The Fix request of user reaches access server, carries out basic solution to Fix request by access server Analysis, and the functional request of Fix is handled, verifying logs in, and safeguards session state of user etc..The non-functional of Fix is asked It asks, extracts necessary field value, and be packaged with the inside protobuf agreement of system, be transmitted to transform server (protocol conversion server);
Step S201, protocol conversion server receives what each transaction system was sent according to the Fix agreement request packet after conversion Packet is returned, and the request normative translation based on each transaction system obtains returning to Fix agreement request packet;
If the Fix agreement sent by client that protocol conversion server receives the forwarding of Fix agreement access server is asked Packet is sought, then according to the request normative translation Fix agreement request packet of each transaction system, and the Fix agreement request packet after conversion is sent out It is sent to after each transaction system, protocol conversion server is needed to receive each transaction system according to the Fix agreement request packet after conversion What is sent returns packet, and the request normative translation based on each transaction system obtains returning to Fix agreement request packet;
Optionally, it is specifically included according to the request normative translation Fix agreement request packet of each transaction system:
The title and type of each field of the request specification of each transaction system are obtained, and from Fix request packet, extraction pair The value answered carries out the title of each field and the assignment of type.
It should be noted that parsing the corresponding field of backpack body after transform server receives request, determines and need to turn The target protocol of shifting;
Optionally, it from Fix request packet, extracts corresponding value and gone back after the title of each field and the assignment of type Including:
If being worth corresponding type belongs to enumerated value, the request of the enumerated value and each transaction system in Fix request is searched The corresponding relationship of specification respective field enumerated value carries out corresponding conversion and assignment.
It should be noted that determining which for needing to be converted into target protocol according to the request Packet type and target protocol of Fix One request;Obtain each field of target protocol request, the title including field, type etc., then from original Fix request packet In, it extracts corresponding value and carries out assignment;If Value Types belong to enumerated value, the enumerated value and target searched in Fix request are assisted The corresponding relationship of respective field enumerated value is discussed, corresponding conversion and assignment are carried out.All these transformation rules, all foundation Regular data inside database database (protocol conversion rule database) inside tables of data;
Wherein, database database (protocol conversion rule database), for store Fix agreement with it is each Transformation rule between the agreement of TradeSystem (transaction system), title, data type including each field, field Enumerated value corresponding relationship, essential option, option needed for each full message etc..
Step S202:Protocol conversion server forwards a packet to Fix agreement access server for Fix agreement request is returned, and makes It obtains Fix agreement access server and client is sent to for Fix agreement request packet is returned according to the session information of user;
Time packet that each transaction system is sent according to the Fix agreement request packet after conversion is received in protocol conversion server, and Request normative translation based on each transaction system obtains after returning to Fix agreement request packet, needs protocol conversion server that will return It returns Fix agreement request and forwards a packet to Fix agreement access server, so that session of the Fix agreement access server according to user Information is sent to client for Fix agreement request packet is returned;
A kind of method for converting protocol based on Fix agreement request packet provided by the invention uses FIX agreement as uniformly connecing Enter agreement, and be adapted to for the different agreement of different transaction systems, such client only needs the agreement using FIX agreement Frame, so that it may dock different transaction systems, solve the existing agreement actually accessed and standard is chaotic, access is for a certain The client of a transaction system exploitation will access other transaction systems, and modification cost is huge, also gives the operation maintenance band of stock trader The technical issues of carrying out additional cost.
Referring to Fig. 4, Fig. 4 shows a kind of protocol conversion based on Fix agreement request packet provided in an embodiment of the present invention The structural schematic diagram of device, including:
First forwarding module 401, if the Fix agreement request packet for receiving client transmission, is asked according to Fix agreement It asks functional request and non-functional request in packet to be handled and encapsulated, and the Fix agreement request packet after encapsulation is forwarded To protocol conversion server, so that request normative translation Fix agreement request packet of the protocol conversion server according to each transaction system, And each transaction system is sent by the Fix agreement request packet after conversion;
First receiving module 402 is returned for receiving the return Fix agreement request packet of protocol conversion server transmission Fix agreement request packet is time packet that protocol conversion server sends each transaction system according to the Fix agreement request packet after conversion What the request normative translation based on each transaction system obtained;
First sending module 403 is sent to client for that will return to Fix agreement request packet.
Optionally, the first forwarding module 401 is specifically used for, if receiving the Fix agreement request packet of client transmission, root The session information of user is obtained according to the session state-maintenance that the functional request in Fix agreement request packet carries out user, According in Fix agreement request packet non-functional request extract Fix agreement request packet in field value, with protobuf agreement into Row encapsulation, and the Fix agreement request after encapsulation is forwarded a packet into protocol conversion server, so that protocol conversion server is according to each The request normative translation Fix agreement request packet of transaction system, and send each transaction for the Fix agreement request packet after conversion and be System;
Optionally, the first forwarding module 401 is specifically used for, if receiving the Fix agreement request packet of client transmission, root The session information of user is obtained according to the session state-maintenance that the functional request in Fix agreement request packet carries out user, According in Fix agreement request packet non-functional request extract Fix agreement request packet in field value, with protobuf agreement into Row encapsulation, and the Fix agreement request after encapsulation is forwarded a packet into protocol conversion server, so that protocol conversion server obtains respectively The title and type of each field of the request specification of transaction system, and from Fix request packet, it is each to extract corresponding value progress The title of field and the assignment of type search enumerated value in Fix request and each if being worth corresponding type belongs to enumerated value The corresponding relationship of the request specification respective field enumerated value of transaction system carries out corresponding conversion and assignment, and will be after conversion Fix agreement request packet is sent to each transaction system.
Referring to Fig. 5, Fig. 5 shows a kind of protocol conversion based on Fix agreement request packet provided in an embodiment of the present invention The structural schematic diagram of device, including:
First conversion module 501, if the encapsulation sent by client for receiving the forwarding of Fix agreement access server Fix agreement request packet afterwards, then according to the request normative translation Fix agreement request packet of each transaction system, and by the Fix after conversion Agreement request packet is sent to each transaction system;
Second conversion module 502 is returned for receiving each transaction system according to what the Fix agreement request packet after conversion was sent Packet, and the request normative translation based on each transaction system obtains returning to Fix agreement request packet;
Second forwarding module 503 forwards a packet to Fix agreement access server for that will return to Fix agreement request, so that Fix agreement access server is sent to client for Fix agreement request packet is returned.
Optionally, the first conversion module 501 is specifically used for, if receive Fix agreement access server forwarding by client Fix agreement request packet after holding the encapsulation sent then obtains the title and class of each field of the request specification of each transaction system Type, and from Fix request packet, it extracts corresponding value and carries out the title of each field and the assignment of type, if being worth corresponding class Type belongs to enumerated value, then searches pair of the request specification respective field enumerated value of the enumerated value and each transaction system in Fix request It should be related to, carry out corresponding conversion and assignment, and send each transaction system for the Fix agreement request packet after conversion;
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of method for converting protocol based on Fix agreement request packet, which is characterized in that including:
If Fix agreement access server receives the Fix agreement request packet of client transmission, according to the Fix agreement request Functional request and non-functional request in packet are handled and are encapsulated, and the Fix agreement request packet after encapsulation is turned It is dealt into protocol conversion server, so that protocol conversion server Fix according to the request normative translation of each transaction system Agreement request packet, and each transaction system is sent by the Fix agreement request packet after conversion;
The Fix agreement access server receives the return Fix agreement request packet that the protocol conversion server is sent, described Return Fix agreement request packet is for the protocol conversion server by each transaction system according to the Fix agreement after the conversion What request packet was sent returns what request normative translation of the packet based on each transaction system obtained;
The return Fix agreement request packet is sent the client by the Fix agreement access server.
2. the method for converting protocol according to claim 1 based on Fix agreement request packet, which is characterized in that the Fix association If view access server receives the Fix agreement request packet of client transmission, according to the function in the Fix agreement request packet Property request and non-functional request handled and encapsulated, and by the Fix agreement request after encapsulation forward a packet to agreement turn Server is changed, so that protocol conversion server Fix agreement request packet according to the request normative translation of each transaction system, And each transaction system is sent by the Fix agreement request packet after conversion and is specifically included:
If Fix agreement access server receives the Fix agreement request packet of client transmission, according to the Fix agreement request The session state-maintenance that functional request in packet carries out user obtains the session information of user, is assisted according to the Fix The field value in the non-functional request extraction Fix agreement request packet in request packet is discussed, is sealed with protobuf agreement Dress, and the Fix agreement request after encapsulation is forwarded a packet into protocol conversion server, so that the protocol conversion server root Fix agreement request packet described in request normative translation according to each transaction system, and the Fix agreement request packet after conversion is sent To each transaction system.
3. the method for converting protocol according to claim 2 based on Fix agreement request packet, which is characterized in that the Fix association View access server sends the client for the return Fix agreement request packet and specifically includes:
The Fix agreement access server sends the return Fix agreement request packet according to the session information of the user To the client.
4. the method for converting protocol according to claim 1 based on Fix agreement request packet, which is characterized in that it is described so that Protocol conversion server Fix agreement request packet according to the request normative translation of each transaction system specifically includes:
So that the title and type of each field that the request that the protocol conversion server obtains each transaction system standardizes, and from In the Fix request packet, extracts corresponding value and carry out the title of each field and the assignment of type.
5. the method for converting protocol according to claim 4 based on Fix agreement request packet, which is characterized in that described from institute It states in Fix request packet, the assignment for extracting title and type that corresponding value carries out each field further includes later:
If the corresponding type of described value belongs to enumerated value, the request of the enumerated value and each transaction system in Fix request is searched The corresponding relationship of specification respective field enumerated value carries out corresponding conversion and assignment.
6. a kind of method for converting protocol based on Fix agreement request packet, which is characterized in that including:
If the Fix that protocol conversion server receives after the encapsulation of Fix agreement access server forwarding sent by client is assisted Discuss request packet, then the Fix agreement request packet according to the request normative translation of each transaction system, and by the Fix after conversion Agreement request packet is sent to each transaction system;
The protocol conversion server receives each transaction system and is returned according to what the Fix agreement request packet after the conversion was sent Packet, and the request normative translation based on each transaction system obtains returning to Fix agreement request packet;
The return Fix agreement request is forwarded a packet to the Fix agreement access server by the protocol conversion server, so that The return Fix agreement request packet is sent the client by the Fix agreement access server.
7. the method for converting protocol according to claim 6 based on Fix agreement request packet, which is characterized in that the basis Fix agreement request packet described in the request normative translation of each transaction system specifically includes:
The title and type of each field of the request specification of each transaction system are obtained, and from the Fix request packet, extraction pair The value answered carries out the title of each field and the assignment of type.
8. the method for converting protocol according to claim 7 based on Fix agreement request packet, which is characterized in that described from institute It states in Fix request packet, the assignment for extracting title and type that corresponding value carries out each field further includes later:
If the corresponding type of described value belongs to enumerated value, the request of the enumerated value and each transaction system in Fix request is searched The corresponding relationship of specification respective field enumerated value carries out corresponding conversion and assignment.
9. a kind of protocol conversion apparatus based on Fix agreement request packet is arranged on Fix agreement access server, feature exists In, including:
First forwarding module, if the Fix agreement request packet for receiving client transmission, according to the Fix agreement request Functional request and non-functional request in packet are handled and are encapsulated, and the Fix agreement request packet after encapsulation is turned It is dealt into protocol conversion server, so that protocol conversion server Fix according to the request normative translation of each transaction system Agreement request packet, and each transaction system is sent by the Fix agreement request packet after conversion;
First receiving module, the return Fix agreement request packet sent for receiving the protocol conversion server, the return Fix agreement request packet is for the protocol conversion server by each transaction system according to the Fix agreement request after the conversion What packet was sent returns what request normative translation of the packet based on each transaction system obtained;
First sending module, for sending the client for the return Fix agreement request packet.
10. a kind of protocol conversion apparatus based on Fix agreement request packet is arranged on protocol conversion server, which is characterized in that Including:
First conversion module, if for receive Fix agreement access server forwarding by client send encapsulation after Fix Agreement request packet, then the Fix agreement request packet according to the request normative translation of each transaction system, and will be described in after conversion Fix agreement request packet is sent to each transaction system;
Second conversion module is returned for receiving each transaction system according to what the Fix agreement request packet after the conversion was sent Packet, and the request normative translation based on each transaction system obtains returning to Fix agreement request packet;
Second forwarding module, for the return Fix agreement request to be forwarded a packet to the Fix agreement access server, so that The return Fix agreement request packet is sent the client by the Fix agreement access server.
CN201810867017.5A 2018-08-01 2018-08-01 A kind of method for converting protocol and device based on Fix agreement request packet Pending CN108833446A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810867017.5A CN108833446A (en) 2018-08-01 2018-08-01 A kind of method for converting protocol and device based on Fix agreement request packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810867017.5A CN108833446A (en) 2018-08-01 2018-08-01 A kind of method for converting protocol and device based on Fix agreement request packet

Publications (1)

Publication Number Publication Date
CN108833446A true CN108833446A (en) 2018-11-16

Family

ID=64153381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810867017.5A Pending CN108833446A (en) 2018-08-01 2018-08-01 A kind of method for converting protocol and device based on Fix agreement request packet

Country Status (1)

Country Link
CN (1) CN108833446A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110730181A (en) * 2019-10-21 2020-01-24 中国民航信息网络股份有限公司 Message conversion method, device and adapter
CN113438251A (en) * 2021-07-06 2021-09-24 中国银行股份有限公司 Protocol conversion method, device and system
CN116760912A (en) * 2023-08-18 2023-09-15 杭州星锐网讯科技有限公司 Transaction realization method and system based on protocol conversion

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020198815A1 (en) * 2001-06-26 2002-12-26 Robert Greifeld System and process for providing institutional directed sponsored trading
CN101009007A (en) * 2006-01-25 2007-08-01 广东省电信有限公司研究院 Integrated electronic transaction service system used in telecommunications and implement method therefor
CN101022431A (en) * 2007-03-09 2007-08-22 中国移动通信集团福建有限公司 Interface gateway and interface gateway data processing method
CN101720021A (en) * 2009-12-10 2010-06-02 四川长虹电器股份有限公司 Digital set-top box-based stock exchange platform and digital set-top box-based stock exchange method
CN102546833A (en) * 2012-03-05 2012-07-04 浪潮集团山东通用软件有限公司 Bank enterprise interconnection uniform access platform
CN105227667A (en) * 2015-10-14 2016-01-06 深圳市金证科技股份有限公司 Message forwarding method and platform
CN205540715U (en) * 2016-01-25 2016-08-31 广发证券股份有限公司 Protocol conversion system based on FIX
CN107135188A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 The service implementation method of financial information exchange FIX agreements, apparatus and system
US20170318132A9 (en) * 2014-04-07 2017-11-02 The Government of the United States of America, as Represented by the Secretary, Department of Homel Fixed Station Interface for Legacy Base Station Equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020198815A1 (en) * 2001-06-26 2002-12-26 Robert Greifeld System and process for providing institutional directed sponsored trading
CN101009007A (en) * 2006-01-25 2007-08-01 广东省电信有限公司研究院 Integrated electronic transaction service system used in telecommunications and implement method therefor
CN101022431A (en) * 2007-03-09 2007-08-22 中国移动通信集团福建有限公司 Interface gateway and interface gateway data processing method
CN101720021A (en) * 2009-12-10 2010-06-02 四川长虹电器股份有限公司 Digital set-top box-based stock exchange platform and digital set-top box-based stock exchange method
CN102546833A (en) * 2012-03-05 2012-07-04 浪潮集团山东通用软件有限公司 Bank enterprise interconnection uniform access platform
US20170318132A9 (en) * 2014-04-07 2017-11-02 The Government of the United States of America, as Represented by the Secretary, Department of Homel Fixed Station Interface for Legacy Base Station Equipment
CN105227667A (en) * 2015-10-14 2016-01-06 深圳市金证科技股份有限公司 Message forwarding method and platform
CN205540715U (en) * 2016-01-25 2016-08-31 广发证券股份有限公司 Protocol conversion system based on FIX
CN107135188A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 The service implementation method of financial information exchange FIX agreements, apparatus and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胡宇鹏: "《银证数据交换平台协议转换网关的设计与实现》", 《中国优秀硕士学位论文全文库》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110730181A (en) * 2019-10-21 2020-01-24 中国民航信息网络股份有限公司 Message conversion method, device and adapter
CN113438251A (en) * 2021-07-06 2021-09-24 中国银行股份有限公司 Protocol conversion method, device and system
CN116760912A (en) * 2023-08-18 2023-09-15 杭州星锐网讯科技有限公司 Transaction realization method and system based on protocol conversion

Similar Documents

Publication Publication Date Title
RU2732585C2 (en) Gateway level of abstraction
CN108647958A (en) A kind of digital asset method of commerce and system based on block chain
CN104067265B (en) For the system and method supporting the safety applications in cloud to dispose
CN108833446A (en) A kind of method for converting protocol and device based on Fix agreement request packet
JP6095106B2 (en) System and method for adaptive selection of bank cards for payment
CN105893139A (en) Method and device for providing storage service for tenant in cloud storage environment
CN108876383A (en) A kind of data trade method, device and equipment based on block chain
CN108446976B (en) A kind of common reserve fund transfer method, computer readable storage medium and terminal device
CN106920204A (en) The dissemination method and system of interface service
CN109902075A (en) A kind of distributed cloud storage management platform system based on IPFS and block chain
US20210042748A1 (en) Blockchain-based secure resource management
CN107944972A (en) A kind of cloud service enterprise e-commerce consultation service system
US8473399B2 (en) Invoice data object for a common data object format
CN108985930A (en) Information processing method and device, block chain node and storage medium
CN103516763B (en) Method for processing resource and system and device
CN109636610A (en) A kind of data transacting system and method for decentralization
WO2015180650A1 (en) Method and device for generating key value in storage area network
CN110097953A (en) A kind of intelligent medical treatment cloud platform system
CN108846129A (en) Storing data access method, device and storage medium
CN110009476A (en) A kind of method and apparatus handling application of making loans
CN113535335A (en) Virtual resource allocation method and device based on block chain and electronic equipment
CN105677478A (en) Method and apparatus for resources management
US11658942B2 (en) Maintaining security in digital electronic transfers through use of a label tracking system
WO2018068450A1 (en) Online payment method, domain name system and online payment device
CN115033599A (en) Graph query method, system and related device based on multi-party security

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181116

RJ01 Rejection of invention patent application after publication