Assets
Summary
Represents the list of all the assets with the asset names as string values.
Signature
| public abstract interface Assets
|
Namespace
cAlgo.API
Methods
Name | Description |
GetAsset | Gets the asset. |
GetAssets | Get multiple assets on a single call. |
Exists | Defines if the specific asset exists. |
Properties
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | using cAlgo.API;
namespace cAlgo.Robots
{
[Robot(AccessRights = AccessRights.None)]
public class NewcBot2 : Robot
{
protected override void OnStart()
{
foreach (var assetName in Assets)
{
var asset = Assets.GetAsset(assetName);
Print("Asset Name: {0} | Asset Digits: {1} | Is Deposit Asset: {2}", asset.Name, asset.Digits, asset.Name == Account.Asset.Name);
}
}
}
}
|
Last update: January 30, 2023