Example #1
0
 /// <summary>
 /// Begins Maof trading session.
 /// </summary>
 /// <param name="sessionId">A <see cref="System.Int32"/>
 /// Unique Session Identification number that
 /// identifies the session for which the function is called.</param>
 /// <param name="Account">A<see cref="System.String"/>
 /// The account for which the maof session will be initialized.</param>
 /// <param name="Branch">A<see cref="System.String"/>
 /// The branch for which the maof session will be initialized.</param>
 /// <param name="calcType">A<see cref="TaskBarLibSim.SecurityCalcType"/>
 /// Type of calculation type for calculating account securities.
 /// It is ususally set to RM_Dill_ShortOrders.</param>
 /// <returns>A <see cref="System.Int32"/>
 /// 1 : Unable to begin Maof session.
 /// 0 : Maof session started successfully.
 /// -1 : General function failure.
 /// -2 : Account or branch parameters not relayed to function.
 /// -3 : DataBase failure.
 /// -4 : Account not found.
 /// -5 : Short Account not found.
 /// -6 : Inadequate "Generator" authorization.
 /// -7 : Inadequate User authorization.</returns>
 public virtual int StartMaofSession(int sessionId, string Account, string Branch, SecurityCalcType calcType)
 {
     return(0);
 }
 /// <summary>
 /// Begins Maof trading session.
 /// </summary>
 /// <param name="sessionId">A <see cref="System.Int32"/>
 /// Unique Session Identification number that 
 /// identifies the session for which the function is called.</param>
 /// <param name="Account">A<see cref="System.String"/>
 /// The account for which the maof session will be initialized.</param>
 /// <param name="Branch">A<see cref="System.String"/>
 /// The branch for which the maof session will be initialized.</param>
 /// <param name="calcType">A<see cref="TaskBarLibSim.SecurityCalcType"/>
 /// Type of calculation type for calculating account securities.
 /// It is ususally set to RM_Dill_ShortOrders.</param>
 /// <returns>A <see cref="System.Int32"/>  
 /// 1 : Unable to begin Maof session.
 /// 0 : Maof session started successfully.
 /// -1 : General function failure.
 /// -2 : Account or branch parameters not relayed to function.
 /// -3 : DataBase failure.
 /// -4 : Account not found.
 /// -5 : Short Account not found.
 /// -6 : Inadequate "Generator" authorization.
 /// -7 : Inadequate User authorization.</returns>
 public virtual int StartMaofSession(int sessionId, string Account, string Branch, SecurityCalcType calcType)
 {
     return 0;
 }