Gets available margin.


SYNTAX


public double GetMarginAvailable (string assetName)


PARAMETERS


assetName — string

Asset name


RETURN


double Returns available margin


EXAMPLE


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

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