[go: up one dir, main page]

CN115760430A - Method, device, storage medium and product for real-time quotation of foreign exchange Asian options - Google Patents

Method, device, storage medium and product for real-time quotation of foreign exchange Asian options Download PDF

Info

Publication number
CN115760430A
CN115760430A CN202211446433.0A CN202211446433A CN115760430A CN 115760430 A CN115760430 A CN 115760430A CN 202211446433 A CN202211446433 A CN 202211446433A CN 115760430 A CN115760430 A CN 115760430A
Authority
CN
China
Prior art keywords
quotation
current
currency pair
asian
option
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
CN202211446433.0A
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202211446433.0A priority Critical patent/CN115760430A/en
Publication of CN115760430A publication Critical patent/CN115760430A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a method, a device, a storage medium and a product for real-time quotation of foreign exchange Asian options, which relate to the technical field of data processing, and the method comprises the following steps: acquiring and storing current quotation information of the currency pair; the current quotation information comprises the quotation type of a currency pair, the quotation date and the current quotation, and the current quotation is determined by a quotation system according to the current market exchange rate of the acquired currency pair; determining whether to trigger an Asian option quotation according to the quotation type of the currency pair, and if the triggering of the Asian option quotation is determined, generating a quotation event containing current quotation information; capturing a fixed-disk event through an event listener, and calling an event processor to acquire key information required for performing subfamily option fixed disk on a currency pair from the fixed-disk event; and matching and pricing calculation are carried out on the subfamily option quotation elements according to the key information, and the current quotation price of the subfamily options of the currency pair is obtained.

Description

外汇亚式期权实时定盘的方法、装置、存储介质及产品Method, device, storage medium and product for real-time fixing of foreign exchange Asian options

技术领域technical field

本发明涉及数据处理技术领域,尤其是涉及外汇亚式期权实时定盘的方法、装置、存储介质及产品。The invention relates to the technical field of data processing, in particular to a method, device, storage medium and product for real-time fixing of foreign exchange Asian options.

背景技术Background technique

亚式期权又称为平均价格期权,其执行价格为期权合同平均期内标的资产价格的平均值。Asian options are also known as average price options, and their strike price is the average value of the underlying asset prices within the average period of the option contract.

亚式期权的标的资产有股票、汇率、债券。以汇率为标的的亚式期权可以称之为外汇亚式期权,指在合约期满时,期权买方根据指定区间的平均值确定收益的期权。事先指定的平均值区间、观察频率、平均值计算方式,以及执行价固定还是浮动,可以有多种变化。The underlying assets of Asian options include stocks, exchange rates, and bonds. The Asian option based on the exchange rate can be called the foreign exchange Asian option, which refers to the option that the option buyer determines the income according to the average value of the specified range when the contract expires. The pre-specified average range, observation frequency, average calculation method, and whether the execution price is fixed or floating can be changed in many ways.

现有技术中,通常是由交易员在观察期内的定价日,通过人工在市场获取定盘价格进行手工定盘,进而确定亚式期权的定盘价;或者由系统在每日的固定时间从交易市场获取市场价格来确定亚式期权的定盘价。当市场报价被修订时,将导致亚式期权的定盘价不够准确,进而影响期权交易的最终定价及交易收益。In the prior art, traders usually manually obtain the fixing price in the market on the pricing day during the observation period to determine the fixing price of the Asian option; or the system determines the fixing price at a fixed time every day. The market price is obtained from the trading market to determine the fixing price of the Asian option. When the market quotation is revised, the fixing price of the Asian option will be inaccurate, which will affect the final pricing and trading income of the option transaction.

鉴于此,如何实时、准确的确定外汇亚式期权在观察期的定盘价,成为一个亟待解决的技术问题。In view of this, how to determine the real-time and accurate fixing price of foreign exchange Asian options during the observation period has become an urgent technical problem to be solved.

发明内容Contents of the invention

本发明提供外汇亚式期权实时定盘的方法、装置、存储介质及产品,用以解决现有技术中存在的外汇亚式期权在观察期的定盘价难以实时、准确的确定的技术问题。The invention provides a method, device, storage medium and product for real-time fixing of foreign exchange Asian options to solve the technical problem existing in the prior art that it is difficult to determine the fixing price of foreign exchange Asian options in real time and accurately during the observation period.

第一方面,为解决上述技术问题,本发明实施例提供的一种外汇亚式期权实时定盘的方法的技术方案如下:In the first aspect, in order to solve the above-mentioned technical problems, the technical solution of a method for real-time fixing of foreign exchange Asian options provided by the embodiment of the present invention is as follows:

获取并存储货币对的当前报价信息;其中,所述当前报价信息包括所述货币对的报价类型、所述货币对、报价日期及当前报价,所述当前报价由定报价系统根据获取的所述货币对的当前市场汇率确定;Obtain and store the current quotation information of the currency pair; wherein, the current quotation information includes the quotation type of the currency pair, the currency pair, the quotation date and the current quotation, and the current quotation is determined by the quotation system according to the acquired The current market rate of the currency pair is determined;

根据所述货币对的报价类型,确定是否触发亚式期权定盘,若确定触发所述亚式期权定盘,则生成包含所述当前报价信息的定盘事件;According to the quotation type of the currency pair, determine whether to trigger the Asian option fixing, if it is determined to trigger the Asian option fixing, generate a fixing event including the current quotation information;

通过事件监听器捕捉所述定盘事件,并调用事件处理器从所述定盘事件中获取对所述货币对进行所述亚式期权定盘所需的关键信息;capturing the fixing event through an event listener, and calling an event handler to obtain key information required for fixing the Asian option on the currency pair from the fixing event;

根据所述关键信息对亚式期权定盘要素进行匹配和定价计算,获得所述货币对的亚式期权的当前定盘价。According to the key information, the Asian option fixing elements are matched and calculated to obtain the current fixing price of the Asian option of the currency pair.

一种可能的实施方式,获取并存储货币对的当前报价信息,包括:A possible implementation manner is to obtain and store the current quotation information of currency pairs, including:

向所述定报价系统发送所述货币对的报价订阅消息,使所述定报价系统在确定所述货币对的当前报价后推送所述当前报价信息;其中,所述定报价系统每获得一次所述当前市场汇率,便生成一次所述当前报价;Send the quotation subscription message of the currency pair to the fixed quotation system, so that the fixed quotation system pushes the current quotation information after determining the current quotation of the currency pair; wherein, each time the fixed quotation system obtains the If the current market exchange rate is specified, the current quotation will be generated once;

接收所述报价订阅消息,并从所述报价订阅消息中获取所述当前报价;receiving the quotation subscription message, and obtaining the current quotation from the quotation subscription message;

将所述当前报价存储在指定位置。Store said current quote in a specified location.

一种可能的实施方式,根据所述货币对的报价类型,确定是否触发亚式期权定盘,包括:A possible implementation manner, according to the quotation type of the currency pair, determining whether to trigger Asian option fixing includes:

判断所述货币对及所述报价类型是否包含在所述亚式期权定盘对应的定盘参数内;Judging whether the currency pair and the quotation type are included in the fixing parameters corresponding to the Asian option fixing;

若为是,确定所述当前报价信息触发所述亚式期权定盘;If yes, determine that the current quotation information triggers the Asian option fixing order;

否则,确定所述当前报价信息未触发所述亚式期权定盘。Otherwise, it is determined that the current quotation information does not trigger the fixing of the Asian option.

一种可能的实施方式,从所述定盘事件中获取对所述货币对进行所述亚式期权定盘所需的关键信息,包括:A possible implementation manner, the key information required for the Asian option fixing of the currency pair is obtained from the fixing event, including:

从所述定盘事件中获取所述报价信息;Obtaining the quote information from the fixing event;

将所述报价信息作为所述关键信息。The quotation information is used as the key information.

一种可能的实施方式,根据所述关键信息对亚式期权交易要素进行匹配和定价计算,获得所述货币对的亚式期权的当前定盘价,包括:In a possible implementation manner, the Asian option trading elements are matched and calculated according to the key information, and the current fixing price of the Asian option of the currency pair is obtained, including:

根据所述亚式期权定盘的查询条件,查询交易要素与所述关键信息匹配的亚式期权;According to the query conditions of the Asian option fixing order, query the Asian options whose transaction elements match the key information;

将所述当前报价作为所述亚式期权的观察期内的一条报价记录进行存储;storing the current quotation as a quotation record within the observation period of the Asian option;

根据所述亚式期权的定价类型,计算当前所述亚式期权在所述观察期内的当前平均值;According to the pricing type of the Asian option, calculate the current average value of the Asian option in the observation period;

将所述当前平均值作为所述当前定盘价。The current average value is used as the current fixing price.

一种可能的实施方式,将所述当前报价作为所述亚式期权的观察期内的一条报价记录进行存储,包括:A possible implementation manner, storing the current quotation as a quotation record within the observation period of the Asian option includes:

判断所述观察期内是否存在与所述报价日及所述报价类型相同的历史报价记录;Judging whether there is a historical quotation record with the same quotation date and quotation type during the observation period;

若所述观察期内不存在所述历史报价记录,则在所述观察期内创建包含所述当前报价的报价记录;If the historical quotation record does not exist within the observation period, create a quotation record containing the current quotation during the observation period;

若所述观察期内存在所述历史报价记录,则用所述当前报价更新所述历史报价记录中的报价,或用所述报价记录替换所述历史报价记录。If the historical quotation record exists within the observation period, the quotation in the historical quotation record is updated with the current quotation, or the historical quotation record is replaced with the quotation record.

一种可能的实施方式,所述报价类型为主流外汇交易市场平台的每日报价。In a possible implementation manner, the quote type is daily quotes of mainstream foreign exchange trading market platforms.

一种可能的实施方式,所述每日报价,包括:A possible implementation manner, the daily quotation includes:

央行中间价、中国外汇交易中心CFETS11点报价、BIFIX14点报价。The Central Bank's middle price, China Foreign Exchange Trading Center CFETS 11-point quotation, BIFIX 14-point quotation.

一种可能的实施方式,所述查询条件,包括:A possible implementation manner, the query conditions include:

所述报价类型、所述货币对、定价日期中的至少一个。At least one of the quote type, the currency pair, and pricing date.

第二方面,本发明实施例提供了一种外汇亚式期权实时定盘的装置,包括:In the second aspect, the embodiment of the present invention provides a real-time fixing device for foreign exchange Asian options, including:

报价处理单元,用于获取并存储货币对的当前报价信息;其中,所述当前报价信息包括所述货币对的报价类型、所述货币对、报价日期及当前报价,所述当前报价由定报价系统根据获取的所述货币对的当前市场汇率确定;A quotation processing unit, configured to obtain and store current quotation information of a currency pair; wherein, the current quotation information includes the quotation type of the currency pair, the currency pair, the quotation date and the current quotation, and the current quotation is determined by the fixed quotation The system determines based on the obtained current market exchange rate of the currency pair;

报价过滤单元,用于根据所述货币对的报价类型,确定是否触发亚式期权定盘,若确定触发所述亚式期权定盘,则生成包含所述当前报价信息的定盘事件;A quotation filtering unit, configured to determine whether to trigger Asian option fixing according to the quotation type of the currency pair, and if it is determined to trigger the Asian option fixing, generate a fixing event including the current quotation information;

事件管理单元,用于通过事件监听器捕捉所述定盘事件,并调用事件处理器从所述定盘事件中获取对所述货币对进行所述亚式期权定盘所需的关键信息;An event management unit, configured to capture the order-fixing event through an event listener, and call an event processor to obtain key information required for the Asian option order-fixing of the currency pair from the order-fixing event;

计算单元,用于根据所述关键信息对亚式期权定盘要素进行匹配和定价计算,获得所述货币对的亚式期权的当前定盘价。The calculation unit is configured to perform matching and pricing calculation on the Asian option fixing elements according to the key information, and obtain the current fixing price of the Asian option on the currency pair.

一种可能的实施方式,所述报价处理单元还用于:In a possible implementation manner, the quotation processing unit is further configured to:

向所述定报价系统发送所述货币对的报价订阅消息,使所述定报价系统在确定所述货币对的当前报价后推送所述当前报价信息;其中,所述定报价系统每获得一次所述当前市场汇率,便生成一次所述当前报价;Send the quotation subscription message of the currency pair to the fixed quotation system, so that the fixed quotation system pushes the current quotation information after determining the current quotation of the currency pair; wherein, each time the fixed quotation system obtains the If the current market exchange rate is specified, the current quotation will be generated once;

接收所述报价订阅消息,并从所述报价订阅消息中获取所述当前报价;receiving the quotation subscription message, and obtaining the current quotation from the quotation subscription message;

将所述当前报价存储在指定位置。Store said current quote in a specified location.

一种可能的实施方式,所述报价过滤单元还用于:In a possible implementation manner, the quotation filtering unit is also used for:

判断所述货币对及所述报价类型是否包含在所述亚式期权定盘对应的定盘参数内;Judging whether the currency pair and the quotation type are included in the fixing parameters corresponding to the Asian option fixing;

若为是,确定所述当前报价信息触发所述亚式期权定盘;If yes, determine that the current quotation information triggers the Asian option fixing order;

否则,确定所述当前报价信息未触发所述亚式期权定盘。Otherwise, it is determined that the current quotation information does not trigger the fixing of the Asian option.

一种可能的实施方式,所述事件管理单元还用于:In a possible implementation manner, the event management unit is further configured to:

从所述定盘事件中获取所述报价信息;Obtaining the quote information from the fixing event;

将所述报价信息作为所述关键信息。The quotation information is used as the key information.

一种可能的实施方式,所述计算单元还用于:A possible implementation manner, the computing unit is also used for:

根据所述亚式期权定盘的查询条件,查询交易要素与所述关键信息匹配的亚式期权;According to the query conditions of the Asian option fixing order, query the Asian options whose transaction elements match the key information;

将所述当前报价作为所述亚式期权的观察期内的一条报价记录进行存储;storing the current quotation as a quotation record within the observation period of the Asian option;

根据所述亚式期权的定价类型,计算当前所述亚式期权在所述观察期内的当前平均值;According to the pricing type of the Asian option, calculate the current average value of the Asian option in the observation period;

将所述当前平均值作为所述当前定盘价。The current average value is used as the current fixing price.

一种可能的实施方式,所述计算单元还用于:A possible implementation manner, the computing unit is also used for:

判断所述观察期内是否存在与所述报价日及所述报价类型相同的历史报价记录;Judging whether there is a historical quotation record with the same quotation date and quotation type during the observation period;

若所述观察期内不存在所述历史报价记录,则在所述观察期内创建包含所述当前报价的报价记录;If the historical quotation record does not exist within the observation period, create a quotation record containing the current quotation during the observation period;

若所述观察期内存在所述历史报价记录,则用所述当前报价更新所述历史报价记录中的报价,或用所述报价记录替换所述历史报价记录。If the historical quotation record exists within the observation period, the quotation in the historical quotation record is updated with the current quotation, or the historical quotation record is replaced with the quotation record.

一种可能的实施方式,所述报价类型为主流外汇交易市场平台的每日报价。In a possible implementation manner, the quote type is daily quotes of mainstream foreign exchange trading market platforms.

一种可能的实施方式,所述每日报价,包括:A possible implementation manner, the daily quotation includes:

央行中间价、中国外汇交易中心CFETS11点报价、BIFIX14点报价。The Central Bank's middle price, China Foreign Exchange Trading Center CFETS 11-point quotation, BIFIX 14-point quotation.

一种可能的实施方式,所述查询条件,包括:A possible implementation manner, the query conditions include:

所述报价类型、所述货币对、定价日期中的至少一个。At least one of the quote type, the currency pair, and pricing date.

第三方面,本发明实施例还提供一种外汇亚式期权实时定盘的装置,包括:In the third aspect, the embodiment of the present invention also provides a real-time fixing device for foreign exchange Asian options, including:

至少一个处理器,以及at least one processor, and

与所述至少一个处理器连接的存储器;a memory connected to the at least one processor;

其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述至少一个处理器通过执行所述存储器存储的指令,执行如上述第一方面所述的方法。Wherein, the memory stores instructions executable by the at least one processor, and the at least one processor executes the method described in the first aspect above by executing the instructions stored in the memory.

第四方面,本发明实施例还提供一种可读存储介质,包括:In a fourth aspect, the embodiment of the present invention also provides a readable storage medium, including:

存储器,memory,

所述存储器用于存储指令,当所述指令被处理器执行时,使得包括所述可读存储介质的装置完成如上述第一方面所述的方法。The memory is used to store instructions, and when the instructions are executed by the processor, the device including the readable storage medium completes the method described in the first aspect above.

第五方面,本发明实施例还提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

通过本发明实施例的上述一个或多个实施例中的技术方案,本发明实施例至少具有如下技术效果:Through the technical solutions in the above-mentioned one or more embodiments of the embodiments of the present invention, the embodiments of the present invention have at least the following technical effects:

在本发明提供的实施例中,通过获取并存储货币对的当前报价信息;其中,当前报价信息包括货币对的报价类型、货币对、报价日期及当前报价,当前报价由定报价系统根据获取的货币对的当前市场汇率确定;根据货币对的报价类型,确定是否触发亚式期权定盘,若确定触发亚式期权定盘,则生成包含当前报价信息的定盘事件;通过事件监听器捕捉定盘事件,并调用事件处理器从定盘事件中获取对货币对进行亚式期权定盘所需的关键信息;根据关键信息对亚式期权定盘要素进行匹配和定价计算,获得货币对的亚式期权的当前定盘价。从而可以自动确定外汇亚式期权的定盘价,并且在市场汇率修订后,能自动重新确定定盘价,从而能够确保定盘价的准确性。In the embodiment provided by the present invention, by obtaining and storing the current quotation information of the currency pair; wherein, the current quotation information includes the quotation type of the currency pair, the currency pair, the quotation date and the current quotation, and the current quotation is determined by the quotation system according to the acquired The current market exchange rate of the currency pair is determined; according to the quotation type of the currency pair, determine whether to trigger the Asian option fixing order. order event, and call the event processor to obtain the key information required for the Asian option fixing of the currency pair from the fixing event; match and calculate the pricing of the Asian option fixing elements according to the key information, and obtain the Asian option of the currency pair The current fixing price of the option. Therefore, the fixing price of foreign exchange Asian options can be automatically determined, and after the market exchange rate is revised, the fixing price can be automatically re-determined, thereby ensuring the accuracy of the fixing price.

附图说明Description of drawings

图1为本发明实施例提供的一种外汇亚式期权实时定盘方法的流程图;Fig. 1 is a flow chart of a real-time fixing method for foreign exchange Asian options provided by an embodiment of the present invention;

图2为本发明实施例提供的一种交易系统的结构示意图;Fig. 2 is a schematic structural diagram of a transaction system provided by an embodiment of the present invention;

图3为本发明实施例提供的一种外汇亚式期权实时定盘装置的结构示意图。Fig. 3 is a schematic structural diagram of a foreign exchange Asian option real-time order fixing device provided by an embodiment of the present invention.

具体实施方式Detailed ways

本发明实施列提供外汇亚式期权实时定盘的方法、装置、存储介质及产品,用以解决现有技术中存在的外汇亚式期权在观察期的定盘价难以实时、准确的确定的技术问题。本申请技术方案中,对数据的采集、传播、使用等,均符合国家相关法律法规要求。The embodiment of the present invention provides a method, device, storage medium and product for real-time fixing of foreign exchange Asian options to solve the problem in the prior art that the fixing price of foreign exchange Asian options during the observation period is difficult to determine in real time and accurately question. In the technical solution of this application, the collection, dissemination, and use of data all comply with the requirements of relevant national laws and regulations.

为了更好的理解上述技术方案,下面通过附图以及具体实施例对本发明技术方案做详细的说明,应当理解本发明实施例以及实施例中的具体特征是对本发明技术方案的详细的说明,而不是对本发明技术方案的限定,在不冲突的情况下,本发明实施例以及实施例中的技术特征可以相互组合。In order to better understand the above technical solutions, the technical solutions of the present invention will be described in detail below through the accompanying drawings and specific examples. It should be understood that the embodiments of the present invention and the specific features in the examples are detailed descriptions of the technical solutions of the present invention, and It is not a limitation to the technical solutions of the present invention, and the embodiments of the present invention and the technical features in the embodiments can be combined with each other under the condition of no conflict.

请参考图1,本发明实施例提供一种外汇亚式期权实时定盘的方法,该方法的处理过程如下。Please refer to FIG. 1 , the embodiment of the present invention provides a method for real-time order fixing of foreign exchange Asian options, and the process of the method is as follows.

步骤101:获取并存储货币对的当前报价信息;其中,当前报价信息包括货币对的报价类型、货币对、报价日期及当前报价,当前报价由定报价系统根据获取的货币对的当前市场汇率确定;Step 101: Obtain and store the current quotation information of the currency pair; wherein, the current quotation information includes the quotation type of the currency pair, the currency pair, the quotation date and the current quotation, and the current quotation is determined by the fixed quotation system according to the obtained current market exchange rate of the currency pair ;

货币对是由两种货币组成的外汇交易汇率,由两个ISO国家代码(ISO countrycode)加一分隔符表示,例如EUR(欧元)/USD(美元),其中第一个ISO国家代码(如EUR)代表“基本货币”,另一个ISO国家代码(如USD)代表“二级货币”。EUR/USD为1.2500表示可以用1.25美元买入1欧元。A currency pair is a foreign exchange exchange rate composed of two currencies, represented by two ISO country codes (ISO countrycode) plus a separator, such as EUR (Euro)/USD (US dollar), where the first ISO country code (such as EUR ) for the "primary currency" and another ISO country code (such as USD) for the "secondary currency". A EUR/USD of 1.2500 means you can buy 1 euro for $1.25.

在一些实施方式中,报价类型为主流外汇交易市场平台的每日报价。In some embodiments, the quotation type is daily quotation of mainstream foreign exchange trading market platforms.

每日报价可以是央行中间价、中国外汇交易中心(China Foreign ExchangeTrade System,CFETS)11点报价、彭博外汇(Bloomberg Fixings,BFIX)14点报价。Daily quotations can be central bank central parity, China Foreign Exchange Trade System (CFETS) 11 o’clock quotation, Bloomberg Fixings (BFIX) 14 o’clock quotation.

请参见图2为本发明实施例提供的一种交易系统的结构示意图。Please refer to FIG. 2, which is a schematic structural diagram of a trading system provided by an embodiment of the present invention.

定报价系统可以从主流外汇交易平台(如图2所示包括外汇交易平台1~外汇交易平台n)订阅所有货币对的当前市场汇率,这样定报价系统在从任一外汇交易平台接收到任一货币对的当前市场汇率后,便可用定价模型确定每个货币对的当前报价,进而生成每个货币对的当前报价信息。The pricing system can subscribe to the current market exchange rates of all currency pairs from mainstream foreign exchange trading platforms (including foreign exchange trading platform 1 to foreign exchange trading platform n as shown in Figure 2), so that the pricing system can receive any After obtaining the current market exchange rate of the currency pair, the pricing model can be used to determine the current quotation of each currency pair, and then generate the current quotation information of each currency pair.

交易系统可以根据自身需求从定报价系统获取并存储货币对的当前报价信息,具体可以通过下列方式实现:The trading system can obtain and store the current quotation information of the currency pair from the quotation system according to its own needs, which can be realized in the following ways:

向定报价系统发送货币对的报价订阅消息,使定报价系统在确定货币对的当前报价后推送当前报价信息;其中,定报价系统每获得一次当前市场汇率,便生成一次当前报价;接收报价订阅消息,并从报价订阅消息中获取当前报价;将当前报价存储在指定位置。Send the quotation subscription message of the currency pair to the fixed quotation system, so that the fixed quotation system will push the current quotation information after determining the current quotation of the currency pair; among them, the fixed quotation system will generate a current quotation every time it obtains the current market exchange rate; receive quotation subscription message, and get the current quote from the quote subscription message; store the current quote in the specified location.

交易系统中可以根据自身需求从定报价系统中订阅所有货币对的当前报价信息,也可以从定报价系统中订阅部分货币对的当前报价信息,具体交易系统从定报价系统中订阅哪些货币对的当前报价信息在此不做限制。In the trading system, you can subscribe to the current quotation information of all currency pairs from the fixed quotation system according to your own needs, and you can also subscribe to the current quotation information of some currency pairs from the fixed quotation system. The specific trading system subscribes to which currency pairs from the fixed quotation system. The current quotation information is not limited here.

交易系统从定报价系统订阅货币对的当前报价信息,定报价系统每次根据货币对的当前市场汇率生成当前报价信息后,便生成包含当前报价信息的报价订阅信息,并推送给交易系统;如,在当前时刻定报价系统接收到CFEFS11点关于货币对USD/CNY(美元/人民币)在2022年11月7日的当前市场汇率,并据此生成USD/CNY的当前报价信息(CFEFS11点,USD/CNY,20221107,价格7.25),及包含此当前报价信息的报价订阅信息,定报价系统将报价订阅信息发送给交易系统;交易系统接收到报价订阅信息后,便从中获取货币对的当前报价,并存储在指定位置,如存储到数据库中2022年11月7日对应报价类型为CFEFS11点的记录中。The trading system subscribes to the current quotation information of the currency pair from the fixed quotation system, and each time the fixed quotation system generates the current quotation information according to the current market exchange rate of the currency pair, it generates quotation subscription information containing the current quotation information and pushes it to the trading system; , at the current moment, the quotation system receives the current market exchange rate of the currency pair USD/CNY (US dollar/RMB) at 11 points CFEFS on November 7, 2022, and generates the current quotation information of USD/CNY accordingly (11 points CFEFS, USD /CNY, 20221107, price 7.25), and the quotation subscription information including the current quotation information, the quotation system will send the quotation subscription information to the trading system; after receiving the quotation subscription information, the trading system will obtain the current quotation of the currency pair from it, And store it in a specified location, for example, store it in the record of November 7, 2022 corresponding to the quotation type of CFEFS11 in the database.

在获取并存储货币对的当前报价信息后,便可执行步骤102。After obtaining and storing the current quotation information of the currency pair, step 102 can be executed.

步骤102:根据货币对的报价类型,确定是否触发亚式期权定盘,若确定触发亚式期权定盘,则生成包含当前报价信息的定盘事件。Step 102: According to the quotation type of the currency pair, determine whether to trigger the Asian option fixing order, and if it is determined to trigger the Asian option fixing order, generate a fixing order event including the current quotation information.

根据货币对的报价类型,确定是否触发亚式期权定盘,可以通过下列方式实现:According to the quotation type of the currency pair, determine whether to trigger the Asian option fixing order, which can be achieved in the following ways:

判断货币对及报价类型是否包含在亚式期权定盘对应的定盘参数内;若为是,确定当前报价信息触发亚式期权定盘;否则,确定当前报价信息未触发亚式期权定盘。Determine whether the currency pair and quotation type are included in the fixing parameters corresponding to the Asian option fixing order; if yes, determine that the current quotation information triggers the Asian option fixing order; otherwise, determine that the current quotation information does not trigger the Asian option fixing order.

在交易系统中配置有亚式期权定盘的定盘参数,定盘参数可以包括需要进行亚式期权定盘的货币对及对应的报价类型,例如,定盘参数包括货币对1:USD/CNY,对应的报价类型包括CFEFS11点、央行中间价;货币对2:GBP/USD(英镑/美元),对应的报价类型包括CFEFS11点、BIFIX14点;货币对3:AUD/USD(澳元/美元),对应的报价类型包括CFEFS11点、BIFIX14点…。The trading system is configured with the fixing parameters of the Asian option fixing order. The fixing parameters can include the currency pairs that need to be fixed in the Asian option and the corresponding quotation types. For example, the fixing parameters include currency pair 1: USD/CNY , the corresponding quotation types include CFEFS11 points, central bank central parity; currency pair 2: GBP/USD (pound pound/dollar), corresponding quotation types include CFEFS11 points, BIFIX14 points; currency pair 3: AUD/USD (Australian dollar/dollar dollar), The corresponding quotation types include CFEFS11 points, BIFIX14 points...

交易系统从接收到的报价订阅信息中获取到的当前报价信息为:CFEFS11点,USD/CNY,20221107,价格7.25。根据当前报价信息可知货币对为USD/CNY,报价类型为CFEFS11点,与定盘参数中的货币对1:USD/CNY,对应的报价类型为CFEFS11点匹配,因此可以确定当前报价信息中包含的货币对及报价类型包含在定盘参数中,进而可以确定当前报价信息触发亚式期权定盘。进而可以生成包含上述当前报价信息的定盘事件。The current quotation information obtained by the trading system from the received quotation subscription information is: CFEFS11 points, USD/CNY, 20221107, price 7.25. According to the current quotation information, it can be known that the currency pair is USD/CNY, and the quotation type is CFEFS11 points, which matches the currency pair 1: USD/CNY in the fixed order parameters, and the corresponding quotation type is CFEFS11 points, so it can be determined that the current quotation information contains Currency pair and quotation type are included in the fixing parameters, and then the current quotation information can be determined to trigger the Asian option fixing. Furthermore, a fixing event including the above-mentioned current quotation information may be generated.

若交易系统从接收到的报价订阅信息中获取到的当前报价信息为:CFEFS11点,JPY/CNY(日元/人民币),20221107,价格0.04943561。可以确定当前报价信息中包含的货币对未包含在定盘参数中,进而可以确定当前报价信息未触发亚式期权定盘。If the current quotation information obtained by the trading system from the received quotation subscription information is: CFEFS 11 points, JPY/CNY (Japanese yen/RMB), 20221107, price 0.04943561. It can be determined that the currency pairs included in the current quotation information are not included in the fixing parameters, and then it can be determined that the current quotation information does not trigger the Asian option fixing.

上述确定是否触发亚式期权定盘的过程,可以视为图2中的价格过滤的过程,即交易系统从接收到的当前报价信息中过滤得到需要进行亚式期权定盘的当前报价信息。The above-mentioned process of determining whether to trigger the Asian option fixing can be regarded as the price filtering process in Figure 2, that is, the trading system filters the received current quotation information to obtain the current quotation information that needs to be fixed for the Asian option.

在生成包含当前报价信息的定盘事件后,便可执行步骤103。Step 103 can be executed after the order-fixing event including the current quotation information is generated.

步骤103:通过事件监听器捕捉定盘事件,并调用事件处理器从定盘事件中获取对货币对进行亚式期权定盘所需的关键信息;Step 103: capture the fixing event through the event listener, and call the event handler to obtain the key information required for the Asian option fixing of the currency pair from the fixing event;

在一些实施例中,从定盘事件中获取对货币对进行亚式期权定盘所需的关键信息,可以通过下列方式实现:In some embodiments, obtaining the key information required for Asian option fixing of currency pairs from the fixing event can be achieved in the following ways:

从定盘事件中获取报价信息;将报价信息作为关键信息。Obtain quotation information from the fixing event; use quotation information as key information.

如,请继续参见图2,交易系统中设有事件监听器和事件处理器,交易系统通过事件监听器捕获到定盘事件后,调用事件处理器从定盘事件中获取货币对(如USD/CNY)进行亚式期权定盘所需的关键信息,如将定盘事件中的报价信息作为关键信息。For example, please continue to refer to Figure 2. There are event listeners and event processors in the trading system. After the trading system captures the fixing event through the event listener, it calls the event processor to obtain the currency pair (such as USD/ CNY) The key information required for Asian option fixing, such as the quotation information in the fixing event as the key information.

在获取关键信息后,便可执行步骤104。After the key information is obtained, step 104 can be executed.

步骤104:根据关键信息对亚式期权定盘要素进行匹配和定价计算,获得货币对的亚式期权的当前定盘价。Step 104: Perform matching and pricing calculation on the Asian option fixing elements according to the key information, and obtain the current fixing price of the Asian option on the currency pair.

根据关键信息对亚式期权交易要素进行匹配和定价计算,获得货币对的亚式期权的当前定盘价,可以通过下列方式实现:Matching and pricing calculation of Asian options trading elements based on key information, and obtaining the current fixing price of Asian options on currency pairs can be achieved in the following ways:

根据亚式期权定盘的查询条件,查询交易要素与关键信息匹配的亚式期权;将当前报价作为亚式期权的观察期内的一条报价记录进行存储;根据亚式期权的定价类型,计算当前亚式期权在观察期内的当前平均值;将当前平均值作为当前定盘价。According to the query conditions of the Asian option fixing order, query the Asian options whose trading elements match the key information; store the current quotation as a quotation record in the observation period of the Asian option; calculate the current quotation according to the pricing type of the Asian option The current average of Asian options over the observation period; use the current average as the current fix.

上述查询条件包括报价类型、货币对、定价日期中的至少一个,交易要素包括亚式期权的标的(即汇率)、观察期等。The above query conditions include at least one of the quotation type, currency pair, and pricing date, and the transaction elements include the target of the Asian option (ie, the exchange rate), the observation period, and the like.

例如,CFEFS11点关于货币对USD/CNY(美元/人民币)在2022年11月7日的当前市场汇率,并据此生成USD/CNY的当前报价信息(CFEFS11点,USD/CNY,20221107,价格7.25),及包含此当前报价信息的报价订阅信息,定报价系统将报价订阅信息发送给交易系统;交易系统接收到报价订阅信息后,便从中获取货币对的当前报价,并存储在指定位置。交易系统根据货币对(USD/CNY)的报价类型(CFEFS11点),确定触发亚式期权定盘,并生成包含当前报价信息的定盘事件,交易系统中的时间监听器捕获到定盘事件后,将之推送给事件处理器,事件处理器从定盘事件中获取货币对(USD/CNY)进行亚式期权定盘所需的关键信息,进而根据报价类型,货币对,定价日期等查询条件查询交易要素与关键信息匹配的亚式期权20221107,将当前价格7.25的赋值给亚式期权在2022年11月7日这个日期的观察期记录,并根据亚式期权的定价类型(如几何平均/算数平均)计算亚式期权的在观察期内的当前平均值,将计算出的当前平均值作为亚式期权的当前定盘价。For example, CFEFS11 points is about the current market exchange rate of the currency pair USD/CNY (USD/RMB) on November 7, 2022, and based on this, the current quotation information of USD/CNY is generated (CFEFS11 points, USD/CNY, 20221107, price 7.25 ), and the quotation subscription information containing the current quotation information, the quotation system sends the quotation subscription information to the trading system; after receiving the quotation subscription information, the trading system obtains the current quotation of the currency pair from it and stores it in the specified location. According to the quotation type (CFEFS11 point) of the currency pair (USD/CNY), the trading system determines to trigger the Asian option fixing and generates a fixing event containing the current quotation information. After the time listener in the trading system captures the fixing event , push it to the event processor, and the event processor obtains the key information needed for the currency pair (USD/CNY) to fix the Asian option from the fixing event, and then according to the quotation type, currency pair, pricing date and other query conditions Query the Asian option 20221107 whose transaction elements match the key information, and assign the current price of 7.25 to the Asian option’s observation period record on November 7, 2022, and according to the pricing type of the Asian option (such as geometric mean/ Arithmetic mean) calculates the current average value of the Asian option within the observation period, and uses the calculated current average as the current fixing price of the Asian option.

若汇率交易平台在之后的某个时间修正了上述当前市场汇率,则定价报价系统会将修正后的当前市场汇率作为最新的当前市场汇率重新生成当前报价信息,提供给交易系统,交易系统将重新确定亚式期权的定盘价。因此,上述将当前报价作为亚式期权的观察期内的一条报价记录进行存储,可以通过下列方式实现:If the exchange rate trading platform revises the above-mentioned current market exchange rate at a later time, the pricing quotation system will use the revised current market exchange rate as the latest current market exchange rate to regenerate the current quotation information and provide it to the trading system, and the trading system will re- Determine the fixing price of Asian options. Therefore, the above-mentioned storage of the current quotation as a quotation record within the observation period of the Asian option can be achieved in the following ways:

判断观察期内是否存在与报价日及报价类型相同的历史报价记录;若观察期内不存在历史报价记录,则在观察期内创建包含当前报价的报价记录;若观察期内存在历史报价记录,则用当前报价更新历史报价记录中的报价,或用报价记录替换历史报价记录。Determine whether there is a historical quotation record with the same quotation date and quotation type in the observation period; if there is no historical quotation record in the observation period, create a quotation record containing the current quotation during the observation period; if there is a historical quotation record in the observation period, Then update the quotation in the historical quotation record with the current quotation, or replace the historical quotation record with the quotation record.

例如,交易系统中外汇(USD/CNY)的一个亚式期权的观察期为2022年11月5日~2022年11月10日,此亚式期权中已包含了历史报价记录(CFEFS11点,USD/CNY,20221107,价格7.25),当前有接收到当前报价信息(CFEFS11点,USD/CNY,20221107,价格7.35),通过判断可知上述观察期内易宝涵报价日为20221107的历史报价记录,因此可以用当前报价信息中的当前报价7.35替换历史报价记录中的报价7.25,也可以根据当前报价信息生成当前报价记录(CFEFS11点,USD/CNY,20221107,价格7.35),并用当前报价记录替换历史报价记录。For example, the observation period of an Asian option on foreign exchange (USD/CNY) in the trading system is from November 5, 2022 to November 10, 2022. This Asian option has included historical quotation records (CFEFS11 points, USD /CNY, 20221107, price 7.25), currently has received the current quotation information (CFEFS11 points, USD/CNY, 20221107, price 7.35), through judgment, we can know that the quotation date of Yibaohan during the above observation period is 20221107 historical quotation records, so You can replace the quotation 7.25 in the historical quotation record with the current quotation 7.35 in the current quotation information, or generate the current quotation record (CFEFS11 points, USD/CNY, 20221107, price 7.35) according to the current quotation information, and replace the historical quotation with the current quotation record Record.

在本发明提供的实施例中,通过获取并存储货币对的当前报价信息;其中,当前报价信息包括货币对的报价类型、货币对、报价日期及当前报价,当前报价由定报价系统根据获取的货币对的当前市场汇率确定;根据货币对的报价类型,确定是否触发亚式期权定盘,若确定触发亚式期权定盘,则生成包含当前报价信息的定盘事件;通过事件监听器捕捉定盘事件,并调用事件处理器从定盘事件中获取对货币对进行亚式期权定盘所需的关键信息;根据关键信息对亚式期权定盘要素进行匹配和定价计算,获得货币对的亚式期权的当前定盘价。从而可以自动确定外汇亚式期权的定盘价,并且在市场汇率修订后,能自动重新确定定盘价,从而能够确保定盘价的准确性。In the embodiment provided by the present invention, by obtaining and storing the current quotation information of the currency pair; wherein, the current quotation information includes the quotation type of the currency pair, the currency pair, the quotation date and the current quotation, and the current quotation is determined by the quotation system according to the acquired The current market exchange rate of the currency pair is determined; according to the quotation type of the currency pair, determine whether to trigger the Asian option fixing order. order event, and call the event processor to obtain the key information required for the Asian option fixing of the currency pair from the fixing event; match and calculate the pricing of the Asian option fixing elements according to the key information, and obtain the Asian option of the currency pair The current fixing price of the option. Therefore, the fixing price of foreign exchange Asian options can be automatically determined, and after the market exchange rate is revised, the fixing price can be automatically re-determined, thereby ensuring the accuracy of the fixing price.

此外,由于将需要进行亚式期权定盘的当前报价信息封装入定盘事件,并用事件监听器捕获定盘事件,用事件处理器从定盘事件中获取货币对进行亚式期权定盘所需的关键信息,进而根据关键信息对亚式期权定盘要素进行匹配与计算,得到货币对的亚式期权的当前定盘价,可以让定报价系统高频推送当前报价信息与后续确定亚式期权定盘价的过程异步执行,这样可以避免因后续确定亚式期权定盘价的过程需要更多的时间,而使推送来当前报价信息发生堵塞,造成数据丢失及定盘价不准确的问题。In addition, because the current quotation information that needs to be fixed for Asian options is encapsulated into the fixed order event, and the event listener is used to capture the fixed order event, the event processor is used to obtain the currency pair required for Asian option fixed order from the fixed order event. Key information, and then match and calculate the Asian option fixing elements according to the key information, and get the current fixing price of the Asian option of the currency pair, which can make the pricing system push the current quotation information at high frequency and subsequently determine the Asian option fixing price. The process of order price is executed asynchronously, which can avoid the problem of data loss and inaccurate fix price caused by the blockage of the current quotation information pushed due to the need for more time in the subsequent process of determining the Asian option fix price.

基于同一发明构思,本发明一实施例中提供一种外汇亚式期权实时定盘的装置,该装置的外汇亚式期权实时定盘方法的具体实施方式可参见方法实施例部分的描述,重复之处不再赘述,请参见图3,该装置包括:Based on the same inventive concept, an embodiment of the present invention provides a device for real-time fixing of foreign exchange Asian options. For the specific implementation of the method for real-time fixing of foreign exchange Asian options of the device, please refer to the description of the method embodiment, and repeat No more details here, please refer to Figure 3, the device includes:

报价处理单元301,用于获取并存储货币对的当前报价信息;其中,所述当前报价信息包括所述货币对的报价类型、所述货币对、报价日期及当前报价,所述当前报价由定报价系统根据获取的所述货币对的当前市场汇率确定;A quotation processing unit 301, configured to obtain and store current quotation information of a currency pair; wherein, the current quotation information includes the quotation type of the currency pair, the currency pair, the quotation date and the current quotation, and the current quotation is determined by a fixed quotation. The quotation system is determined according to the obtained current market exchange rate of the currency pair;

报价过滤单元302,用于根据所述货币对的报价类型,确定是否触发亚式期权定盘,若确定触发所述亚式期权定盘,则生成包含所述当前报价信息的定盘事件;The quotation filtering unit 302 is used to determine whether to trigger the Asian option fixing according to the quotation type of the currency pair, and if it is determined to trigger the Asian option fixing, generate a fixing event including the current quotation information;

事件管理单元303,用于通过事件监听器捕捉所述定盘事件,并调用事件处理器从所述定盘事件中获取对所述货币对进行所述亚式期权定盘所需的关键信息;An event management unit 303, configured to capture the order-fixing event through an event listener, and call an event processor to obtain key information required for the Asian option order-fixing of the currency pair from the order-fixing event;

计算单元304,用于根据所述关键信息对亚式期权定盘要素进行匹配和定价计算,获得所述货币对的亚式期权的当前定盘价。The calculation unit 304 is configured to perform matching and pricing calculation on the Asian option fixing elements according to the key information, and obtain the current fixing price of the Asian option on the currency pair.

一种可能的实施方式,所述报价处理单元301还用于:In a possible implementation manner, the quotation processing unit 301 is further configured to:

向所述定报价系统发送所述货币对的报价订阅消息,使所述定报价系统在确定所述货币对的当前报价后推送所述当前报价信息;其中,所述定报价系统每获得一次所述当前市场汇率,便生成一次所述当前报价;Send the quotation subscription message of the currency pair to the fixed quotation system, so that the fixed quotation system pushes the current quotation information after determining the current quotation of the currency pair; wherein, each time the fixed quotation system obtains the If the current market exchange rate is specified, the current quotation will be generated once;

接收所述报价订阅消息,并从所述报价订阅消息中获取所述当前报价;receiving the quotation subscription message, and obtaining the current quotation from the quotation subscription message;

将所述当前报价存储在指定位置。Store said current quote in a specified location.

一种可能的实施方式,所述报价过滤单元302还用于:In a possible implementation manner, the offer filtering unit 302 is further configured to:

判断所述货币对及所述报价类型是否包含在所述亚式期权定盘对应的定盘参数内;Judging whether the currency pair and the quotation type are included in the fixing parameters corresponding to the Asian option fixing;

若为是,确定所述当前报价信息触发所述亚式期权定盘;If yes, determine that the current quotation information triggers the Asian option fixing order;

否则,确定所述当前报价信息未触发所述亚式期权定盘。Otherwise, it is determined that the current quotation information does not trigger the fixing of the Asian option.

一种可能的实施方式,所述事件管理单元303还用于:In a possible implementation manner, the event management unit 303 is further configured to:

从所述定盘事件中获取所述报价信息;Obtaining the quote information from the fixing event;

将所述报价信息作为所述关键信息。The quotation information is used as the key information.

一种可能的实施方式,所述计算单元304还用于:In a possible implementation manner, the computing unit 304 is further configured to:

根据所述亚式期权定盘的查询条件,查询交易要素与所述关键信息匹配的亚式期权;According to the query conditions of the Asian option fixing order, query the Asian options whose transaction elements match the key information;

将所述当前报价作为所述亚式期权的观察期内的一条报价记录进行存储;storing the current quotation as a quotation record within the observation period of the Asian option;

根据所述亚式期权的定价类型,计算当前所述亚式期权在所述观察期内的当前平均值;According to the pricing type of the Asian option, calculate the current average value of the Asian option in the observation period;

将所述当前平均值作为所述当前定盘价。The current average value is used as the current fixing price.

一种可能的实施方式,所述计算单元304还用于:In a possible implementation manner, the computing unit 304 is further configured to:

判断所述观察期内是否存在与所述报价日及所述报价类型相同的历史报价记录;Judging whether there is a historical quotation record with the same quotation date and quotation type during the observation period;

若所述观察期内不存在所述历史报价记录,则在所述观察期内创建包含所述当前报价的报价记录;If the historical quotation record does not exist within the observation period, create a quotation record containing the current quotation during the observation period;

若所述观察期内存在所述历史报价记录,则用所述当前报价更新所述历史报价记录中的报价,或用所述报价记录替换所述历史报价记录。If the historical quotation record exists within the observation period, the quotation in the historical quotation record is updated with the current quotation, or the historical quotation record is replaced with the quotation record.

一种可能的实施方式,所述报价类型为主流外汇交易市场平台的每日报价。In a possible implementation manner, the quote type is daily quotes of mainstream foreign exchange trading market platforms.

一种可能的实施方式,所述每日报价,包括:A possible implementation manner, the daily quotation includes:

央行中间价、中国外汇交易中心CFETS11点报价、BIFIX14点报价。The Central Bank's middle price, China Foreign Exchange Trading Center CFETS 11-point quotation, BIFIX 14-point quotation.

一种可能的实施方式,所述查询条件,包括:A possible implementation manner, the query conditions include:

所述报价类型、所述货币对、定价日期中的至少一个。At least one of the quote type, the currency pair, and pricing date.

需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。It should be noted that the division of units in the embodiment of the present application is schematic, and is only a logical function division, and there may be another division manner in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .

在此需要说明的是,本发明实施例提供的上述装置,能够实现上述方法实施例所实现的所有方法步骤,且能够达到相同的技术效果,在此不再对本实施例中与方法实施例相同的部分及有益效果进行具体赘述。It should be noted here that the above-mentioned device provided by the embodiment of the present invention can realize all the method steps realized by the above-mentioned method embodiment, and can achieve the same technical effect. The part and the beneficial effect are described in detail.

基于同一发明构思,本发明实施例中提供了一种外汇亚式期权实时定盘的装置,包括:至少一个处理器,以及Based on the same inventive concept, an embodiment of the present invention provides a device for real-time fixing of foreign exchange Asian options, including: at least one processor, and

与所述至少一个处理器连接的存储器;a memory connected to the at least one processor;

其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述至少一个处理器通过执行所述存储器存储的指令,执行如上所述的外汇亚式期权实时定盘的方法。Wherein, the memory stores instructions executable by the at least one processor, and the at least one processor executes the above-mentioned method for real-time fixing of foreign exchange Asian options by executing the instructions stored in the memory.

基于同一发明构思,本发明实施例还提一种可读存储介质,包括:Based on the same inventive concept, an embodiment of the present invention also provides a readable storage medium, including:

存储器,memory,

所述存储器用于存储指令,当所述指令被处理器执行时,使得包括所述可读存储介质的装置完成如上所述的外汇亚式期权实时定盘的方法。The memory is used to store instructions, and when the instructions are executed by the processor, the device including the readable storage medium completes the above-mentioned method for real-time fixing of foreign exchange Asian options.

基于同一发明构思,本发明实施例还提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如上所述的外汇亚式期权实时定盘的方法。Based on the same inventive concept, an embodiment of the present invention also provides a computer program product, including a computer program, which implements the above-mentioned method for real-time fixing of foreign exchange Asian options when the computer program is executed by a processor.

所述可读存储介质可以是处理器能够存取的任何可用介质或数据存储设备,包括易失性存储器或非易失性存储器,或者可以包括易失性存储器和非易失性存储器两者。作为例子而非限制性的,非易失性存储器可以包括只读存储器(Read-Only Memory,ROM)、可编程ROM(Programmable read-only memory,PROM)、电可编程ROM(Erasable ProgrammableRead-Only Memory,EPROM)、电可擦写可编程ROM(Electrically Erasable Programmableread only memory,EEPROM)或快闪存储器、固态硬盘(Solid State Disk或Solid StateDrive,SSD)、磁性存储器(例如软盘、硬盘、磁带、磁光盘(Magneto-Optical disc,MO)等)、光学存储器(例如CD、DVD、BD、HVD等)。易失性存储器可以包括随机存取存储器(RandomAccess Memory,RAM),该RAM可以充当外部高速缓存存储器。作为例子而非限制性的,RAM可以以多种形式获得,比如动态RAM(Dynamic Random Access Memory,DRAM)、同步DRAM(Synchronous Dynamic Random-Access Memory,SDRAM)、双数据速率SDRAM(Double DataRate SDRAM,DDR SDRAM)、增强SDRAM(Enhanced Synchronous DRAM,ESDRAM)、同步链路DRAM(Sync Link DRAM,SLDRAM)。所公开的各方面的存储设备意在包括但不限于这些和其它合适类型的存储器。The readable storage medium can be any available medium or data storage device that can be accessed by a processor, including volatile memory or nonvolatile memory, or can include both volatile memory and nonvolatile memory. By way of example and not limitation, nonvolatile memory may include read-only memory (Read-Only Memory, ROM), programmable ROM (Programmable read-only memory, PROM), electrically programmable ROM (Erasable Programmable Read-Only Memory , EPROM), electrically erasable programmable ROM (Electrically Erasable Programmableread only memory, EEPROM) or flash memory, solid state hard disk (Solid State Disk or Solid StateDrive, SSD), magnetic memory (such as floppy disk, hard disk, magnetic tape, magneto-optical disk (Magneto-Optical disc, MO, etc.), optical storage (such as CD, DVD, BD, HVD, etc.). Volatile memory can include random access memory (Random Access Memory, RAM), which can act as external cache memory. By way of example and not limitation, RAM can be obtained in various forms, such as dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (Synchronous Dynamic Random-Access Memory, SDRAM), double data rate SDRAM (Double DataRate SDRAM, DDR SDRAM), enhanced SDRAM (Enhanced Synchronous DRAM, ESDRAM), synchronous link DRAM (Sync Link DRAM, SLDRAM). The storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.

本领域内的技术人员应明白,本发明实施例可提供为方法、系统、或程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机/处理器可用程序代码的可读存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or program products. Accordingly, embodiments of the invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may employ a computer program product implemented on one or more readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer/processor usable program code embodied therein form.

本发明实施例是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present invention are described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that instructions executed by the processor of the computer or other programmable data processing equipment produce a machine for A device for realizing the functions specified in one or more procedures of a flowchart and/or one or more blocks of a block diagram.

这些程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的可读存储器中,使得存储在该可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These program instructions may also be stored in a readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the readable memory produce an article of manufacture comprising instruction means implemented in a Flowchart A process or processes and/or a block diagram with a function specified in a block or blocks.

这些程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机/处理器实现的处理,从而在计算机/处理器或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These program instructions can also be loaded into a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer/processor-implemented process, so that the computer/processor or other programmable The instructions executed on the programming device provide steps for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (13)

1. A method for real-time quotation of foreign exchange Asian options, comprising:
acquiring and storing current quotation information of the currency pair; the current quotation information comprises the quotation type of the currency pair, the quotation date and the current quotation, and the current quotation is determined by a quotation system according to the acquired current market exchange rate of the currency pair;
determining whether to trigger an Asian option quotation according to the quotation type of the currency pair, and if the Asian option quotation is determined to be triggered, generating a quotation event containing the current quotation information;
capturing the fixed-disk event through an event listener, and calling an event processor to acquire key information required for performing the Asian option fixed disk on the currency pair from the fixed-disk event;
and matching and pricing calculation are carried out on the subfamily option quotation elements according to the key information, and the current quotation price of the subfamily options of the currency pair is obtained.
2. The method of claim 1, wherein obtaining and storing current bid information for a currency pair comprises:
sending a quote subscription message of the currency pair to the bid system, so that the bid system pushes the current quote information after determining the current quote of the currency pair; wherein the pricing and quotation system generates the current quotation once per obtaining the current market rate;
receiving the quotation subscription message, and acquiring the current quotation from the quotation subscription message;
storing the current offer at a specified location.
3. The method of claim 1, wherein determining whether to trigger an Asian option dial based on a bid type of the currency pair comprises:
judging whether the currency pair and the quotation type are contained in the quotation parameters corresponding to the Asian option quotation;
if yes, determining that the current quotation information triggers the Asian option quotation plate;
otherwise, determining that the current quotation information does not trigger the Asian option quotation.
4. A method according to any of claims 1-3, wherein obtaining key information from the price fixing event required to make the asian option price fixing for the currency pair comprises:
acquiring the quotation information from the fixed-disc event;
and taking the quotation information as the key information.
5. The method of claim 4, wherein matching and pricing the Asian option trading elements based on the key information to obtain a current quotation price for the Asian options of the currency pair comprises:
inquiring the subformula option matched with the transaction element and the key information according to the inquiry condition of the subformula option fixed disk;
storing the current offer as a record of offers during an observation period of the Asian option;
calculating the current average value of the current subfamily options in the observation period according to the pricing types of the subfamily options;
and taking the current average value as the current price for fixing the disk.
6. The method of claim 5, wherein storing the current bid as a record of bids during the observation period of the Asian option comprises:
judging whether a historical quotation record with the same quotation date and the same quotation type exists in the observation period;
if the historical quotation record does not exist in the observation period, establishing a quotation record containing the current quotation in the observation period;
and if the historical quotation record exists in the observation period, updating quotation in the historical quotation record by using the current quotation, or replacing the historical quotation record by using the quotation record.
7. The method of claim 4, wherein the offer type is a daily offer for a mainstream forex trading market platform.
8. The method of claim 7, wherein the daily quote comprises:
central row intermediate price, china foreign exchange trading center CFETS11 point quotation, BIFIX14 point quotation.
9. The method of claim 4, wherein the query condition comprises:
at least one of the offer type, the currency pair, a pricing date.
10. An apparatus for real-time quotation of foreign exchange Asian options, comprising:
the quotation processing unit is used for acquiring and storing the current quotation information of the currency pair; the current quotation information comprises the quotation type of the currency pair, the quotation date and the current quotation, and the current quotation is determined by a quotation system according to the acquired current market exchange rate of the currency pair;
the quotation filtering unit is used for determining whether to trigger an Asian option quotation according to the quotation type of the currency pair, and if the Asian option quotation is determined to be triggered, a quotation event containing the current quotation information is generated;
the event management unit is used for capturing the fixed-disk events through an event listener and calling an event processor to acquire key information required for performing the Asian option fixed disk on the currency pair from the fixed-disk events;
and the calculating unit is used for matching and pricing the subfamily option quotation elements according to the key information to obtain the current quotation price of the subfamily options of the currency pair.
11. An apparatus for real-time quotation of foreign exchange Asian options, comprising:
at least one processor, and
a memory coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor performing the method of any one of claims 1-9 by executing the instructions stored by the memory.
12. A readable storage medium, comprising a memory,
the memory is for storing instructions that, when executed by the processor, cause an apparatus comprising the readable storage medium to perform the method of any of claims 1-9.
13. A computer program product, characterized in that it comprises a computer program which, when being executed by a processor, carries out the method of any one of claims 1-9.
CN202211446433.0A 2022-11-18 2022-11-18 Method, device, storage medium and product for real-time quotation of foreign exchange Asian options Pending CN115760430A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211446433.0A CN115760430A (en) 2022-11-18 2022-11-18 Method, device, storage medium and product for real-time quotation of foreign exchange Asian options

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211446433.0A CN115760430A (en) 2022-11-18 2022-11-18 Method, device, storage medium and product for real-time quotation of foreign exchange Asian options

Publications (1)

Publication Number Publication Date
CN115760430A true CN115760430A (en) 2023-03-07

Family

ID=85373279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211446433.0A Pending CN115760430A (en) 2022-11-18 2022-11-18 Method, device, storage medium and product for real-time quotation of foreign exchange Asian options

Country Status (1)

Country Link
CN (1) CN115760430A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060271473A1 (en) * 2005-05-26 2006-11-30 New York University Process, system, software arrangement and storage medium which is capable of providing various financing options
CN104809647A (en) * 2014-01-28 2015-07-29 中国金融期货交易所股份有限公司 Volatility index compiling method
CN106605245A (en) * 2014-12-24 2017-04-26 株式会社野村综合研究所 Settlement system and settlement method
CN109493219A (en) * 2018-10-24 2019-03-19 深圳市金证科技股份有限公司 Generation method, system, terminal device and the storage medium of option contract quotation
JP2019091165A (en) * 2017-11-13 2019-06-13 株式会社オービック Foreign currency conversion device, foreign currency conversion method and foreign currency conversion program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060271473A1 (en) * 2005-05-26 2006-11-30 New York University Process, system, software arrangement and storage medium which is capable of providing various financing options
CN104809647A (en) * 2014-01-28 2015-07-29 中国金融期货交易所股份有限公司 Volatility index compiling method
CN106605245A (en) * 2014-12-24 2017-04-26 株式会社野村综合研究所 Settlement system and settlement method
JP2019091165A (en) * 2017-11-13 2019-06-13 株式会社オービック Foreign currency conversion device, foreign currency conversion method and foreign currency conversion program
CN109493219A (en) * 2018-10-24 2019-03-19 深圳市金证科技股份有限公司 Generation method, system, terminal device and the storage medium of option contract quotation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韩立岩;崔旻抒;: "人民币指数美式期货期权定价研究", 管理科学学报, no. 03, 15 March 2010 (2010-03-15), pages 54 - 67 *

Similar Documents

Publication Publication Date Title
CN110232565B (en) Resource clearing method, device, computer equipment and storage medium
US8346653B2 (en) Automated trading system for routing and matching orders
CN108269185B (en) Method, device and electronic device for generating capital flow statement
US12166694B2 (en) Activity based electrical computer system request processing architecture
US20210049685A1 (en) Systems and methods for managing cryptocurrency
CN110415095A (en) Account reconciliation method, device, terminal and storage medium
CN110942393B (en) Transaction processing method, device, and electronic device based on master and sub-accounts
CN110070440A (en) A kind of business data processing method, device, equipment and storage medium
CN113112272A (en) Foreign exchange service processing method and device based on block chain
WO2017125936A1 (en) System and method for holistically predicting risk associated with trade transactions in real-time
CN110765148B (en) A business data processing method and device
CN112465633A (en) Transaction reconciliation method, readable storage medium and computer equipment
US20110191227A1 (en) Bankruptcy evaluation service and system
CN114820165A (en) Flow monitoring method, equipment and medium based on identification analysis
CN112950191A (en) Service data processing method and device based on fee refunding service and computer equipment
CN115760430A (en) Method, device, storage medium and product for real-time quotation of foreign exchange Asian options
CN113506176A (en) Blockchain-based transaction fee transfer method and device
CN115393049A (en) Repayment reminding method and device
CN115829711B (en) Method and apparatus for determining transfer pricing of funds in interbank lending transactions
CN114648407B (en) A cash withdrawal transaction method and device, electronic device and storage medium
CN114971754B (en) Order creation method, device, electronic device and storage medium
CN112182505A (en) Account compliance processing method and device
CN115170308A (en) Transaction processing method and device for transaction products
CN121146889A (en) Resource scheduling methods, devices and storage media
KR20250104658A (en) Apparatus and method for recording stock trading using block chain and providing tax information related with recording stock trading

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