public interface ITradingBot
void PlaceOrder(string symbol, double volume);
public class ForexBot : ITradingBot
public void Connect() => Console.WriteLine("Connected to Forex Broker.");
public void PlaceOrder(string symbol, double volume) => Console.WriteLine($"Forex Order: {symbol} - {volume} lots.");
public void Disconnect() => Console.WriteLine("Disconnected from Forex Broker.");
public class CryptoBot : ITradingBot
public void Connect() => Console.WriteLine("Connected to Crypto Exchange.");
public void PlaceOrder(string symbol, double volume) => Console.WriteLine($"Crypto Order: {symbol} - {volume} coins.");
public void Disconnect() => Console.WriteLine("Disconnected from Crypto Exchange.");
ITradingBot bot = new ForexBot();
bot.PlaceOrder("EURUSD", 1.5);
bot.PlaceOrder("BTCUSD", 0.2);