Retrieve Money.Net subscribed symbols and event handler functions
Create Money.Net connection
a user name and password.
username = 'email@example.com'; pwd = '999999'; c = moneynet(username,pwd);
Subscribe to the symbols IBM® and Yahoo!® for real-time
data updates using the Money.Net connection
symbols = ["IBM" "YHOO"]; realtime(c,symbols)
The default event handler function processes real-time data updates.
Retrieve the subscribed symbols and the corresponding
event handler function for each symbol using the Money.Net connection
subs = getsubscriptions(c)
subs = Symbols EventHandlers _______ _______________________ 'IBM' @mnRealTimeEventHandler 'YHOO' @mnRealTimeEventHandler
subs returns a table with a row for each
symbol and the corresponding event handler function.
Unsubscribe from all symbols using the Money.Net connection
Close the Money.Net connection.
subs— Subscription list
Subscription list, returned as a table. The list contains all currently subscribed symbols and the corresponding event handler function that is processing real-time updates for each symbol. Each row in the table represents one unique subscription.
If there are no subscribed symbols,
an empty table.