Gets margin surplus.


SYNTAX


public double GetMarginSurplus (string assetName)


PARAMETERS


assetName — string

Asset name


RETURN


double Returns margin surplus


EXAMPLE


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

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