diff --git a/HTX.Net/Clients/SpotApi/HTXRestClientSpotApi.cs b/HTX.Net/Clients/SpotApi/HTXRestClientSpotApi.cs index e5cef06..03bda29 100644 --- a/HTX.Net/Clients/SpotApi/HTXRestClientSpotApi.cs +++ b/HTX.Net/Clients/SpotApi/HTXRestClientSpotApi.cs @@ -165,7 +165,7 @@ protected override Error ParseErrorResponse(int httpStatusCode, IEnumerable - protected override ServerError? TryParseError(IMessageAccessor accessor) + protected override Error? TryParseError(IEnumerable>> responseHeaders, IMessageAccessor accessor) { if (!accessor.IsJson) return new ServerError(accessor.GetOriginalString()); diff --git a/HTX.Net/Clients/UsdtFutures/HTXRestClientUsdtFuturesApi.cs b/HTX.Net/Clients/UsdtFutures/HTXRestClientUsdtFuturesApi.cs index 17eab1f..540be95 100644 --- a/HTX.Net/Clients/UsdtFutures/HTXRestClientUsdtFuturesApi.cs +++ b/HTX.Net/Clients/UsdtFutures/HTXRestClientUsdtFuturesApi.cs @@ -126,7 +126,7 @@ protected override Error ParseErrorResponse(int httpStatusCode, IEnumerable - protected override ServerError? TryParseError(IMessageAccessor accessor) + protected override Error? TryParseError(IEnumerable>> responseHeaders, IMessageAccessor accessor) { if (!accessor.IsJson) return new ServerError(accessor.GetOriginalString()); diff --git a/HTX.Net/HTX.Net.csproj b/HTX.Net/HTX.Net.csproj index 61ed620..5ee6715 100644 --- a/HTX.Net/HTX.Net.csproj +++ b/HTX.Net/HTX.Net.csproj @@ -48,7 +48,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/HTX.Net/HTX.Net.xml b/HTX.Net/HTX.Net.xml index 8893368..d08990c 100644 --- a/HTX.Net/HTX.Net.xml +++ b/HTX.Net/HTX.Net.xml @@ -116,7 +116,7 @@ - + @@ -539,7 +539,7 @@ - + @@ -3441,6 +3441,11 @@ Urls to the API documentation + + + Type of exchange + + Format a base and quote asset to an HTX recognized symbol diff --git a/HTX.Net/HTXExchange.cs b/HTX.Net/HTXExchange.cs index fff3fd1..ed9259d 100644 --- a/HTX.Net/HTXExchange.cs +++ b/HTX.Net/HTXExchange.cs @@ -38,6 +38,11 @@ public static class HTXExchange "https://www.htx.com/en-us/opend/newApiPages/" }; + /// + /// Type of exchange + /// + public static ExchangeType Type { get; } = ExchangeType.CEX; + internal const string ClientOrderId = "AA1ef14811"; internal const string ClientOrderIdPrefix = ClientOrderId + LibraryHelpers.ClientOrderIdSeperator;