Gets balance.


SYNTAX


public double GetBalance (string assetName)


PARAMETERS

assetName — string

Asset name


RETURN

double Returns the account balance


EXAMPLE


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

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