mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-06-18 18:59:45 -07:00
global: add cohorts by entry
This commit is contained in:
@@ -33,6 +33,7 @@ export function buildCohortData() {
|
||||
AMOUNT_RANGE_NAMES,
|
||||
SPENDABLE_TYPE_NAMES,
|
||||
CLASS_NAMES,
|
||||
ENTRY_NAMES,
|
||||
PROFITABILITY_RANGE_NAMES,
|
||||
PROFIT_NAMES,
|
||||
LOSS_NAMES,
|
||||
@@ -201,6 +202,18 @@ export function buildCohortData() {
|
||||
tree: utxoCohorts.class[key],
|
||||
}));
|
||||
|
||||
const entryColors = {
|
||||
discount: colors.arr[11],
|
||||
premium: colors.arr[0],
|
||||
};
|
||||
|
||||
const entry = entries(ENTRY_NAMES).map(([key, names]) => ({
|
||||
name: names.short,
|
||||
title: `UTXOs ${names.long}`,
|
||||
color: entryColors[key],
|
||||
tree: utxoCohorts.entry[key],
|
||||
}));
|
||||
|
||||
const { range, profit, loss } = utxoCohorts.profitability;
|
||||
|
||||
const profitabilityRange = entries(PROFITABILITY_RANGE_NAMES).map(
|
||||
@@ -242,6 +255,7 @@ export function buildCohortData() {
|
||||
typeAddressable,
|
||||
typeOther,
|
||||
class: class_,
|
||||
entry,
|
||||
profitabilityRange,
|
||||
profitabilityProfit,
|
||||
profitabilityLoss,
|
||||
|
||||
@@ -226,7 +226,7 @@ function historicalSubSection(name, periods) {
|
||||
* @returns {PartialOptionsGroup}
|
||||
*/
|
||||
export function createMarketSection() {
|
||||
const { market, supply, cohorts, prices, indicators } = brk.series;
|
||||
const { market, supply, cohorts, price: prices, indicators } = brk.series;
|
||||
const {
|
||||
movingAverage: ma,
|
||||
ath,
|
||||
|
||||
@@ -5,6 +5,7 @@ import {
|
||||
createCohortFolderAll,
|
||||
createCohortFolderFull,
|
||||
createCohortFolderWithAdjusted,
|
||||
createCohortFolderWithNupl,
|
||||
createCohortFolderLongTerm,
|
||||
createCohortFolderAgeRangeWithMatured,
|
||||
createCohortFolderBasicWithMarketCap,
|
||||
@@ -53,6 +54,7 @@ export function createPartialOptions() {
|
||||
overAge,
|
||||
ageRange,
|
||||
epoch,
|
||||
entry,
|
||||
utxosOverAmount,
|
||||
addressesOverAmount,
|
||||
utxosUnderAmount,
|
||||
@@ -99,6 +101,19 @@ export function createPartialOptions() {
|
||||
|
||||
createCohortFolderLongTerm(termLong),
|
||||
|
||||
{
|
||||
name: "Entry",
|
||||
tree: [
|
||||
createGroupedCohortFolderWithNupl({
|
||||
name: "Compare",
|
||||
title: "Veteran vs Rookie",
|
||||
list: entry,
|
||||
all: cohortAll,
|
||||
}),
|
||||
...entry.map(createCohortFolderWithNupl),
|
||||
],
|
||||
},
|
||||
|
||||
{
|
||||
name: "UTXO Age",
|
||||
tree: [
|
||||
|
||||
Reference in New Issue
Block a user