[beancount] handle pad instruction

pad transactions come with 0 as the begin line, make sure we don't go
negative

fixes #146 #173
This commit is contained in:
Anantha Kumaran 2024-02-11 09:04:11 +05:30
parent e33868be36
commit c7b377d482
19 changed files with 979 additions and 809 deletions

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/ananthakumaran/paisa
go 1.20
go 1.21
require (
dario.cat/mergo v1.0.0

View File

@ -391,7 +391,7 @@ func (Beancount) Parse(journalPath string, prices []price.Price) ([]*posting.Pos
postings = lo.Map(postings, func(p *posting.Posting, _ int) *posting.Posting {
r := transactionRanges[p.TransactionID]
p.TransactionBeginLine = r.Begin - 1
p.TransactionBeginLine = max(r.Begin, 1) - 1
p.TransactionEndLine = r.End + 1
return p
})

View File

@ -2,7 +2,7 @@
pkgs.mkShell {
nativeBuildInputs = [
pkgs.go_1_20
pkgs.go_1_21
pkgs.gotools
pkgs.gopls
pkgs.sqlite

View File

@ -8,7 +8,7 @@
"Assets:Checking": {
"date": "2022-02-07T23:59:59.999999999Z",
"account": "Assets:Checking",
"market_amount": 12097.22810619763
"market_amount": 13169.22810619763
},
"Assets:Coinbase": {
"date": "0001-01-01T00:00:00Z",
@ -794,7 +794,7 @@
"Assets:Checking": {
"date": "2022-01-30T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 11097.22810619763
"market_amount": 12169.22810619763
},
"Assets:Coinbase:BTC": {
"date": "2022-01-30T00:00:00Z",
@ -826,7 +826,7 @@
"Assets:Checking": {
"date": "2022-01-31T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 12097.22810619763
"market_amount": 13169.22810619763
},
"Assets:Coinbase:BTC": {
"date": "2022-01-31T00:00:00Z",
@ -858,7 +858,7 @@
"Assets:Checking": {
"date": "2022-02-01T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 12097.22810619763
"market_amount": 13169.22810619763
},
"Assets:Coinbase:BTC": {
"date": "2022-02-01T00:00:00Z",
@ -890,7 +890,7 @@
"Assets:Checking": {
"date": "2022-02-02T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 12097.22810619763
"market_amount": 13169.22810619763
},
"Assets:Coinbase:BTC": {
"date": "2022-02-02T00:00:00Z",
@ -922,7 +922,7 @@
"Assets:Checking": {
"date": "2022-02-03T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 12097.22810619763
"market_amount": 13169.22810619763
},
"Assets:Coinbase:BTC": {
"date": "2022-02-03T00:00:00Z",
@ -954,7 +954,7 @@
"Assets:Checking": {
"date": "2022-02-04T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 12097.22810619763
"market_amount": 13169.22810619763
},
"Assets:Coinbase:BTC": {
"date": "2022-02-04T00:00:00Z",
@ -986,7 +986,7 @@
"Assets:Checking": {
"date": "2022-02-05T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 12097.22810619763
"market_amount": 13169.22810619763
},
"Assets:Coinbase:BTC": {
"date": "2022-02-05T00:00:00Z",
@ -1018,7 +1018,7 @@
"Assets:Checking": {
"date": "2022-02-06T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 12097.22810619763
"market_amount": 13169.22810619763
},
"Assets:Coinbase:BTC": {
"date": "2022-02-06T00:00:00Z",
@ -1050,7 +1050,7 @@
"Assets:Checking": {
"date": "2022-02-07T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 12097.22810619763
"market_amount": 13169.22810619763
},
"Assets:Coinbase:BTC": {
"date": "2022-02-07T00:00:00Z",

View File

@ -4,22 +4,22 @@
"group": "Assets",
"investmentAmount": 98768.183232,
"withdrawalAmount": 10027,
"marketAmount": 101083.81133819763,
"marketAmount": 102155.81133819763,
"balanceUnits": 0,
"latestPrice": 0,
"xirr": 12.18,
"gainAmount": 12342.62810619763,
"absoluteReturn": 0.1249656286296732
"xirr": 12.15,
"gainAmount": 13414.62810619763,
"absoluteReturn": 0.1358193262974935
},
"Assets:Checking": {
"group": "Assets:Checking",
"investmentAmount": 0,
"withdrawalAmount": 0,
"marketAmount": 12097.22810619763,
"marketAmount": 13169.22810619763,
"balanceUnits": 0,
"latestPrice": 0,
"xirr": 44.97,
"gainAmount": 12097.22810619763,
"xirr": 44.43,
"gainAmount": 13169.22810619763,
"absoluteReturn": 0
},
"Assets:Coinbase": {

View File

@ -1,5 +1,5 @@
{
"availableForBudgeting": 12158.816768,
"availableForBudgeting": 13230.816768,
"budgetsByMonth": {},
"checkingBalance": 12158.816768
"checkingBalance": 13230.816768
}

View File

@ -7,8 +7,8 @@
"liabilities": 0,
"investment": 88768.183232,
"tax": 0,
"checking": 12158.816768,
"balance": 12158.816768
"checking": 13230.816768,
"balance": 13230.816768
},
{
"date": "2022-02-01T00:00:00Z",
@ -18,7 +18,7 @@
"investment": 0,
"tax": 0,
"checking": 0,
"balance": 12158.816768
"balance": 13230.816768
}
]
}

View File

@ -10,6 +10,7 @@
"Expenses:Charges",
"Assets:Dollar",
"Assets:Coinbase:BTC",
"Equity:OpeningBalances",
"Income:Interest:Checking"
],
"config": {

View File

@ -1,8 +1,8 @@
{
"budget": {
"availableForBudgeting": 12158.816768,
"availableForBudgeting": 13230.816768,
"budgetsByMonth": {},
"checkingBalance": 12158.816768
"checkingBalance": 13230.816768
},
"cashFlows": [
{
@ -12,8 +12,8 @@
"liabilities": 0,
"investment": 88768.183232,
"tax": 0,
"checking": 12158.816768,
"balance": 12158.816768
"checking": 13230.816768,
"balance": 13230.816768
},
{
"date": "2022-02-01T00:00:00Z",
@ -23,7 +23,7 @@
"investment": 0,
"tax": 0,
"checking": 0,
"balance": 12158.816768
"balance": 13230.816768
}
],
"checkingBalances": {
@ -33,7 +33,7 @@
"2022-01": [
{
"id": 4,
"transaction_id": "1f8cde847fd28fa32bdec426b998ad40",
"transaction_id": "e394cb30478d81c4c513297a4a9ef020",
"date": "2022-01-03T00:00:00Z",
"payee": "Rent",
"account": "Expenses:Rent",
@ -43,8 +43,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 27,
"transaction_end_line": 30,
"transaction_begin_line": 28,
"transaction_end_line": 31,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -54,7 +54,7 @@
},
{
"id": 16,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
@ -64,8 +64,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -79,25 +79,25 @@
"networth": {
"networth": {
"date": "2022-02-07T23:59:59.999999999Z",
"investmentAmount": 228795.183232,
"investmentAmount": 229867.183232,
"withdrawalAmount": 128895.183232,
"gainAmount": 1183.8113381976295,
"balanceAmount": 101083.81133819763,
"balanceAmount": 102155.81133819763,
"balanceUnits": 0,
"netInvestmentAmount": 99900
"netInvestmentAmount": 100972
},
"xirr": 12.18
"xirr": 12.15
},
"transactionSequences": [],
"transactions": [
{
"id": "f928b4a8eec8c55346755b616a232f13",
"id": "7de56ebcddef5b0fd2525c04178705d3",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"postings": [
{
"id": 23,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 25,
"transaction_id": "7de56ebcddef5b0fd2525c04178705d3",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"account": "Assets:Checking",
@ -107,8 +107,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 65,
"transaction_end_line": 68,
"transaction_begin_line": 66,
"transaction_end_line": 69,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -117,8 +117,8 @@
"balance": 0
},
{
"id": 22,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 24,
"transaction_id": "7de56ebcddef5b0fd2525c04178705d3",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"account": "Income:Interest:Checking",
@ -128,8 +128,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 65,
"transaction_end_line": 68,
"transaction_begin_line": 66,
"transaction_end_line": 69,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -140,19 +140,74 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 65,
"endLine": 68,
"beginLine": 66,
"endLine": 69,
"fileName": "main.beancount",
"note": ""
},
{
"id": "f206938e60d684dd02770127f2dfc424",
"id": "3262b6a59ca5bc147ceb6f7ee90955c7",
"date": "2022-01-30T00:00:00Z",
"payee": "(Padding inserted for Balance of 21000 INR for difference 1072.7 INR)",
"postings": [
{
"id": 22,
"transaction_id": "3262b6a59ca5bc147ceb6f7ee90955c7",
"date": "2022-01-30T00:00:00Z",
"payee": "(Padding inserted for Balance of 21000 INR for difference 1072.7 INR)",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": 1072.7,
"amount": 1072,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 0,
"transaction_end_line": 1,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 23,
"transaction_id": "3262b6a59ca5bc147ceb6f7ee90955c7",
"date": "2022-01-30T00:00:00Z",
"payee": "(Padding inserted for Balance of 21000 INR for difference 1072.7 INR)",
"account": "Equity:OpeningBalances",
"commodity": "INR",
"quantity": -1072.7,
"amount": -1072,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 0,
"transaction_end_line": 1,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 0,
"endLine": 1,
"fileName": "main.beancount",
"note": ""
},
{
"id": "6bf2d0bd8cc5cc3ecfec78ecc069a14d",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"postings": [
{
"id": 20,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"transaction_id": "6bf2d0bd8cc5cc3ecfec78ecc069a14d",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Coinbase:BTC",
@ -162,8 +217,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 59,
"transaction_end_line": 62,
"transaction_begin_line": 60,
"transaction_end_line": 63,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -173,7 +228,7 @@
},
{
"id": 21,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"transaction_id": "6bf2d0bd8cc5cc3ecfec78ecc069a14d",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Checking",
@ -183,8 +238,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 59,
"transaction_end_line": 62,
"transaction_begin_line": 60,
"transaction_end_line": 63,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -195,116 +250,19 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 59,
"endLine": 62,
"beginLine": 60,
"endLine": 63,
"fileName": "main.beancount",
"note": ""
},
{
"id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"postings": [
{
"id": 18,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 16,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
"quantity": 100,
"amount": 100,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 19,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -10,
"amount": -804.42048,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 17,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -100,
"amount": -100,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 54,
"endLine": 58,
"fileName": "main.beancount",
"note": ""
},
{
"id": "918670fa710ecf6ae9ccc8e6eee56def",
"id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"postings": [
{
"id": 15,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Checking",
@ -314,8 +272,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -325,7 +283,7 @@
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
@ -335,8 +293,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -346,7 +304,7 @@
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
@ -356,8 +314,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -368,19 +326,116 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 47,
"endLine": 51,
"beginLine": 48,
"endLine": 52,
"fileName": "main.beancount",
"note": ""
},
{
"id": "45de345242de44d435470249ade015b0",
"id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"postings": [
{
"id": 18,
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 16,
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
"quantity": 100,
"amount": 100,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 19,
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -10,
"amount": -804.42048,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 17,
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -100,
"amount": -100,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 55,
"endLine": 59,
"fileName": "main.beancount",
"note": ""
},
{
"id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"postings": [
{
"id": 9,
"transaction_id": "45de345242de44d435470249ade015b0",
"transaction_id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"account": "Assets:Equity:ABNB",
@ -390,8 +445,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 39,
"transaction_end_line": 42,
"transaction_begin_line": 40,
"transaction_end_line": 43,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -401,7 +456,7 @@
},
{
"id": 10,
"transaction_id": "45de345242de44d435470249ade015b0",
"transaction_id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"account": "Assets:Checking",
@ -411,8 +466,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 39,
"transaction_end_line": 42,
"transaction_begin_line": 40,
"transaction_end_line": 43,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -423,19 +478,19 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 39,
"endLine": 42,
"beginLine": 40,
"endLine": 43,
"fileName": "main.beancount",
"note": ""
},
{
"id": "190f6e27b6cd79f8c02583980e33d850",
"id": "6dbec46bcfb775a8e4fad777b9050a4c",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"postings": [
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"transaction_id": "6dbec46bcfb775a8e4fad777b9050a4c",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
@ -445,8 +500,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -456,7 +511,7 @@
},
{
"id": 12,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"transaction_id": "6dbec46bcfb775a8e4fad777b9050a4c",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Checking",
@ -466,8 +521,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -478,19 +533,19 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 43,
"endLine": 46,
"beginLine": 44,
"endLine": 47,
"fileName": "main.beancount",
"note": ""
},
{
"id": "baecffd15f1d49f81b1a38465edd6981",
"id": "d14e425ba0d573ba0388d100bda5eb80",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"postings": [
{
"id": 8,
"transaction_id": "baecffd15f1d49f81b1a38465edd6981",
"transaction_id": "d14e425ba0d573ba0388d100bda5eb80",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"account": "Assets:Equity:NIFTY",
@ -500,8 +555,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 36,
"transaction_end_line": 39,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -511,7 +566,7 @@
},
{
"id": 7,
"transaction_id": "baecffd15f1d49f81b1a38465edd6981",
"transaction_id": "d14e425ba0d573ba0388d100bda5eb80",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"account": "Assets:Checking",
@ -521,8 +576,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 36,
"transaction_end_line": 39,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -533,19 +588,19 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 35,
"endLine": 38,
"beginLine": 36,
"endLine": 39,
"fileName": "main.beancount",
"note": ""
},
{
"id": "ad1e86e51a1580c3d5f7ef104adea932",
"id": "9c2c3e31540bad2f24f873c46def370b",
"date": "2022-01-06T00:00:00Z",
"payee": "Bonus",
"postings": [
{
"id": 6,
"transaction_id": "ad1e86e51a1580c3d5f7ef104adea932",
"transaction_id": "9c2c3e31540bad2f24f873c46def370b",
"date": "2022-01-06T00:00:00Z",
"payee": "Bonus",
"account": "Assets:Checking",
@ -555,8 +610,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 31,
"transaction_end_line": 34,
"transaction_begin_line": 32,
"transaction_end_line": 35,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -566,7 +621,7 @@
},
{
"id": 5,
"transaction_id": "ad1e86e51a1580c3d5f7ef104adea932",
"transaction_id": "9c2c3e31540bad2f24f873c46def370b",
"date": "2022-01-06T00:00:00Z",
"payee": "Bonus",
"account": "Income:Salary:Acme",
@ -576,8 +631,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 31,
"transaction_end_line": 34,
"transaction_begin_line": 32,
"transaction_end_line": 35,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -588,19 +643,19 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 31,
"endLine": 34,
"beginLine": 32,
"endLine": 35,
"fileName": "main.beancount",
"note": ""
},
{
"id": "1f8cde847fd28fa32bdec426b998ad40",
"id": "e394cb30478d81c4c513297a4a9ef020",
"date": "2022-01-03T00:00:00Z",
"payee": "Rent",
"postings": [
{
"id": 4,
"transaction_id": "1f8cde847fd28fa32bdec426b998ad40",
"transaction_id": "e394cb30478d81c4c513297a4a9ef020",
"date": "2022-01-03T00:00:00Z",
"payee": "Rent",
"account": "Expenses:Rent",
@ -610,8 +665,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 27,
"transaction_end_line": 30,
"transaction_begin_line": 28,
"transaction_end_line": 31,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -621,7 +676,7 @@
},
{
"id": 3,
"transaction_id": "1f8cde847fd28fa32bdec426b998ad40",
"transaction_id": "e394cb30478d81c4c513297a4a9ef020",
"date": "2022-01-03T00:00:00Z",
"payee": "Rent",
"account": "Assets:Checking",
@ -631,8 +686,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 27,
"transaction_end_line": 30,
"transaction_begin_line": 28,
"transaction_end_line": 31,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -643,19 +698,19 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 27,
"endLine": 30,
"beginLine": 28,
"endLine": 31,
"fileName": "main.beancount",
"note": ""
},
{
"id": "2c4c2c0e801a4f2e5225b7292e6ac216",
"id": "425e0d0e256e24cddcbad886738d57bb",
"date": "2022-01-01T00:00:00Z",
"payee": "Salary",
"postings": [
{
"id": 2,
"transaction_id": "2c4c2c0e801a4f2e5225b7292e6ac216",
"transaction_id": "425e0d0e256e24cddcbad886738d57bb",
"date": "2022-01-01T00:00:00Z",
"payee": "Salary",
"account": "Assets:Checking",
@ -665,8 +720,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 23,
"transaction_end_line": 26,
"transaction_begin_line": 24,
"transaction_end_line": 27,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -676,7 +731,7 @@
},
{
"id": 1,
"transaction_id": "2c4c2c0e801a4f2e5225b7292e6ac216",
"transaction_id": "425e0d0e256e24cddcbad886738d57bb",
"date": "2022-01-01T00:00:00Z",
"payee": "Salary",
"account": "Income:Salary:Acme",
@ -686,8 +741,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 23,
"transaction_end_line": 26,
"transaction_begin_line": 24,
"transaction_end_line": 27,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -698,8 +753,8 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 23,
"endLine": 26,
"beginLine": 24,
"endLine": 27,
"fileName": "main.beancount",
"note": ""
}

View File

@ -2,7 +2,7 @@
"expenses": [
{
"id": 4,
"transaction_id": "1f8cde847fd28fa32bdec426b998ad40",
"transaction_id": "e394cb30478d81c4c513297a4a9ef020",
"date": "2022-01-03T00:00:00Z",
"payee": "Rent",
"account": "Expenses:Rent",
@ -12,8 +12,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 27,
"transaction_end_line": 30,
"transaction_begin_line": 28,
"transaction_end_line": 31,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -23,7 +23,7 @@
},
{
"id": 16,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
@ -33,8 +33,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -70,6 +70,10 @@
"id": 7,
"name": "Assets:Equity:NIFTY"
},
{
"id": 16,
"name": "Equity:OpeningBalances"
},
{
"id": 5,
"name": "Expenses"
@ -99,11 +103,11 @@
"name": "Income:CapitalGains:Equity:AAPL"
},
{
"id": 16,
"id": 17,
"name": "Income:Interest"
},
{
"id": 17,
"id": 18,
"name": "Income:Interest:Checking"
},
{
@ -188,12 +192,17 @@
},
{
"source": 16,
"target": 1,
"value": 1072
},
{
"source": 17,
"target": 2,
"value": 1000
},
{
"source": 17,
"target": 16,
"source": 18,
"target": 17,
"value": 1000
}
]
@ -204,7 +213,7 @@
"2022-01": [
{
"id": 4,
"transaction_id": "1f8cde847fd28fa32bdec426b998ad40",
"transaction_id": "e394cb30478d81c4c513297a4a9ef020",
"date": "2022-01-03T00:00:00Z",
"payee": "Rent",
"account": "Expenses:Rent",
@ -214,8 +223,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 27,
"transaction_end_line": 30,
"transaction_begin_line": 28,
"transaction_end_line": 31,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -225,7 +234,7 @@
},
{
"id": 16,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
@ -235,8 +244,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -250,7 +259,7 @@
"2022-01": [
{
"id": 1,
"transaction_id": "2c4c2c0e801a4f2e5225b7292e6ac216",
"transaction_id": "425e0d0e256e24cddcbad886738d57bb",
"date": "2022-01-01T00:00:00Z",
"payee": "Salary",
"account": "Income:Salary:Acme",
@ -260,8 +269,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 23,
"transaction_end_line": 26,
"transaction_begin_line": 24,
"transaction_end_line": 27,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -271,7 +280,7 @@
},
{
"id": 5,
"transaction_id": "ad1e86e51a1580c3d5f7ef104adea932",
"transaction_id": "9c2c3e31540bad2f24f873c46def370b",
"date": "2022-01-06T00:00:00Z",
"payee": "Bonus",
"account": "Income:Salary:Acme",
@ -281,8 +290,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 31,
"transaction_end_line": 34,
"transaction_begin_line": 32,
"transaction_end_line": 35,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -292,7 +301,7 @@
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
@ -302,8 +311,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -312,8 +321,8 @@
"balance": 0
},
{
"id": 22,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 24,
"transaction_id": "7de56ebcddef5b0fd2525c04178705d3",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"account": "Income:Interest:Checking",
@ -323,8 +332,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 65,
"transaction_end_line": 68,
"transaction_begin_line": 66,
"transaction_end_line": 69,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -338,7 +347,7 @@
"2022-01": [
{
"id": 8,
"transaction_id": "baecffd15f1d49f81b1a38465edd6981",
"transaction_id": "d14e425ba0d573ba0388d100bda5eb80",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"account": "Assets:Equity:NIFTY",
@ -348,8 +357,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 36,
"transaction_end_line": 39,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -359,7 +368,7 @@
},
{
"id": 9,
"transaction_id": "45de345242de44d435470249ade015b0",
"transaction_id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"account": "Assets:Equity:ABNB",
@ -369,8 +378,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 39,
"transaction_end_line": 42,
"transaction_begin_line": 40,
"transaction_end_line": 43,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -380,7 +389,7 @@
},
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"transaction_id": "6dbec46bcfb775a8e4fad777b9050a4c",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
@ -390,8 +399,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -401,7 +410,7 @@
},
{
"id": 18,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
@ -411,8 +420,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -422,7 +431,7 @@
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
@ -432,8 +441,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -443,7 +452,7 @@
},
{
"id": 20,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"transaction_id": "6bf2d0bd8cc5cc3ecfec78ecc069a14d",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Coinbase:BTC",
@ -453,8 +462,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 59,
"transaction_end_line": 62,
"transaction_begin_line": 60,
"transaction_end_line": 63,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -471,7 +480,7 @@
"2021 - 22": [
{
"id": 4,
"transaction_id": "1f8cde847fd28fa32bdec426b998ad40",
"transaction_id": "e394cb30478d81c4c513297a4a9ef020",
"date": "2022-01-03T00:00:00Z",
"payee": "Rent",
"account": "Expenses:Rent",
@ -481,8 +490,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 27,
"transaction_end_line": 30,
"transaction_begin_line": 28,
"transaction_end_line": 31,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -492,7 +501,7 @@
},
{
"id": 16,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
@ -502,8 +511,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -517,7 +526,7 @@
"2021 - 22": [
{
"id": 1,
"transaction_id": "2c4c2c0e801a4f2e5225b7292e6ac216",
"transaction_id": "425e0d0e256e24cddcbad886738d57bb",
"date": "2022-01-01T00:00:00Z",
"payee": "Salary",
"account": "Income:Salary:Acme",
@ -527,8 +536,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 23,
"transaction_end_line": 26,
"transaction_begin_line": 24,
"transaction_end_line": 27,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -538,7 +547,7 @@
},
{
"id": 5,
"transaction_id": "ad1e86e51a1580c3d5f7ef104adea932",
"transaction_id": "9c2c3e31540bad2f24f873c46def370b",
"date": "2022-01-06T00:00:00Z",
"payee": "Bonus",
"account": "Income:Salary:Acme",
@ -548,8 +557,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 31,
"transaction_end_line": 34,
"transaction_begin_line": 32,
"transaction_end_line": 35,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -559,7 +568,7 @@
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
@ -569,8 +578,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -579,8 +588,8 @@
"balance": 0
},
{
"id": 22,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 24,
"transaction_id": "7de56ebcddef5b0fd2525c04178705d3",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"account": "Income:Interest:Checking",
@ -590,8 +599,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 65,
"transaction_end_line": 68,
"transaction_begin_line": 66,
"transaction_end_line": 69,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -605,7 +614,7 @@
"2021 - 22": [
{
"id": 8,
"transaction_id": "baecffd15f1d49f81b1a38465edd6981",
"transaction_id": "d14e425ba0d573ba0388d100bda5eb80",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"account": "Assets:Equity:NIFTY",
@ -615,8 +624,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 36,
"transaction_end_line": 39,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -626,7 +635,7 @@
},
{
"id": 9,
"transaction_id": "45de345242de44d435470249ade015b0",
"transaction_id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"account": "Assets:Equity:ABNB",
@ -636,8 +645,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 39,
"transaction_end_line": 42,
"transaction_begin_line": 40,
"transaction_end_line": 43,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -647,7 +656,7 @@
},
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"transaction_id": "6dbec46bcfb775a8e4fad777b9050a4c",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
@ -657,8 +666,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -668,7 +677,7 @@
},
{
"id": 18,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
@ -678,8 +687,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -689,7 +698,7 @@
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
@ -699,8 +708,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -710,7 +719,7 @@
},
{
"id": 20,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"transaction_id": "6bf2d0bd8cc5cc3ecfec78ecc069a14d",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Coinbase:BTC",
@ -720,8 +729,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 59,
"transaction_end_line": 62,
"transaction_begin_line": 60,
"transaction_end_line": 63,
"file_name": "main.beancount",
"forecast": false,
"note": "",

View File

@ -10,6 +10,7 @@
"Expenses:Charges",
"Assets:Dollar",
"Assets:Coinbase:BTC",
"Equity:OpeningBalances",
"Income:Interest:Checking"
],
"commodities": [
@ -23,7 +24,7 @@
"files": [
{
"name": "main.beancount",
"content": "1970-01-01 open Assets:Checking\n1970-01-01 open Assets:Equity:AAPL\n1970-01-01 open Assets:Equity:ABNB\n1970-01-01 open Assets:Equity:NIFTY\n1970-01-01 open Expenses:Rent\n1970-01-01 open Expenses:Charges\n1970-01-01 open Income:CapitalGains:Equity:AAPL\n1970-01-01 open Income:Interest:Checking\n1970-01-01 open Income:Salary:Acme\n1970-01-01 open Assets:Coinbase:BTC\n1970-01-01 open Assets:Dollar\n\n1970-01-01 commodity AAPL\n1970-01-01 commodity ABNB\n1970-01-01 commodity INR\n1970-01-01 commodity NIFTY\n1970-01-01 commodity USD\n1970-01-01 commodity BTC\n\n2022-01-07 price NIFTY 100 INR\n2022-02-07 price NIFTY 100.273 INR\n\n2022-01-01 txn \"Salary\"\n Income:Salary:Acme -100,000 INR\n Assets:Checking 100,000 INR\n\n2022-01-03 txn \"Rent\"\n Assets:Checking -20,000 INR\n Expenses:Rent\n\n2022-01-06 txn \"Bonus\"\n Income:Salary:Acme -20,000 INR\n Assets:Checking 20,000 INR\n\n2022-01-07 txn \"Investment\"\n Assets:Checking -80,000 INR\n Assets:Equity:NIFTY 800 NIFTY {100 INR}\n\n2022-01-08 txn \"Buy ABNB\"\n Assets:Equity:ABNB 0.76 ABNB {131.27 USD}\n Assets:Checking\n\n2022-01-08 txn \"Buy Apple\"\n Assets:Equity:AAPL 100 AAPL {100 INR}\n Assets:Checking\n\n2022-01-09 txn \"Sell\"\n Assets:Equity:AAPL -100 AAPL {100 INR} @ 100.273 INR\n Income:CapitalGains:Equity:AAPL -27.3 INR\n Assets:Checking 10027.3 INR\n\n2022-01-08 price USD 80.442048 INR\n\n2022-01-09 txn \"Multi Currency Debit\"\n Expenses:Charges 100 INR\n Assets:Dollar 10 USD\n Assets:Checking\n\n2022-01-10 txn \"Purchased 0.00000001 BTC\"\n Assets:Coinbase:BTC 0.00000001 BTC {42772 USD}\n Assets:Checking -0.00042772 USD\n\n2022-01-31 txn \"Interest\"\n ; Global note\n ; :interest:\n Income:Interest:Checking -1,000 INR ; Posting note\n Assets:Checking\n\n2022/01/31 balance Assets:Equity:NIFTY 800 NIFTY\n",
"content": "1970-01-01 open Assets:Checking\n1970-01-01 open Assets:Equity:AAPL\n1970-01-01 open Assets:Equity:ABNB\n1970-01-01 open Assets:Equity:NIFTY\n1970-01-01 open Expenses:Rent\n1970-01-01 open Expenses:Charges\n1970-01-01 open Income:CapitalGains:Equity:AAPL\n1970-01-01 open Income:Interest:Checking\n1970-01-01 open Income:Salary:Acme\n1970-01-01 open Assets:Coinbase:BTC\n1970-01-01 open Assets:Dollar\n1970-01-01 open Equity:OpeningBalances\n\n1970-01-01 commodity AAPL\n1970-01-01 commodity ABNB\n1970-01-01 commodity INR\n1970-01-01 commodity NIFTY\n1970-01-01 commodity USD\n1970-01-01 commodity BTC\n\n2022-01-07 price NIFTY 100 INR\n2022-02-07 price NIFTY 100.273 INR\n\n2022-01-01 txn \"Salary\"\n Income:Salary:Acme -100,000 INR\n Assets:Checking 100,000 INR\n\n2022-01-03 txn \"Rent\"\n Assets:Checking -20,000 INR\n Expenses:Rent\n\n2022-01-06 txn \"Bonus\"\n Income:Salary:Acme -20,000 INR\n Assets:Checking 20,000 INR\n\n2022-01-07 txn \"Investment\"\n Assets:Checking -80,000 INR\n Assets:Equity:NIFTY 800 NIFTY {100 INR}\n\n2022-01-08 txn \"Buy ABNB\"\n Assets:Equity:ABNB 0.76 ABNB {131.27 USD}\n Assets:Checking\n\n2022-01-08 txn \"Buy Apple\"\n Assets:Equity:AAPL 100 AAPL {100 INR}\n Assets:Checking\n\n2022-01-09 txn \"Sell\"\n Assets:Equity:AAPL -100 AAPL {100 INR} @ 100.273 INR\n Income:CapitalGains:Equity:AAPL -27.3 INR\n Assets:Checking 10027.3 INR\n\n2022-01-08 price USD 80.442048 INR\n\n2022-01-09 txn \"Multi Currency Debit\"\n Expenses:Charges 100 INR\n Assets:Dollar 10 USD\n Assets:Checking\n\n2022-01-10 txn \"Purchased 0.00000001 BTC\"\n Assets:Coinbase:BTC 0.00000001 BTC {42772 USD}\n Assets:Checking -0.00042772 USD\n\n2022-01-31 txn \"Interest\"\n ; Global note\n ; :interest:\n Income:Interest:Checking -1,000 INR ; Posting note\n Assets:Checking\n\n2022/01/31 balance Assets:Equity:NIFTY 800 NIFTY\n\n2022/01/30 pad Assets:Checking Equity:OpeningBalances\n2022/01/31 balance Assets:Checking 21000 INR\n",
"versions": [],
"operation": ""
}
@ -38,6 +39,7 @@
"Sell",
"Multi Currency Debit",
"Purchased 0.00000001 BTC",
"(Padding inserted for Balance of 21000 INR for difference 1072.7 INR)",
"Interest"
]
}

View File

@ -15,7 +15,7 @@
"postings": [
{
"id": 20,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"transaction_id": "6bf2d0bd8cc5cc3ecfec78ecc069a14d",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Coinbase:BTC",
@ -25,8 +25,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 59,
"transaction_end_line": 62,
"transaction_begin_line": 60,
"transaction_end_line": 63,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -51,7 +51,7 @@
"postings": [
{
"id": 18,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
@ -61,8 +61,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -87,7 +87,7 @@
"postings": [
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"transaction_id": "6dbec46bcfb775a8e4fad777b9050a4c",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
@ -97,8 +97,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -108,7 +108,7 @@
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
@ -118,8 +118,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -129,7 +129,7 @@
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
@ -139,8 +139,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -165,7 +165,7 @@
"postings": [
{
"id": 9,
"transaction_id": "45de345242de44d435470249ade015b0",
"transaction_id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"account": "Assets:Equity:ABNB",
@ -175,8 +175,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 39,
"transaction_end_line": 42,
"transaction_begin_line": 40,
"transaction_end_line": 43,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -201,7 +201,7 @@
"postings": [
{
"id": 8,
"transaction_id": "baecffd15f1d49f81b1a38465edd6981",
"transaction_id": "d14e425ba0d573ba0388d100bda5eb80",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"account": "Assets:Equity:NIFTY",
@ -211,8 +211,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 36,
"transaction_end_line": 39,
"file_name": "main.beancount",
"forecast": false,
"note": "",

View File

@ -5,7 +5,7 @@
"postings": [
{
"id": 1,
"transaction_id": "2c4c2c0e801a4f2e5225b7292e6ac216",
"transaction_id": "425e0d0e256e24cddcbad886738d57bb",
"date": "2022-01-01T00:00:00Z",
"payee": "Salary",
"account": "Income:Salary:Acme",
@ -15,8 +15,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 23,
"transaction_end_line": 26,
"transaction_begin_line": 24,
"transaction_end_line": 27,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -26,7 +26,7 @@
},
{
"id": 5,
"transaction_id": "ad1e86e51a1580c3d5f7ef104adea932",
"transaction_id": "9c2c3e31540bad2f24f873c46def370b",
"date": "2022-01-06T00:00:00Z",
"payee": "Bonus",
"account": "Income:Salary:Acme",
@ -36,8 +36,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 31,
"transaction_end_line": 34,
"transaction_begin_line": 32,
"transaction_end_line": 35,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -47,7 +47,7 @@
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
@ -57,8 +57,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -67,8 +67,8 @@
"balance": 0
},
{
"id": 22,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 24,
"transaction_id": "7de56ebcddef5b0fd2525c04178705d3",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"account": "Income:Interest:Checking",
@ -78,8 +78,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 65,
"transaction_end_line": 68,
"transaction_begin_line": 66,
"transaction_end_line": 69,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -102,7 +102,7 @@
"postings": [
{
"id": 1,
"transaction_id": "2c4c2c0e801a4f2e5225b7292e6ac216",
"transaction_id": "425e0d0e256e24cddcbad886738d57bb",
"date": "2022-01-01T00:00:00Z",
"payee": "Salary",
"account": "Income:Salary:Acme",
@ -112,8 +112,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 23,
"transaction_end_line": 26,
"transaction_begin_line": 24,
"transaction_end_line": 27,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -123,7 +123,7 @@
},
{
"id": 5,
"transaction_id": "ad1e86e51a1580c3d5f7ef104adea932",
"transaction_id": "9c2c3e31540bad2f24f873c46def370b",
"date": "2022-01-06T00:00:00Z",
"payee": "Bonus",
"account": "Income:Salary:Acme",
@ -133,8 +133,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 31,
"transaction_end_line": 34,
"transaction_begin_line": 32,
"transaction_end_line": 35,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -144,7 +144,7 @@
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
@ -154,8 +154,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -164,8 +164,8 @@
"balance": 0
},
{
"id": 22,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 24,
"transaction_id": "7de56ebcddef5b0fd2525c04178705d3",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"account": "Income:Interest:Checking",
@ -175,8 +175,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 65,
"transaction_end_line": 68,
"transaction_begin_line": 66,
"transaction_end_line": 69,
"file_name": "main.beancount",
"forecast": false,
"note": "",

View File

@ -2,7 +2,7 @@
"yearly": {
"2021 - 22": {
"startingBalance": 0,
"endingBalance": 93121.10858620763,
"endingBalance": 94193.80858620763,
"date": "2021-04-01T00:00:00Z",
"income": {
"Income:Salary:Acme": -120000
@ -10,9 +10,11 @@
"interest": {
"Income:Interest:Checking": -1000
},
"equity": {},
"equity": {
"Equity:OpeningBalances": -1072
},
"pnl": {
"Assets:Checking": -61.28866180237056,
"Assets:Checking": -60.58866180237056,
"Assets:Coinbase:BTC": 1e-8,
"Assets:Equity:AAPL": 27,
"Assets:Equity:ABNB": -7963.002752,

View File

@ -2,7 +2,7 @@
"assets": [
{
"id": 8,
"transaction_id": "baecffd15f1d49f81b1a38465edd6981",
"transaction_id": "d14e425ba0d573ba0388d100bda5eb80",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"account": "Assets:Equity:NIFTY",
@ -12,8 +12,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 36,
"transaction_end_line": 39,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -23,7 +23,7 @@
},
{
"id": 9,
"transaction_id": "45de345242de44d435470249ade015b0",
"transaction_id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"account": "Assets:Equity:ABNB",
@ -33,8 +33,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 39,
"transaction_end_line": 42,
"transaction_begin_line": 40,
"transaction_end_line": 43,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -44,7 +44,7 @@
},
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"transaction_id": "6dbec46bcfb775a8e4fad777b9050a4c",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
@ -54,8 +54,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -65,7 +65,7 @@
},
{
"id": 18,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
@ -75,8 +75,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -86,7 +86,7 @@
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
@ -96,8 +96,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -107,7 +107,7 @@
},
{
"id": 20,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"transaction_id": "6bf2d0bd8cc5cc3ecfec78ecc069a14d",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Coinbase:BTC",
@ -117,8 +117,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 59,
"transaction_end_line": 62,
"transaction_begin_line": 60,
"transaction_end_line": 63,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -134,7 +134,7 @@
"postings": [
{
"id": 8,
"transaction_id": "baecffd15f1d49f81b1a38465edd6981",
"transaction_id": "d14e425ba0d573ba0388d100bda5eb80",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"account": "Assets:Equity:NIFTY",
@ -144,8 +144,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 36,
"transaction_end_line": 39,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -155,7 +155,7 @@
},
{
"id": 9,
"transaction_id": "45de345242de44d435470249ade015b0",
"transaction_id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"account": "Assets:Equity:ABNB",
@ -165,8 +165,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 39,
"transaction_end_line": 42,
"transaction_begin_line": 40,
"transaction_end_line": 43,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -176,7 +176,7 @@
},
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"transaction_id": "6dbec46bcfb775a8e4fad777b9050a4c",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
@ -186,8 +186,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -197,7 +197,7 @@
},
{
"id": 18,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
@ -207,8 +207,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -218,7 +218,7 @@
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
@ -228,8 +228,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -239,7 +239,7 @@
},
{
"id": 20,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"transaction_id": "6bf2d0bd8cc5cc3ecfec78ecc069a14d",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Coinbase:BTC",
@ -249,8 +249,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 59,
"transaction_end_line": 62,
"transaction_begin_line": 60,
"transaction_end_line": 63,
"file_name": "main.beancount",
"forecast": false,
"note": "",

View File

@ -1,8 +1,8 @@
{
"postings": [
{
"id": 22,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 24,
"transaction_id": "7de56ebcddef5b0fd2525c04178705d3",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"account": "Income:Interest:Checking",
@ -12,8 +12,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 65,
"transaction_end_line": 68,
"transaction_begin_line": 66,
"transaction_end_line": 69,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -22,8 +22,8 @@
"balance": -1000
},
{
"id": 23,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 25,
"transaction_id": "7de56ebcddef5b0fd2525c04178705d3",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"account": "Assets:Checking",
@ -33,39 +33,60 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 65,
"transaction_end_line": 68,
"transaction_begin_line": 66,
"transaction_end_line": 69,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 1000,
"balance": 20817.53437228
"balance": 21890.23437228
},
{
"id": 20,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Coinbase:BTC",
"commodity": "BTC",
"quantity": 1e-8,
"amount": 0,
"status": "cleared",
"id": 22,
"transaction_id": "3262b6a59ca5bc147ceb6f7ee90955c7",
"date": "2022-01-30T00:00:00Z",
"payee": "(Padding inserted for Balance of 21000 INR for difference 1072.7 INR)",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": 1072.7,
"amount": 1072,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 59,
"transaction_end_line": 62,
"transaction_begin_line": 0,
"transaction_end_line": 1,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 1e-8
"market_amount": 1072,
"balance": 20890.23437228
},
{
"id": 23,
"transaction_id": "3262b6a59ca5bc147ceb6f7ee90955c7",
"date": "2022-01-30T00:00:00Z",
"payee": "(Padding inserted for Balance of 21000 INR for difference 1072.7 INR)",
"account": "Equity:OpeningBalances",
"commodity": "INR",
"quantity": -1072.7,
"amount": -1072,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 0,
"transaction_end_line": 1,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -1072,
"balance": -1072.7
},
{
"id": 21,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"transaction_id": "6bf2d0bd8cc5cc3ecfec78ecc069a14d",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Checking",
@ -75,8 +96,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 59,
"transaction_end_line": 62,
"transaction_begin_line": 60,
"transaction_end_line": 63,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -84,9 +105,30 @@
"market_amount": -0.03440667277056,
"balance": 19817.53437228
},
{
"id": 20,
"transaction_id": "6bf2d0bd8cc5cc3ecfec78ecc069a14d",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Coinbase:BTC",
"commodity": "BTC",
"quantity": 1e-8,
"amount": 0,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 60,
"transaction_end_line": 63,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 1e-8
},
{
"id": 15,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Checking",
@ -96,123 +138,18 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 10027,
"balance": 19927.5348
},
{
"id": 18,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 804.42048,
"balance": 10
},
{
"id": 16,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
"quantity": 100,
"amount": 100,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 100,
"balance": 100
},
{
"id": 19,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -10,
"amount": -804.42048,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -804.42048,
"balance": 19817.5348
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
"quantity": -27.3,
"amount": -27,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -27,
"balance": -27.3
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
"quantity": -100,
"amount": -10000,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -10000,
"balance": 0
},
{
"id": 17,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
@ -222,81 +159,123 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -100,
"balance": 19827.5348
"balance": 9800.2348
},
{
"id": 10,
"transaction_id": "45de345242de44d435470249ade015b0",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"id": 16,
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
"quantity": 100,
"amount": 100,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 100,
"balance": 100
},
{
"id": 19,
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -99.7652,
"amount": -7963.762752,
"quantity": -10,
"amount": -804.42048,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 39,
"transaction_end_line": 42,
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -8025.3170071296,
"balance": 9900.2348
"market_amount": -804.42048,
"balance": 9790.2348
},
{
"id": 9,
"transaction_id": "45de345242de44d435470249ade015b0",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"account": "Assets:Equity:ABNB",
"commodity": "ABNB",
"quantity": 0.76,
"amount": 7963.762752,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 39,
"transaction_end_line": 42,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 7963.762752,
"balance": 0.76
},
{
"id": 12,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Checking",
"id": 14,
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
"quantity": -10000,
"quantity": -27.3,
"amount": -27,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -27,
"balance": -27.3
},
{
"id": 13,
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
"quantity": -100,
"amount": -10000,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -10000,
"balance": 10000
"balance": 0
},
{
"id": 18,
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 804.42048,
"balance": 10
},
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"transaction_id": "6dbec46bcfb775a8e4fad777b9050a4c",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
@ -306,8 +285,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -315,9 +294,72 @@
"market_amount": 10000,
"balance": 100
},
{
"id": 10,
"transaction_id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -99.7652,
"amount": -7963.762752,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 40,
"transaction_end_line": 43,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -8025.3170071296,
"balance": 9900.2348
},
{
"id": 12,
"transaction_id": "6dbec46bcfb775a8e4fad777b9050a4c",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -10000,
"amount": -10000,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -10000,
"balance": 10000
},
{
"id": 9,
"transaction_id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"account": "Assets:Equity:ABNB",
"commodity": "ABNB",
"quantity": 0.76,
"amount": 7963.762752,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 40,
"transaction_end_line": 43,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 7963.762752,
"balance": 0.76
},
{
"id": 8,
"transaction_id": "baecffd15f1d49f81b1a38465edd6981",
"transaction_id": "d14e425ba0d573ba0388d100bda5eb80",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"account": "Assets:Equity:NIFTY",
@ -327,8 +369,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 36,
"transaction_end_line": 39,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -338,7 +380,7 @@
},
{
"id": 7,
"transaction_id": "baecffd15f1d49f81b1a38465edd6981",
"transaction_id": "d14e425ba0d573ba0388d100bda5eb80",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"account": "Assets:Checking",
@ -348,8 +390,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 36,
"transaction_end_line": 39,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -359,7 +401,7 @@
},
{
"id": 6,
"transaction_id": "ad1e86e51a1580c3d5f7ef104adea932",
"transaction_id": "9c2c3e31540bad2f24f873c46def370b",
"date": "2022-01-06T00:00:00Z",
"payee": "Bonus",
"account": "Assets:Checking",
@ -369,8 +411,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 31,
"transaction_end_line": 34,
"transaction_begin_line": 32,
"transaction_end_line": 35,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -380,7 +422,7 @@
},
{
"id": 5,
"transaction_id": "ad1e86e51a1580c3d5f7ef104adea932",
"transaction_id": "9c2c3e31540bad2f24f873c46def370b",
"date": "2022-01-06T00:00:00Z",
"payee": "Bonus",
"account": "Income:Salary:Acme",
@ -390,8 +432,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 31,
"transaction_end_line": 34,
"transaction_begin_line": 32,
"transaction_end_line": 35,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -401,7 +443,7 @@
},
{
"id": 4,
"transaction_id": "1f8cde847fd28fa32bdec426b998ad40",
"transaction_id": "e394cb30478d81c4c513297a4a9ef020",
"date": "2022-01-03T00:00:00Z",
"payee": "Rent",
"account": "Expenses:Rent",
@ -411,8 +453,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 27,
"transaction_end_line": 30,
"transaction_begin_line": 28,
"transaction_end_line": 31,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -422,7 +464,7 @@
},
{
"id": 3,
"transaction_id": "1f8cde847fd28fa32bdec426b998ad40",
"transaction_id": "e394cb30478d81c4c513297a4a9ef020",
"date": "2022-01-03T00:00:00Z",
"payee": "Rent",
"account": "Assets:Checking",
@ -432,8 +474,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 27,
"transaction_end_line": 30,
"transaction_begin_line": 28,
"transaction_end_line": 31,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -443,7 +485,7 @@
},
{
"id": 1,
"transaction_id": "2c4c2c0e801a4f2e5225b7292e6ac216",
"transaction_id": "425e0d0e256e24cddcbad886738d57bb",
"date": "2022-01-01T00:00:00Z",
"payee": "Salary",
"account": "Income:Salary:Acme",
@ -453,8 +495,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 23,
"transaction_end_line": 26,
"transaction_begin_line": 24,
"transaction_end_line": 27,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -464,7 +506,7 @@
},
{
"id": 2,
"transaction_id": "2c4c2c0e801a4f2e5225b7292e6ac216",
"transaction_id": "425e0d0e256e24cddcbad886738d57bb",
"date": "2022-01-01T00:00:00Z",
"payee": "Salary",
"account": "Assets:Checking",
@ -474,8 +516,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 23,
"transaction_end_line": 26,
"transaction_begin_line": 24,
"transaction_end_line": 27,
"file_name": "main.beancount",
"forecast": false,
"note": "",

View File

@ -9,6 +9,7 @@
1970-01-01 open Income:Salary:Acme
1970-01-01 open Assets:Coinbase:BTC
1970-01-01 open Assets:Dollar
1970-01-01 open Equity:OpeningBalances
1970-01-01 commodity AAPL
1970-01-01 commodity ABNB
@ -67,3 +68,6 @@
Assets:Checking
2022/01/31 balance Assets:Equity:NIFTY 800 NIFTY
2022/01/30 pad Assets:Checking Equity:OpeningBalances
2022/01/31 balance Assets:Checking 21000 INR

View File

@ -263,85 +263,85 @@
},
{
"date": "2022-01-30T00:00:00Z",
"investmentAmount": 228795.183232,
"investmentAmount": 229867.183232,
"withdrawalAmount": 128895.183232,
"gainAmount": -34.58866180237056,
"balanceAmount": 99865.41133819763,
"balanceAmount": 100937.41133819763,
"balanceUnits": 0,
"netInvestmentAmount": 99900
"netInvestmentAmount": 100972
},
{
"date": "2022-01-31T00:00:00Z",
"investmentAmount": 228795.183232,
"investmentAmount": 229867.183232,
"withdrawalAmount": 128895.183232,
"gainAmount": 965.4113381976294,
"balanceAmount": 100865.41133819763,
"balanceAmount": 101937.41133819763,
"balanceUnits": 0,
"netInvestmentAmount": 99900
"netInvestmentAmount": 100972
},
{
"date": "2022-02-01T00:00:00Z",
"investmentAmount": 228795.183232,
"investmentAmount": 229867.183232,
"withdrawalAmount": 128895.183232,
"gainAmount": 965.4113381976294,
"balanceAmount": 100865.41133819763,
"balanceAmount": 101937.41133819763,
"balanceUnits": 0,
"netInvestmentAmount": 99900
"netInvestmentAmount": 100972
},
{
"date": "2022-02-02T00:00:00Z",
"investmentAmount": 228795.183232,
"investmentAmount": 229867.183232,
"withdrawalAmount": 128895.183232,
"gainAmount": 965.4113381976294,
"balanceAmount": 100865.41133819763,
"balanceAmount": 101937.41133819763,
"balanceUnits": 0,
"netInvestmentAmount": 99900
"netInvestmentAmount": 100972
},
{
"date": "2022-02-03T00:00:00Z",
"investmentAmount": 228795.183232,
"investmentAmount": 229867.183232,
"withdrawalAmount": 128895.183232,
"gainAmount": 965.4113381976294,
"balanceAmount": 100865.41133819763,
"balanceAmount": 101937.41133819763,
"balanceUnits": 0,
"netInvestmentAmount": 99900
"netInvestmentAmount": 100972
},
{
"date": "2022-02-04T00:00:00Z",
"investmentAmount": 228795.183232,
"investmentAmount": 229867.183232,
"withdrawalAmount": 128895.183232,
"gainAmount": 965.4113381976294,
"balanceAmount": 100865.41133819763,
"balanceAmount": 101937.41133819763,
"balanceUnits": 0,
"netInvestmentAmount": 99900
"netInvestmentAmount": 100972
},
{
"date": "2022-02-05T00:00:00Z",
"investmentAmount": 228795.183232,
"investmentAmount": 229867.183232,
"withdrawalAmount": 128895.183232,
"gainAmount": 965.4113381976294,
"balanceAmount": 100865.41133819763,
"balanceAmount": 101937.41133819763,
"balanceUnits": 0,
"netInvestmentAmount": 99900
"netInvestmentAmount": 100972
},
{
"date": "2022-02-06T00:00:00Z",
"investmentAmount": 228795.183232,
"investmentAmount": 229867.183232,
"withdrawalAmount": 128895.183232,
"gainAmount": 965.4113381976294,
"balanceAmount": 100865.41133819763,
"balanceAmount": 101937.41133819763,
"balanceUnits": 0,
"netInvestmentAmount": 99900
"netInvestmentAmount": 100972
},
{
"date": "2022-02-07T00:00:00Z",
"investmentAmount": 228795.183232,
"investmentAmount": 229867.183232,
"withdrawalAmount": 128895.183232,
"gainAmount": 1183.8113381976295,
"balanceAmount": 101083.81133819763,
"balanceAmount": 102155.81133819763,
"balanceUnits": 0,
"netInvestmentAmount": 99900
"netInvestmentAmount": 100972
}
],
"xirr": 12.18
"xirr": 12.15
}

View File

@ -1,13 +1,13 @@
{
"transactions": [
{
"id": "f928b4a8eec8c55346755b616a232f13",
"id": "7de56ebcddef5b0fd2525c04178705d3",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"postings": [
{
"id": 23,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 25,
"transaction_id": "7de56ebcddef5b0fd2525c04178705d3",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"account": "Assets:Checking",
@ -17,8 +17,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 65,
"transaction_end_line": 68,
"transaction_begin_line": 66,
"transaction_end_line": 69,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -27,8 +27,8 @@
"balance": 0
},
{
"id": 22,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 24,
"transaction_id": "7de56ebcddef5b0fd2525c04178705d3",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"account": "Income:Interest:Checking",
@ -38,8 +38,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 65,
"transaction_end_line": 68,
"transaction_begin_line": 66,
"transaction_end_line": 69,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -50,19 +50,74 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 65,
"endLine": 68,
"beginLine": 66,
"endLine": 69,
"fileName": "main.beancount",
"note": ""
},
{
"id": "f206938e60d684dd02770127f2dfc424",
"id": "3262b6a59ca5bc147ceb6f7ee90955c7",
"date": "2022-01-30T00:00:00Z",
"payee": "(Padding inserted for Balance of 21000 INR for difference 1072.7 INR)",
"postings": [
{
"id": 22,
"transaction_id": "3262b6a59ca5bc147ceb6f7ee90955c7",
"date": "2022-01-30T00:00:00Z",
"payee": "(Padding inserted for Balance of 21000 INR for difference 1072.7 INR)",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": 1072.7,
"amount": 1072,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 0,
"transaction_end_line": 1,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 23,
"transaction_id": "3262b6a59ca5bc147ceb6f7ee90955c7",
"date": "2022-01-30T00:00:00Z",
"payee": "(Padding inserted for Balance of 21000 INR for difference 1072.7 INR)",
"account": "Equity:OpeningBalances",
"commodity": "INR",
"quantity": -1072.7,
"amount": -1072,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 0,
"transaction_end_line": 1,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 0,
"endLine": 1,
"fileName": "main.beancount",
"note": ""
},
{
"id": "6bf2d0bd8cc5cc3ecfec78ecc069a14d",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"postings": [
{
"id": 20,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"transaction_id": "6bf2d0bd8cc5cc3ecfec78ecc069a14d",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Coinbase:BTC",
@ -72,8 +127,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 59,
"transaction_end_line": 62,
"transaction_begin_line": 60,
"transaction_end_line": 63,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -83,7 +138,7 @@
},
{
"id": 21,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"transaction_id": "6bf2d0bd8cc5cc3ecfec78ecc069a14d",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Checking",
@ -93,8 +148,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 59,
"transaction_end_line": 62,
"transaction_begin_line": 60,
"transaction_end_line": 63,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -105,116 +160,19 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 59,
"endLine": 62,
"beginLine": 60,
"endLine": 63,
"fileName": "main.beancount",
"note": ""
},
{
"id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"postings": [
{
"id": 18,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 16,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
"quantity": 100,
"amount": 100,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 19,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -10,
"amount": -804.42048,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 17,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -100,
"amount": -100,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 54,
"endLine": 58,
"fileName": "main.beancount",
"note": ""
},
{
"id": "918670fa710ecf6ae9ccc8e6eee56def",
"id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"postings": [
{
"id": 15,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Checking",
@ -224,8 +182,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -235,7 +193,7 @@
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
@ -245,8 +203,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -256,7 +214,7 @@
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"transaction_id": "cd3f8d42555f448182a3cf8d5fbc59d5",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
@ -266,8 +224,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 47,
"transaction_end_line": 51,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -278,19 +236,116 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 47,
"endLine": 51,
"beginLine": 48,
"endLine": 52,
"fileName": "main.beancount",
"note": ""
},
{
"id": "45de345242de44d435470249ade015b0",
"id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"postings": [
{
"id": 18,
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 16,
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
"quantity": 100,
"amount": 100,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 19,
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -10,
"amount": -804.42048,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 17,
"transaction_id": "4bb9978f0b460e697351755e71548110",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -100,
"amount": -100,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 55,
"transaction_end_line": 59,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 55,
"endLine": 59,
"fileName": "main.beancount",
"note": ""
},
{
"id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"postings": [
{
"id": 9,
"transaction_id": "45de345242de44d435470249ade015b0",
"transaction_id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"account": "Assets:Equity:ABNB",
@ -300,8 +355,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 39,
"transaction_end_line": 42,
"transaction_begin_line": 40,
"transaction_end_line": 43,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -311,7 +366,7 @@
},
{
"id": 10,
"transaction_id": "45de345242de44d435470249ade015b0",
"transaction_id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"account": "Assets:Checking",
@ -321,8 +376,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 39,
"transaction_end_line": 42,
"transaction_begin_line": 40,
"transaction_end_line": 43,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -333,19 +388,19 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 39,
"endLine": 42,
"beginLine": 40,
"endLine": 43,
"fileName": "main.beancount",
"note": ""
},
{
"id": "190f6e27b6cd79f8c02583980e33d850",
"id": "6dbec46bcfb775a8e4fad777b9050a4c",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"postings": [
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"transaction_id": "6dbec46bcfb775a8e4fad777b9050a4c",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
@ -355,8 +410,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -366,7 +421,7 @@
},
{
"id": 12,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"transaction_id": "6dbec46bcfb775a8e4fad777b9050a4c",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Checking",
@ -376,8 +431,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -388,19 +443,19 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 43,
"endLine": 46,
"beginLine": 44,
"endLine": 47,
"fileName": "main.beancount",
"note": ""
},
{
"id": "baecffd15f1d49f81b1a38465edd6981",
"id": "d14e425ba0d573ba0388d100bda5eb80",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"postings": [
{
"id": 8,
"transaction_id": "baecffd15f1d49f81b1a38465edd6981",
"transaction_id": "d14e425ba0d573ba0388d100bda5eb80",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"account": "Assets:Equity:NIFTY",
@ -410,8 +465,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 36,
"transaction_end_line": 39,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -421,7 +476,7 @@
},
{
"id": 7,
"transaction_id": "baecffd15f1d49f81b1a38465edd6981",
"transaction_id": "d14e425ba0d573ba0388d100bda5eb80",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"account": "Assets:Checking",
@ -431,8 +486,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 36,
"transaction_end_line": 39,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -443,19 +498,19 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 35,
"endLine": 38,
"beginLine": 36,
"endLine": 39,
"fileName": "main.beancount",
"note": ""
},
{
"id": "ad1e86e51a1580c3d5f7ef104adea932",
"id": "9c2c3e31540bad2f24f873c46def370b",
"date": "2022-01-06T00:00:00Z",
"payee": "Bonus",
"postings": [
{
"id": 6,
"transaction_id": "ad1e86e51a1580c3d5f7ef104adea932",
"transaction_id": "9c2c3e31540bad2f24f873c46def370b",
"date": "2022-01-06T00:00:00Z",
"payee": "Bonus",
"account": "Assets:Checking",
@ -465,8 +520,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 31,
"transaction_end_line": 34,
"transaction_begin_line": 32,
"transaction_end_line": 35,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -476,7 +531,7 @@
},
{
"id": 5,
"transaction_id": "ad1e86e51a1580c3d5f7ef104adea932",
"transaction_id": "9c2c3e31540bad2f24f873c46def370b",
"date": "2022-01-06T00:00:00Z",
"payee": "Bonus",
"account": "Income:Salary:Acme",
@ -486,8 +541,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 31,
"transaction_end_line": 34,
"transaction_begin_line": 32,
"transaction_end_line": 35,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -498,19 +553,19 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 31,
"endLine": 34,
"beginLine": 32,
"endLine": 35,
"fileName": "main.beancount",
"note": ""
},
{
"id": "1f8cde847fd28fa32bdec426b998ad40",
"id": "e394cb30478d81c4c513297a4a9ef020",
"date": "2022-01-03T00:00:00Z",
"payee": "Rent",
"postings": [
{
"id": 4,
"transaction_id": "1f8cde847fd28fa32bdec426b998ad40",
"transaction_id": "e394cb30478d81c4c513297a4a9ef020",
"date": "2022-01-03T00:00:00Z",
"payee": "Rent",
"account": "Expenses:Rent",
@ -520,8 +575,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 27,
"transaction_end_line": 30,
"transaction_begin_line": 28,
"transaction_end_line": 31,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -531,7 +586,7 @@
},
{
"id": 3,
"transaction_id": "1f8cde847fd28fa32bdec426b998ad40",
"transaction_id": "e394cb30478d81c4c513297a4a9ef020",
"date": "2022-01-03T00:00:00Z",
"payee": "Rent",
"account": "Assets:Checking",
@ -541,8 +596,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 27,
"transaction_end_line": 30,
"transaction_begin_line": 28,
"transaction_end_line": 31,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -553,19 +608,19 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 27,
"endLine": 30,
"beginLine": 28,
"endLine": 31,
"fileName": "main.beancount",
"note": ""
},
{
"id": "2c4c2c0e801a4f2e5225b7292e6ac216",
"id": "425e0d0e256e24cddcbad886738d57bb",
"date": "2022-01-01T00:00:00Z",
"payee": "Salary",
"postings": [
{
"id": 2,
"transaction_id": "2c4c2c0e801a4f2e5225b7292e6ac216",
"transaction_id": "425e0d0e256e24cddcbad886738d57bb",
"date": "2022-01-01T00:00:00Z",
"payee": "Salary",
"account": "Assets:Checking",
@ -575,8 +630,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 23,
"transaction_end_line": 26,
"transaction_begin_line": 24,
"transaction_end_line": 27,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -586,7 +641,7 @@
},
{
"id": 1,
"transaction_id": "2c4c2c0e801a4f2e5225b7292e6ac216",
"transaction_id": "425e0d0e256e24cddcbad886738d57bb",
"date": "2022-01-01T00:00:00Z",
"payee": "Salary",
"account": "Income:Salary:Acme",
@ -596,8 +651,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 23,
"transaction_end_line": 26,
"transaction_begin_line": 24,
"transaction_end_line": 27,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -608,8 +663,8 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 23,
"endLine": 26,
"beginLine": 24,
"endLine": 27,
"fileName": "main.beancount",
"note": ""
}