Skip to content

Plugin.History

property · Plugin · cAlgo.API

DesktopCLICloud

Represents the collection of all historical trades of the account.

Environment behaviour

CLI — not supported. Plugins cannot run in the CLI: ctrader-cli runs cBots only.

Cloud — not supported. Plugins cannot run in the cloud: it runs cBots only.

Definition

public History History {get;}
api.History: History

Returns History

Examples

foreach (HistoricalTrade trade in History)
{
    Print(trade.EntryTime);
}
for trade in api.History:
    print(trade.EntryTime)