Skip to content

Algo.History

property · Algo · cAlgo.API.Internals

DesktopCLICloud

Represents the collection of all historical trades of the account.

Definition

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

Returns History

Examples

foreach (var trade in History)
{
    Print("Entry time: {0}, Net profit: {1}", trade.EntryTime, trade.NetProfit);
}
for trade in api.History:
    api.Print(f"Entry time: {trade.EntryTime}, Net profit: {trade.NetProfit}")