using System; using VTAPI; using WealthLab; namespace CMSAPI { public class CMSAPI:WealthLab.IWealthLabBroker3, VTAPI.IVT_APIEvents { #region IWealthLabBroker3 Members public void CancelTrade(int OrderID){} public void Login(IWealthLabBrokerUpdate3 Broker, IWealthLabConnection3 Conn) { Conn.Connect(); Broker.AccountInfo(1000, 999); } public int PlaceTrade(AlertTypeEnum Order, int Shares, string Symbol, OrderTypeEnum OrderType, double Price, bool GTC, SecurityTypeEnum SecurityType) { return 0; } #endregion #region IVT_APIEvents Members public void OnAccountChange(string ID, int Action) { throw new Exception("The method or operation is not implemented."); } public void OnAccountsChange() { throw new Exception("The method or operation is not implemented."); } public void OnChangesComplete() { throw new Exception("The method or operation is not implemented."); } public void OnChangesStart() { throw new Exception("The method or operation is not implemented."); } public void OnConnectionLost() { throw new Exception("The method or operation is not implemented."); } public void OnInstrumentChange(string InstrumentID) { throw new Exception("The method or operation is not implemented."); } public void OnInstrumentsChange() { throw new Exception("The method or operation is not implemented."); } public void OnMarketStatusChange() { throw new Exception("The method or operation is not implemented."); } public void OnNewAnnouncement() { throw new Exception("The method or operation is not implemented."); } public void OnNewServerMessage(int MsgID) { throw new Exception("The method or operation is not implemented."); } public void OnOrderChange(string ID, int Action) { throw new Exception("The method or operation is not implemented."); } public void OnOrdersChange() { throw new Exception("The method or operation is not implemented."); } public void OnPositionChange(string ID, int Action) { throw new Exception("The method or operation is not implemented."); } public void OnPositionsChange() { throw new Exception("The method or operation is not implemented."); } public void OnTradingDayClosed() { throw new Exception("The method or operation is not implemented."); } #endregion } }