summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
Diffstat (limited to 'demo')
-rwxr-xr-xdemo13
1 files changed, 11 insertions, 2 deletions
diff --git a/demo b/demo
index 1ab3a18..db48ea7 100755
--- a/demo
+++ b/demo
@@ -16,6 +16,12 @@ DESCRIPTION = "Demo application plotting financial data with finance-py"
def main() -> None:
argparse.ArgumentParser(description=DESCRIPTION).parse_args()
+ measured = (
+ (datetime(2024, 1, 1), Decimal(105.0)),
+ (datetime(2024, 2, 1), Decimal(207.0)),
+ (datetime(2024, 3, 1), Decimal(334.0)),
+ )
+
flows = (
Flow(amount=Decimal(100.0), since=None, until=None),
Flow(
@@ -25,13 +31,16 @@ def main() -> None:
),
)
- data = simulate(
+ simulated = simulate(
start=datetime(2024, 1, 1),
end=datetime(2030, 1, 1),
flows=flows,
)
- display(data)
+ display(
+ simulated=simulated,
+ measured=measured,
+ )
if __name__ == "__main__":