ynab-portfolio-monitor/staticjsonYahooFinance
Steven Polley 7a2e79682c
All checks were successful
continuous-integration/drone/push Build is passing
rename quote.go to chart.go
2023-11-13 12:25:13 -07:00
..
chart.go rename quote.go to chart.go 2023-11-13 12:25:13 -07:00
client.go Add Static JSON Yahoo Finance provider 2023-11-13 11:52:45 -07:00
providerImpl.go Add Static JSON Yahoo Finance provider 2023-11-13 11:52:45 -07:00
README.md static JSON examples showing multiple accounts 2023-11-13 12:18:22 -07:00

Static JSON Yahoo Finance Provider

If you just want to provide a static JSON file as input containing symbols and quantities owned, this provider will use Yahoo Finance for pricing quotes for the symbols provided.

Example data/staticjsonYahooFinance-data.json

You can define many to many relationships, multiple YNAB accounts containing multiple types of securities using json arrays.

{
    "accounts":[
        {
            "ynabAccountId":"d54da05a-cs20-4654-bcff-9ce36f43225d",
            "securities":[
                {
                    "symbol":"SPY",
                    "quantity":420
                },
                {
                    "symbol":"BRK.A",
                    "quantity":5
                },
                {
                    "symbol":"CAPE",
                    "quantity":69
                }
            ]
        },
        {
            "ynabAccountId":"fdfedg45-c2g1-445-abdd-9dsa445sd54",
            "securities":[
                {
                    "symbol":"VCN.TO",
                    "quantity":100
                },
                {
                    "symbol":"XSB.TO",
                    "quantity":50
                },
                {
                    "symbol":"DLR.TO",
                    "quantity":20
                }
            ]
        }
    ]
}