tradelogin
Log in to WDS order management system
Syntax
Description
Examples
Query Account Information Using Login Identifier
Using a WDS connection, log in to the WDS order management system and query for account information by using the login identifier.
Create a WDS connection.
c = wind;
Log in to the WDS order management system using the WDS connection. Specify the broker, branch, user name, password, and account type.
broker = "0000"; branch = "0"; capitalaccount = "1234567891011"; password = "abcdefghi"; accttype = "SHSZ"; d = tradelogin(c,broker,branch, ... capitalaccount,password,accttype)
d = 1×5 table LogonID LogonAccount AccountType ErrorCode ErrorMsg _______ _______________ ___________ _________ ________ 1 '1234567891011' 'SZSHA' 0 ''
d
is a table with these variables:
Login identifier
Account number
Account type
Error code
Error message
If the error code is 0
and the message is an empty character vector, then the login is successful.
Query for account information using the WDS connection, Account
query
term, and login identifier. Use the login identifier returned by the
tradelogin
function with the 'LogonID'
name-value
pair argument.
q = 'Account'; logonid = d.LogonID; d = query(c,q,'LogonID',logonid)
d = 4×10 table ShareholderStatus MainShareholderFlag AccountType MarketType Shareholder AssetAccount Customer Seat ErrorCode ErrorMsg _________________ ___________________ ___________ __________ ____________ _______________ _____________ _________ _________ ________ 48 0 'SZSHA' 'SH' '0123456789' '1234567891011' '12345678910' '0001000' 0 '' 48 0 'SHB' 'SH' '0123456789' '1234567891011' '12345678910' '0001000' 0 '' 48 0 'SZSHA' 'SZ' '0123456789' '1234567891011' '12345678910' '0001000' 0 '' 48 0 'SZB' 'SZ' '0123456789' '1234567891011' '12345678910' '0001000' 0 ''
d
is a table with these variables:
Shareholder status
Shareholder flag
Account type
Market type
Shareholder
Account number
Customer number
Seat
Error code
Error message
Log out from the WDS order management system using the login identifier.
d = tradelogout(c,logonid)
d = 1×3 table LogonID ErrorCode ErrorMsg _______ _________ ________ '1' 0 'logout'
d
is a table with these variables:
Login identifier
Error code
Error message
Close the WDS connection.
close(c)
Input Arguments
c
— WDS connection
connection object
WDS connection, specified as a connection object created with the wind
function.
broker
— Broker specification
character vector | string scalar
Broker specification, specified as a character vector or string scalar.
Example: "0000"
Data Types: char
| string
branch
— Branch name
character vector | string scalar
Branch name, specified as a character vector or string scalar.
Example: "0"
Data Types: char
| string
capitalaccount
— User name
character vector | string scalar
User name of the WDS account, specified as a character vector or string scalar. For credentials, contact Wind Information Co., Ltd.
Example: "1234567891011"
Data Types: char
| string
password
— Password
character vector | string scalar
Password of the WDS account, specified as a character vector or string scalar. For credentials, contact Wind Information Co., Ltd.
Example: "abcdefghi"
Data Types: char
| string
accttype
— Account type
character vector | string scalar
Account type, specified as a character vector or string scalar.
Example: "SHSZ"
Data Types: char
| string
Output Arguments
d
— Login information
table
Login information, returned as a table with these variables:
Login identifier
Account number
Account type
Error code
Error message
e
— WDS error identifier
numeric scalar
WDS error identifier, returned as a numeric scalar. The value 0
indicates a
successful execution of the tradelogin
function. Otherwise, for
details about the error, contact Wind Information Co., Ltd.
Version History
Introduced in R2018a
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
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)