login (int mode): int
Logs in or out to the broker API..
mode - 0 for checking the login state, 1 for logging in, 2 for logging out, 4 for completely closing the broker API.
1 when Zorro is logged in, 0 otherwise.
- 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.
Brokers, broker plugin