stop
Syntax
Description
Examples
Unsubscribe All Real-Time Data Updates
Create Money.Net web socket interface connection c
using a user name
and password.
username = "user@company.com"; pwd = "999999"; c = moneynetws(username,pwd);
Subscribe to the symbols IBM® and Google® for real-time data updates using the Money.Net connection
c
.
symbols = ["IBM" "GOOG"]; 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 web socket interface connection.
close(c)
Unsubscribe Real-Time Data Updates for One Symbol
Create Money.Net web socket interface connection c
using a user name
and password.
username = "user@company.com"; pwd = "999999"; c = moneynetws(username,pwd);
Subscribe to the symbols IBM and Google for real-time data updates using the Money.Net connection
c
.
symbols = ["IBM" "GOOG"]; 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 Google only. For details about the event handler function, see
realtime
.
Close the Money.Net web socket interface connection.
close(c)
Input Arguments
c
— Money.Net web socket interface connection
moneynetws
object
Money.Net web socket interface connection, specified as a moneynetws
object created using the moneynetws
function.
symbols
— Money.Net symbol list
character vector | cell array of character vectors | string scalar | string array
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
Version History
Introduced in R2021b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)