Skip to content

Commit cc1bd2d

Browse files
committed
fix: default interval/aggregation
1 parent a1fb4af commit cc1bd2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pragma-node/src/handlers/entries/get_entry.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ pub async fn get_entry(
4343
let interval = if let Some(interval) = params.interval {
4444
interval
4545
} else {
46-
Interval::OneMinute
46+
Interval::FifteenMinutes
4747
};
4848

4949
let aggregation_mode = if let Some(aggregation_mode) = params.aggregation {
5050
aggregation_mode
5151
} else {
52-
AggregationMode::Median
52+
AggregationMode::Twap
5353
};
5454

5555
let is_routing = params.routing.unwrap_or(false);

0 commit comments

Comments
 (0)