public static void createInstace(NinjaTraderAPI api, int positionSize) { if (theInstace == null) { theInstace = new NTLiveTradingAPI(api, positionSize); } else { throw new Exception("NTLiveTradingAPI Constructor: There is allready an instance"); } }
private NTLiveTradingAPI(NinjaTraderAPI api, int positionSize) { this.api = api; this.positionSize = positionSize; api.tickdataArrived += api_tickdataArrived; }