|
Lean
$LEAN_TAG$
|
Local/desktop implementation of messaging system for Lean Engine. More...
Public Member Functions | |
| NotificationManager (bool liveMode) | |
| Initialize the messaging system More... | |
| bool | Email (string address, string subject, string message, string data, PyObject headers) |
| Send an email to the address specified for live trading notifications. More... | |
| bool | Email (string address, string subject, string message, string data="", Dictionary< string, string > headers=null) |
| Send an email to the address specified for live trading notifications. More... | |
| bool | Sms (string phoneNumber, string message) |
| Send an SMS to the phone number specified More... | |
| bool | Web (string address, object data, PyObject headers) |
| Place REST POST call to the specified address with the specified DATA. Python overload for Headers parameter. More... | |
| bool | Web (string address, object data=null, Dictionary< string, string > headers=null) |
| Place REST POST call to the specified address with the specified DATA. More... | |
| bool | Telegram (string id, string message, string token=null) |
| Send a telegram message to the chat ID specified, supply token for custom bot. Note: Requires bot to have chat with user or be in the group specified by ID. More... | |
| bool | Ftp (string hostname, string username, string password, string filePath, byte[] fileContent, int? port=null) |
| Send a file to the FTP specified server using password authentication over unsecure FTP. More... | |
| bool | Ftp (string hostname, string username, string password, string filePath, string fileContent, int? port=null) |
| Send a file to the FTP specified server using password authentication over unsecure FTP. More... | |
| bool | Sftp (string hostname, string username, string password, string filePath, byte[] fileContent, int? port=null) |
| Send a file to the FTP specified server using password authentication over SFTP. More... | |
| bool | Sftp (string hostname, string username, string password, string filePath, string fileContent, int? port=null) |
| Send a file to the FTP specified server using password authentication over SFTP. More... | |
| bool | Sftp (string hostname, string username, string privateKey, string privateKeyPassphrase, string filePath, byte[] fileContent, int? port=null) |
| Send a file to the FTP specified server using password authentication over SFTP using SSH keys. More... | |
| bool | Sftp (string hostname, string username, string privateKey, string privateKeyPassphrase, string filePath, string fileContent, int? port=null) |
| Send a file to the FTP specified server using password authentication over SFTP using SSH keys. More... | |
Properties | |
| ConcurrentQueue< Notification > | Messages [get, set] |
| Public access to the messages More... | |
Local/desktop implementation of messaging system for Lean Engine.
Definition at line 26 of file NotificationManager.cs.
| QuantConnect.Notifications.NotificationManager.NotificationManager | ( | bool | liveMode | ) |
Initialize the messaging system
Definition at line 44 of file NotificationManager.cs.
| bool QuantConnect.Notifications.NotificationManager.Email | ( | string | address, |
| string | subject, | ||
| string | message, | ||
| string | data, | ||
| PyObject | headers | ||
| ) |
Send an email to the address specified for live trading notifications.
| subject | Subject of the email |
| message | Message body, up to 10kb |
| data | Data attachment (optional) |
| address | Email address to send to |
| headers | Optional email headers to use |
Definition at line 62 of file NotificationManager.cs.
| bool QuantConnect.Notifications.NotificationManager.Email | ( | string | address, |
| string | subject, | ||
| string | message, | ||
| string | data = "", |
||
| Dictionary< string, string > | headers = null |
||
| ) |
Send an email to the address specified for live trading notifications.
| subject | Subject of the email |
| message | Message body, up to 10kb |
| data | Data attachment (optional) |
| address | Email address to send to |
| headers | Optional email headers to use |
Definition at line 75 of file NotificationManager.cs.
| bool QuantConnect.Notifications.NotificationManager.Sms | ( | string | phoneNumber, |
| string | message | ||
| ) |
Send an SMS to the phone number specified
| phoneNumber | Phone number to send to |
| message | Message to send |
Definition at line 93 of file NotificationManager.cs.
| bool QuantConnect.Notifications.NotificationManager.Web | ( | string | address, |
| object | data, | ||
| PyObject | headers | ||
| ) |
Place REST POST call to the specified address with the specified DATA. Python overload for Headers parameter.
| address | Endpoint address |
| data | Data to send in body JSON encoded |
| headers | Optional headers to use |
Definition at line 113 of file NotificationManager.cs.
| bool QuantConnect.Notifications.NotificationManager.Web | ( | string | address, |
| object | data = null, |
||
| Dictionary< string, string > | headers = null |
||
| ) |
Place REST POST call to the specified address with the specified DATA.
| address | Endpoint address |
| data | Data to send in body JSON encoded (optional) |
| headers | Optional headers to use |
Definition at line 124 of file NotificationManager.cs.
| bool QuantConnect.Notifications.NotificationManager.Telegram | ( | string | id, |
| string | message, | ||
| string | token = null |
||
| ) |
Send a telegram message to the chat ID specified, supply token for custom bot. Note: Requires bot to have chat with user or be in the group specified by ID.
| id | Chat or group ID to send message to |
| message | Message to send |
| token | Bot token to use for this message |
Definition at line 144 of file NotificationManager.cs.
| bool QuantConnect.Notifications.NotificationManager.Ftp | ( | string | hostname, |
| string | username, | ||
| string | password, | ||
| string | filePath, | ||
| byte[] | fileContent, | ||
| int? | port = null |
||
| ) |
Send a file to the FTP specified server using password authentication over unsecure FTP.
| hostname | FTP server hostname |
| username | The FTP server username |
| password | The FTP server password |
| filePath | The path to file on the FTP server |
| fileContent | The contents of the file |
| port | The FTP server port. Defaults to 21 |
Definition at line 166 of file NotificationManager.cs.
| bool QuantConnect.Notifications.NotificationManager.Ftp | ( | string | hostname, |
| string | username, | ||
| string | password, | ||
| string | filePath, | ||
| string | fileContent, | ||
| int? | port = null |
||
| ) |
Send a file to the FTP specified server using password authentication over unsecure FTP.
| hostname | FTP server hostname |
| username | The FTP server username |
| password | The FTP server password |
| filePath | The path to file on the FTP server |
| fileContent | The string contents of the file |
| port | The FTP server port. Defaults to 21 |
Definition at line 180 of file NotificationManager.cs.
| bool QuantConnect.Notifications.NotificationManager.Sftp | ( | string | hostname, |
| string | username, | ||
| string | password, | ||
| string | filePath, | ||
| byte[] | fileContent, | ||
| int? | port = null |
||
| ) |
Send a file to the FTP specified server using password authentication over SFTP.
| hostname | FTP server hostname |
| username | The FTP server username |
| password | The FTP server password |
| filePath | The path to file on the FTP server |
| fileContent | The contents of the file |
| port | The FTP server port. Defaults to 21 |
Definition at line 194 of file NotificationManager.cs.
| bool QuantConnect.Notifications.NotificationManager.Sftp | ( | string | hostname, |
| string | username, | ||
| string | password, | ||
| string | filePath, | ||
| string | fileContent, | ||
| int? | port = null |
||
| ) |
Send a file to the FTP specified server using password authentication over SFTP.
| hostname | FTP server hostname |
| username | The FTP server username |
| password | The FTP server password |
| filePath | The path to file on the FTP server |
| fileContent | The string contents of the file |
| port | The FTP server port. Defaults to 21 |
Definition at line 208 of file NotificationManager.cs.
| bool QuantConnect.Notifications.NotificationManager.Sftp | ( | string | hostname, |
| string | username, | ||
| string | privateKey, | ||
| string | privateKeyPassphrase, | ||
| string | filePath, | ||
| byte[] | fileContent, | ||
| int? | port = null |
||
| ) |
Send a file to the FTP specified server using password authentication over SFTP using SSH keys.
| hostname | FTP server hostname |
| username | The FTP server username |
| privateKey | The private SSH key to use for authentication |
| privateKeyPassphrase | The optional passphrase to decrypt the private key. This can be empty or null if the private key is not encrypted |
| filePath | The path to file on the FTP server |
| fileContent | The contents of the file |
| port | The FTP server port. Defaults to 21 |
Definition at line 224 of file NotificationManager.cs.
| bool QuantConnect.Notifications.NotificationManager.Sftp | ( | string | hostname, |
| string | username, | ||
| string | privateKey, | ||
| string | privateKeyPassphrase, | ||
| string | filePath, | ||
| string | fileContent, | ||
| int? | port = null |
||
| ) |
Send a file to the FTP specified server using password authentication over SFTP using SSH keys.
| hostname | FTP server hostname |
| username | The FTP server username |
| privateKey | The private SSH key to use for authentication |
| privateKeyPassphrase | The optional passphrase to decrypt the private key. This can be empty or null if the private key is not encrypted |
| filePath | The path to file on the FTP server |
| fileContent | The string contents of the file |
| port | The FTP server port. Defaults to 21 |
Definition at line 249 of file NotificationManager.cs.
|
getset |
Public access to the messages
Definition at line 39 of file NotificationManager.cs.