Error
interface cAlgo.API
DesktopCLICloud
Encapsulates an error code.
Definition
public interface Error
Namespace: cAlgo.API · Group: Trading
Examples
protected override void OnError(Error error)
{
Print("Trade error {0}, result: {1}", error.Code, error.TradeResult);
}
def on_error(self, error):
api.Print(f"Trade error {error.Code}, result: {error.TradeResult}")
Properties
| Name | Description |
|---|---|
CodeDesktopCLICloudErrorCode | The encapsulated error code. |
TradeResultDesktopCLICloudTradeResult | The result of the trade that produced the error |