mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-04 21:15:19 +02:00
Add security prices provider (Synth integration) (#1039)
* User tickers as primary lookup symbol instead of isin * Add security price provider * Fetch security prices in bulk to improve sync performance * Fetch prices in bulk, better mocking for tests
This commit is contained in:
parent
c70c8b6d86
commit
453a54e5e6
33 changed files with 584 additions and 118 deletions
|
@ -58,7 +58,7 @@ class Account::HoldingTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def create_holding(security, date, qty)
|
||||
price = Security::Price.find_by(date: date, isin: security.isin).price
|
||||
price = Security::Price.find_by(date: date, ticker: security.ticker).price
|
||||
|
||||
@account.holdings.create! \
|
||||
date: date,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue