Skip to content

Commit 25aabff

Browse files
committed
update sample
1 parent ba20774 commit 25aabff

File tree

2 files changed

+85
-79
lines changed

2 files changed

+85
-79
lines changed

docs/source/deal_sample/test07.py

Lines changed: 67 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,77 @@
11
from absbox import Generic
22

3+
projectedFlow = [
4+
["2022-10-28",296926650.8,39621199.84],
5+
["2022-11-28",298390935.6,38239799.05],
6+
["2022-12-28",335984118.4,36851240.88],
7+
["2023-01-28",314109521.1,35270038.62],
8+
["2023-02-28",270390234,33782877.37],
9+
["2023-03-28",270350575.7,32518759.42],
10+
["2023-04-28",265338646.5,31253463.48],
11+
["2023-05-28",259803763.2,30007334.46],
12+
["2023-06-28",259946092.9,28787675.09],
13+
["2023-07-28",252857713.1,27564949.08],
14+
["2023-08-28",246910947.3,26372771.15],
15+
["2023-09-28",243696488.3,25204562.17],
16+
["2023-10-28",236448505.8,24048073.72],
17+
["2023-11-28",233663343.6,22921167.01],
18+
["2023-12-28",229235118.7,21803634.86],
19+
["2024-01-28",226586431.3,20702493.3],
20+
["2024-02-28",220466563.4,19610562.99],
21+
["2024-03-28",215780992.7,18542390.48],
22+
["2024-04-28",209777601.8,17492785.73],
23+
["2024-05-28",205412585.4,16466179.14],
24+
["2024-06-28",204576491.7,15458135.54],
25+
["2024-07-28",191983415.7,14454511.7],
26+
["2024-08-28",183351318.5,13500336.9],
27+
["2024-09-28",173452976.8,12579982.71],
28+
["2024-10-28",166901231.6,11699767.21],
29+
["2024-11-28",160900371.7,10848388.31],
30+
["2024-12-28",154189022.8,10025127.3],
31+
["2025-01-28",149267198.8,9233666.38],
32+
["2025-02-28",131943966.8,8465915.05],
33+
["2025-03-28",125367110.5,7781807.72],
34+
["2025-04-28",117238613.1,7127147.05],
35+
["2025-05-28",112368574.8,6509482.45],
36+
["2025-06-28",99988254.23,5914372.72],
37+
["2025-07-28",85382502.47,5381543.83],
38+
["2025-08-28",72300807.56,4921856.54],
39+
["2025-09-28",57600993.4,4521948.54],
40+
["2025-10-28",55814880.46,4193570.1],
41+
["2025-11-28",54435010.17,3874600.17],
42+
["2025-12-28",52853924.88,3562862.69],
43+
["2026-01-28",51704308.72,3259695.55],
44+
["2026-02-28",48388842.39,2962622.7],
45+
["2026-03-28",47173848.94,2683796.57],
46+
["2026-04-28",45468224.78,2411532.19],
47+
["2026-05-28",44034796.02,2148403.47],
48+
["2026-06-28",41972769.71,1893121.68],
49+
["2026-07-28",39085756.02,1648962.9],
50+
["2026-08-28",36387659.26,1420731.37],
51+
["2026-09-28",33571454.92,1206970.51],
52+
["2026-10-28",30596786.79,1008386.32],
53+
["2026-11-28",27855409.75,826711.04],
54+
["2026-12-28",24816957.49,661149.47],
55+
["2027-01-28",22278212,513593.06],
56+
["2027-02-28",16284804.59,381046.4],
57+
["2027-03-28",14216890.57,284519.48],
58+
["2027-04-28",11234067.39,200345.49],
59+
["2027-05-28",9581364.03,133877.2],
60+
["2027-06-28",7070447.52,77370.71],
61+
["2027-07-28",4364608.56,35979.93],
62+
["2027-08-28",1919297.32,10964.13]
63+
]
64+
65+
366
BMW202301 = Generic(
467
"BMW Auto"
568
,{"cutoff":"2022-09-30","closing":"2023-04-07","firstPay":"2023-05-26"
669
,"stated":"2060-12-01","poolFreq":"MonthEnd","payFreq":["DayOfMonth",26]}
7-
,{"assets":[]
8-
,'issuanceStat':{'IssuanceBalance':8000000001.8}
9-
,'cashflow':
10-
[["2022-10-28",7703073351,296926650.8,39621199.84]
11-
,["2022-11-28",7404682416,298390935.6,38239799.05]
12-
,["2022-12-28",7068698297,335984118.4,36851240.88]
13-
,["2023-01-28",6754588776,314109521.1,35270038.62]
14-
,["2023-02-28",6484198542,270390234,33782877.37]
15-
,["2023-03-28",6213847967,270350575.7,32518759.42]
16-
,["2023-04-28",5948509320,265338646.5,31253463.48]
17-
,["2023-05-28",5688705557,259803763.2,30007334.46]
18-
,["2023-06-28",5428759464,259946092.9,28787675.09]
19-
,["2023-07-28",5175901751,252857713.1,27564949.08]
20-
,["2023-08-28",4928990804,246910947.3,26372771.15]
21-
,["2023-09-28",4685294315,243696488.3,25204562.17]
22-
,["2023-10-28",4448845810,236448505.8,24048073.72]
23-
,["2023-11-28",4215182466,233663343.6,22921167.01]
24-
,["2023-12-28",3985947347,229235118.7,21803634.86]
25-
,["2024-01-28",3759360916,226586431.3,20702493.3]
26-
,["2024-02-28",3538894353,220466563.4,19610562.99]
27-
,["2024-03-28",3323113360,215780992.7,18542390.48]
28-
,["2024-04-28",3113335758,209777601.8,17492785.73]
29-
,["2024-05-28",2907923173,205412585.4,16466179.14]
30-
,["2024-06-28",2703346681,204576491.7,15458135.54]
31-
,["2024-07-28",2511363265,191983415.7,14454511.7]
32-
,["2024-08-28",2328011947,183351318.5,13500336.9]
33-
,["2024-09-28",2154558970,173452976.8,12579982.71]
34-
,["2024-10-28",1987657739,166901231.6,11699767.21]
35-
,["2024-11-28",1826757367,160900371.7,10848388.31]
36-
,["2024-12-28",1672568344,154189022.8,10025127.3]
37-
,["2025-01-28",1523301145,149267198.8,9233666.38]
38-
,["2025-02-28",1391357178,131943966.8,8465915.05]
39-
,["2025-03-28",1265990068,125367110.5,7781807.72]
40-
,["2025-04-28",1148751455,117238613.1,7127147.05]
41-
,["2025-05-28",1036382880,112368574.8,6509482.45]
42-
,["2025-06-28",936394625.7,99988254.23,5914372.72]
43-
,["2025-07-28",851012123.3,85382502.47,5381543.83]
44-
,["2025-08-28",778711315.7,72300807.56,4921856.54]
45-
,["2025-09-28",721110322.3,57600993.4,4521948.54]
46-
,["2025-10-28",665295441.8,55814880.46,4193570.1]
47-
,["2025-11-28",610860431.7,54435010.17,3874600.17]
48-
,["2025-12-28",558006506.8,52853924.88,3562862.69]
49-
,["2026-01-28",506302198.1,51704308.72,3259695.55]
50-
,["2026-02-28",457913355.7,48388842.39,2962622.7]
51-
,["2026-03-28",410739506.7,47173848.94,2683796.57]
52-
,["2026-04-28",365271282,45468224.78,2411532.19]
53-
,["2026-05-28",321236485.9,44034796.02,2148403.47]
54-
,["2026-06-28",279263716.2,41972769.71,1893121.68]
55-
,["2026-07-28",240177960.2,39085756.02,1648962.9]
56-
,["2026-08-28",203790300.9,36387659.26,1420731.37]
57-
,["2026-09-28",170218846,33571454.92,1206970.51]
58-
,["2026-10-28",139622059.2,30596786.79,1008386.32]
59-
,["2026-11-28",111766649.5,27855409.75,826711.04]
60-
,["2026-12-28",86949691.98,24816957.49,661149.47]
61-
,["2027-01-28",64671479.97,22278212,513593.06]
62-
,["2027-02-28",48386675.38,16284804.59,381046.4]
63-
,["2027-03-28",34169784.81,14216890.57,284519.48]
64-
,["2027-04-28",22935717.42,11234067.39,200345.49]
65-
,["2027-05-28",13354353.39,9581364.03,133877.2]
66-
,["2027-06-28",6283905.88,7070447.52,77370.71]
67-
,["2027-07-28",1919297.32,4364608.56,35979.93]
68-
,["2027-08-28",0,1919297.32,10964.13]
70+
,{"assets":[
71+
["ProjectedCashflow", 8000000000.00, "2022-09-30", projectedFlow, "MonthEnd"]
6972
]
73+
,'issuanceStat':{'IssuanceBalance':8000000001.8}
74+
}
7075
,"extendBy":"MonthEnd"}
7176
,(("distAcc",{"balance":0})
7277
,("cashReserve",{"balance":80_000_000.02

docs/source/deal_sample/test13.py

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
flow = [
2+
["2022-10-28",200.0,100]
3+
,["2022-11-28",200.0,100]
4+
,["2022-12-28",200.0,100]
5+
,["2023-01-28",200.0,100]
6+
,["2023-02-28",200.0,100]
7+
,["2023-03-28",200.0,100]
8+
,["2023-04-28",200.0,100]
9+
,["2023-05-28",200.0,100]
10+
,["2023-06-28",200.0,100]
11+
,["2023-07-28",200.0,100]
12+
,["2023-08-28",200.0,100]
13+
]
14+
115
deal_data = {
216
"name":"Default Amount to Schedule Flow"
317
,"dates":{"cutoff":"2021-06-01"
@@ -6,22 +20,9 @@
620
,"payFreq":["DayOfMonth",20]
721
,"poolFreq":"MonthEnd"
822
,"stated":"2030-01-01"}
9-
,"pool":{'assets':[]
10-
,'cashflow':
11-
[["2022-10-28",2000,200.0,100]
12-
,["2022-11-28",1800,200.0,100]
13-
,["2022-12-28",1600,200.0,100]
14-
,["2023-01-28",1400,200.0,100]
15-
,["2023-02-28",1200,200.0,100]
16-
,["2023-03-28",1000,200.0,100]
17-
,["2023-04-28",800,200.0,100]
18-
,["2023-05-28",600,200.0,100]
19-
,["2023-06-28",400,200.0,100]
20-
,["2023-07-28",200,200.0,100]
21-
,["2023-08-28",0,200.0,100]
22-
]
23-
,'extendBy':["DayOfMonth",28]
24-
}
23+
,"pool":{'assets':[
24+
["ProjectedCashflow", 2200, "2021-06-01", flow, "MonthEnd"]
25+
]}
2526
,"accounts":{"acc01":{"balance":0}}
2627
,"bonds":{"A1":{"balance":1000
2728
,"rate":0.07
@@ -73,4 +74,4 @@
7374
,read=True)
7475

7576
r['pool']['flow']
76-
77+

0 commit comments

Comments
 (0)