From ec1f469848529b093fe3977a386139c5c2618d4b Mon Sep 17 00:00:00 2001 From: Jkorf Date: Wed, 5 Mar 2025 16:12:32 +0100 Subject: [PATCH] Added GenerateClientOrderId and ParseSymbol to ISharedClient --- .../SharedApis/Interfaces/ISharedClient.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CryptoExchange.Net/SharedApis/Interfaces/ISharedClient.cs b/CryptoExchange.Net/SharedApis/Interfaces/ISharedClient.cs index eca53e9..fa1713e 100644 --- a/CryptoExchange.Net/SharedApis/Interfaces/ISharedClient.cs +++ b/CryptoExchange.Net/SharedApis/Interfaces/ISharedClient.cs @@ -33,6 +33,19 @@ namespace CryptoExchange.Net.SharedApis /// string FormatSymbol(string baseAsset, string quoteAsset, TradingMode tradingMode, DateTime? deliverDate = null); + /// + /// Parse a string to a shared symbol + /// + /// Symbol as returned by the server + /// Shared symbol + SharedSymbol ParseSymbol(string symbol); + + /// + /// Generate a new random client order id + /// + /// + string GenerateClientOrderId(); + /// /// Set a default exchange parameter. This can be used instead of passing in an ExchangeParameters object which each request. ///