Skip to content

Commit

Permalink
Cleaned-up unused using statements, updated README, and incremented v…
Browse files Browse the repository at this point in the history
…ersion for NuGet build
  • Loading branch information
ShravanJ committed Sep 26, 2021
1 parent f64abf7 commit 3025c5d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 18 deletions.
1 change: 0 additions & 1 deletion FinnHubSharp/DataModels/Response/StreamingQuote.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;

Expand Down
6 changes: 3 additions & 3 deletions FinnHubSharp/FinnHubSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<PackageId>FinnHubSharp</PackageId>
<Version>1.0.0</Version>
<Version>1.0.2</Version>
<Authors>Shravan Jambukesan</Authors>
<Company>Pseudo Markets</Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Description>.NET Standard client for FinnHub finance APIs</Description>
<Copyright>(c) 2020 Pseudo Markets</Copyright>
<Copyright>(c) 2020 - 2021 Pseudo Markets</Copyright>
<PackageProjectUrl>https://github.com/pseudomarkets/FinnHubSharp</PackageProjectUrl>
<PackageLicenseExpression></PackageLicenseExpression>
<PackageReleaseNotes>* Initial release</PackageReleaseNotes>
<PackageReleaseNotes>* Added support for streaming data</PackageReleaseNotes>
<PackageTags>FinnHub</PackageTags>
<LangVersion>8</LangVersion>
</PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion FinnHubSharp/Interfaces/IFinnHubStreamerClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using FinnHubSharp.DataModels.Request;
Expand Down
3 changes: 0 additions & 3 deletions FinnHubSharp/Logging/FinnHubSharpLogger.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Net;
using System.Net.Http;
using Microsoft.Extensions.Logging;

namespace FinnHubSharp.Logging
{
Expand Down
4 changes: 0 additions & 4 deletions FinnHubSharpConsole/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@
using System.Linq;
using System.Net.Http;
using System.Net.WebSockets;
using System.Threading;
using System.Threading.Tasks;
using FinnHubSharp;
using FinnHubSharp.DataModels.Request;
using FinnHubSharp.Implementations;
using FinnHubSharp.Interfaces;
using FinnHubSharp.Logging;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Newtonsoft.Json;

Expand Down
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
# FinnHubSharp
.NET Standard client for accessing FinnHub.io finance APIs
.NET Standard client for accessing FinnHub.io finance APIs, including streaming data via WebSocket

# Requirements
* .NET Standard 2.0
* Newtonsoft.JSON
* .NET Standard 2.1

# Usage

`using FinnHubSharp;`
`using FinnHubSharp.DataModels.Request;`

`FinnHubClient client = new FinnHubClient("YOUR_API_KEY");`
`using FinnHubSharp.Implementations;`

`using FinnHubSharp.Logging;`

`var client = new FinnHubClient(new HttpClient(), "YOUR_API_KEY", new NullLogger<FinnHubSharpLogger>());`

`var quote = await client.GetQuoteAsync("AAPL");`

`var price = quote.CurrentPrice;`
`double price = quote.CurrentPrice;`


# NuGet
Expand Down

0 comments on commit 3025c5d

Please sign in to comment.