dfinity / exchange-rate-canister

The exchange rate canister (XRC) makes use of the HTTP requests feature to provide exchange rates as a service to the IC.
Apache License 2.0
37 stars 10 forks source link

Updating the OKX logic to set the start time 1 minute in the past #181

Closed THLO closed 1 year ago

THLO commented 1 year ago

OKX never returns data for the current minute, which is problematic when no timestamp is specified in the request.

This PR proposes and implements a simple fix: A minute is subtracted from the start time. This change has the following effect: