mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-12 08:53:01 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 32a31e464b | |||
| cddb4167e4 | |||
| 65457d8df2 | |||
| 122a6cad43 | |||
| 4c0e841425 |
@@ -6,9 +6,9 @@
|
||||
<PackageId>CryptoExchange.Net.Protobuf</PackageId>
|
||||
<Authors>JKorf</Authors>
|
||||
<Description>Protobuf support for CryptoExchange.Net</Description>
|
||||
<PackageVersion>9.2.0</PackageVersion>
|
||||
<AssemblyVersion>9.2.0</AssemblyVersion>
|
||||
<FileVersion>9.2.0</FileVersion>
|
||||
<PackageVersion>9.3.0</PackageVersion>
|
||||
<AssemblyVersion>9.3.0</AssemblyVersion>
|
||||
<FileVersion>9.3.0</FileVersion>
|
||||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
|
||||
<PackageTags>CryptoExchange;CryptoExchange.Net</PackageTags>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
@@ -41,7 +41,7 @@
|
||||
<DocumentationFile>CryptoExchange.Net.Protobuf.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CryptoExchange.Net" Version="9.2.0" />
|
||||
<PackageReference Include="CryptoExchange.Net" Version="9.3.0" />
|
||||
<PackageReference Include="protobuf-net" Version="3.2.52" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -5,5 +5,8 @@
|
||||
Protobuf support for CryptoExchange.Net.
|
||||
|
||||
## Release notes
|
||||
* Version 9.3.0 - 23 Jul 2025
|
||||
* Updated CryptoExchange.Net to version 9.3.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
|
||||
|
||||
* Version 9.2.0 - 14 Jul 2025
|
||||
* Initial release
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
<PackageId>CryptoExchange.Net</PackageId>
|
||||
<Authors>JKorf</Authors>
|
||||
<Description>CryptoExchange.Net is a base library which is used to implement different cryptocurrency (exchange) API's. It provides a standardized way of implementing different API's, which results in a very similar experience for users of the API implementations.</Description>
|
||||
<PackageVersion>9.3.0</PackageVersion>
|
||||
<AssemblyVersion>9.3.0</AssemblyVersion>
|
||||
<FileVersion>9.3.0</FileVersion>
|
||||
<PackageVersion>9.3.1</PackageVersion>
|
||||
<AssemblyVersion>9.3.1</AssemblyVersion>
|
||||
<FileVersion>9.3.1</FileVersion>
|
||||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
|
||||
<PackageTags>OKX;OKX.Net;Mexc;Mexc.Net;Kucoin;Kucoin.Net;Kraken;Kraken.Net;Huobi;Huobi.Net;CoinEx;CoinEx.Net;Bybit;Bybit.Net;Bitget;Bitget.Net;Bitfinex;Bitfinex.Net;Binance;Binance.Net;CryptoCurrency;CryptoCurrency Exchange</PackageTags>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
|
||||
@@ -20,6 +20,10 @@
|
||||
/// <summary>
|
||||
/// Quantity can be either base or quote quantity
|
||||
/// </summary>
|
||||
BaseAndQuoteAsset
|
||||
BaseAndQuoteAsset,
|
||||
/// <summary>
|
||||
/// Quantity can be either base or quote quantity, or in contracts
|
||||
/// </summary>
|
||||
BaseAndQuoteAssetAndContracts
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,6 +65,9 @@ namespace CryptoExchange.Net.SharedApis
|
||||
if (supportedType == quantityType)
|
||||
return true;
|
||||
|
||||
if (supportedType == SharedQuantityType.BaseAndQuoteAssetAndContracts)
|
||||
return true;
|
||||
|
||||
if (supportedType == SharedQuantityType.BaseAndQuoteAsset && (quantityType == SharedQuantityType.BaseAsset || quantityType == SharedQuantityType.QuoteAsset))
|
||||
return true;
|
||||
|
||||
@@ -77,7 +80,7 @@ namespace CryptoExchange.Net.SharedApis
|
||||
public Error? Validate(SharedOrderSide side, SharedOrderType type, SharedQuantity? quantity)
|
||||
{
|
||||
var supportedType = GetSupportedQuantityType(side, type);
|
||||
if (supportedType == SharedQuantityType.BaseAndQuoteAsset)
|
||||
if (supportedType == SharedQuantityType.BaseAndQuoteAsset || supportedType == SharedQuantityType.BaseAndQuoteAssetAndContracts)
|
||||
return null;
|
||||
|
||||
if (supportedType == SharedQuantityType.BaseAndQuoteAsset && quantity != null && quantity.QuantityInBaseAsset == null && quantity.QuantityInQuoteAsset == null)
|
||||
|
||||
@@ -7,6 +7,10 @@ namespace CryptoExchange.Net.SharedApis
|
||||
/// </summary>
|
||||
public record SharedPosition : SharedSymbolModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Position id
|
||||
/// </summary>
|
||||
public string? Id { get; set; }
|
||||
/// <summary>
|
||||
/// Current size of the position
|
||||
/// </summary>
|
||||
|
||||
@@ -58,6 +58,10 @@ Make a one time donation in a crypto currency of your choice. If you prefer to d
|
||||
Alternatively, sponsor me on Github using [Github Sponsors](https://github.com/sponsors/JKorf).
|
||||
|
||||
## Release notes
|
||||
* Version 9.3.1 - 29 Jul 2025
|
||||
* Added BaseAndQuoteAssetAndContracts value to SharedQuantityType enum
|
||||
* Added Id property to SharedPosition model
|
||||
|
||||
* Version 9.3.0 - 23 Jul 2025
|
||||
* Updated websocket message to listener matching logic to be more flexible
|
||||
* Updated decimal parser to support "NaN" and "-Infinity" strings, added check for negative overflow value, improved performance in most cases
|
||||
|
||||
Reference in New Issue
Block a user