GetCrossPrice (string fromAssetName, string toAssetName)
method
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"));
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.