CN109377370A - A kind of data processing method and processing unit - Google Patents
A kind of data processing method and processing unit Download PDFInfo
- Publication number
- CN109377370A CN109377370A CN201811351121.5A CN201811351121A CN109377370A CN 109377370 A CN109377370 A CN 109377370A CN 201811351121 A CN201811351121 A CN 201811351121A CN 109377370 A CN109377370 A CN 109377370A
- Authority
- CN
- China
- Prior art keywords
- transaction
- value date
- information
- time limit
- currency
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The embodiment of the invention discloses a kind of data processing method and processing units, the value date for the different maturity periods of assembling that corresponding multiple time limit computing units are to calculate according to parameter transaction, and value date information is exported to the page and is shown, the time limit computing unit corresponds respectively to the different time limits on value date, wherein, the different time limit on value date has scheduled value date computation rule.Thus, it is possible to reduce the coupling of value date information transmission, encapsulation degree is improved, there is preferably portable and reusability, and promote the accuracy of value date calculated result.
Description
Technical field
The present invention relates to field of computer technology, more particularly, to a kind of data processing method and processing unit.
Background technique
Value date is the key dates of bank transaction, in systems in practice, the value date calculating parameter of each branch in the whole world
It is different, and there are also different value date calculations for different business scenarios.
Currently, transaction system and relevant transaction control software are provided which value date computing function, but directly by patrolling
It collects code to realize, and is mixed with other logical codes in system, so that value date calculating logic code is coupled with other logics
Property it is higher, it is difficult to transplant, portable and reusability is poor.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of data processing method and processing unit, to reduce value date information
The coupling of transmission improves encapsulation degree, has preferably portable and reusability, and promote the standard of value date calculated result
True property.
In a first aspect, the embodiment of the present invention provides a kind of data processing method, which comprises
Parameter transaction is obtained, the parameter transaction includes at least one party's monetary information of currency centering to be transacted, standard goods
Coin information and transaction daily range;
The value date information for the different maturity periods of assembling that corresponding multiple time limit computing units are to obtain according to the parameter transaction,
The time limit computing unit corresponds respectively to the different time limits on value date, wherein the different time limit on value date has predetermined
Value date computation rule, the value date information include corresponding currency to different maturity periods value date;
Value date information is exported to the page and is shown.
Further, the parameter transaction further includes deadline information;
Assembling corresponding computing unit according to the parameter transaction to obtain value date information includes:
Corresponding time limit computing unit is searched according to the deadline information;
Obtain the time limit computing unit list assembled through corresponding value date calculation template;
The time limit computing unit controlled in the time limit computing unit list calls the parameter transaction to obtain respectively
State the corresponding value date information of deadline information.
Further, the different maturity periods of assembling that corresponding multiple time limit computing units are to obtain according to the parameter transaction, rise
Cease day information further include:
According to the customized value date calculation template of the time limit computing unit.
Further, the type of transaction includes currency spot transaction, currency forward transaction, Currency swap transaction, foreign currency
Short-term loan at daily interest transaction and Currency swap transaction.
Further, when the type of transaction is foreign exchange spot transaction, forward foreign currency transaction or swapping, institute
State the two-sided information and standard money information that parameter transaction includes transaction daily range, currency pair to be transacted;
When the type of transaction is foreign currency short-term loan at daily interest transaction, the parameter transaction includes transaction daily range, goods to be transacted
The folk prescription monetary information and standard money information of coin pair;
When the type of transaction is to trade the Currency swap, the parameter transaction includes Currency swap information, goods to be transacted
The two-sided information and standard money information of coin pair, the Currency swap information include the day of trade and pay interest the period for the first time.
Further, each step of the data processing method is executed with micro services technical approach to improve at the data
The reusability of reason method.
Second aspect, the embodiment of the present invention provide a kind of data processing equipment, and described device includes:
Input module is configured as obtaining parameter transaction, and the parameter transaction includes at least the one of currency centering to be transacted
Square monetary information, standard money information and transaction daily range;
Loading module is configured as assembling corresponding multiple time limit computing units according to the parameter transaction to obtain difference
The value date information in time limit, the time limit computing unit correspond respectively to the different time limits on value date, wherein described different rises
Ceasing time limit day has a scheduled value date computation rule, the value date information include corresponding currency to different maturity periods from
Cease day;
Output module, is configured as exporting value date information to the page and shows;And
Value date computing module is configured as providing correspondence to the loading module including different time limit computing units
Time limit calculation method.
Further, the parameter transaction further includes deadline information;
The loading module includes:
Searching unit is configured as searching corresponding time limit computing unit according to the deadline information;
Acquiring unit is configured as obtaining the time limit computing unit list assembled through corresponding value date calculation template;
Value date computing unit, the time limit computing unit for being configured as controlling in the time limit computing unit list are adjusted respectively
With the parameter transaction to obtain the corresponding value date information of the deadline information.
The third aspect, the present invention are that embodiment provides a kind of computer readable storage medium, store computer program thereon
Instruction, the computer program instructions realize method as described above when being executed by processor.
Fourth aspect, the embodiment of the present invention provide a kind of electronic equipment, including memory and processor, wherein
The memory is for storing one or more computer instruction, wherein one or more computer instruction
It is executed by the processor to realize method as described above.
The technical solution of the embodiment of the present invention assembles corresponding multiple time limit computing units according to parameter transaction to calculate not
With the value date in time limit, and value date information is exported to the page and is shown, the time limit computing unit corresponds respectively to not
The same time limit on value date, wherein the different time limit on value date has scheduled value date computation rule.Thus, it is possible to drop
The coupling of low value date information transmission, improves encapsulation degree, has preferably portable and reusability, and promote value date
The accuracy of calculated result.
Detailed description of the invention
By referring to the drawings to the description of the embodiment of the present invention, the above and other purposes of the present invention, feature and
Advantage will be apparent from, in the accompanying drawings:
Fig. 1 is the flow chart of the data processing method of the embodiment of the present invention;
Fig. 2 is the flow chart of the data processing equipment of the embodiment of the present invention;
Fig. 3 is that the logic of the input module of the data processing equipment of the embodiment of the present invention realizes schematic diagram;
Fig. 4 is that the logic of the loading module of the data processing equipment of the embodiment of the present invention realizes schematic diagram;
Fig. 5 is that the logic of the value date computing module of the data processing equipment of the embodiment of the present invention realizes schematic diagram;
Fig. 6 is that the logic of the output module of the data processing equipment of the embodiment of the present invention realizes schematic diagram;
Fig. 7 is the schematic diagram of the electronic equipment of the embodiment of the present invention.
Specific embodiment
Below based on embodiment, present invention is described, but the present invention is not restricted to these embodiments.Under
Text is detailed to describe some specific detail sections in datail description of the invention.Do not have for a person skilled in the art
The present invention can also be understood completely in the description of these detail sections.In order to avoid obscuring essence of the invention, well known method, mistake
There is no narrations in detail for journey, process, element and circuit.
In addition, it should be understood by one skilled in the art that provided herein attached drawing be provided to explanation purpose, and
What attached drawing was not necessarily drawn to scale.
Unless the context clearly requires otherwise, "include", "comprise" otherwise throughout the specification and claims etc. are similar
Word should be construed as the meaning for including rather than exclusive or exhaustive meaning;That is, be " including but not limited to " contains
Justice.
In the description of the present invention, it is to be understood that, term " first ", " second " etc. are used for description purposes only, without
It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present invention, unless otherwise indicated, the meaning of " multiple "
It is two or more.
Fig. 1 is the flow chart of the data processing method of the embodiment of the present invention.The data processing method of the embodiment of the present invention is used
In the value date information for obtaining foreign exchange transaction.After value date refers to that foreign exchange transaction is reached, both parties fulfil the allocation of the funds, goods
Coin gathering or payment can really execute the date come into force.Value date is generally prompt day.Foreign exchange transaction type may include foreign exchange
Spot transaction, forward foreign currency transaction, swapping, the transaction of foreign currency short-term loan at daily interest and Currency swap transaction etc..Foreign exchange spot transaction
Refer to foreign exchange currency type, the amount of money, the exchange rate of the both parties to arrange, the transaction completed a business transaction in second business day after transaction date.Foreign exchange
Forward transaction refers to both parties with currency type, the amount of money, the exchange rate arranged, and hands in the future a certain date (non-immediate value date) of agreement
The foreign exchange transaction cut.It is contrary that swapping refers to that both parties are about scheduled on one in front and one in back two different value dates progress
Exchange through money twice.In first time exchange through money, a side according to agreement exchange rate currency A money of exchange B, second
In exchange through money, exchange rate currency B money of exchange A of the party according still further to another agreement.Swapping includes promptly to remote
Phase swap transaction, forward forward swap transaction and swap transaction overnight.Every swap transaction include a proximal end time limit and
One distal end time limit is respectively used to determine proximal end value date and distal end value date.Time limit refers to that exchange bourse across time span, leads to
Often the time difference on immediate value date is indicated with value date and the currency, is divided into standard time limit and non-standard time limit.Standard time limit
Refer to that value date and the currency are the time limit of fixed time period to the immediate time difference on value date.The non-standard time limit refers to that foreign exchange transaction is carried interest
Day falls in the time limit other than the standard time limit date.Currency swap transaction refers to that both parties exchange amount in agreed period
Currency, while exchanging periodically the transaction of two kinds of monetary interests.Foreign currency short-term loan at daily interest transaction refers between financial institution as solution foreign currency funds
Surplus and deficiency and carry out short-term foreign currency funds circulation behavior.The value date of foreign currency short-term loan at daily interest is real from the generation of direction borrowing side is removed from now on
The date of border transfer.
As shown in Figure 1, the data processing method of the embodiment of the present invention the following steps are included:
In step S100, parameter transaction is obtained.Wherein, parameter transaction includes at least one party's currency letter of currency pair to be transacted
Breath, standard money information and day of trade range information.Monetary information includes the holiday information of currency type mark and currency.Mark
Quasi-money namely strong currency, with extremely strong circulation, such as dollar.Standard money information includes standard money type mark
Know the holiday information with standard money.
Further, parameter transaction is different and different according to type of transaction.It is foreign exchange spot transaction, foreign exchange in type of transaction
When forward transaction or swapping, parameter transaction includes the two-sided information and standard of transaction daily range, currency pair to be transacted
Monetary information.When type of transaction is foreign currency short-term loan at daily interest transaction, parameter transaction includes the list of transaction daily range, currency pair to be transacted
Square monetary information and standard money information.Type of transaction be the Currency swap trade when, parameter transaction include Currency swap information,
The two-sided information and standard money information of currency pair to be transacted, the Currency swap information include the day of trade and pay interest week for the first time
Phase.
In step S200, carrying interest different maturity periods assembling that corresponding multiple time limit computing units are to obtain according to parameter transaction
Day information.Wherein, time limit computing unit corresponds respectively to the different time limits on value date, and the different time limits on value date has scheduled
Value date computation rule.Value date information include currency to be transacted to different maturity periods value date.
Further, parameter transaction further includes deadline information.Step S200 is specially corresponding according to deadline information lookup
Time limit computing unit simultaneously obtains the time limit computing unit list assembled through corresponding value date calculation template, and the control time limit calculates single
Time limit computing unit in first list calls parameter transaction respectively to obtain the corresponding value date information of above-mentioned deadline information.It is preferred that
It ground in the present embodiment can be according to the customized value date calculation template of time limit computing unit.Value date calculation template is used for will
Corresponding time limit computing unit is assembled to obtain value date information according to parameter transaction.Thus, it is possible to reduce different time limit meters
Calculate the degree of coupling between unit.
In step S300, value date information is exported to the page and is shown.
Preferably, each step of the data processing method of the present embodiment is executed with micro services technical approach and by logical code
It is encapsulated as value date component, thus, it is possible to improve the portability and reusability of value date calculating logic, and helps to improve meter
Calculate the accuracy of result.
The technical solution of the present embodiment assembles corresponding multiple time limit computing units according to parameter transaction to calculate the not same period
The value date of limit, and value date information is exported to the page and is shown, the time limit computing unit corresponds respectively to different
Time limit on value date, wherein the different time limit on value date has scheduled value date computation rule.Thus, it is possible to reduce
The coupling of day information transmission is ceased, encapsulation degree is improved, there is preferably portable and reusability, and promotes value date calculating
As a result accuracy.
Fig. 2 is the flow chart of the data processing equipment of the embodiment of the present invention.As shown in Fig. 2, the data processing of the present embodiment
Device 2 includes input module 21, load module 22, output module 23 and value date computing module 24.Wherein, input module 21
It is configured to obtain parameter transaction.Wherein, parameter transaction includes at least one party's currency letter of currency centering to be transacted
Breath, standard money information and transaction daily range.Monetary information includes the holiday information of currency type mark and currency.Standard goods
Coin namely strong currency, with extremely strong circulation, such as dollar.Standard money information include standard money type identification and
The holiday information of standard money.
Further, parameter transaction is different and different according to type of transaction.It is foreign exchange spot transaction, foreign exchange in type of transaction
When forward transaction or swapping, parameter transaction includes the two-sided information and standard of transaction daily range, currency pair to be transacted
Monetary information.When type of transaction is foreign currency short-term loan at daily interest transaction, parameter transaction includes the list of transaction daily range, currency pair to be transacted
Square monetary information and standard money information.Type of transaction be the Currency swap trade when, parameter transaction include Currency swap information,
The two-sided information and standard money information of currency pair to be transacted, the Currency swap information include the day of trade and pay interest week for the first time
Phase.
Load module 22 is configured as assembling corresponding multiple time limit computing units according to parameter transaction to obtain the not same period
The value date information of limit.Wherein, time limit computing unit corresponds respectively to different time limits on value date, different time limit on value date tools
There is scheduled value date computation rule.Value date information include currency to be transacted to different maturity periods value date.
Further, parameter transaction further includes deadline information.Load module 22 includes searching unit 221, acquiring unit 222
With value date computing unit 223.Searching unit 221 is configured as searching corresponding time limit calculating list according to the deadline information
Member.Acquiring unit 222 is configured as obtaining the time limit computing unit list assembled through corresponding value date calculation template.Value date
The time limit computing unit that computing unit 223 is configured as controlling in the time limit computing unit list calls the transaction to join respectively
Number is to obtain the corresponding value date information of the deadline information.It preferably, in the present embodiment, can be according to time limit computing unit
Customized value date calculation template.Value date calculation template will be for that will assemble corresponding time limit computing unit according to parameter transaction
Obtain value date information.Thus, it is possible to reduce the degree of coupling between different time limit computing units.
Output module 23 is configured as exporting value date information to the page and show.Value date computing module 24 includes
Multiple time limit computing units are configured as providing corresponding time limit calculation method to loading module 22.
Preferably, the data processing equipment 2 of the present embodiment further includes Util module 25, is configured to supply deep copy, day
Phase judgement and date, which jump, waits public methods.Wherein, deep copy is influenced in calculating process by external data variation for preventing.
Date, judgement was for the calculating of date differences compared with.Date jumps for carrying out date jump according to the different dates in time limit
Turn.
Fig. 3 is that the logic of the input module of the data processing equipment of the embodiment of the present invention realizes schematic diagram.As shown in figure 3,
In an optional implementation manner, the logic of the input module of the present embodiment realizes to include LegBean class, is configured as obtaining
The information such as monetary information (including currency to be transacted to information and standard money information).CcsLegBean Similar integral in
LegBean class, for obtaining the interest rate type in Currency swap transaction and the parameters such as period of paying interest.CcsInfo class is that currency falls
Exclusive information in phase transaction.Due to the Currency swap transaction value date calculate when need additional parameter information (such as
Pay interest for the first time period etc. the day of trade), field is excessive, and independent CcsInfo class out is so that logic has preferable operability.
Fig. 4 is that the logic of the loading module of the data processing equipment of the embodiment of the present invention realizes schematic diagram.As shown in figure 4,
In an optional implementation manner, the loading module of the present embodiment includes IvalueDayConfig class, for providing value date
Calculate the interface of service moulding plate.For example, time limit relevant logic includes that addPeriodCal class (calculates list for adding the time limit
Member), getPeriodCalUnitByPeriodType class (for according to deadline information search time limit computing unit),
GetPeriodCalUnitList class (turning the computing unit list matched through value date calculation template for obtaining) etc..Call transaction
The relevant logic of parameter includes loadConfig class (for loading input information), getDateList class (for obtaining the day of trade
Range information), getLegBeanList class (for obtaining the monetary information of currency pair to be transacted) and
GetStrongHldyBeanList class (for obtaining standard money information) etc..
The loading module of the present embodiment further includes BlankValueDayConfig class comprising the unassembled time limit calculates single
The template (i.e. blank template) of member can realize next business day, the end of month rule, adjusted next business in conjunction with Util module
The business rules such as day, while legitimacy verifies are carried out to each parameter transaction of input and are deeply copied, prevent calculating process by outer
The influence of portion's data variation.
The loading module of the present embodiment further include DefaultValueDayConfig class, FclValueDayConfig class and
CcsValueDayConfig class is inherited in BlankValueDayConfig class.Wherein, DefaultValueDayConfig
The value date that class is used to describe to be assembled with foreign exchange spot transaction, forward foreign currency transaction and swapping relevant time limit calculates mould
Plate.FclValueDayConfig class is used to describe to be assembled with the value date calculation template of foreign currency short-term loan at daily interest transaction relevant time limit, simultaneously
The parameter transaction of input can be verified and be adjusted.CcsValueDayConfig class is assembled with Currency swap friendship for describing
The value date calculation template of easy relevant time limit, while the parameter transaction of input can be verified and be adjusted.
The loading module of the present embodiment further includes IValueDayService class, ValueDayServiceImpl class,
FclValueDayServiceImpl class and CcsValueDay ServiceImpl class.IValueDayService class is used for
Value date calculating interface and day of trade range computation interface are externally provided, and (is risen according to specific IValueDayConfig class
Cease the interface for day calculating service moulding plate) carry out value date calculating.ValueDayServiceImpl class,
FclValueDayServiceImpl class and CcsValueDayServiceImpl class are inherited in IValueDayService
Class.Wherein, ValueDayServiceImpl class is fallen for realizing nesting foreign exchange spot transaction, forward foreign currency transaction and foreign exchange
The value date of the value date calculation template of phase transaction relevant time limit calculates.FclValueDayServiceImpl class is for realizing embedding
The value date for having covered the value date calculation template of foreign currency short-term loan at daily interest transaction relevant time limit calculates.CcsValueDayServiceImpl class
Value date for realizing the value date calculation template of nesting Currency swap transaction relevant time limit calculates.
That is, the present embodiment by different types of transaction according to the difference of its value date computation rule, with Similar integral
Mode realize that the value date of different type transaction calculates, thus, it is possible to reduce the coupling of logical code, meanwhile, improve
The accuracy that value date calculates.
Fig. 5 is that the logic of the value date computing module of the data processing equipment of the embodiment of the present invention realizes schematic diagram.Due to
The type of foreign exchange transaction is different, and corresponding standard time limit is different, then corresponding time limit computing unit is also different.Wherein, outside
The standard time limit of remittance spot transaction includes T+0 (transaction date), T+1 (first business day of transaction date), T+2 (after transaction date
Second business day) etc. the time limits.Forward foreign currency transaction standard time limit include T+0, T+1, T+2, T+3,1W (one week), 2W, 3W,
The time limits such as 1M (January), 2M, 3M, 4M, 5M, 6M, 9M, 1Y (1 year), 18M, 2Y, 3Y.The standard time limit packet of swapping
Include that O/N (namely proximal end value date is T+0, and distal end value date is T+1), (namely proximal end value date is T+1, distal end value date to T/N
For T+2), S/N (namely proximal end value date is T+2, and distal end value date is T+3), 1W, (namely proximal end value date is T+2, and distal end is risen
Breath day is the latter week on immediate value date), (namely proximal end value date be T+2, and distal end value date is immediate value date by 2W, 3W, 1M
January later), 2M, 3M, 4M, 5M, 6M, 9M, 1Y (namely proximal end value date be T+2, distal end value date be immediate value date after
1 year), the time limits such as 18M, 2Y, 3Y.Foreign currency short-term loan at daily interest transaction standard time limit be O/N, T/N, S/N, 1W, 2W, 3W, 1M, 2M, 3M,
The time limits such as 6M, 9M, 1Y.Currency swap transaction standard time limit include for the first time with non-two time limits for the first time.
As shown in figure 5, in an optional implementation manner, the logic of the value date computing module of the present embodiment realizes packet
AbsPeriodCalUnit class namely value date computing unit abstract class are included, the corresponding time limit is defined and is carried out value date
Impacted standard money when calculating externally provides unified calculation interface, in order to which the unified assembly of load module is called.Meanwhile
The calculating logic on value date is provided.Wherein, AbsPeriodCalUnit class needs to call PeriodType class (namely time limit class),
It includes time limit code (including above-mentioned various corresponding standard time limits etc. of trading), the dates that need to be adjusted etc..Also,
PeriodType class provides the interface in extension time limit, with when increasing in some type corresponding time limit, to PeriodType class
It is extended, operability and scalability with higher.
Based on foreign exchange spot transaction, forward foreign currency transaction and swapping, the logic of value date computing module is realized
Further include TodayPeriodCalUnit class, TomPeriodCalUnit class, SpotPeriodCalUnit class,
Less1MPeriodCalUnit class and More1MPeriodCalUnit class are inherited in AbsPeriodCalUnit class.
TodayPeriodCalUnit class, TomPeriodCalUnit class, SpotPeriodCalUnit class,
Less1MPeriodCalUnit class and More1MPeriodCalUnit class be respectively be the time limit computing unit of T+0, phase in the time limit
It is limited to the time limit computing unit of T+1, the time limit is the time limit of the time limit computing unit of T+2, time limit less than 1M (1D, 1W, 2W, 3W etc.)
The time limit computing unit that computing unit, time limit are greater than.In an optional implementation manner, Less1MPeriodCalUnit class
The difference of number of days can be adjusted according to PeriodType class with More1MPeriodCalUnit class.
Made a short-term loan on and traded based on foreign currency, the realization of the logic of value date computing module further include OnPeriodCalUnit class,
TnPeriodCalUnit class, SnPeriodCalUnit class and FclPeriodCalUnit class, respectively time limit are the time limit of O/N
The time limit computing unit and time limit that time limit computing unit that computing unit, time limit are T/N, time limit are S/N are other time limits
Computing unit.Since calculating logic is similar, OnPeriodCalUnit class, TnPeriodCalUnit class, SnPeriodCalUnit
Class and FclPeriodCalUnit class inherit respectively in TodayPeriodCalUnit class, TomPeriodCalUnit class,
SpotPeriodCalUnit class and Less1MPeriodCalUnit class.
Traded based on the Currency swap, the realization of the logic of value date computing module further include ABSCcsPeriodCalUnit class,
FirstPeriodCalUnit4CCS class and NonFirstPeriodCalUnit4CCS class.Wherein,
ABSCcsPeriodCalUnit class is directly inherited in AbsPeriodCalUnit class.Since Currency swap transaction is several with other
Transaction value date calculating logic difference it is larger, in an optional implementation manner, ABSCcsPeriodCalUnit class after
Calculating interface is redefined after holding AbsPeriodCalUnit class, value date different maturity periods to facilitate progress calculates.
FirstPeriodCalUnit4CCS class and NonFirstPeriodCalUnit4CCS class inherit in
ABSCcsPeriodCalUnit class, time limit computing unit and non-time limit computing unit for the first time respectively for the first time.
That is, value date computing module patrols the calculating on the relevant time limit of different types of transaction corresponding value date
It collects and is realized by different time limit computing units, and reduce a degree of coupling for time limit computing unit by way of succession,
Meanwhile the accuracy of value date calculating can be improved.
Fig. 6 is that the logic of the output module of the data processing equipment of the embodiment of the present invention realizes schematic diagram.As shown in fig. 6,
The logic of the output module of the present embodiment realize include IvalueDayInfo class, DefaultValueDayInfo class and
CcsValueDayInfo class.The output interface of IvalueDayInfo class offer value date information.DefaultValueDayInfo
Class and CcsValueDayInfo class are inherited in IvalueDayInfo class.DefaultValueDayInfo class is for realizing defeated
The value date information of the immediate forward start swaps of foreign exchange and foreign currency short-term loan at daily interest transaction out.CcsValueDayInfo class is for realizing output goods
The value date information of coin swap transaction.
It will be appreciated by those skilled in the art that above-mentioned input module, output module, load module and value date calculate mould
The logic realization of block is only exemplary a kind of mode, the data processing method of with good grounds the present embodiment obtain value date
The logic realization of information is protected in the present embodiment.
By interface communication between modules in the present embodiment, intermodule is mutually indepedent, and disparate modules are responsible for difference
Responsibility, simplify logical code.In an optional implementation manner, (the unwanted letter of other modules of the information in module
Breath) it is inaccessible for other modules, so as to reduce module call when maloperation and can be in effective protection module
Logical code.
Preferably, the function of modules is realized with micro services technical approach, and logical code is encapsulated as value date
Component thus, it is possible to improve the portability and reusability of value date calculating logic, and helps to improve the accurate of calculated result
Property.
The technical solution of the present embodiment assembles corresponding multiple time limit computing units according to parameter transaction to calculate the not same period
The value date of limit, and value date information is exported to the page and is shown, the time limit computing unit corresponds respectively to different
Time limit on value date, wherein the different time limit on value date has scheduled value date computation rule.Thus, it is possible to reduce
The coupling of day information transmission is ceased, encapsulation degree is improved, there is preferably portable and reusability, and promotes value date calculating
As a result accuracy.
Fig. 7 is the schematic diagram of the electronic equipment of the embodiment of the present invention.Electronic equipment shown in Fig. 7 is general data processing dress
It sets comprising general computer hardware structure includes at least processor 71 and memory 72.Processor 71 and memory 72
It is connected by bus 73.Memory 72 is suitable for the instruction or program that storage processor 71 can be performed.Processor 71 can be independence
Microprocessor, be also possible to one or more microprocessor set.Processor 71 is deposited by executing memory 72 as a result,
The instruction of storage is realized thereby executing the method flow of the embodiment of the present application as described above for the processing of data and for other
The control of device.Bus 73 links together above-mentioned multiple components, while said modules are connected to 74 He of display controller
Display device and input/output (I/O) device 75.Input/output (I/O) device 75 can be mouse, keyboard, modulation /demodulation
Device, network interface, touch-control input device, printer and other devices well known in the art.Typically, input/output device
75 are connected by input/output (I/O) controller 76 with system.
It will be understood by those skilled in the art that embodiments herein can provide as method, apparatus (equipment) or computer
Program product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the application
The form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the application, which can be used in one or more,
The computer program implemented on machine readable storage medium storing program for executing (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Product.
The application is flow chart of the reference according to method, apparatus (equipment) and computer program product of the embodiment of the present application
Come what is described.It should be understood that each process in flow chart can be realized by computer program instructions.
These computer program instructions, which can store, is being able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
The manufacture of device is enabled, the function of specifying in one process of the command device implementation flow chart or multiple processes.
Also can provide these computer program instructions to general purpose computer, special purpose computer, Embedded Processor or other
The processor of programmable data processing device is to generate a machine, so that being set by computer or the processing of other programmable datas
The instruction that standby processor executes generates for realizing the device for the function of specifying in one or more flows of the flowchart.
The technical solution of the present embodiment assembles corresponding multiple time limit computing units according to parameter transaction to calculate the not same period
The value date of limit, and value date information is exported to the page and is shown, the time limit computing unit corresponds respectively to different
Time limit on value date, wherein the different time limit on value date has scheduled value date computation rule.Thus, it is possible to reduce
The coupling of day information transmission is ceased, encapsulation degree is improved, there is preferably portable and reusability, and promotes value date calculating
As a result accuracy.
The above description is only a preferred embodiment of the present invention, is not intended to restrict the invention, for those skilled in the art
For, the invention can have various changes and changes.All any modifications made within the spirit and principles of the present invention are equal
Replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of data processing method, which is characterized in that the described method includes:
Parameter transaction is obtained, the parameter transaction includes at least one party's monetary information of currency centering to be transacted, standard money letter
Breath and transaction daily range;
The value date information for the different maturity periods of assembling that corresponding multiple time limit computing units are to obtain according to the parameter transaction, it is described
Time limit computing unit corresponds respectively to the different time limits on value date, wherein the different time limit on value date has scheduled
Cease day computation rule, the value date information include corresponding currency to different maturity periods value date;
Value date information is exported to the page and is shown.
2. data processing method according to claim 1, which is characterized in that the parameter transaction further includes deadline information;
Assembling corresponding computing unit according to the parameter transaction to obtain value date information includes:
Corresponding time limit computing unit is searched according to the deadline information;
Obtain the time limit computing unit list assembled through corresponding value date calculation template;
It controls the time limit computing unit in the time limit computing unit list and calls the parameter transaction respectively to obtain the phase
The corresponding value date information of limit information.
3. data processing method according to claim 1, which is characterized in that assembled according to the parameter transaction corresponding more
The value date information for different maturity periods that a time limit computing unit is to obtain further include:
According to the customized value date calculation template of the time limit computing unit.
4. data processing method according to claim 1, which is characterized in that the type of transaction includes that currency is promptly handed over
Easily, currency forward transaction, Currency swap transaction, the transaction of foreign currency short-term loan at daily interest and Currency swap transaction.
5. data processing method according to claim 4, which is characterized in that promptly handed in the type of transaction for foreign exchange
Easily, forward foreign currency transaction or when swapping, the parameter transaction include the both sides of daily range, currency pair to be transacted of trading
Information and standard money information;
When the type of transaction is foreign currency short-term loan at daily interest transaction, the parameter transaction includes transaction daily range, currency pair to be transacted
Folk prescription monetary information and standard money information;
When the type of transaction is to trade the Currency swap, the parameter transaction includes Currency swap information, currency pair to be transacted
Two-sided information and standard money information, the Currency swap information include the day of trade and pay interest the period for the first time.
6. data processing method according to any one of claims 1-5, which is characterized in that held with micro services technical approach
Each step of the row data processing method is to improve the reusability of the data processing method.
7. a kind of data processing equipment, which is characterized in that described device includes:
Input module is configured as obtaining parameter transaction, and the parameter transaction includes at least one party's goods of currency centering to be transacted
Coin information, standard money information and transaction daily range;
Loading module, different maturity periods being configured as according to the corresponding multiple time limit computing units of parameter transaction assembly to obtain
Value date information, the time limit computing unit corresponds respectively to the different time limits on value date, wherein the different value date
Time limit has a scheduled value date computation rule, the value date information include corresponding currency to different maturity periods carry interest
Day;
Output module, is configured as exporting value date information to the page and shows;And
Value date computing module is configured as providing the corresponding phase to the loading module including different time limit computing units
Limit calculation method.
8. data processing equipment according to claim 7, which is characterized in that the parameter transaction further includes deadline information;
The loading module includes:
Searching unit is configured as searching corresponding time limit computing unit according to the deadline information;
Acquiring unit is configured as obtaining the time limit computing unit list assembled through corresponding value date calculation template;
Value date computing unit, the time limit computing unit for being configured as controlling in the time limit computing unit list call institute respectively
Parameter transaction is stated to obtain the corresponding value date information of the deadline information.
9. a kind of computer readable storage medium, stores computer program instructions thereon, which is characterized in that the computer program
As the method according to claim 1 to 6 is realized in instruction when being executed by processor.
10. a kind of electronic equipment, which is characterized in that including memory and processor, wherein
The memory is for storing one or more computer instruction, wherein one or more computer instruction is by institute
Processor is stated to execute to realize such as method of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811351121.5A CN109377370A (en) | 2018-11-14 | 2018-11-14 | A kind of data processing method and processing unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811351121.5A CN109377370A (en) | 2018-11-14 | 2018-11-14 | A kind of data processing method and processing unit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109377370A true CN109377370A (en) | 2019-02-22 |
Family
ID=65384823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811351121.5A Pending CN109377370A (en) | 2018-11-14 | 2018-11-14 | A kind of data processing method and processing unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109377370A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110634075A (en) * | 2019-09-27 | 2019-12-31 | 四川长虹电器股份有限公司 | Profit and loss calculation method for realizing different foreign exchange products based on custom formula |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101595506A (en) * | 2006-09-18 | 2009-12-02 | 路透美国有限责任公司 | The other side's risk during restriction is concluded the business in many ways |
CA2823183A1 (en) * | 2010-12-30 | 2012-07-05 | Ilya Vladimirovich KLIGMAN | System of exchange trading (embodiments) |
-
2018
- 2018-11-14 CN CN201811351121.5A patent/CN109377370A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101595506A (en) * | 2006-09-18 | 2009-12-02 | 路透美国有限责任公司 | The other side's risk during restriction is concluded the business in many ways |
CA2823183A1 (en) * | 2010-12-30 | 2012-07-05 | Ilya Vladimirovich KLIGMAN | System of exchange trading (embodiments) |
CN103329156A (en) * | 2010-12-30 | 2013-09-25 | 伊利亚·弗拉基米罗维奇·克利格曼 | System for playing on the stock market (embodiments) |
Non-Patent Citations (1)
Title |
---|
唐友主编: "程序设计语言", 《JAVA语言程序设计》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110634075A (en) * | 2019-09-27 | 2019-12-31 | 四川长虹电器股份有限公司 | Profit and loss calculation method for realizing different foreign exchange products based on custom formula |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Aguiar et al. | Take the short route: Equilibrium default and debt maturity | |
Xu et al. | Equity valuation, production, and financial planning: A stochastic programming approach | |
WO2020214880A1 (en) | Systems, methods, and storage media for configuring a data storage and retrieval system for managing data relating to tokenized assets | |
US7996290B2 (en) | Financial transaction modeling system | |
Allman | Impact Investment,+ Website: A Practical Guide to Investment Process and Social Impact Analysis | |
US20030191707A1 (en) | Methods and apparatus relating to the formulation and trading of risk management contracts | |
US20120035946A1 (en) | Payment systems and methods | |
CN101595506A (en) | The other side's risk during restriction is concluded the business in many ways | |
US20140095375A1 (en) | Trade Matching Platform with Variable Pricing Based on Clearing Relationships | |
AU2011252961A1 (en) | Out of band credit control | |
EP3906517A1 (en) | Methods and systems for margin lending and trading on a decentralized exchange | |
CN109460889A (en) | Risk management and control method, system, server and computer readable storage medium | |
EP0701717B1 (en) | Methods and apparatus relating to the formulation and trading of risk management contracts | |
CN112330181A (en) | Enterprise credit evaluation method and device based on block chain | |
US20140316964A1 (en) | Systems and Methods for Tracking Greenhouse Gas Emissions | |
Adrian et al. | A multi-currency exchange and contracting platform | |
Rich | The valuation and behavior of Black-Scholes options subject to intertemporal default risk | |
Jensen et al. | Managing risk in defi | |
CN110335146A (en) | A kind of method and apparatus that financing limit calculates | |
CN110264368A (en) | Method and device for generating emotion index of target cryptocurrency | |
CN109377370A (en) | A kind of data processing method and processing unit | |
CN108681962A (en) | A kind of method, apparatus and equipment of business processing | |
WO2013177395A2 (en) | Methods and systems for order matching | |
Wu | Purchasing from multiple capital-constrained suppliers using order financing | |
CN109214911A (en) | The treating method and apparatus of bill reconciliation exception |
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 |