mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 07:39:39 +02:00
Market data sync refinements (#2252)
* Exchange rate syncer implementation * Security price syncer * Fix issues with provider API * Add back prod schedule * Add back price and exchange rate syncs to account syncs * Remove unused stock_exchanges table
This commit is contained in:
parent
6917cecf33
commit
6dc1d22672
38 changed files with 1206 additions and 1615 deletions
|
@ -15,6 +15,7 @@ module ExchangeRateProviderInterfaceTest
|
|||
|
||||
assert_equal "USD", rate.from
|
||||
assert_equal "GBP", rate.to
|
||||
assert rate.date.is_a?(Date)
|
||||
assert_in_delta 0.78, rate.rate, 0.01
|
||||
end
|
||||
end
|
||||
|
@ -26,6 +27,7 @@ module ExchangeRateProviderInterfaceTest
|
|||
)
|
||||
|
||||
assert_equal 213, response.data.count # 213 days between 01.01.2024 and 31.07.2024
|
||||
assert response.data.first.date.is_a?(Date)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue