Gets margin for orders.


SYNTAX


public double GetMarginForOrders (string assetName)


PARAMETERS


assetName — string


RETURN


double Returns margin for orders


EXAMPLE


using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;

namespace GetMarginForOrdersExamples
{
     public class GetMarginForOrdersExamples : NETStrategy
     {     
         public override void OnQuote()
         {
             Account acc = Accounts.Current;
             Print(acc.GetMarginForOrders("USD").ToString()); 
         }  
     }
}