Provides asset cross price by asset.
SYNTAX
public static double GetCrossPrice (Asset fromAsset,Asset toAsset)
PARAMETERS
fromAsset — Asset
toAsset — Asset
RETURN
double
EXAMPLE
using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Drawing; using PTLRuntime.NETScript; namespace GetCrossPriceExamples { public class GetCrossPriceExamples : NETStrategy { public override void OnQuote() { Asset[] ass; ass=Asset.GetAllAssets(); Print(Asset.GetCrossPrice(ass[0],ass[1])); } } }