コード例 #1
0
ファイル: Security.cs プロジェクト: webkawa/poneyrox-csharp
        /// <summary>
        /// Set the leverage parameter for this security
        /// </summary>
        /// <param name="leverage">Leverage for this asset</param>
        public void SetLeverage(decimal leverage)
        {
            if (Symbol.ID.SecurityType == SecurityType.Future ||
                Symbol.ID.SecurityType == SecurityType.Option)
            {
                return;
            }

            MarginModel.SetLeverage(this, leverage);
        }
コード例 #2
0
 /// <summary>
 /// Set the leverage parameter for this security
 /// </summary>
 /// <param name="leverage">Leverage for this asset</param>
 public void SetLeverage(decimal leverage)
 {
     MarginModel.SetLeverage(this, leverage);
 }