Skip to content

CustomSymbolFuturesSettings

class cAlgo.API Since 5.3

DesktopCLICloud

Represents a custom symbol futures settings.

Environment behaviour

CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.

Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.

Definition

public class CustomSymbolFuturesSettings

Namespace: cAlgo.API · Group: Custom

Examples

var customSymbol = CustomSymbols.Add("MYGOLD.Z25", Symbols.GetSymbol("XAUUSD"));
customSymbol.FuturesSettings = new CustomSymbolFuturesSettings(new DateTime(2025, 12, 19, 20, 0, 0), new DateTime(2025, 12, 22, 0, 0, 0), 500);
Print("Contract expires at {0}", customSymbol.FuturesSettings.ExpirationTime);
from System import DateTime
customSymbol = api.CustomSymbols.Add("MYGOLD.Z25", api.Symbols.GetSymbol("XAUUSD"))
customSymbol.FuturesSettings = CustomSymbolFuturesSettings(DateTime(2025, 12, 19, 20, 0, 0), DateTime(2025, 12, 22, 0, 0, 0), 500)
api.Print(f"Contract expires at {customSymbol.FuturesSettings.ExpirationTime}")

Constructors

Name Description
CustomSymbolFuturesSettingsDesktopCLICloud Creates a new custom symbol futures settings.

Properties

Name Description
ExpirationTimeDesktopCLICloudDateTime Gets the expiration time of future contract.
LastTradeTimeDesktopCLICloudDateTime Gets the last trade time of future contract.
MaintenanceMarginDesktopCLIClouddouble? The amount of quote asset that will be taken as a margin per one traded lot.

See also