Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

moneynet

Create Money.Net connection

Description

The moneynet function creates a moneynet object. The moneynet object represents a Money.Net connection.

You can retrieve current, intraday, historical, real-time, and news data using the moneynet object. You can retrieve data based on your credentials that consist of a user name and password. For details about credentials, contact Money.Net.

Creation

Syntax

c = moneynet(username,password)
c = moneynet(username,password,portnumber)

Description

example

c = moneynet(username,password) creates a Money.Net connection c using the user name and password.

example

c = moneynet(username,password,portnumber) specifies a port number for the connection.

Input Arguments

expand all

User name required to access Money.Net data, specified as a character vector or string scalar. The user name is an email address. To request your Money.Net user name, contact Money.Net.

Data Types: char | string

Password required to access Money.Net data, specified as a character vector or string scalar. To request your Money.Net password, contact Money.Net.

Data Types: char | string

Port number of the Money.Net data server, specified as a numeric scalar.

Data Types: double

Properties

expand all

User name, specified as a character vector or string scalar.

Data Types: char | string

Port number of the Money.Net data server, specified as a numeric scalar.

Data Types: double

Money.Net server name, specified as a character vector or string scalar.

Data Types: char | string

Object Functions

closeClose Money.Net connection
getdataRetrieve Money.Net current data
isconnectionDetermine if Money.Net connection is valid
timeseriesRetrieve Money.Net intraday and historical data
realtimeRetrieve Money.Net real-time data
stopUnsubscribe Money.Net real-time data updates
getsubscriptionsRetrieve Money.Net subscribed symbols and event handler functions
optionchainRetrieve Money.Net option symbols
newsSearch and stream Money.Net latest news stories

Examples

expand all

Connect to Money.Net using a user name and password.

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

c = moneynet(username,pwd)
c = 

  moneynet with properties:

    Username: 'user@company.com'
        Port: 50010
      Server: 'NTY_JAMES_IRWIN_88 TCP'

c is the Money.Net connection object.

Verify the Money.Net connection c using isconnection.

v = isconnection(c)
v =

  logical

   1

isconnection returns 1, indicating a successful connection.

Close the Money.Net connection.

close(c)

Connect to Money.Net using a user name, password, and port number.

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

c = moneynet(username,pwd,portnumber)
c = 

  moneynet with properties:

    Username: 'user@company.com'
        Port: 50010
      Server: 'NTY_JAMES_IRWIN_88 TCP'

c is the Money.Net connection object.

Verify the Money.Net connection c using isconnection.

v = isconnection(c)
v =

  logical

   1

isconnection returns 1, indicating a successful connection.

Close the Money.Net connection.

close(c)

Introduced in R2016b

Was this topic helpful?