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.
Log in to the WDS order management system using the WDS connection. Specify the broker, branch, user name, password, and account type.
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.
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 =
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.