Asset
class
Contains all Asset information.
Properties
Description string | Exploits asset's description annotation. |
Id int | Retrieves asset's id. |
MinChange double | Returns a value of minimal change. |
Name string | Grasps asset's name. |
Type AssetType | Retrieves asset's type. |
Methods
GetAllAssets () Return: Asset[] | Returns collection of all available assets. |
GetAssetByName (string name) Return: Asset | Returns asset by it's name or null if asset with this name doesn't exist |
GetCrossPrice (Asset fromAsset, Asset toAsset) Return: double | Provides asset cross price by asset. |
GetCrossPrice (string fromAssetName, string toAssetName) Return: double | Provides asset cross price by name. |
GetHashCode () Return: int | -- |
GetServerBaseAsset () Return: Asset | Gets name of the base asset in terminal. |