This commit is contained in:
Josh Pigford
2024-10-29 19:52:25 -04:00
parent 46a859324b
commit f8e58d6893

View File

@@ -32,7 +32,7 @@ class Account::TradeBuilder < Account::EntryBuilder
def security
exchange_mic = ticker.match(/\((.*?)\)/)&.captures&.first
ticker_symbol = ticker.gsub(/\s*\(.*?\)\s*/, '')
ticker_symbol = ticker.gsub(/\s*\(.*?\)\s*/, "")
Security.find_or_create_by(ticker: ticker_symbol, exchange_mic: exchange_mic)
end