Asset CLASS

Description PROPERTY (string)
Exploits asset's description annotation. SYNTAX public string Description { get; } EXAMPLE using System; using System.Collections; using Syst...
Id PROPERTY (int)
Retrieves asset's id. SYNTAX public int Id { get; } EXAMPLE using System; using System.Collections; using System.Collections.Generic...
MinChange PROPERTY (double)
Returns a value of minimal change. SYNTAX public double MinChange { get; } EXAMPLE using System; using System.Collections; using System.Coll...
Name PROPERTY (string)
Grasps asset's name. SYNTAX public string Name { get; } EXAMPLE using System; using System.Collections; using System.Collections.Gen...
Type PROPERTY (AssetType)
Retrieves asset's type. SYNTAX public AssetType Type { get; } EXAMPLE using System; using System.Collections; using System.Collections....
GetAllAssets () METHOD (Return: Asset[])
Returns collection of all available assets. SYNTAX public static Asset[] GetAllAssets () RETURN Asset[] EXAMPLE using System; using ...
GetAssetByName (string name) METHOD (Return: Asset)
Returns asset by it's name or null if asset with this name doesn't exist. SYNTAX public static Asset GetAssetByName (string name) P...
GetCrossPrice (Asset fromAsset, Asset toAsset) METHOD (Return: double)
Provides asset cross price by asset. SYNTAX public static double GetCrossPrice (Asset fromAsset,Asset toAsset) PARAMETERS fromAsset — Ass...
GetCrossPrice (string fromAssetName, string toAssetName) METHOD (Return: double)
Provides asset cross price by name. SYNTAX public static double GetCrossPrice (string fromAssetName,string toAssetName) PARAMETERS fromAsset...
GetHashCode () METHOD (Return: int)
SYNTAX public override int GetHashCode () RETURN int EXAMPLE using System; using System.Collections; using System.Collections.Generic...