1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 23:45:21 +02:00
Maybe/test/fixtures/account/entries.yml
Zach Gollwitzer 47523f64c2
Investment Portfolio Sync (#974)
* Add investment portfolio models

* Add portfolio to demo data

* Setup initial tests

* Rough sketch of sync logic

* Clean up trade sync logic

* Add trade validation

* Integrate trades into sync process
2024-07-16 09:26:49 -04:00

48 lines
1 KiB
YAML

valuation:
name: Manual valuation
date: <%= 4.days.ago.to_date %>
amount: 4995
currency: USD
account: depository
entryable_type: Account::Valuation
entryable: one
trade:
name: Purchase 10 shares of AAPL
date: <%= 1.day.ago.to_date %>
amount: 2140 # 10 shares * $214 per share
currency: USD
account: investment
entryable_type: Account::Trade
entryable: one
transaction:
name: Starbucks
date: <%= 1.day.ago.to_date %>
amount: 10
currency: USD
account: depository
entryable_type: Account::Transaction
entryable: one
transfer_out:
name: Payment to credit card account
date: <%= 3.days.ago.to_date %>
amount: 100
currency: USD
account: depository
marked_as_transfer: true
transfer: one
entryable_type: Account::Transaction
entryable: transfer_out
transfer_in:
name: Payment received from checking account
date: <%= 3.days.ago.to_date %>
amount: -100
currency: USD
account: credit_card
marked_as_transfer: true
transfer: one
entryable_type: Account::Transaction
entryable: transfer_in