mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Fix for certain securities returning incorrect prices
This commit is contained in:
parent
154a1a971b
commit
31d9d926f7
4 changed files with 8 additions and 8 deletions
|
@ -31,9 +31,10 @@ class Account::TradeBuilder < Account::EntryBuilder
|
|||
end
|
||||
|
||||
def security
|
||||
ticker_symbol, exchange_mic = ticker.split("|")
|
||||
ticker_symbol, exchange_mic, exchange_acronym, exchange_country_code = ticker.split("|")
|
||||
|
||||
security = Security.find_or_create_by(ticker: ticker_symbol, exchange_mic: exchange_mic)
|
||||
security = Security.find_or_create_by(ticker: ticker_symbol, exchange_mic: exchange_mic, country_code: exchange_country_code)
|
||||
security.update(exchange_acronym: exchange_acronym)
|
||||
|
||||
FetchSecurityInfoJob.perform_later(security.id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue