Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
demo
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmincatalin committed Sep 27, 2022
1 parent fb46e5f commit fe4df65
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions demo.dib
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!markdown

#### Install the latest version of the package

#!csharp

#r "nuget: CosminSanda.Finance"
#r "nuget: ScottPlot"
#r "nuget: ScottPlot.DataGen"

#!csharp

using System.Linq;
using CosminSanda.Finance;

#!csharp

var earnings = await EarningsCalendar.GetPastEarningsDates("TWTR");

#!csharp

earnings.TakeLast(4)

#!csharp

using Microsoft.DotNet.Interactive.Formatting;

Formatter.Register(typeof(ScottPlot.Plot), (plt, writer) =>
writer.Write(((ScottPlot.Plot)plt).GetImageHTML()), HtmlFormatter.MimeType);

#!csharp

var plt = new ScottPlot.Plot(600, 400);

plt.AddCandlesticks(prices);

0 comments on commit fe4df65

Please sign in to comment.