diff --git a/GateIo.Net/GateIo.Net.csproj b/GateIo.Net/GateIo.Net.csproj index 5f28143..fe75416 100644 --- a/GateIo.Net/GateIo.Net.csproj +++ b/GateIo.Net/GateIo.Net.csproj @@ -1,4 +1,4 @@ - + netstandard2.0;netstandard2.1 12.0 @@ -48,12 +48,10 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - \ No newline at end of file diff --git a/GateIo.Net/GateIo.Net.xml b/GateIo.Net/GateIo.Net.xml index 1626d14..0877384 100644 --- a/GateIo.Net/GateIo.Net.xml +++ b/GateIo.Net/GateIo.Net.xml @@ -1764,6 +1764,16 @@ Exchange name + + + Exchange name + + + + + Url to exchange image + + Url to the main website diff --git a/GateIo.Net/GateIoExchange.cs b/GateIo.Net/GateIoExchange.cs index 583905a..105f413 100644 --- a/GateIo.Net/GateIoExchange.cs +++ b/GateIo.Net/GateIoExchange.cs @@ -15,7 +15,17 @@ public static class GateIoExchange /// /// Exchange name /// - public static string ExchangeName => "Gate.io"; + public static string ExchangeName => "GateIo"; + + /// + /// Exchange name + /// + public static string DisplayName => "Gate.io"; + + /// + /// Url to exchange image + /// + public static string ImageUrl { get; } = "https://raw.githubusercontent.com/JKorf/GateIo.Net/master/GateIo.Net/Icon/icon.png"; /// /// Url to the main website diff --git a/docs/index.html b/docs/index.html index 874c871..e4a8803 100644 --- a/docs/index.html +++ b/docs/index.html @@ -188,8 +188,14 @@

API Access

GateIo.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.

-
builder.Services.AddGateIo(options => {
-  // Options can be configured here, for example:
+		  
// Configure options from config file
+// see https://github.com/JKorf/CryptoExchange.Net/tree/master/Examples/example-config.json for an example
+builder.Services.AddGateIo(builder.Configuration.GetSection("GateIo"));
+		  
+// OR
+		  
+ builder.Services.AddGateIo(options => {
+  // Configure options in code
   options.ApiCredentials = new ApiCredentials("APIKEY", "APISECRET");
 });