Main Content

stop

Unsubscribe Money.Net real-time data updates

Description

example

stop(c) unsubscribes real-time data updates associated with the Money.Net connection c.

example

stop(c,symbols) unsubscribes real-time data updates for the specified symbols.

Examples

collapse all

Create Money.Net connection c using a user name and password.

username = 'user@company.com';
pwd = '999999';

c = moneynet(username,pwd);

Subscribe to the symbols IBM® and Yahoo!® for real-time data updates using the Money.Net connection c.

symbols = {'IBM','YHOO'};

realtime(c,symbols)

The default event handler function processes real-time data updates.

Unsubscribe from all symbol subscriptions.

stop(c)

The default event handler function stops processing all real-time data updates. For details about the event handler function, see realtime.

Close the Money.Net connection.

close(c)

Create Money.Net connection c using a user name and password.

username = 'user@company.com';
pwd = '999999';

c = moneynet(username,pwd);

Subscribe to the symbols IBM and Yahoo! for real-time data updates using the Money.Net connection c.

symbols = {'IBM','YHOO'};

realtime(c,symbols)

The default event handler function processes real-time data updates.

Unsubscribe from real-time data updates for IBM only.

symbol = 'IBM';

stop(c,symbol)

The default event handler function stops processing real-time data updates for IBM. The real-time data updates continue for Yahoo! only. For details about the event handler function, see realtime.

Close the Money.Net connection.

close(c)

Input Arguments

collapse all

Money.Net connection, specified as a connection object created using moneynet.

Money.Net symbol list, specified as a character vector, cell array of character vectors, string scalar, or a string array. To specify one symbol, use a character vector or string scalar. To specify multiple symbols, use a cell array of character vectors or a string array.

Example: 'IBM'

Example: {'IBM','GOOG'}

Data Types: char | cell | string

Introduced in R2016b