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:
- For recovering from a broker API crash, call login(4), then login(1).
- Zorro normally logs in and out automatically, so this function is for special purposes only.
Example:
See also:
Brokers, broker plugin
► latest
version online