mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-12 00:43:03 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b7107401f | |||
| 06add65354 | |||
| 773d288497 | |||
| fd4e8da938 |
@@ -73,11 +73,11 @@ namespace CryptoExchange.Net.UnitTests
|
||||
}
|
||||
|
||||
[Test]
|
||||
[TestCase("123", "BKR", 32, true, "BKR|JK|123")]
|
||||
[TestCase("123", "BKR", 32, true, "BKRJK123")]
|
||||
[TestCase("123", "BKR", 32, false, "123")]
|
||||
[TestCase("123123123123123123123123123123", "BKR", 32, true, "123123123123123123123123123123")] // 30
|
||||
[TestCase("123123123123123123123123123", "BKR", 32, true, "123123123123123123123123123")] // 27
|
||||
[TestCase("1231231231231231231231231", "BKR", 32, true, "BKR|JK|1231231231231231231231231")] // 25
|
||||
[TestCase("12312312312312312312312312312", "BKR", 32, true, "12312312312312312312312312312")] // 27
|
||||
[TestCase("123123123123123123123123123", "BKR", 32, true, "BKRJK123123123123123123123123123")] // 25
|
||||
[TestCase(null, "BKR", 32, true, null)]
|
||||
public void ApplyBrokerIdTests(string clientOrderId, string brokerId, int maxLength, bool allowValueAdjustement, string expected)
|
||||
{
|
||||
|
||||
@@ -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>8.4.1</PackageVersion>
|
||||
<AssemblyVersion>8.4.1</AssemblyVersion>
|
||||
<FileVersion>8.4.1</FileVersion>
|
||||
<PackageVersion>8.4.3</PackageVersion>
|
||||
<AssemblyVersion>8.4.3</AssemblyVersion>
|
||||
<FileVersion>8.4.3</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>
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CryptoExchange.Net
|
||||
/// <summary>
|
||||
/// Client order id seperator
|
||||
/// </summary>
|
||||
public const string ClientOrderIdSeperator = "|JK|";
|
||||
public const string ClientOrderIdSeperator = "JK";
|
||||
|
||||
/// <summary>
|
||||
/// Apply broker id to a client order id
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CryptoExchange.Net.Trackers.Klines
|
||||
/// <summary>
|
||||
/// The internal data structure
|
||||
/// </summary>
|
||||
protected readonly Dictionary<DateTime, SharedKline> _data = new Dictionary<DateTime, SharedKline>();
|
||||
protected readonly SortedDictionary<DateTime, SharedKline> _data = new SortedDictionary<DateTime, SharedKline>();
|
||||
/// <summary>
|
||||
/// The pre-snapshot queue buffering updates received before the snapshot is set and which will be applied after the snapshot was set
|
||||
/// </summary>
|
||||
|
||||
@@ -50,6 +50,12 @@ 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 8.4.3 - 03 Dec 2024
|
||||
* Fixed KlineTracker update handling
|
||||
|
||||
* Version 8.4.2 - 02 Dec 2024
|
||||
* Removed special characters in ClientOrderIdSeperator to adhere to field content rules
|
||||
|
||||
* Version 8.4.1 - 02 Dec 2024
|
||||
* Added JsonConverterCtorAttribute to allow specifying a custom JsonConverter with constructor parameters on properties
|
||||
* Added ReplaceConverter System.Text.Json converter
|
||||
|
||||
Reference in New Issue
Block a user