Skip to content

Commit

Permalink
updated CryptoExchange ref
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Nov 19, 2024
1 parent 7c21bd8 commit df55ef0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
6 changes: 2 additions & 4 deletions ByBit.Net/Bybit.Net.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<Nullable>enable</Nullable>
Expand Down Expand Up @@ -48,12 +48,10 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="CryptoExchange.Net" Version="8.3.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\CryptoExchange.Net\CryptoExchange.Net\CryptoExchange.Net.csproj" />
</ItemGroup>
</Project>
10 changes: 10 additions & 0 deletions ByBit.Net/BybitExchange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ public static class BybitExchange
/// </summary>
public static string ExchangeName => "Bybit";

/// <summary>
/// Exchange name
/// </summary>
public static string DisplayName => "Bybit";

/// <summary>
/// Url to exchange image
/// </summary>
public static string ImageUrl { get; } = "https://raw.githubusercontent.com/JKorf/Bybit.Net/master/ByBit.Net/Icon/icon.png";

/// <summary>
/// Url to the main website
/// </summary>
Expand Down
10 changes: 8 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,14 @@ <h2>API Access</h2>

<p>Bybit.Net can be configured using Dotnet dependency injection, after which the clients can be injected into your services. It also correctly configures logging and HttpClient usage.</p>

<pre><code>builder.Services.AddBybit(options => {
// Options can be configured here, for example:
<pre><code>// Configure options from config file
// see https://github.com/JKorf/CryptoExchange.Net/tree/master/Examples/example-config.json for an example
builder.Services.AddBybit(builder.Configuration.GetSection("Bybit"));

// OR

builder.Services.AddBybit(options => {
// Configure options in code
options.ApiCredentials = new ApiCredentials("APIKEY", "APISECRET");
});</code></pre>

Expand Down

0 comments on commit df55ef0

Please sign in to comment.