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.
Here is a request sample, again “pass” field needs to be encrypted using pubic key from challenge response.
SAMPLE REQUEST ADD USERS
{“type”:”adduser”,”userid”:”[email protected]”,”pass”:”SZ7DMkMnU5qBszWkABPHsUjkPKol
cmWXbSdaydjsMOJG/CnujgQhm4vRWWr6BQmH9SsU7fFeheGYatTIL+n0yC+C0TqaOipSpC7rDSa
pveEsqHJTPgXYXeOb34wj76IHdv44UwT2Vr9Db+t6Q0K1j
wITy7/CxOqpYRea5g7Zt7A=”}
SAMPLE RESPONSES SUCCESS OR FAILURE
{“result”:”password
issue”,”userid”:”testuse[email protected]