1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-10-04 18:33:39 +00:00

Added Description property to EndpointOptions classes. Updated client info string representation, added additional validation for Spot endpoints

This commit is contained in:
Jkorf
2026-08-21 09:55:53 +02:00
parent 4987e6be70
commit ac1e9cf2ab
72 changed files with 426 additions and 118 deletions
@@ -1,4 +1,4 @@
using CryptoExchange.Net.Objects;
using CryptoExchange.Net.Objects;
using System;
using System.Linq;
using System.Text;
@@ -10,6 +10,9 @@ namespace CryptoExchange.Net.SharedApis
/// </summary>
public class GetOrderBookOptions : EndpointOptions<GetOrderBookRequest, IOrderBookRestClient>
{
/// <inheritdoc />
public override string Description => "Retrieve the current order book for a symbol";
/// <summary>
/// Supported order book depths
/// </summary>
@@ -65,7 +68,7 @@ namespace CryptoExchange.Net.SharedApis
public override string ToString()
{
var sb = new StringBuilder(base.ToString());
sb.AppendLine($"Supported limit values: [{(SupportedLimits != null ? string.Join(", ", SupportedLimits) : $"{MinLimit}..{MaxLimit}")}]");
sb.AppendLine($" Supported limit values: [{(SupportedLimits != null ? string.Join(", ", SupportedLimits) : $"{MinLimit}..{MaxLimit}")}]");
return sb.ToString();
}
}