Browse Source

Merge #249

249: First cet trial fixes r=da-kami a=da-kami

Note: Just discussed with `@thomaseizinger` that the Oracle actor should be changed to be able to handle multiple terms.
So, instead of the oracle actor sending out the current 24 hours to the cfd actor, the cfd actor should be able to request events for a time interval (i.e. different terms).

Changing that should also allow us to test more easily, because we can use a very short term. 

Co-authored-by: Daniel Karzel <daniel@comit.network>
compile-for-aarch64
bors[bot] 3 years ago
committed by GitHub
parent
commit
b4036d6e91
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      daemon/src/oracle.rs

4
daemon/src/oracle.rs

@ -15,7 +15,7 @@ use std::collections::HashSet;
use std::convert::TryFrom;
/// Where `olivia` is located.
const OLIVIA_URL: &str = "https://h00.ooo/";
const OLIVIA_URL: &str = "https://h00.ooo";
const OLIVIA_EVENT_TIME_FORMAT: &[FormatItem] =
format_description!("[year]-[month]-[day]T[hour]:[minute]:[second]");
@ -231,7 +231,7 @@ fn event_url(datetime: OffsetDateTime) -> String {
.format(&OLIVIA_EVENT_TIME_FORMAT)
.expect("valid formatter for datetime");
format!("{}x/BitMEX/BXBT/{}.price[n:20]", OLIVIA_URL, datetime)
format!("{}/x/BitMEX/BXBT/{}.price[n:20]", OLIVIA_URL, datetime)
}
#[derive(Debug, Clone, serde::Deserialize, PartialEq)]

Loading…
Cancel
Save