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)
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.
Money.Net web socket interface connection, specified as a moneynetws
object created using the moneynetws function.
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.
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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.