mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Groundwork for security info (#1396)
* Groundwork for security info * Lint
This commit is contained in:
parent
5e2b932648
commit
e7f09e6f71
4 changed files with 44 additions and 1 deletions
|
@ -33,7 +33,11 @@ class Account::TradeBuilder < Account::EntryBuilder
|
|||
def security
|
||||
ticker_symbol, exchange_mic = ticker.split("|")
|
||||
|
||||
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)
|
||||
|
||||
FetchSecurityInfoJob.perform_later(security.id)
|
||||
|
||||
security
|
||||
end
|
||||
|
||||
def amount
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue