Skip to content

Commit

Permalink
Updated CryptoExchange.Net version, added Type property to HTXExchang…
Browse files Browse the repository at this point in the history
…e class
  • Loading branch information
JKorf committed Jan 7, 2025
1 parent bfd2c52 commit b145394
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion HTX.Net/Clients/SpotApi/HTXRestClientSpotApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ protected override Error ParseErrorResponse(int httpStatusCode, IEnumerable<KeyV
}

/// <inheritdoc />
protected override ServerError? TryParseError(IMessageAccessor accessor)
protected override Error? TryParseError(IEnumerable<KeyValuePair<string, IEnumerable<string>>> responseHeaders, IMessageAccessor accessor)
{
if (!accessor.IsJson)
return new ServerError(accessor.GetOriginalString());
Expand Down
2 changes: 1 addition & 1 deletion HTX.Net/Clients/UsdtFutures/HTXRestClientUsdtFuturesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ protected override Error ParseErrorResponse(int httpStatusCode, IEnumerable<KeyV
}

/// <inheritdoc />
protected override ServerError? TryParseError(IMessageAccessor accessor)
protected override Error? TryParseError(IEnumerable<KeyValuePair<string, IEnumerable<string>>> responseHeaders, IMessageAccessor accessor)
{
if (!accessor.IsJson)
return new ServerError(accessor.GetOriginalString());
Expand Down
2 changes: 1 addition & 1 deletion HTX.Net/HTX.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="CryptoExchange.Net" Version="8.5.0" />
<PackageReference Include="CryptoExchange.Net" Version="8.6.0" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
9 changes: 7 additions & 2 deletions HTX.Net/HTX.Net.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
<member name="M:HTX.Net.Clients.SpotApi.HTXRestClientSpotApi.ParseErrorResponse(System.Int32,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Collections.Generic.IEnumerable{System.String}}},CryptoExchange.Net.Interfaces.IMessageAccessor)">
<inheritdoc />
</member>
<member name="M:HTX.Net.Clients.SpotApi.HTXRestClientSpotApi.TryParseError(CryptoExchange.Net.Interfaces.IMessageAccessor)">
<member name="M:HTX.Net.Clients.SpotApi.HTXRestClientSpotApi.TryParseError(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Collections.Generic.IEnumerable{System.String}}},CryptoExchange.Net.Interfaces.IMessageAccessor)">
<inheritdoc />
</member>
<member name="M:HTX.Net.Clients.SpotApi.HTXRestClientSpotApi.GetSymbolName(System.String,System.String)">
Expand Down Expand Up @@ -539,7 +539,7 @@
<member name="M:HTX.Net.Clients.UsdtFutures.HTXRestClientUsdtFuturesApi.ParseErrorResponse(System.Int32,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Collections.Generic.IEnumerable{System.String}}},CryptoExchange.Net.Interfaces.IMessageAccessor)">
<inheritdoc />
</member>
<member name="M:HTX.Net.Clients.UsdtFutures.HTXRestClientUsdtFuturesApi.TryParseError(CryptoExchange.Net.Interfaces.IMessageAccessor)">
<member name="M:HTX.Net.Clients.UsdtFutures.HTXRestClientUsdtFuturesApi.TryParseError(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Collections.Generic.IEnumerable{System.String}}},CryptoExchange.Net.Interfaces.IMessageAccessor)">
<inheritdoc />
</member>
<member name="M:HTX.Net.Clients.UsdtFutures.HTXRestClientUsdtFuturesApi.GetServerTimestampAsync">
Expand Down Expand Up @@ -3441,6 +3441,11 @@
Urls to the API documentation
</summary>
</member>
<member name="P:HTX.Net.HTXExchange.Type">
<summary>
Type of exchange
</summary>
</member>
<member name="M:HTX.Net.HTXExchange.FormatSymbol(System.String,System.String,CryptoExchange.Net.SharedApis.TradingMode,System.Nullable{System.DateTime})">
<summary>
Format a base and quote asset to an HTX recognized symbol
Expand Down
5 changes: 5 additions & 0 deletions HTX.Net/HTXExchange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ public static class HTXExchange
"https://www.htx.com/en-us/opend/newApiPages/"
};

/// <summary>
/// Type of exchange
/// </summary>
public static ExchangeType Type { get; } = ExchangeType.CEX;

internal const string ClientOrderId = "AA1ef14811";
internal const string ClientOrderIdPrefix = ClientOrderId + LibraryHelpers.ClientOrderIdSeperator;

Expand Down

0 comments on commit b145394

Please sign in to comment.