mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
First pass at security price reference (#1388)
* 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:
parent
bf695972e4
commit
490f44589e
16 changed files with 155 additions and 88 deletions
|
@ -42,9 +42,10 @@ class Provider::Synth
|
|||
)
|
||||
end
|
||||
|
||||
def fetch_security_prices(ticker:, start_date:, end_date:)
|
||||
def fetch_security_prices(ticker:, mic_code:, start_date:, end_date:)
|
||||
prices = paginate(
|
||||
"#{base_url}/tickers/#{ticker}/open-close",
|
||||
mic_code: mic_code,
|
||||
start_date: start_date,
|
||||
end_date: end_date
|
||||
) do |body|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue