USERS
Adding users to the market center
After login, the following trading APIs functions are available to the client.
“adduser
”“deposit”
“withdraw”
“querydeposit”
“querytrade”
“logout”
“getsymbols”
“addorder”
“cancelorder”
MESSAGE UPDATES FROM FI TO CLIENTS
FI will send current open orders and position info to the client upon login. If client places a new order, FI will send client an order update automatically. If there is trade, client will receive a trade update and corresponding position updates.
ADD USERS
Administrator account can use this command to add additional users. Ordinary user can use this command to update password.
The "userid"
is what a user uses to login, but alongside that id you can separately set a "complianceid"
also known as a "traderid"
. If the "complianceid"
is not set it will default to be the "userid"
.
Here is a request sample, again “pass” field needs to be encrypted using pubic key from challenge response.
SAMPLE REQUEST ADD USERS
SAMPLE RESPONSES SUCCESS OR FAILURE
This "attr" property is an object which can contain any number of keys within it. In this "attr" property you can store any user data that you need - such as address, name, email and etc.
Updating user data with the "adduser"
message.
“adduser”
command can be used for both adding user and updating user profile."updateprof”
, true:false, if you set it to true, this is to update existing user profile.
Superuser can update fields such as “active”, password… any field. Ordinary user can update his own password and should be allowed to update “attr”
field also. (This way, user’s own preference can be saved by user directly, that is why account management items should be outside “attr” field)
Below is an example of updating "active", you need to set “active” besides setting “updateprof” to true.
REQUEST TO SET ACTIVE
RESPONSE TO SET ACTIVE
Last updated
Was this helpful?