diff --git a/src/ExchangeSharp/API/Exchanges/_Base/ExchangeAPI.cs b/src/ExchangeSharp/API/Exchanges/_Base/ExchangeAPI.cs index 40bccef3..386445b8 100644 --- a/src/ExchangeSharp/API/Exchanges/_Base/ExchangeAPI.cs +++ b/src/ExchangeSharp/API/Exchanges/_Base/ExchangeAPI.cs @@ -405,6 +405,18 @@ public static async Task CreateExchangeAPIAsync() where T : ExchangeAPI return (T)await InitializeAPIAsync(typeof(T)); } + /// + /// Create an exchange api, by-passing any cache. Use this method for cases + /// where you need multiple instances of the same exchange, for example + /// multiple credentials. + /// + /// Created exchange api + public static async Task CreateExchangeAPIAsync(string name) + { + var type = ExchangeName.GetExchangeType(name); + return await InitializeAPIAsync(type); + } + /// /// Get a cached exchange API given an exchange name (see ExchangeName class) ///