bool CloseAlg(AlgId tAlg)
tAlg. Moniker of opened indicators calculation algorithm instance.
The CloseAlg operation closes indicators calculation algorithm instance.
To execute the operation, in the tAlg field specify the calculation algorithm instance moniker to be closed. The operation results in the logical true if the object was closed successfully.
Below is the example of closing calculation algorithm instance. The request contains moniker of opened calculation algorithm instance. The response indicates whether closing was successful.
{
"CloseAlg" :
{
"tAlg" :
{
"id" : "S1!M!S!C1"
}
}
}
{
"CloseAlgResult" : "1"
}
public static bool CloseAlg(AlgId moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseAlg()
{
tAlg = moniker
};
//Close indicators calculation algorithm instance
var result = somClient.CloseAlg(tClose);
return result;
}
See also: