login (int mode): int

Logs in or out to the broker API..

Parameters:

mode - 0 for checking the login state, 1 for logging in, 2 for logging out, 4 for completely closing the broker API.

Returns:

1 when Zorro is logged in, 0 otherwise.

Remarks:

Example:

 

See also:

Brokers, broker plugin

► latest version online