mirror of
https://github.com/we-promise/sure.git
synced 2026-06-01 16:59:03 +00: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user