GetCrossPrice (Asset fromAsset, Asset toAsset)
method
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]));
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.