Help CenterHelp Center
Close WDS connection
close(c)
example
close(c) closes the Wind Data Feed Services (WDS) connection.
c
collapse all
Using a WDS connection, retrieve current data for a single security and display the data. Then close the connection.
Create a WDS connection.
c = wind;
Format output data for currency.
format bank
Using the 0001.HK security, retrieve the current high and low prices.
0001.HK
s = '0001.HK'; f = ["high","low"]; d = getdata(c,s,f)
d=1×2 table HIGH LOW _____ _____ 0001.HK 99.50 98.00
d is a table with one row for the single security. Each variable in the table corresponds to each specified field.
d
Close the WDS connection.
WDS connection, specified as a connection object created with the wind function.
wind
Introduced in R2018a
wind | getdata | history | timeseries | realtime | createorder
getdata
history
timeseries
realtime
createorder
Si dispone di una versione modificata di questo esempio. Desideri aprire questo esempio con le tue modifiche?
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office