Provides asset cross price by name.
SYNTAX
public static double GetCrossPrice (string fromAssetName,string toAssetName)
PARAMETERS
fromAssetName — string
toAssetName — string
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() { Print(Asset.GetCrossPrice("XAG","HKD")); } } }