mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 05:25:24 +02:00
First pass at security price reference (#1388)
* First pass at security price reference
* Data cleanup
* Synth security fetching does better with a mic_code
* Update test suite
😭
* Update schema.rb
* Update generator.rb
This commit is contained in:
parent
bf695972e4
commit
490f44589e
16 changed files with 155 additions and 88 deletions
|
@ -58,7 +58,7 @@ class Account::HoldingTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def create_holding(security, date, qty)
|
||||
price = Security::Price.find_by(date: date, ticker: security.ticker).price
|
||||
price = Security::Price.find_by(date: date, security: security).price
|
||||
|
||||
@account.holdings.create! \
|
||||
date: date,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue