From e6efb887b0686ac873328215f26eed409c84c284 Mon Sep 17 00:00:00 2001 From: anon Date: Fri, 12 Aug 2022 09:05:11 -0300 Subject: [PATCH] new charts --- charts/models.py | 12 +- charts/templates/charts/base.html | 9 +- charts/templates/charts/marketcycle.html | 35 +- charts/templates/charts/shielded.html | 412 +++++++++++++++++++++++ charts/templates/charts/translog.html | 408 +++++++++++----------- charts/urls.py | 1 + charts/views.py | 97 +++++- 7 files changed, 713 insertions(+), 261 deletions(-) create mode 100644 charts/templates/charts/shielded.html diff --git a/charts/models.py b/charts/models.py index 8abd96b..118ba43 100644 --- a/charts/models.py +++ b/charts/models.py @@ -5,12 +5,12 @@ from django.db import models # Create your models here. class Coin(models.Model): - name = models.CharField(max_length=4) - date = models.DateField() - priceusd = models.FloatField() - pricebtc = models.FloatField() - inflation = models.FloatField() - transactions = models.FloatField() + name = models.CharField(max_length=4, default="0") + date = models.DateField(default="0") + priceusd = models.FloatField(default="0") + pricebtc = models.FloatField(default="0") + inflation = models.FloatField(default="0") + transactions = models.FloatField(default="0") hashrate = models.FloatField(default="0") stocktoflow = models.FloatField(default="0") supply = models.FloatField(default="0") diff --git a/charts/templates/charts/base.html b/charts/templates/charts/base.html index 343447a..2518179 100644 --- a/charts/templates/charts/base.html +++ b/charts/templates/charts/base.html @@ -123,7 +123,7 @@
@@ -133,8 +133,7 @@ Price in Dollars (Lin.) Price in Sats (Lin.) Fractal Multiple - Inflation-Adjusted - Fractal + Inflation-Adjusted Fractal Golden Ratio Multiplier Performance ($, Log.) Performance ($, Lin.) @@ -146,6 +145,7 @@ Thermocap Multiple Sharpe Ratio Price Deviation + Market Cycle
@@ -174,7 +174,7 @@
@@ -193,6 +193,7 @@ Metcalfe's Deviation ($) Transacted Price Deviation Transaction Dominance + Shielded Transactions
diff --git a/charts/templates/charts/marketcycle.html b/charts/templates/charts/marketcycle.html index fe4f375..d390c13 100644 --- a/charts/templates/charts/marketcycle.html +++ b/charts/templates/charts/marketcycle.html @@ -35,31 +35,6 @@ - - -
- -
-
-
-
- Current Stock-to-flow Multiple
-
{{ now_cycle }}
-
-
-
- -
-
-
-
- Top Stock-to-flow Multiple Last Cycle
-
{{ maximum }}
-
-
-
- -
@@ -98,11 +73,7 @@