Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Nov 15, 2024
1 parent 185b2fb commit 2b02d3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ public TestEnvironment(string name, string url) : base(name)
{
TestAddress = url;
}

public override T GetEnvironmentByName<T>(string? name)
{
return (T)(TradeEnvironment)new TestEnvironment(name, "https://test.test")!;
}
}

public class TestSocketOptions: SocketExchangeOptions<TestEnvironment>
Expand Down
7 changes: 1 addition & 6 deletions CryptoExchange.Net/Objects/TradeEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static class TradeEnvironmentNames
/// Trade environment. Contains info about URL's to use to connect to the API. To swap environment select another environment for
/// the echange's environment list or create a custom environment using either `[Exchange]Environment.CreateCustom()` or `[Exchange]Environment.[Environment]`, for example `KucoinEnvironment.TestNet` or `BinanceEnvironment.Live`
/// </summary>
public abstract class TradeEnvironment
public class TradeEnvironment
{
/// <summary>
/// Name of the environment
Expand All @@ -33,10 +33,5 @@ protected TradeEnvironment(string name)
{
Name = name;
}

/// <summary>
/// Get a trade environment by name
/// </summary>
public abstract T? GetEnvironmentByName<T>(string? name) where T : TradeEnvironment;
}
}

0 comments on commit 2b02d3d

Please sign in to comment.