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... | |
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.
user | 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.
|
getset |
Public access to the messages
Definition at line 39 of file NotificationManager.cs.