1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-04 21:15:19 +02:00

First pass at security price reference (#1388)
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions

* 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:
Josh Pigford 2024-10-29 15:37:59 -04:00 committed by GitHub
parent bf695972e4
commit 490f44589e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 155 additions and 88 deletions

View file

@ -29,7 +29,7 @@ module Account::EntriesTestHelper
end
def create_trade(security, account:, qty:, date:, price: nil)
trade_price = price || Security::Price.find_by!(ticker: security.ticker, date: date).price
trade_price = price || Security::Price.find_by!(security: security, date: date).price
trade = Account::Trade.new \
qty: qty,