Compare commits

...

3 Commits

Author SHA1 Message Date
Anantha Kumaran 62401a43d4 adjust dates 2024-02-11 10:01:41 +05:30
Anantha Kumaran c1c0f389c9 [sheets] make the sheets directory configurable 2024-02-11 10:01:41 +05:30
Anantha Kumaran c7b377d482 [beancount] handle pad instruction
pad transactions come with 0 as the begin line, make sure we don't go
negative

fixes #146 #173
2024-02-11 09:04:11 +05:30
43 changed files with 1762 additions and 1582 deletions

View File

@ -42,6 +42,12 @@ journal_path: /home/john/Documents/paisa/main.ledger
# REQUIRED
db_path: /home/john/Documents/paisa/paisa.db
# Path to your sheets directory. It can be absolute or relative to the
# configuration file. The sheets directory will be created if it does not exist.
# By default it will be created in the same directory as the journal file.
# OPTIONAL, DEFAULT: same directory as journal file.
sheets_directory: sheets
# The ledger client to use
# OPTIONAL, DEFAULT: ledger, ENUM: ledger, hledger, beancount
ledger_cli: ledger

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

@ -128,6 +128,7 @@ type CreditCard struct {
type Config struct {
JournalPath string `json:"journal_path" yaml:"journal_path"`
DBPath string `json:"db_path" yaml:"db_path"`
SheetsDirectory string `json:"sheets_directory" yaml:"sheets_directory"`
Readonly bool `json:"readonly" yaml:"readonly"`
LedgerCli string `json:"ledger_cli" yaml:"ledger_cli"`
DefaultCurrency string `json:"default_currency" yaml:"default_currency"`
@ -349,7 +350,21 @@ func GetJournalPath() string {
}
func GetSheetDir() string {
return filepath.Dir(GetJournalPath())
if config.SheetsDirectory == "" {
return filepath.Dir(GetJournalPath())
}
dir := config.SheetsDirectory
if !filepath.IsAbs(config.SheetsDirectory) {
dir = filepath.Join(GetConfigDir(), config.SheetsDirectory)
}
err := os.MkdirAll(dir, 0750)
if err != nil {
log.Fatal("Failed to create sheets directory", err)
}
return dir
}
func GetDBPath() string {

View File

@ -13,6 +13,10 @@
"type": "string",
"description": "Path to your database file. It can be absolute or relative to the configuration file. The database file will be created if it does not exist."
},
"sheets_directory": {
"type": "string",
"description": "Path to your sheets directory. It can be absolute or relative to the configuration file. The sheets directory will be created if it does not exist. By default it will be created in the same directory as the journal file."
},
"readonly": {
"type": "boolean",
"description": "Run in readonly mode.",

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

@ -130,7 +130,7 @@ func (q *Query) All() []posting.Posting {
var postings []posting.Posting
q.context = q.context.Where("forecast = ?", q.includeForecast)
result := q.context.Order("date " + q.order + ", amount desc").Find(&postings)
result := q.context.Order("date " + q.order + ", amount desc, account asc").Find(&postings)
if result.Error != nil {
log.Fatal(result.Error)
}
@ -140,7 +140,7 @@ func (q *Query) All() []posting.Posting {
func (q *Query) First() *posting.Posting {
var posting posting.Posting
q.context = q.context.Where("forecast = ?", q.includeForecast)
result := q.context.Order("date " + q.order + ", amount desc").First(&posting)
result := q.context.Order("date " + q.order + ", amount desc, account asc").First(&posting)
if result.Error != nil {
if errors.Is(result.Error, gorm.ErrRecordNotFound) {

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

@ -7,6 +7,7 @@
"config": {
"journal_path": "main.ledger",
"db_path": "paisa.db",
"sheets_directory": "",
"readonly": false,
"ledger_cli": "hledger",
"default_currency": "EUR",
@ -604,6 +605,10 @@
],
"type": "array"
},
"sheets_directory": {
"description": "Path to your sheets directory. It can be absolute or relative to the configuration file. The sheets directory will be created if it does not exist. By default it will be created in the same directory as the journal file.",
"type": "string"
},
"strict": {
"description": "When strict mode is enabled, all the accounts and commodities should be defined before use.",
"enum": [

View File

@ -7,6 +7,7 @@
"config": {
"journal_path": "main.ledger",
"db_path": "paisa.db",
"sheets_directory": "",
"readonly": false,
"ledger_cli": "ledger",
"default_currency": "EUR",
@ -604,6 +605,10 @@
],
"type": "array"
},
"sheets_directory": {
"description": "Path to your sheets directory. It can be absolute or relative to the configuration file. The sheets directory will be created if it does not exist. By default it will be created in the same directory as the journal file.",
"type": "string"
},
"strict": {
"description": "When strict mode is enabled, all the accounts and commodities should be defined before use.",
"enum": [

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",
@ -105,94 +105,69 @@
"Assets:Checking": {
"date": "2022-01-08T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 11974.6829928704
},
"Assets:Equity:ABNB": {
"date": "2022-01-08T00:00:00Z",
"account": "Assets:Equity:ABNB",
"market_amount": 7963.762752
},
"Assets:Equity:NIFTY": {
"date": "2022-01-08T00:00:00Z",
"account": "Assets:Equity:NIFTY",
"market_amount": 80000
}
},
{
"Assets:Checking": {
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 1974.6829928704
},
"Assets:Equity:AAPL": {
"date": "2022-01-08T00:00:00Z",
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Equity:AAPL",
"market_amount": 10000
},
"Assets:Equity:ABNB": {
"date": "2022-01-08T00:00:00Z",
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Equity:ABNB",
"market_amount": 7963.762752
},
"Assets:Equity:NIFTY": {
"date": "2022-01-08T00:00:00Z",
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Equity:NIFTY",
"market_amount": 80000
}
},
{
"Assets:Checking": {
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 12001.6829928704
},
"Assets:Equity:AAPL": {
"date": "2022-01-10T00:00:00Z",
"account": "Assets:Equity:AAPL",
"market_amount": 0
},
"Assets:Equity:ABNB": {
"date": "2022-01-10T00:00:00Z",
"account": "Assets:Equity:ABNB",
"market_amount": 7963.762752
},
"Assets:Equity:NIFTY": {
"date": "2022-01-10T00:00:00Z",
"account": "Assets:Equity:NIFTY",
"market_amount": 80000
}
},
{
"Assets:Checking": {
"date": "2022-01-11T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 11097.2625128704
},
"Assets:Dollar": {
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Dollar",
"market_amount": 804.42048
},
"Assets:Equity:AAPL": {
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Equity:AAPL",
"market_amount": 0
},
"Assets:Equity:ABNB": {
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Equity:ABNB",
"market_amount": 7963.762752
},
"Assets:Equity:NIFTY": {
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Equity:NIFTY",
"market_amount": 80000
}
},
{
"Assets:Checking": {
"date": "2022-01-10T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 11097.22810619763
},
"Assets:Coinbase:BTC": {
"date": "2022-01-10T00:00:00Z",
"account": "Assets:Coinbase:BTC",
"market_amount": 0
},
"Assets:Dollar": {
"date": "2022-01-10T00:00:00Z",
"account": "Assets:Dollar",
"market_amount": 804.42048
},
"Assets:Equity:AAPL": {
"date": "2022-01-10T00:00:00Z",
"account": "Assets:Equity:AAPL",
"market_amount": 0
},
"Assets:Equity:ABNB": {
"date": "2022-01-10T00:00:00Z",
"account": "Assets:Equity:ABNB",
"market_amount": 7963.762752
},
"Assets:Equity:NIFTY": {
"date": "2022-01-10T00:00:00Z",
"account": "Assets:Equity:NIFTY",
"market_amount": 80000
}
},
{
"Assets:Checking": {
"date": "2022-01-11T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 11097.22810619763
},
"Assets:Coinbase:BTC": {
"date": "2022-01-11T00:00:00Z",
"account": "Assets:Coinbase:BTC",
"market_amount": 0
},
"Assets:Dollar": {
"date": "2022-01-11T00:00:00Z",
"account": "Assets:Dollar",
@ -762,7 +737,7 @@
"Assets:Checking": {
"date": "2022-01-29T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 11097.22810619763
"market_amount": 12169.22810619763
},
"Assets:Coinbase:BTC": {
"date": "2022-01-29T00:00:00Z",
@ -794,7 +769,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 +801,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 +833,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 +865,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 +897,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 +929,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 +961,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 +993,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 +1025,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.14,
"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.27,
"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,11 +10,13 @@
"Expenses:Charges",
"Assets:Dollar",
"Assets:Coinbase:BTC",
"Equity:OpeningBalances",
"Income:Interest:Checking"
],
"config": {
"journal_path": "main.beancount",
"db_path": "paisa.db",
"sheets_directory": "",
"readonly": false,
"ledger_cli": "beancount",
"default_currency": "INR",
@ -612,6 +614,10 @@
],
"type": "array"
},
"sheets_directory": {
"description": "Path to your sheets directory. It can be absolute or relative to the configuration file. The sheets directory will be created if it does not exist. By default it will be created in the same directory as the journal file.",
"type": "string"
},
"strict": {
"description": "When strict mode is enabled, all the accounts and commodities should be defined before use.",
"enum": [

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,8 +54,8 @@
},
{
"id": 16,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
@ -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.14
},
"transactionSequences": [],
"transactions": [
{
"id": "f928b4a8eec8c55346755b616a232f13",
"id": "5e31c18d8b6da4f8b27ee2eee680e3ed",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"postings": [
{
"id": 23,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 25,
"transaction_id": "5e31c18d8b6da4f8b27ee2eee680e3ed",
"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": 69,
"transaction_end_line": 72,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -117,8 +117,8 @@
"balance": 0
},
{
"id": 22,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 24,
"transaction_id": "5e31c18d8b6da4f8b27ee2eee680e3ed",
"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": 69,
"transaction_end_line": 72,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -140,30 +140,30 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 65,
"endLine": 68,
"beginLine": 69,
"endLine": 72,
"fileName": "main.beancount",
"note": ""
},
{
"id": "f206938e60d684dd02770127f2dfc424",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"id": "ab7ce9cc56fadc16bd1ed6e908d9aacf",
"date": "2022-01-29T00:00:00Z",
"payee": "(Padding inserted for Balance of 21000 INR for difference 1072.7 INR)",
"postings": [
{
"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": "ab7ce9cc56fadc16bd1ed6e908d9aacf",
"date": "2022-01-29T00: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": "",
@ -172,19 +172,19 @@
"balance": 0
},
{
"id": 21,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -0.00042772,
"amount": 0,
"status": "cleared",
"id": 23,
"transaction_id": "ab7ce9cc56fadc16bd1ed6e908d9aacf",
"date": "2022-01-29T00: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": 59,
"transaction_end_line": 62,
"transaction_begin_line": 0,
"transaction_end_line": 1,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -195,20 +195,75 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 59,
"endLine": 62,
"beginLine": 0,
"endLine": 1,
"fileName": "main.beancount",
"note": ""
},
{
"id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"id": "94f04e44ad603231840b705870e6467a",
"date": "2022-01-12T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"postings": [
{
"id": 21,
"transaction_id": "94f04e44ad603231840b705870e6467a",
"date": "2022-01-12T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -0.00042772,
"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": 0
},
{
"id": 20,
"transaction_id": "94f04e44ad603231840b705870e6467a",
"date": "2022-01-12T00: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": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 60,
"endLine": 63,
"fileName": "main.beancount",
"note": ""
},
{
"id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"postings": [
{
"id": 18,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
@ -217,8 +272,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": "",
@ -228,8 +283,8 @@
},
{
"id": 16,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
@ -238,8 +293,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": "",
@ -249,8 +304,8 @@
},
{
"id": 19,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "USD",
@ -259,8 +314,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": "",
@ -270,8 +325,8 @@
},
{
"id": 17,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "INR",
@ -280,8 +335,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": "",
@ -292,20 +347,20 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 54,
"endLine": 58,
"beginLine": 55,
"endLine": 59,
"fileName": "main.beancount",
"note": ""
},
{
"id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"postings": [
{
"id": 15,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Checking",
"commodity": "INR",
@ -314,8 +369,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,8 +380,8 @@
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
@ -335,8 +390,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,8 +401,8 @@
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -356,8 +411,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,75 +423,20 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 47,
"endLine": 51,
"beginLine": 48,
"endLine": 52,
"fileName": "main.beancount",
"note": ""
},
{
"id": "45de345242de44d435470249ade015b0",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"postings": [
{
"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": 0,
"balance": 0
},
{
"id": 10,
"transaction_id": "45de345242de44d435470249ade015b0",
"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": 39,
"transaction_end_line": 42,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 39,
"endLine": 42,
"fileName": "main.beancount",
"note": ""
},
{
"id": "190f6e27b6cd79f8c02583980e33d850",
"date": "2022-01-08T00:00:00Z",
"id": "bb27c9f651527e62d2528e13b9fb7c8b",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"postings": [
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"date": "2022-01-08T00:00:00Z",
"transaction_id": "bb27c9f651527e62d2528e13b9fb7c8b",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -445,8 +445,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,8 +456,8 @@
},
{
"id": 12,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"date": "2022-01-08T00:00:00Z",
"transaction_id": "bb27c9f651527e62d2528e13b9fb7c8b",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Checking",
"commodity": "INR",
@ -466,8 +466,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 +478,74 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 43,
"endLine": 46,
"beginLine": 44,
"endLine": 47,
"fileName": "main.beancount",
"note": ""
},
{
"id": "baecffd15f1d49f81b1a38465edd6981",
"id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"postings": [
{
"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": 0,
"balance": 0
},
{
"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": 0,
"balance": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 40,
"endLine": 43,
"fileName": "main.beancount",
"note": ""
},
{
"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,8 +23,8 @@
},
{
"id": 16,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
@ -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": "",
@ -55,7 +55,7 @@
"name": "Assets:Coinbase:BTC"
},
{
"id": 10,
"id": 13,
"name": "Assets:Dollar"
},
{
@ -70,12 +70,16 @@
"id": 7,
"name": "Assets:Equity:NIFTY"
},
{
"id": 16,
"name": "Equity:OpeningBalances"
},
{
"id": 5,
"name": "Expenses"
},
{
"id": 11,
"id": 14,
"name": "Expenses:Charges"
},
{
@ -87,23 +91,23 @@
"name": "Income"
},
{
"id": 12,
"id": 10,
"name": "Income:CapitalGains"
},
{
"id": 13,
"id": 11,
"name": "Income:CapitalGains:Equity"
},
{
"id": 14,
"id": 12,
"name": "Income:CapitalGains:Equity:AAPL"
},
{
"id": 16,
"id": 17,
"name": "Income:Interest"
},
{
"id": 17,
"id": 18,
"name": "Income:Interest:Checking"
},
{
@ -138,7 +142,7 @@
},
{
"source": 1,
"target": 10,
"target": 13,
"value": 804.42048
},
{
@ -163,7 +167,7 @@
},
{
"source": 5,
"target": 11,
"target": 14,
"value": 100
},
{
@ -172,28 +176,33 @@
"value": 10000
},
{
"source": 12,
"source": 10,
"target": 2,
"value": 27
},
{
"source": 13,
"target": 12,
"source": 11,
"target": 10,
"value": 27
},
{
"source": 14,
"target": 13,
"source": 12,
"target": 11,
"value": 27
},
{
"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,8 +234,8 @@
},
{
"id": 16,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
@ -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,8 +301,8 @@
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
@ -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": "5e31c18d8b6da4f8b27ee2eee680e3ed",
"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": 69,
"transaction_end_line": 72,
"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,8 +389,8 @@
},
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"date": "2022-01-08T00:00:00Z",
"transaction_id": "bb27c9f651527e62d2528e13b9fb7c8b",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -390,29 +399,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"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,
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -422,8 +410,8 @@
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -432,8 +420,29 @@
"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": 0,
"balance": 0
},
{
"id": 18,
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00: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": "",
@ -443,8 +452,8 @@
},
{
"id": 20,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"date": "2022-01-10T00:00:00Z",
"transaction_id": "94f04e44ad603231840b705870e6467a",
"date": "2022-01-12T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Coinbase:BTC",
"commodity": "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,8 +501,8 @@
},
{
"id": 16,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
@ -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,8 +568,8 @@
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
@ -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": "5e31c18d8b6da4f8b27ee2eee680e3ed",
"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": 69,
"transaction_end_line": 72,
"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,8 +656,8 @@
},
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"date": "2022-01-08T00:00:00Z",
"transaction_id": "bb27c9f651527e62d2528e13b9fb7c8b",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -657,29 +666,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"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,
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -689,8 +677,8 @@
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -699,8 +687,29 @@
"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": 0,
"balance": 0
},
{
"id": 18,
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00: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": "",
@ -710,8 +719,8 @@
},
{
"id": 20,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"date": "2022-01-10T00:00:00Z",
"transaction_id": "94f04e44ad603231840b705870e6467a",
"date": "2022-01-12T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Coinbase:BTC",
"commodity": "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-09 txn \"Buy Apple\"\n Assets:Equity:AAPL 100 AAPL {100 INR}\n Assets:Checking\n\n2022-01-10 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-11 txn \"Multi Currency Debit\"\n Expenses:Charges 100 INR\n Assets:Dollar 10 USD\n Assets:Checking\n\n2022-01-12 txn \"Purchased 0.00000001 BTC\"\n Assets:Coinbase:BTC 0.00000001 BTC {42772 USD}\n Assets:Checking -0.00042772 USD\n\n2022/01/29 pad Assets:Checking Equity:OpeningBalances\n2022/01/30 balance Assets:Checking 21000 INR\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",
"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,8 +15,8 @@
"postings": [
{
"id": 20,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"date": "2022-01-10T00:00:00Z",
"transaction_id": "94f04e44ad603231840b705870e6467a",
"date": "2022-01-12T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Coinbase:BTC",
"commodity": "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,8 +51,8 @@
"postings": [
{
"id": 18,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
@ -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,8 +87,8 @@
"postings": [
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"date": "2022-01-08T00:00:00Z",
"transaction_id": "bb27c9f651527e62d2528e13b9fb7c8b",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "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,8 +108,8 @@
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
@ -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,8 +129,8 @@
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "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,8 +47,8 @@
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
@ -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": "5e31c18d8b6da4f8b27ee2eee680e3ed",
"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": 69,
"transaction_end_line": 72,
"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,8 +144,8 @@
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
@ -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": "5e31c18d8b6da4f8b27ee2eee680e3ed",
"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": 69,
"transaction_end_line": 72,
"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,8 +44,8 @@
},
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"date": "2022-01-08T00:00:00Z",
"transaction_id": "bb27c9f651527e62d2528e13b9fb7c8b",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -54,29 +54,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"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,
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -86,8 +65,8 @@
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -96,8 +75,29 @@
"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": 0,
"balance": 0
},
{
"id": 18,
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00: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": "",
@ -107,8 +107,8 @@
},
{
"id": 20,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"date": "2022-01-10T00:00:00Z",
"transaction_id": "94f04e44ad603231840b705870e6467a",
"date": "2022-01-12T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Coinbase:BTC",
"commodity": "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,8 +176,8 @@
},
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"date": "2022-01-08T00:00:00Z",
"transaction_id": "bb27c9f651527e62d2528e13b9fb7c8b",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -186,29 +186,8 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"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,
"transaction_begin_line": 44,
"transaction_end_line": 47,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -218,8 +197,8 @@
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -228,8 +207,29 @@
"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": 0,
"balance": 0
},
{
"id": 18,
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00: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": "",
@ -239,8 +239,8 @@
},
{
"id": 20,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"date": "2022-01-10T00:00:00Z",
"transaction_id": "94f04e44ad603231840b705870e6467a",
"date": "2022-01-12T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Coinbase:BTC",
"commodity": "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": "5e31c18d8b6da4f8b27ee2eee680e3ed",
"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": 69,
"transaction_end_line": 72,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -22,8 +22,8 @@
"balance": -1000
},
{
"id": 23,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 25,
"transaction_id": "5e31c18d8b6da4f8b27ee2eee680e3ed",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"account": "Assets:Checking",
@ -33,40 +33,61 @@
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 65,
"transaction_end_line": 68,
"transaction_begin_line": 69,
"transaction_end_line": 72,
"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": "ab7ce9cc56fadc16bd1ed6e908d9aacf",
"date": "2022-01-29T00: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": "ab7ce9cc56fadc16bd1ed6e908d9aacf",
"date": "2022-01-29T00: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",
"date": "2022-01-10T00:00:00Z",
"transaction_id": "94f04e44ad603231840b705870e6467a",
"date": "2022-01-12T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Checking",
"commodity": "USD",
@ -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": "",
@ -85,30 +106,51 @@
"balance": 19817.53437228
},
{
"id": 15,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": 10027.3,
"amount": 10027,
"id": 20,
"transaction_id": "94f04e44ad603231840b705870e6467a",
"date": "2022-01-12T00: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": 47,
"transaction_end_line": 51,
"transaction_begin_line": 60,
"transaction_end_line": 63,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 10027,
"balance": 19927.5348
"market_amount": 0,
"balance": 1e-8
},
{
"id": 17,
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00: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": -100,
"balance": 19827.5348
},
{
"id": 18,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
@ -117,8 +159,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": "",
@ -128,8 +170,8 @@
},
{
"id": 16,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
@ -138,8 +180,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": "",
@ -149,8 +191,8 @@
},
{
"id": 19,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "USD",
@ -159,8 +201,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": "",
@ -168,31 +210,10 @@
"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",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -201,8 +222,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": "",
@ -211,29 +232,92 @@
"balance": 0
},
{
"id": 17,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"id": 14,
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
"quantity": -100,
"amount": -100,
"quantity": -27.3,
"amount": -27,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 54,
"transaction_end_line": 58,
"transaction_begin_line": 48,
"transaction_end_line": 52,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -100,
"balance": 19827.5348
"market_amount": -27,
"balance": -27.3
},
{
"id": 15,
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": 10027.3,
"amount": 10027,
"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": 10027,
"balance": 19927.5348
},
{
"id": 11,
"transaction_id": "bb27c9f651527e62d2528e13b9fb7c8b",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
"quantity": 100,
"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": 100
},
{
"id": 12,
"transaction_id": "bb27c9f651527e62d2528e13b9fb7c8b",
"date": "2022-01-09T00: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": 9900.2348
},
{
"id": 10,
"transaction_id": "45de345242de44d435470249ade015b0",
"transaction_id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"account": "Assets:Checking",
@ -243,18 +327,18 @@
"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": "",
"transaction_note": "",
"market_amount": -8025.3170071296,
"balance": 9900.2348
"balance": 19900.2348
},
{
"id": 9,
"transaction_id": "45de345242de44d435470249ade015b0",
"transaction_id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"account": "Assets:Equity:ABNB",
@ -264,8 +348,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": "",
@ -273,51 +357,9 @@
"market_amount": 7963.762752,
"balance": 0.76
},
{
"id": 12,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"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": 43,
"transaction_end_line": 46,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -10000,
"balance": 10000
},
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
"quantity": 100,
"amount": 10000,
"status": "cleared",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 43,
"transaction_end_line": 46,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 10000,
"balance": 100
},
{
"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
@ -40,26 +41,29 @@
Assets:Equity:ABNB 0.76 ABNB {131.27 USD}
Assets:Checking
2022-01-08 txn "Buy Apple"
2022-01-09 txn "Buy Apple"
Assets:Equity:AAPL 100 AAPL {100 INR}
Assets:Checking
2022-01-09 txn "Sell"
2022-01-10 txn "Sell"
Assets:Equity:AAPL -100 AAPL {100 INR} @ 100.273 INR
Income:CapitalGains:Equity:AAPL -27.3 INR
Assets:Checking 10027.3 INR
2022-01-08 price USD 80.442048 INR
2022-01-09 txn "Multi Currency Debit"
2022-01-11 txn "Multi Currency Debit"
Expenses:Charges 100 INR
Assets:Dollar 10 USD
Assets:Checking
2022-01-10 txn "Purchased 0.00000001 BTC"
2022-01-12 txn "Purchased 0.00000001 BTC"
Assets:Coinbase:BTC 0.00000001 BTC {42772 USD}
Assets:Checking -0.00042772 USD
2022/01/29 pad Assets:Checking Equity:OpeningBalances
2022/01/30 balance Assets:Checking 21000 INR
2022-01-31 txn "Interest"
; Global note
; :interest:

View File

@ -65,6 +65,15 @@
},
{
"date": "2022-01-08T00:00:00Z",
"investmentAmount": 207963.762752,
"withdrawalAmount": 107963.762752,
"gainAmount": -61.5542551296,
"balanceAmount": 99938.4457448704,
"balanceUnits": 0,
"netInvestmentAmount": 100000
},
{
"date": "2022-01-09T00:00:00Z",
"investmentAmount": 217963.762752,
"withdrawalAmount": 117963.762752,
"gainAmount": -61.5542551296,
@ -72,30 +81,21 @@
"balanceUnits": 0,
"netInvestmentAmount": 100000
},
{
"date": "2022-01-09T00:00:00Z",
"investmentAmount": 228795.183232,
"withdrawalAmount": 128895.183232,
"gainAmount": -34.5542551296,
"balanceAmount": 99865.4457448704,
"balanceUnits": 0,
"netInvestmentAmount": 99900
},
{
"date": "2022-01-10T00:00:00Z",
"investmentAmount": 228795.183232,
"withdrawalAmount": 128895.183232,
"gainAmount": -34.58866180237056,
"balanceAmount": 99865.41133819763,
"investmentAmount": 227990.762752,
"withdrawalAmount": 127990.762752,
"gainAmount": -34.5542551296,
"balanceAmount": 99965.4457448704,
"balanceUnits": 0,
"netInvestmentAmount": 99900
"netInvestmentAmount": 100000
},
{
"date": "2022-01-11T00:00:00Z",
"investmentAmount": 228795.183232,
"withdrawalAmount": 128895.183232,
"gainAmount": -34.58866180237056,
"balanceAmount": 99865.41133819763,
"gainAmount": -34.5542551296,
"balanceAmount": 99865.4457448704,
"balanceUnits": 0,
"netInvestmentAmount": 99900
},
@ -254,94 +254,94 @@
},
{
"date": "2022-01-29T00: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-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.14
}

View File

@ -1,13 +1,13 @@
{
"transactions": [
{
"id": "f928b4a8eec8c55346755b616a232f13",
"id": "5e31c18d8b6da4f8b27ee2eee680e3ed",
"date": "2022-01-31T00:00:00Z",
"payee": "Interest",
"postings": [
{
"id": 23,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 25,
"transaction_id": "5e31c18d8b6da4f8b27ee2eee680e3ed",
"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": 69,
"transaction_end_line": 72,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -27,8 +27,8 @@
"balance": 0
},
{
"id": 22,
"transaction_id": "f928b4a8eec8c55346755b616a232f13",
"id": 24,
"transaction_id": "5e31c18d8b6da4f8b27ee2eee680e3ed",
"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": 69,
"transaction_end_line": 72,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -50,30 +50,30 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 65,
"endLine": 68,
"beginLine": 69,
"endLine": 72,
"fileName": "main.beancount",
"note": ""
},
{
"id": "f206938e60d684dd02770127f2dfc424",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"id": "ab7ce9cc56fadc16bd1ed6e908d9aacf",
"date": "2022-01-29T00:00:00Z",
"payee": "(Padding inserted for Balance of 21000 INR for difference 1072.7 INR)",
"postings": [
{
"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": "ab7ce9cc56fadc16bd1ed6e908d9aacf",
"date": "2022-01-29T00: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": "",
@ -82,19 +82,19 @@
"balance": 0
},
{
"id": 21,
"transaction_id": "f206938e60d684dd02770127f2dfc424",
"date": "2022-01-10T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -0.00042772,
"amount": 0,
"status": "cleared",
"id": 23,
"transaction_id": "ab7ce9cc56fadc16bd1ed6e908d9aacf",
"date": "2022-01-29T00: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": 59,
"transaction_end_line": 62,
"transaction_begin_line": 0,
"transaction_end_line": 1,
"file_name": "main.beancount",
"forecast": false,
"note": "",
@ -105,20 +105,75 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 59,
"endLine": 62,
"beginLine": 0,
"endLine": 1,
"fileName": "main.beancount",
"note": ""
},
{
"id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"id": "94f04e44ad603231840b705870e6467a",
"date": "2022-01-12T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"postings": [
{
"id": 21,
"transaction_id": "94f04e44ad603231840b705870e6467a",
"date": "2022-01-12T00:00:00Z",
"payee": "Purchased 0.00000001 BTC",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -0.00042772,
"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": 0
},
{
"id": 20,
"transaction_id": "94f04e44ad603231840b705870e6467a",
"date": "2022-01-12T00: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": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 60,
"endLine": 63,
"fileName": "main.beancount",
"note": ""
},
{
"id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"postings": [
{
"id": 18,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
@ -127,8 +182,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": "",
@ -138,8 +193,8 @@
},
{
"id": 16,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
@ -148,8 +203,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": "",
@ -159,8 +214,8 @@
},
{
"id": 19,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "USD",
@ -169,8 +224,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": "",
@ -180,8 +235,8 @@
},
{
"id": 17,
"transaction_id": "ca0abf28144bacf55feee4f01b15164e",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "25cfdd99926f1f27ca89c0eaa4b96a3a",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "INR",
@ -190,8 +245,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": "",
@ -202,20 +257,20 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 54,
"endLine": 58,
"beginLine": 55,
"endLine": 59,
"fileName": "main.beancount",
"note": ""
},
{
"id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"postings": [
{
"id": 15,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Checking",
"commodity": "INR",
@ -224,8 +279,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,8 +290,8 @@
},
{
"id": 14,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
@ -245,8 +300,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,8 +311,8 @@
},
{
"id": 13,
"transaction_id": "918670fa710ecf6ae9ccc8e6eee56def",
"date": "2022-01-09T00:00:00Z",
"transaction_id": "3b252f03f4e42a4cd3861e6b3dc6b8f1",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -266,8 +321,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,75 +333,20 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 47,
"endLine": 51,
"beginLine": 48,
"endLine": 52,
"fileName": "main.beancount",
"note": ""
},
{
"id": "45de345242de44d435470249ade015b0",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"postings": [
{
"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": 0,
"balance": 0
},
{
"id": 10,
"transaction_id": "45de345242de44d435470249ade015b0",
"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": 39,
"transaction_end_line": 42,
"file_name": "main.beancount",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 39,
"endLine": 42,
"fileName": "main.beancount",
"note": ""
},
{
"id": "190f6e27b6cd79f8c02583980e33d850",
"date": "2022-01-08T00:00:00Z",
"id": "bb27c9f651527e62d2528e13b9fb7c8b",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"postings": [
{
"id": 11,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"date": "2022-01-08T00:00:00Z",
"transaction_id": "bb27c9f651527e62d2528e13b9fb7c8b",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -355,8 +355,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,8 +366,8 @@
},
{
"id": 12,
"transaction_id": "190f6e27b6cd79f8c02583980e33d850",
"date": "2022-01-08T00:00:00Z",
"transaction_id": "bb27c9f651527e62d2528e13b9fb7c8b",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Checking",
"commodity": "INR",
@ -376,8 +376,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 +388,74 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 43,
"endLine": 46,
"beginLine": 44,
"endLine": 47,
"fileName": "main.beancount",
"note": ""
},
{
"id": "baecffd15f1d49f81b1a38465edd6981",
"id": "c50a3b3ee30033764df6b4a179e09f8d",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy ABNB",
"postings": [
{
"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": 0,
"balance": 0
},
{
"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": 0,
"balance": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 40,
"endLine": 43,
"fileName": "main.beancount",
"note": ""
},
{
"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": ""
}

View File

@ -14,6 +14,7 @@
"config": {
"journal_path": "main.ledger",
"db_path": "paisa.db",
"sheets_directory": "",
"readonly": false,
"ledger_cli": "hledger",
"default_currency": "INR",
@ -611,6 +612,10 @@
],
"type": "array"
},
"sheets_directory": {
"description": "Path to your sheets directory. It can be absolute or relative to the configuration file. The sheets directory will be created if it does not exist. By default it will be created in the same directory as the journal file.",
"type": "string"
},
"strict": {
"description": "When strict mode is enabled, all the accounts and commodities should be defined before use.",
"enum": [

View File

@ -395,27 +395,6 @@
"market_amount": 0,
"balance": 0
},
{
"id": 12,
"transaction_id": "6",
"date": "2022-01-08T00:00:00Z",
"payee": "Investment 3",
"account": "Assets:Equity:NIFTY",
"commodity": "NIFTY",
"quantity": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 29,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 15,
"transaction_id": "9",
@ -437,6 +416,27 @@
"market_amount": 0,
"balance": 0
},
{
"id": 12,
"transaction_id": "6",
"date": "2022-01-08T00:00:00Z",
"payee": "Investment 3",
"account": "Assets:Equity:NIFTY",
"commodity": "NIFTY",
"quantity": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 29,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 23,
"transaction_id": "11",
@ -704,27 +704,6 @@
"market_amount": 0,
"balance": 0
},
{
"id": 12,
"transaction_id": "6",
"date": "2022-01-08T00:00:00Z",
"payee": "Investment 3",
"account": "Assets:Equity:NIFTY",
"commodity": "NIFTY",
"quantity": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 29,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 15,
"transaction_id": "9",
@ -746,6 +725,27 @@
"market_amount": 0,
"balance": 0
},
{
"id": 12,
"transaction_id": "6",
"date": "2022-01-08T00:00:00Z",
"payee": "Investment 3",
"account": "Assets:Equity:NIFTY",
"commodity": "NIFTY",
"quantity": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 29,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 23,
"transaction_id": "11",

View File

@ -63,27 +63,6 @@
"market_amount": 0,
"balance": 0
},
{
"id": 12,
"transaction_id": "6",
"date": "2022-01-08T00:00:00Z",
"payee": "Investment 3",
"account": "Assets:Equity:NIFTY",
"commodity": "NIFTY",
"quantity": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 29,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 15,
"transaction_id": "9",
@ -105,6 +84,27 @@
"market_amount": 0,
"balance": 0
},
{
"id": 12,
"transaction_id": "6",
"date": "2022-01-08T00:00:00Z",
"payee": "Investment 3",
"account": "Assets:Equity:NIFTY",
"commodity": "NIFTY",
"quantity": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 29,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 23,
"transaction_id": "11",
@ -237,27 +237,6 @@
"market_amount": 0,
"balance": 0
},
{
"id": 12,
"transaction_id": "6",
"date": "2022-01-08T00:00:00Z",
"payee": "Investment 3",
"account": "Assets:Equity:NIFTY",
"commodity": "NIFTY",
"quantity": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 29,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 15,
"transaction_id": "9",
@ -279,6 +258,27 @@
"market_amount": 0,
"balance": 0
},
{
"id": 12,
"transaction_id": "6",
"date": "2022-01-08T00:00:00Z",
"payee": "Investment 3",
"account": "Assets:Equity:NIFTY",
"commodity": "NIFTY",
"quantity": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 29,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 23,
"transaction_id": "11",

View File

@ -273,27 +273,6 @@
"market_amount": -10000,
"balance": 40000
},
{
"id": 12,
"transaction_id": "6",
"date": "2022-01-08T00:00:00Z",
"payee": "Investment 3",
"account": "Assets:Equity:NIFTY",
"commodity": "NIFTY",
"quantity": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 29,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 10027.3,
"balance": 800
},
{
"id": 15,
"transaction_id": "9",
@ -315,6 +294,27 @@
"market_amount": 10000,
"balance": 100
},
{
"id": 12,
"transaction_id": "6",
"date": "2022-01-08T00:00:00Z",
"payee": "Investment 3",
"account": "Assets:Equity:NIFTY",
"commodity": "NIFTY",
"quantity": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 29,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 10027.3,
"balance": 800
},
{
"id": 14,
"transaction_id": "7",

View File

@ -95,40 +95,30 @@
"Assets:Checking": {
"date": "2022-01-08T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 11974.6829928704
},
"Assets:Equity:ABNB": {
"date": "2022-01-08T00:00:00Z",
"account": "Assets:Equity:ABNB",
"market_amount": 8025.3170071296
},
"Assets:Equity:NIFTY": {
"date": "2022-01-08T00:00:00Z",
"account": "Assets:Equity:NIFTY",
"market_amount": 80000
}
},
{
"Assets:Checking": {
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 1974.6829928704
},
"Assets:Equity:AAPL": {
"date": "2022-01-08T00:00:00Z",
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Equity:AAPL",
"market_amount": 10000
},
"Assets:Equity:ABNB": {
"date": "2022-01-08T00:00:00Z",
"account": "Assets:Equity:ABNB",
"market_amount": 8025.3170071296
},
"Assets:Equity:NIFTY": {
"date": "2022-01-08T00:00:00Z",
"account": "Assets:Equity:NIFTY",
"market_amount": 80000
}
},
{
"Assets:Checking": {
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 11097.5625128704
},
"Assets:Dollar": {
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Dollar",
"market_amount": 804.42048
},
"Assets:Equity:AAPL": {
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Equity:AAPL",
"market_amount": 0
},
"Assets:Equity:ABNB": {
"date": "2022-01-09T00:00:00Z",
"account": "Assets:Equity:ABNB",
@ -144,12 +134,7 @@
"Assets:Checking": {
"date": "2022-01-10T00:00:00Z",
"account": "Assets:Checking",
"market_amount": 11097.5625128704
},
"Assets:Dollar": {
"date": "2022-01-10T00:00:00Z",
"account": "Assets:Dollar",
"market_amount": 804.42048
"market_amount": 12001.9829928704
},
"Assets:Equity:AAPL": {
"date": "2022-01-10T00:00:00Z",

View File

@ -18,7 +18,7 @@
"marketAmount": 12097.5625128704,
"balanceUnits": 0,
"latestPrice": 0,
"xirr": 48.56,
"xirr": 48.45,
"gainAmount": 12097.5625128704,
"absoluteReturn": 0
},

View File

@ -14,6 +14,7 @@
"config": {
"journal_path": "main.ledger",
"db_path": "paisa.db",
"sheets_directory": "",
"readonly": false,
"ledger_cli": "ledger",
"default_currency": "INR",
@ -611,6 +612,10 @@
],
"type": "array"
},
"sheets_directory": {
"description": "Path to your sheets directory. It can be absolute or relative to the configuration file. The sheets directory will be created if it does not exist. By default it will be created in the same directory as the journal file.",
"type": "string"
},
"strict": {
"description": "When strict mode is enabled, all the accounts and commodities should be defined before use.",
"enum": [

View File

@ -55,7 +55,7 @@
{
"id": 16,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
@ -145,15 +145,112 @@
"fileName": "main.ledger",
"note": " Global note\n :interest:"
},
{
"id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"postings": [
{
"id": 17,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 16,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
"quantity": 100,
"amount": 100,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 19,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -10,
"amount": -804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 18,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -100,
"amount": -100,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 35,
"endLine": 38,
"fileName": "main.ledger",
"note": ""
},
{
"id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"postings": [
{
"id": 15,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Checking",
"commodity": "INR",
@ -174,7 +271,7 @@
{
"id": 14,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
@ -195,7 +292,7 @@
{
"id": 13,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -222,45 +319,24 @@
"note": ""
},
{
"id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"payee": "Buy Apple",
"postings": [
{
"id": 17,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"id": 11,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 16,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
"quantity": 100,
"amount": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 26,
"transaction_end_line": 28,
"file_name": "main.ledger",
"forecast": false,
"note": "",
@ -269,40 +345,19 @@
"balance": 0
},
{
"id": 19,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"id": 12,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -10,
"amount": -804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 18,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"payee": "Buy Apple",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -100,
"amount": -100,
"quantity": -10000,
"amount": -10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 26,
"transaction_end_line": 28,
"file_name": "main.ledger",
"forecast": false,
"note": "",
@ -313,8 +368,8 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 35,
"endLine": 38,
"beginLine": 26,
"endLine": 28,
"fileName": "main.ledger",
"note": ""
},
@ -373,61 +428,6 @@
"fileName": "main.ledger",
"note": ""
},
{
"id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"postings": [
{
"id": 11,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
"quantity": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 28,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 12,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -10000,
"amount": -10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 28,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 26,
"endLine": 28,
"fileName": "main.ledger",
"note": ""
},
{
"id": "928a326f-93b5-5967-96e8-fe18ad9bf45f",
"date": "2022-01-07T00:00:00Z",

View File

@ -24,7 +24,7 @@
{
"id": 16,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
@ -51,7 +51,7 @@
"name": "Assets:Checking"
},
{
"id": 10,
"id": 13,
"name": "Assets:Dollar"
},
{
@ -71,7 +71,7 @@
"name": "Expenses"
},
{
"id": 11,
"id": 14,
"name": "Expenses:Charges"
},
{
@ -83,15 +83,15 @@
"name": "Income"
},
{
"id": 12,
"id": 10,
"name": "Income:CapitalGains"
},
{
"id": 13,
"id": 11,
"name": "Income:CapitalGains:Equity"
},
{
"id": 14,
"id": 12,
"name": "Income:CapitalGains:Equity:AAPL"
},
{
@ -134,7 +134,7 @@
},
{
"source": 1,
"target": 10,
"target": 13,
"value": 804.42048
},
{
@ -159,7 +159,7 @@
},
{
"source": 5,
"target": 11,
"target": 14,
"value": 100
},
{
@ -168,18 +168,18 @@
"value": 10000
},
{
"source": 12,
"source": 10,
"target": 2,
"value": 27.3
},
{
"source": 13,
"target": 12,
"source": 11,
"target": 10,
"value": 27.3
},
{
"source": 14,
"target": 13,
"source": 12,
"target": 11,
"value": 27.3
},
{
@ -222,7 +222,7 @@
{
"id": 16,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
@ -289,7 +289,7 @@
{
"id": 14,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
@ -377,7 +377,7 @@
{
"id": 11,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-08T00:00:00Z",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -395,31 +395,10 @@
"market_amount": 0,
"balance": 0
},
{
"id": 17,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 13,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -436,6 +415,27 @@
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 17,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
]
},
@ -468,7 +468,7 @@
{
"id": 16,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
@ -535,7 +535,7 @@
{
"id": 14,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
@ -623,7 +623,7 @@
{
"id": 11,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-08T00:00:00Z",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -641,31 +641,10 @@
"market_amount": 0,
"balance": 0
},
{
"id": 17,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 13,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -682,6 +661,27 @@
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 17,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
]
},

View File

@ -21,7 +21,7 @@
"files": [
{
"name": "main.ledger",
"content": "commodity INR 9,99,99,999.00\n\nP 2022/01/07 00:00:00 NIFTY 100 INR\nP 2022/02/07 00:00:00 NIFTY 100.273 INR\n\n2022/01/01 Salary\n Income:Salary:Acme -100,000 INR\n Assets:Checking 100,000 INR\n\n2022/01/03 Rent\n Assets:Checking -20,000 INR\n Expenses:Rent\n\n2022/01/06 Bonus\n Income:Salary:Acme -20,000 INR\n Assets:Checking 20,000 INR\n\n2022/01/07 Investment\n Assets:Checking -80,000 INR\n Assets:Equity:NIFTY 800 NIFTY @ 100 INR\n\n2022/01/08 Buy ABNB\n Assets:Equity:ABNB 0.76 ABNB @ 131.27 USD\n Assets:Checking\n\n2022/01/08 Buy Apple\n Assets:Equity:AAPL 100 AAPL @ 100 INR\n Assets:Checking\n\n2022/01/09 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/09 Multi Currency Debit\n Expenses:Charges 100 INR\n Assets:Dollar 10 USD\n Assets:Checking\n\nP 2022/01/08 00:00:00 USD 80.442048 INR\n\n2022/01/31 Interest\n ; Global note\n ; :interest:\n Income:Interest:Checking -1,000 INR ; Posting note\n Assets:Checking\n\n2022/01/31 * Asset balance\n Assets:Equity:NIFTY =800 NIFTY\n",
"content": "commodity INR 9,99,99,999.00\n\nP 2022/01/07 00:00:00 NIFTY 100 INR\nP 2022/02/07 00:00:00 NIFTY 100.273 INR\n\n2022/01/01 Salary\n Income:Salary:Acme -100,000 INR\n Assets:Checking 100,000 INR\n\n2022/01/03 Rent\n Assets:Checking -20,000 INR\n Expenses:Rent\n\n2022/01/06 Bonus\n Income:Salary:Acme -20,000 INR\n Assets:Checking 20,000 INR\n\n2022/01/07 Investment\n Assets:Checking -80,000 INR\n Assets:Equity:NIFTY 800 NIFTY @ 100 INR\n\n2022/01/08 Buy ABNB\n Assets:Equity:ABNB 0.76 ABNB @ 131.27 USD\n Assets:Checking\n\n2022/01/09 Buy Apple\n Assets:Equity:AAPL 100 AAPL @ 100 INR\n Assets:Checking\n\n2022/01/10 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/11 Multi Currency Debit\n Expenses:Charges 100 INR\n Assets:Dollar 10 USD\n Assets:Checking\n\nP 2022/01/08 00:00:00 USD 80.442048 INR\n\n2022/01/31 Interest\n ; Global note\n ; :interest:\n Income:Interest:Checking -1,000 INR ; Posting note\n Assets:Checking\n\n2022/01/31 * Asset balance\n Assets:Equity:NIFTY =800 NIFTY\n",
"versions": [],
"operation": ""
}

View File

@ -16,7 +16,7 @@
{
"id": 17,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
@ -52,7 +52,7 @@
{
"id": 11,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-08T00:00:00Z",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -73,7 +73,7 @@
{
"id": 14,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
@ -94,7 +94,7 @@
{
"id": 13,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",

View File

@ -48,7 +48,7 @@
{
"id": 14,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
@ -145,7 +145,7 @@
{
"id": 14,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",

View File

@ -45,7 +45,7 @@
{
"id": 11,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-08T00:00:00Z",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -63,31 +63,10 @@
"market_amount": 0,
"balance": 0
},
{
"id": 17,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 13,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -104,6 +83,27 @@
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 17,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
],
"yearly_cards": [
@ -156,7 +156,7 @@
{
"id": 11,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-08T00:00:00Z",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -174,31 +174,10 @@
"market_amount": 0,
"balance": 0
},
{
"id": 17,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 13,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -215,6 +194,27 @@
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 17,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
],
"gross_salary_income": 120000,

View File

@ -42,31 +42,10 @@
"market_amount": 1000,
"balance": 20817.5348
},
{
"id": 18,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -100,
"amount": -100,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -100,
"balance": 9800.2348
},
{
"id": 17,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
@ -84,31 +63,10 @@
"market_amount": 804.42048,
"balance": 10
},
{
"id": 15,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": 10027.3,
"amount": 10027.3,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 30,
"transaction_end_line": 33,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 10027.3,
"balance": 19817.5348
},
{
"id": 16,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
@ -129,7 +87,7 @@
{
"id": 19,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "USD",
@ -145,12 +103,75 @@
"note": "",
"transaction_note": "",
"market_amount": -804.42048,
"balance": 9790.2348
"balance": 19817.5348
},
{
"id": 18,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -100,
"amount": -100,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -100,
"balance": 19827.5348
},
{
"id": 13,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
"quantity": -100,
"amount": -10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 30,
"transaction_end_line": 33,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -10027.3,
"balance": 0
},
{
"id": 15,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": 10027.3,
"amount": 10027.3,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 30,
"transaction_end_line": 33,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 10027.3,
"balance": 19927.5348
},
{
"id": 14,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
@ -169,25 +190,46 @@
"balance": -27.3
},
{
"id": 13,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"id": 12,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-09T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
"quantity": -100,
"payee": "Buy Apple",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -10000,
"amount": -10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 30,
"transaction_end_line": 33,
"transaction_begin_line": 26,
"transaction_end_line": 28,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -10027.3,
"balance": 0
"market_amount": -10000,
"balance": 9900.2348
},
{
"id": 11,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-09T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
"quantity": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 28,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 10027.3,
"balance": 100
},
{
"id": 10,
@ -210,27 +252,6 @@
"market_amount": -8025.3170071296,
"balance": 19900.2348
},
{
"id": 12,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -10000,
"amount": -10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 28,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": -10000,
"balance": 9900.2348
},
{
"id": 9,
"transaction_id": "c4ee69cc-e6bc-56a4-b573-e5519afb2a45",
@ -253,25 +274,25 @@
"balance": 0.76
},
{
"id": 11,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
"quantity": 100,
"amount": 10000,
"id": 8,
"transaction_id": "928a326f-93b5-5967-96e8-fe18ad9bf45f",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"account": "Assets:Equity:NIFTY",
"commodity": "NIFTY",
"quantity": 800,
"amount": 80000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 28,
"transaction_begin_line": 18,
"transaction_end_line": 20,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 10027.3,
"balance": 100
"market_amount": 80218.4,
"balance": 800
},
{
"id": 7,
@ -294,27 +315,6 @@
"market_amount": -80000,
"balance": 20000
},
{
"id": 8,
"transaction_id": "928a326f-93b5-5967-96e8-fe18ad9bf45f",
"date": "2022-01-07T00:00:00Z",
"payee": "Investment",
"account": "Assets:Equity:NIFTY",
"commodity": "NIFTY",
"quantity": 800,
"amount": 80000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 18,
"transaction_end_line": 20,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 80218.4,
"balance": 800
},
{
"id": 6,
"transaction_id": "9ac83c1f-ba46-515b-8e19-3ca8ab332eab",

View File

@ -23,16 +23,16 @@ P 2022/02/07 00:00:00 NIFTY 100.273 INR
Assets:Equity:ABNB 0.76 ABNB @ 131.27 USD
Assets:Checking
2022/01/08 Buy Apple
2022/01/09 Buy Apple
Assets:Equity:AAPL 100 AAPL @ 100 INR
Assets:Checking
2022/01/09 Sell
2022/01/10 Sell
Assets:Equity:AAPL -100 AAPL {100 INR} @ 100.273 INR
Income:CapitalGains:Equity:AAPL -27.3 INR
Assets:Checking 10027.3 INR
2022/01/09 Multi Currency Debit
2022/01/11 Multi Currency Debit
Expenses:Charges 100 INR
Assets:Dollar 10 USD
Assets:Checking

View File

@ -65,6 +65,15 @@
},
{
"date": "2022-01-08T00:00:00Z",
"investmentAmount": 208025.3170071296,
"withdrawalAmount": 108025.3170071296,
"gainAmount": 0,
"balanceAmount": 100000,
"balanceUnits": 0,
"netInvestmentAmount": 100000
},
{
"date": "2022-01-09T00:00:00Z",
"investmentAmount": 218025.3170071296,
"withdrawalAmount": 118025.3170071296,
"gainAmount": 0,
@ -72,23 +81,14 @@
"balanceUnits": 0,
"netInvestmentAmount": 100000
},
{
"date": "2022-01-09T00:00:00Z",
"investmentAmount": 228857.0374871296,
"withdrawalAmount": 128957.0374871296,
"gainAmount": 27.3,
"balanceAmount": 99927.3,
"balanceUnits": 0,
"netInvestmentAmount": 99900
},
{
"date": "2022-01-10T00:00:00Z",
"investmentAmount": 228857.0374871296,
"withdrawalAmount": 128957.0374871296,
"investmentAmount": 228052.6170071296,
"withdrawalAmount": 128052.6170071296,
"gainAmount": 27.3,
"balanceAmount": 99927.3,
"balanceAmount": 100027.3,
"balanceUnits": 0,
"netInvestmentAmount": 99900
"netInvestmentAmount": 100000
},
{
"date": "2022-01-11T00:00:00Z",

View File

@ -3,7 +3,7 @@
"AAPL": [
{
"id": 5,
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"commodity_type": "unknown",
"commodity_id": "AAPL",
"commodity_name": "AAPL",
@ -11,7 +11,7 @@
},
{
"id": 4,
"date": "2022-01-08T00:00:00Z",
"date": "2022-01-09T00:00:00Z",
"commodity_type": "unknown",
"commodity_id": "AAPL",
"commodity_name": "AAPL",

View File

@ -55,15 +55,112 @@
"fileName": "main.ledger",
"note": " Global note\n :interest:"
},
{
"id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"postings": [
{
"id": 17,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 16,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
"quantity": 100,
"amount": 100,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 19,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -10,
"amount": -804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 18,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-11T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -100,
"amount": -100,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 35,
"endLine": 38,
"fileName": "main.ledger",
"note": ""
},
{
"id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"postings": [
{
"id": 15,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Checking",
"commodity": "INR",
@ -84,7 +181,7 @@
{
"id": 14,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Income:CapitalGains:Equity:AAPL",
"commodity": "INR",
@ -105,7 +202,7 @@
{
"id": 13,
"transaction_id": "b2e50492-9dc7-5845-8ed9-9f4590b301a8",
"date": "2022-01-09T00:00:00Z",
"date": "2022-01-10T00:00:00Z",
"payee": "Sell",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
@ -132,45 +229,24 @@
"note": ""
},
{
"id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"payee": "Buy Apple",
"postings": [
{
"id": 17,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"id": 11,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Dollar",
"commodity": "USD",
"quantity": 10,
"amount": 804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 16,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Expenses:Charges",
"commodity": "INR",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
"quantity": 100,
"amount": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 26,
"transaction_end_line": 28,
"file_name": "main.ledger",
"forecast": false,
"note": "",
@ -179,40 +255,19 @@
"balance": 0
},
{
"id": 19,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"id": 12,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"account": "Assets:Checking",
"commodity": "USD",
"quantity": -10,
"amount": -804.42048,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 18,
"transaction_id": "13751d3a-ebfe-5de8-aca5-8870bc86ff9d",
"date": "2022-01-09T00:00:00Z",
"payee": "Multi Currency Debit",
"payee": "Buy Apple",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -100,
"amount": -100,
"quantity": -10000,
"amount": -10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 35,
"transaction_end_line": 38,
"transaction_begin_line": 26,
"transaction_end_line": 28,
"file_name": "main.ledger",
"forecast": false,
"note": "",
@ -223,8 +278,8 @@
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 35,
"endLine": 38,
"beginLine": 26,
"endLine": 28,
"fileName": "main.ledger",
"note": ""
},
@ -283,61 +338,6 @@
"fileName": "main.ledger",
"note": ""
},
{
"id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"postings": [
{
"id": 11,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Equity:AAPL",
"commodity": "AAPL",
"quantity": 100,
"amount": 10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 28,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
},
{
"id": 12,
"transaction_id": "608fccf0-e80c-570e-87df-63a9a959c59a",
"date": "2022-01-08T00:00:00Z",
"payee": "Buy Apple",
"account": "Assets:Checking",
"commodity": "INR",
"quantity": -10000,
"amount": -10000,
"status": "unmarked",
"tag_recurring": "",
"tag_period": "",
"transaction_begin_line": 26,
"transaction_end_line": 28,
"file_name": "main.ledger",
"forecast": false,
"note": "",
"transaction_note": "",
"market_amount": 0,
"balance": 0
}
],
"tag_recurring": "",
"tag_period": "",
"beginLine": 26,
"endLine": 28,
"fileName": "main.ledger",
"note": ""
},
{
"id": "928a326f-93b5-5967-96e8-fe18ad9bf45f",
"date": "2022-01-07T00:00:00Z",