コード例 #1
0
 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");
     }
 }
コード例 #2
0
 private NTLiveTradingAPI(NinjaTraderAPI api, int positionSize)
 {
     this.api             = api;
     this.positionSize    = positionSize;
     api.tickdataArrived += api_tickdataArrived;
 }