-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfinalexcel.cpp
2664 lines (2387 loc) · 120 KB
/
finalexcel.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Financial Analytics Library (FINAL) - Add-In for Microsoft Excel
// Copyright (c) 2004 - 2012 by Marek Sestak, [email protected]
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "../final/final.h"
#include "generic.h"
//#define kFunctionCount 5
#define kMaxFuncParms 27
#define kMaxResults 256
char *gModuleName = "\043Financial Analytics Library (FINAL)";
LPSTR functionParms[/*kFunctionCount*/][kMaxFuncParms] =
{
// function title, argument types, function name, arg names, type (1=func,2=cmd),
// group name (func wizard), hotkey, help ID, func help string, (repeat) argument help strings
{" FINAL_DEBUG_AllocStrings", " R", " FINAL_DEBUG_AllocStrings", " ", " 1",
" FINAL DEBUG functions", " ",
" ",
" Displays number of strings allocated by FINAL that hasn't yet been freed.",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " " },
{" FINAL_Test", " RR", " FINAL_Test", " ", " 1",
" FINAL DEBUG functions", " ",
" ",
" Displays number of strings allocated by FINAL that hasn't yet been freed.",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " " },
{" FINAL_Version", " R", " FINAL_Version", " ", " 1",
" FINAL functions", " ",
" ",
" Displays FINAL's build version, date and time.",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " " },
{" FIL_Version", " R", " FIL_Version", " ", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_Version.)\nDisplays FINAL's build version, date and time.",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " " },
{" FINAL_About", " R", " FINAL_About", " ", " 1",
" FINAL functions", " ",
" ",
" Displays FINAL's copyright & license information.",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " " },
{" FINAL_All", " RJJBBBJJCJJJBJ", " FINAL_All", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon, NominalAmount, Labels", " 1",
" FINAL functions", " ",
" ",
" Calculates a series of security's parameters:\n"
"- Market Value\n"
"- Conventional Yield\n"
"- Money Market Yield\n"
"- Duration\n"
"- Modified Duration\n"
"- Risk measure\n"
"- Convexity\n"
"- Previous Coupon\n"
"- Next Coupon\n"
"- Next Coupon Amount\n"
"- Accrued Interest\n"
"- Duration Amount\n"
"- Value of 1bp (BPV)\n"
"- Security Type\n"
"- Number of remaining cashflows\n"
"- Cashflow number 1 date\n"
"- Cashflow number 1 amount\n"
"- Additional cashflows up to the maturity of the security",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is price at which all calculations are performed",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" is amount, at which calculations are performed (optional, default 1,000,000.00)",
" are included in the first column (optional, default false)",
" ", " ", " ", " ", " "
},
{" FIL_All", " RJJBBBJJCJJJBJ", " FIL_All", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon, NominalAmount, Labels", " 1",
" FINAL functions", " ",
" ",
" Calculates a series of security's parameters:\n"
"- Conventional Yield",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is price at which all calculations are performed",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" is amount, at which calculations are performed (optional, default 1,000,000.00)",
" are included in the first column (optional, default false)",
" ", " ", " ", " ", " "
},
{" FINAL_Yield", " RJJBBBJJCJJJ", " FINAL_Yield", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Returns yield for a fixed income security (bill, bond, cd, cp, strip...)",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is price at which all calculations are performed",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FIL_Yield", " RJJBBBJJCJJJ", " FIL_Yield", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_Yield.)\nReturns yield for a fixed income security (bill, bond, cd, cp, strip...)",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is price at which all calculations are performed",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FINAL_MMktYield", " RJJBBBJJCJJJ", " FINAL_MMktYield", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Returns money market yield for a fixed income security (bill, bond, cd, cp, strip...)\n"
"If there's more than one cashflow until the maturity (i.e. the final one) "
"#VALUE is returned",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is price at which all calculations are performed",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FIL_MMktYield", " RJJBBBJJCJJJ", " FIL_MMktYield", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_Yield.)\nReturns money market yield for a fixed income security (bill, bond, cd, cp, strip...)\n"
"If there's more than one cashflow until the maturity (i.e. the final one) "
"#VALUE is returned",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is price at which all calculations are performed",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FINAL_Discount", " RJJBBBJJCJJJ", " FINAL_Discount", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Returns discount for a fixed income security (bill, bond, cd, cp, strip...)\n"
"If there's more than one cashflow until the maturity (i.e. the final one) "
"#VALUE is returned.",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's price",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FIL_Discount", " RJJBBBJJCJJJ", " FIL_Discount", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_Yield.)\nReturns discount for a fixed income security (bill, bond, cd, cp, strip...)\n"
"If there's more than one cashflow until the maturity (i.e. the final one) "
"#VALUE is returned.",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's price",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FINAL_Price", " RJJBBBJJCJJJ", " FINAL_Price", " Settlement, Maturity, Coupon, Yield, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Converts fixed income security's conventional yield into price",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's yield that will be converted to price",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FIL_Price", " RJJBBBJJCJJJ", " FIL_Price", " Settlement, Maturity, Coupon, Yield, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_Price.)\nConverts fixed income security's conventional yield into price",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's yield that will be converted to price",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FINAL_MMktYieldToPrice", " RJJBBBJJCJJJ", " FINAL_MMktYieldToPrice", " Settlement, Maturity, Coupon, Yield, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Converts fixed income security's conventional yield into price.\n"
"If there's more than one cashflow until the maturity (i.e. the final one) "
"#VALUE is returned",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is money market yield that will be converted to price",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FIL_MMktYieldToPrice", " RJJBBBJJCJJJ", " FIL_MMktYieldToPrice", " Settlement, Maturity, Coupon, Yield, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_Price.)\nConverts fixed income security's conventional yield into price\n"
"If there's more than one cashflow until the maturity (i.e. the final one) "
"#VALUE is returned",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is money market yield that will be converted to price",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FINAL_DiscountToPrice", " RJJBBBJJCJJJ", " FINAL_DiscountToPrice", " Settlement, Maturity, Coupon, Discount, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Converts fixed income security's discount into price.\n"
"If there's more than one cashflow until the maturity (i.e. the final one) "
"#VALUE is returned",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's discount that will be converted to price",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FIL_DiscountToPrice", " RJJBBBJJCJJJ", " FIL_DiscountToPrice", " Settlement, Maturity, Coupon, Discount, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_Price.)\nConverts fixed income security's discount into price.\n"
"If there's more than one cashflow until the maturity (i.e. the final one) "
"#VALUE is returned",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's discount that will be converted to price",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FINAL_Duration", " RJJBBBJJCJJJ", " FINAL_Duration", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Returns fixed income security's duration (bill, bond, cd, cp, strip...)",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is price at which all calculations are performed",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FIL_Duration", " RJJBBBJJCJJJ", " FIL_Duration", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_Duration.)\nReturns fixed income security's duration (bill, bond, cd, cp, strip...)",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is price at which all calculations are performed",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FINAL_DurationY", " RJJBBBJJCJJJ", " FINAL_DurationY", " Settlement, Maturity, Coupon, Yield, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Returns fixed income security's duration (bill, bond, cd, cp, strip...)",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's yield to maturity",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FIL_DurationY", " RJJBBBJJCJJJ", " FIL_DurationY", " Settlement, Maturity, Coupon, Yield, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_Duration.)\nReturns fixed income security's duration (bill, bond, cd, cp, strip...)",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's yield to maturity",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FINAL_MDuration", " RJJBBBJJCJJJ", " FINAL_MDuration", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Returns fixed income security's modified duration (bill, bond, cd, cp, strip...)",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is price at which all calculations are performed",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FIL_MDuration", " RJJBBBJJCJJJ", " FIL_MDuration", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_MDuration.)\nReturns fixed income security's modified duration (bill, bond, cd, cp, strip...)",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is price at which all calculations are performed",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FINAL_MDurationY", " RJJBBBJJCJJJ", " FINAL_MDurationY", " Settlement, Maturity, Coupon, Yield, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Returns fixed income security's modified duration (bill, bond, cd, cp, strip...)",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's yield to maturity",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FIL_MDurationY", " RJJBBBJJCJJJ", " FIL_MDurationY", " Settlement, Maturity, Coupon, Yield, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_Duration.)\nReturns fixed income security's modified duration (bill, bond, cd, cp, strip...)",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's yield to maturity",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FINAL_Risk", " RJJBBBJJCJJJ", " FINAL_Risk", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Returns fixed income security's risk measure",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is price at which all calculations are performed",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FIL_Risk", " RJJBBBJJCJJJ", " FIL_Risk", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_Risk.)\nReturns fixed income security's risk measure",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is price at which all calculations are performed",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FINAL_RiskY", " RJJBBBJJCJJJ", " FINAL_RiskY", " Settlement, Maturity, Coupon, Yield, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Returns fixed income security's risk measure",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's yield to maturity",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FIL_RiskY", " RJJBBBJJCJJJ", " FIL_RiskY", " Settlement, Maturity, Coupon, Yield, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_Duration.)\nReturns fixed income security's risk measure",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's yield to maturity",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FINAL_Convexity", " RJJBBBJJCJJJ", " FINAL_Convexity", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Returns fixed income security's convexity",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is price at which all calculations are performed",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FIL_Convexity", " RJJBBBJJCJJJ", " FIL_Convexity", " Settlement, Maturity, Coupon, Price, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_Convexity.)\nReturns fixed income security's convexity",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is price at which all calculations are performed",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FINAL_ConvexityY", " RJJBBBJJCJJJ", " FINAL_ConvexityY", " Settlement, Maturity, Coupon, Yield, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Returns fixed income security's convexity",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's yield to maturity",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FIL_ConvexityY", " RJJBBBJJCJJJ", " FIL_ConvexityY", " Settlement, Maturity, Coupon, Yield, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_Duration.)\nReturns fixed income security's convexity",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's yield to maturity",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " "
},
{" FINAL_AccruedInterest", " RJJBJJCJJJ", " FINAL_AccruedInterest", " Settlement, Maturity, Coupon, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Returns fixed income security's accrued interest",
" is settlement date at which accrued interest is calculated",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " ", " "
},
{" FIL_AccruedInterest", " RJJBJJCJJJ", " FIL_AccruedInterest", " Settlement, Maturity, Coupon, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_AccruedInterest.)\n"
"Returns fixed income security's accrued interest",
" is settlement date at which accrued interest is calculated",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " ", " "
},
{" FINAL_CouponPeriod", " RJJBJJCJJJ", " FINAL_CouponPeriod", " Settlement, Maturity, Coupon, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FINAL functions", " ",
" ",
" Returns information about security's coupon:\n"
"- date of previous coupon (or a date from which the coupon accrues)\n"
"- date of next coupon\n"
"- coupon amount that will be payed out on the next coupon date",
" is settlement date",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " ", " "
},
{" FIL_CouponPeriod", " RJJBJJCJJJ", " FIL_CouponPeriod", " Settlement, Maturity, Coupon, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_AccruedInterest.)\n"
"Returns information about income security's coupon:\n"
"- date of previous coupon (or a date from which the coupon accrues)\n"
"- date of next coupon\n"
"- coupon amount that will be payed out on the next coupon date",
" is settlement date",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" ", " ", " ", " ", " ", " ", " ", " "
},
{" FINAL_YearFrac", " RJJJ", " FINAL_YearFrac", " Start_Date, End_Date, Basis", " 1",
" FINAL functions", " ",
" ",
" Calculates fraction of year between Start_Date and End_Date according to a daycount basis defined in Basis ",
" is the beginning of the period",
" is the end of the period",
" is the type of day count convention that is used to calculate the fraction of year",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FIL_YearFrac", " RJJJ", " FIL_YearFrac", " Start_Date, End_Date, Basis", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_YearFrac.)\nCalculates fraction of year between Start_Date and End_Date according to a daycount basis defined in Basis ",
" is the beginning of the period",
" is the end of the period",
" is the type of day count convention that is used to calculate the fraction of year",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FINAL_IsLeap", " RJ", " FINAL_IsLeap", " Year", " 1",
" FINAL functions", " ",
" ",
" Return true for leap years",
" for which it is to determine whether the year is leap or not",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FIL_IsLeap", " RJ", " FIL_IsLeap", " Year", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_IsLeap.)\nReturn true for leap years",
" for which it is to determine whether the year is leap or not",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FINAL_EOMonth", " RJJ", " FINAL_EOMonth", " Start, Months", " 1",
" FINAL functions", " ",
" ",
" Returns end of month given number of months after or before start date.\n"
"If Months is set to zero, end of the current month is returned.",
" is the start date",
" is the number of months after (>0) or before (<0) the start date",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FIL_EOMonth", " RJJ", " FIL_EOMonth", " Start, Months", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_EOMonth.)\nReturns end of month given number of months after or before start date.\n"
"If Months is set to zero, end of the current month is returned.",
" is the start date",
" is the number of months after (>0) or before (<0) the start date",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FINAL_EDate", " RJJ", " FINAL_EDate", " Start, Months", " 1",
" FINAL functions", " ",
" ",
" Returns date given number of months after or before start date.\n"
"If Months is set to zero, start date is returned.",
" is the start date",
" is the number of months after (>0) or before (<0) the start date",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FIL_EDate", " RJJ", " FIL_EDate", " Start, Months", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_EDate.) Returns date given number of months after or before start date.\n"
"If Months is set to zero, start date is returned.",
" is the start date",
" is the number of months after (>0) or before (<0) the start date",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FINAL_CouponNum", " RJJJJ", " FINAL_CouponNum", " Settlement, Maturity, Frequency, Basis", " 1",
" FINAL functions", " ",
" ",
" Returns number of coupons that will be paid out between date settlement and maturity date. "
"(Coupons paid out on settlement date are excluded, coupons on maturity date included)",
" is the date, from which coupons are counted",
" is the security's maturity date",
" is the security's coupon frequency",
" defines the security's coupon day count convention",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FIL_CouponNum", " RJJJJ", " FIL_CouponNum", " Settlement, Maturity, Frequency, Basis", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_CouponNum.)\nReturns number of coupons that will be paid out between date settlement and maturity date. "
"(Coupons paid out on settlement date are excluded, coupons on maturity date included)",
" is the date, from which coupons are counted",
" is the security's maturity date",
" is the security's coupon frequency",
" defines the security's coupon day count convention",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FINAL_PrevCouponDate", " RJJJJ", " FINAL_PrevCouponDate", " Settlement, Maturity, Frequency, Basis", " 1",
" FINAL functions", " ",
" ",
" Returns coupon date preceding the settlement date."
"(If the settlement date falls on a coupon date, this settlement date is returned.)",
" is the settlement date",
" is the security's maturity date",
" is the security's coupon frequency",
" defines the security's coupon day count convention",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FIL_PrevCouponDate", " RJJJJ", " FIL_PrevCouponDate", " Settlement, Maturity, Frequency, Basis", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_PrevCouponDate.)\n"
"Returns coupon date preceding the settlement date."
"(If the settlement date falls on a coupon date, this settlement date is returned.)",
" is the settlement date",
" is the security's maturity date",
" is the security's coupon frequency",
" defines the security's coupon day count convention",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FINAL_NextCouponDate", " RJJJJ", " FINAL_NextCouponDate", " Settlement, Maturity, Frequency, Basis", " 1",
" FINAL functions", " ",
" ",
" Returns coupon date following the settlement date.\n"
"(If the settlement date falls on a coupon date, next coupon date is returned)",
" is the settlement date",
" is the security's maturity date",
" is the security's coupon frequency",
" defines the security's coupon day count convention",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FIL_NextCouponDate", " RJJJJ", " FIL_NextCouponDate", " Settlement, Maturity, Frequency, Basis", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_NextCouponDate.)\n"
"Returns coupon date following the settlement date.\n"
"(If the settlement date falls on a coupon date, next coupon date is returned)",
" is the settlement date",
" is the security's maturity date",
" is the security's coupon frequency",
" defines the security's coupon day count convention",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FINAL_CouponDays", " RJJJJ", " FINAL_CouponDays", " Settlement, Maturity, Frequency, Basis", " 1",
" FINAL functions", " ",
" ",
" Returns number of days in the coupon period containing the settlement date.\n"
"(If the settlement date falls on a coupon date, coupon period from the settlement to the next coupon date is considered)",
" is the settlement date",
" is the security's maturity date",
" is the security's coupon frequency",
" defines the security's coupon day count convention",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FIL_CouponDays", " RJJJJ", " FIL_CouponDays", " Settlement, Maturity, Frequency, Basis", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_CouponDays.)\n"
"Returns number of days in the coupon period containing the settlement date.\n"
"(If the settlement date falls on a coupon date, coupon period from the settlement to the next coupon date is considered)",
" is the settlement date",
" is the security's maturity date",
" is the security's coupon frequency",
" defines the security's coupon day count convention",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FINAL_CouponDaysBS", " RJJJJ", " FINAL_CouponDaysBS", " Settlement, Maturity, Frequency, Basis", " 1",
" FINAL functions", " ",
" ",
" Returns number of days from the begining of the current coupon period to the settlement date.\n"
"(If the settlement date falls on a coupon date, zero is returned)",
" is the settlement date",
" is the security's maturity date",
" is the security's coupon frequency",
" defines the security's coupon day count convention",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FIL_CouponDaysBS", " RJJJJ", " FIL_CouponDaysBS", " Settlement, Maturity, Frequency, Basis", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_CouponDaysBS.)\n"
"Returns number of days from the begining of the current coupon period to the settlement date.\n"
"(If the settlement date falls on a coupon date, zero is returned)",
" is the settlement date",
" is the security's maturity date",
" is the security's coupon frequency",
" defines the security's coupon day count convention",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FINAL_CouponDaysNC", " RJJJJ", " FINAL_CouponDaysNC", " Settlement, Maturity, Frequency, Basis", " 1",
" FINAL functions", " ",
" ",
" Returns number of days from the settlement date to the next coupon date.\n"
"(If the settlement date falls on a coupon date, number of days in the whole coupon period is returned)",
" is the settlement date",
" is the security's maturity date",
" is the security's coupon frequency",
" defines the security's coupon day count convention",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FIL_CouponDaysNC", " RJJJJ", " FIL_CouponDaysNC", " Settlement, Maturity, Frequency, Basis", " 1",
" FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_CouponDaysNC.)\n"
"Returns number of days from the settlement date to the next coupon date.\n"
"(If the settlement date falls on a coupon date, number of days in the whole coupon period is returned)",
" is the settlement date",
" is the security's maturity date",
" is the security's coupon frequency",
" defines the security's coupon day count convention",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "
},
{" FINAL_ASWSpread", " RJJBBBJJCJJJJRRRJJJ", " FINAL_ASWSpread",
" Settlement, Maturity, Coupon, Yield, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon, "
"BaseDate, Deposits, Futures, Swap, SwapFrequency, FixedBasis, FloatBasis",
" 1", " FINAL functions", " ",
" ",
" Calculates security's asset swap spread (ASW spread)",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's yield to maturity",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" defines settlement date for deposit rates and interest rate swaps",
" defines deposit rates\n(array of two columns and at least one row,\n"
"first column contains description of the term (1W,1M,3M,1Y etc.)\n"
"corresponding deposit rate is in the second column)",
" defines 3M futures rates\n(array of two columns, first column contains delivery date of the contract\n"
"second column contains corresponding yield of the 3M Libor/Euribor contract\noptional",
" defines swap rates\n(array of two columns, first column contains description of the term (1Y, 2Y, 3Y etc.)\n"
"corresponding swap rate is in the second column;\n"
"optional)",
" is swap's fixed coupon payment frequency (optional, default 1)",
" is swap's fixed coupon day count convention (optional, default US-30/360)",
" is swap's floating coupon day count convention (optional, default US-30/360)"
},
{" FIL_ASW", " RJJBBBJJCJJJJRRRJJJ", " FIL_ASWSpread",
" Settlement, Maturity, Coupon, Yield, Redemption, Frequency, Basis, Model, Issued, IntAccrDate, FirstCoupon, "
"BaseDate, Deposits, Futures, Swap, SwapFrequency, FixedBasis, FloatBasis",
" 1", " FIL functions (obsolete)", " ",
" ",
" (Obsolete version. Use FINAL_ASWSpread.)\n"
"Calculates security's asset swap spread (ASW spread)",
" is settlement date at which all calculations are performed",
" is security's maturity date",
" is security's annual coupon rate (e.g. for 4% pass 0.04)",
" is security's yield to maturity",
" is security's redemption value (optional, default 100)",
" is security's coupon frequency (optional, default 1)",
" is security's accrued interest day count basis (optional, default 0=US 30/360)",
" defines security's calculation model (optional, default is generic security)",
" defines when the security was issued (optional, default is theoretical coupon date preceeding settlement date)",
" defines when the security's first coupon starts to accrue (optional, default is start of the coupon period containing issue date)",
" defines when the security pays out first coupon (optional, default is end of the coupon period containing issue date)",
" defines settlement date for deposit rates and interest rate swaps",
" defines deposit rates\n(array of two columns and at least one row,\n"
"first column contains description of the term (1W,1M,3M,1Y etc.)\n"
"corresponding deposit rate is in the second column)",
" defines 3M futures rates\n(array of two columns, first column contains delivery date of the contract\n"
"second column contains corresponding yield of the 3M Libor/Euribor contract\noptional",
" defines swap rates\n(array of two columns, first column contains description of the term (1Y, 2Y, 3Y etc.)\n"
"corresponding swap rate is in the second column;\n"
"optional)",
" is swap's fixed coupon payment frequency (optional, default 1)",
" is swap's fixed coupon day count convention (optional, default US-30/360)",
" is swap's floating coupon day count convention (optional, default US-30/360)"
},