Skip to content

Commit

Permalink
update fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthakumaran committed Jan 11, 2024
1 parent c77f34f commit a29a447
Show file tree
Hide file tree
Showing 15 changed files with 228 additions and 237 deletions.
128 changes: 64 additions & 64 deletions tests/fixture/inr-hledger/allocation.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"Assets:Equity:ABNB": {
"date": "2022-02-07T23:59:59.999999999Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-02-07T23:59:59.999999999Z",
Expand Down Expand Up @@ -116,8 +116,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-08T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 8025.316976,
"market_amount": 8025.316976
"amount": 8025.3170071296,
"market_amount": 8025.3170071296
},
"Assets:Equity:NIFTY": {
"date": "2022-01-08T00:00:00Z",
Expand All @@ -142,8 +142,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-09T00:00:00Z",
Expand All @@ -168,8 +168,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-10T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-10T00:00:00Z",
Expand All @@ -194,8 +194,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-11T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-11T00:00:00Z",
Expand All @@ -220,8 +220,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-12T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-12T00:00:00Z",
Expand All @@ -246,8 +246,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-13T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-13T00:00:00Z",
Expand All @@ -272,8 +272,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-14T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-14T00:00:00Z",
Expand All @@ -298,8 +298,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-15T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-15T00:00:00Z",
Expand All @@ -324,8 +324,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-16T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-16T00:00:00Z",
Expand All @@ -350,8 +350,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-17T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-17T00:00:00Z",
Expand All @@ -376,8 +376,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-18T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-18T00:00:00Z",
Expand All @@ -402,8 +402,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-19T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-19T00:00:00Z",
Expand All @@ -428,8 +428,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-20T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-20T00:00:00Z",
Expand All @@ -454,8 +454,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-21T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-21T00:00:00Z",
Expand All @@ -480,8 +480,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-22T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-22T00:00:00Z",
Expand All @@ -506,8 +506,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-23T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-23T00:00:00Z",
Expand All @@ -532,8 +532,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-24T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-24T00:00:00Z",
Expand All @@ -558,8 +558,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-25T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-25T00:00:00Z",
Expand All @@ -584,8 +584,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-26T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-26T00:00:00Z",
Expand All @@ -610,8 +610,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-27T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-27T00:00:00Z",
Expand All @@ -636,8 +636,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-28T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-28T00:00:00Z",
Expand All @@ -662,8 +662,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-29T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-29T00:00:00Z",
Expand All @@ -688,8 +688,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-30T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-30T00:00:00Z",
Expand All @@ -714,8 +714,8 @@
"Assets:Equity:ABNB": {
"date": "2022-01-31T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-01-31T00:00:00Z",
Expand All @@ -740,8 +740,8 @@
"Assets:Equity:ABNB": {
"date": "2022-02-01T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-02-01T00:00:00Z",
Expand All @@ -766,8 +766,8 @@
"Assets:Equity:ABNB": {
"date": "2022-02-02T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-02-02T00:00:00Z",
Expand All @@ -792,8 +792,8 @@
"Assets:Equity:ABNB": {
"date": "2022-02-03T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-02-03T00:00:00Z",
Expand All @@ -818,8 +818,8 @@
"Assets:Equity:ABNB": {
"date": "2022-02-04T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-02-04T00:00:00Z",
Expand All @@ -844,8 +844,8 @@
"Assets:Equity:ABNB": {
"date": "2022-02-05T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-02-05T00:00:00Z",
Expand All @@ -870,8 +870,8 @@
"Assets:Equity:ABNB": {
"date": "2022-02-06T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-02-06T00:00:00Z",
Expand All @@ -896,8 +896,8 @@
"Assets:Equity:ABNB": {
"date": "2022-02-07T00:00:00Z",
"account": "Assets:Equity:ABNB",
"amount": 16050.633952,
"market_amount": 16050.633952
"amount": 16050.6340142592,
"market_amount": 16050.6340142592
},
"Assets:Equity:NIFTY": {
"date": "2022-02-07T00:00:00Z",
Expand Down
16 changes: 8 additions & 8 deletions tests/fixture/inr-hledger/assets_balance.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"asset_breakdowns": {
"Assets": {
"group": "Assets",
"investmentAmount": 106050.633952,
"investmentAmount": 106050.6340142592,
"withdrawalAmount": 10027.3,
"marketAmount": 101245.6999377408,
"marketAmount": 101245.7,
"balanceUnits": 0,
"latestPrice": 0,
"xirr": 12.84,
"gainAmount": 5222.3659857408,
"absoluteReturn": 0.0492440807860188
"absoluteReturn": 0.0492440807571091
},
"Assets:Checking": {
"group": "Assets:Checking",
Expand All @@ -24,14 +24,14 @@
},
"Assets:Equity": {
"group": "Assets:Equity",
"investmentAmount": 106050.633952,
"investmentAmount": 106050.6340142592,
"withdrawalAmount": 10027.3,
"marketAmount": 96269.033952,
"marketAmount": 96269.0340142592,
"balanceUnits": 0,
"latestPrice": 0,
"xirr": 3.01,
"gainAmount": 245.7,
"absoluteReturn": 0.0023168178335568
"absoluteReturn": 0.0023168178321967
},
"Assets:Equity:AAPL": {
"group": "Assets:Equity:AAPL",
Expand All @@ -46,9 +46,9 @@
},
"Assets:Equity:ABNB": {
"group": "Assets:Equity:ABNB",
"investmentAmount": 16050.633952,
"investmentAmount": 16050.6340142592,
"withdrawalAmount": 0,
"marketAmount": 16050.633952,
"marketAmount": 16050.6340142592,
"balanceUnits": 1.52,
"latestPrice": 0,
"xirr": 0,
Expand Down
Loading

0 comments on commit a29a447

Please sign in to comment.