mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 06:39:58 -07:00
global: snapshot
This commit is contained in:
@@ -37,7 +37,7 @@ export function buildCohortData() {
|
||||
LT_AMOUNT_NAMES,
|
||||
AMOUNT_RANGE_NAMES,
|
||||
SPENDABLE_TYPE_NAMES,
|
||||
YEAR_NAMES,
|
||||
CLASS_NAMES,
|
||||
} = brk;
|
||||
|
||||
// Base cohort representing "all"
|
||||
@@ -224,11 +224,11 @@ export function buildCohortData() {
|
||||
};
|
||||
});
|
||||
|
||||
// Year cohorts
|
||||
const year = entries(utxoCohorts.year)
|
||||
// Class cohorts
|
||||
const class_ = entries(utxoCohorts.class)
|
||||
.reverse()
|
||||
.map(([key, tree], i, arr) => {
|
||||
const names = YEAR_NAMES[key];
|
||||
const names = CLASS_NAMES[key];
|
||||
return {
|
||||
name: names.short,
|
||||
title: names.long,
|
||||
@@ -253,6 +253,6 @@ export function buildCohortData() {
|
||||
addressesAmountRanges,
|
||||
typeAddressable,
|
||||
typeOther,
|
||||
year,
|
||||
class: class_,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -538,16 +538,6 @@ export function createMarketSection() {
|
||||
...priceLines({ unit: Unit.index, numbers: [61.8, 38.2] }),
|
||||
],
|
||||
},
|
||||
volatilityChart("Sharpe Ratio", "Sharpe Ratio", Unit.ratio, {
|
||||
_1w: volatility.sharpe1w,
|
||||
_1m: volatility.sharpe1m,
|
||||
_1y: volatility.sharpe1y,
|
||||
}),
|
||||
volatilityChart("Sortino Ratio", "Sortino Ratio", Unit.ratio, {
|
||||
_1w: volatility.sortino1w,
|
||||
_1m: volatility.sortino1m,
|
||||
_1y: volatility.sortino1y,
|
||||
}),
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ export function createPartialOptions() {
|
||||
addressesAmountRanges,
|
||||
typeAddressable,
|
||||
typeOther,
|
||||
year,
|
||||
class: class_,
|
||||
} = buildCohortData();
|
||||
|
||||
return [
|
||||
@@ -263,10 +263,10 @@ export function createPartialOptions() {
|
||||
createGroupedCohortFolderBasicWithoutMarketCap({
|
||||
name: "Compare",
|
||||
title: "Years",
|
||||
list: year,
|
||||
list: class_,
|
||||
all: cohortAll,
|
||||
}),
|
||||
...year.map(createCohortFolderBasicWithoutMarketCap),
|
||||
...class_.map(createCohortFolderBasicWithoutMarketCap),
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user