TABLE OF CONTENTS



Sent by client (Trading API)

Field name (REST)

Field tag (WS)


Possible values

Description

msgType

35

M

A


username

553

M

string

API key

sendingTime

52

M

timestamp

Timestamp of generation of the signature (nonce)

password

554

M

string

Signature

rawData

96

M

string

String “AUTH<Nonce>” (without brackets and quote marks, e.g. AUTH128324300)

account

1

O

Array of ulong

List of accounts to use for this connection. If not provided, all accounts within the profile will be used.


Refer to this article for further instructions.


Samples

WS

REST

{
"35":"A",
"553":"tkNn7TNIiH68AUQMSiCDtGutVi9DxtzVVxV6vaG5Lb4=",
"52":1591628369915670813,
AUTH1591628369915670813,
"554":"30770201010420af50c62f985c86bc6c1510305ee4f0957d23e298c64f90cb77a4bd52febbf8e9a00a06082a8648ce3d030107a1440342000470f62f2949010847a583b13b0117fc34"
}


{
"username":"tkNn7TNIiH68AUQMSiCDtGutVi9DxtzVVxV6vaG5Lb4=",
"sendingTime":1591628369905670813,
"password":"30770201010420af50c62f965c86bc6c1510305ee4f0957d23e298c64f90cb77a4bd52febbf8e9a00a06082a8648ce3d030107a1440342000470f62f2949010841a583b13b0117fc34"
AUTH1591628369915670813,
"account":1013838723
 }


Sent by server (Trading API)

Field name (REST)

Field tag (WS)


Possible values

Description

msgType

35

M

A


account

1

M

Array of ulong

List of accounts for the connection

sendingTime

52

M

timestamp


sessionStatus

1409

M

0 — SessionActive (successful authentication)

5 — InvalidUsernameOrPassword

6 — AccountLocked


rejectText

1328

O

string

Additional information in case of unsuccessful authentication

heartBtInt

108

M

number

Heartbeat interval in seconds

cstmApplVerId

1129

M

string

API version

Samples

WS

REST

{
"35":"A",
"1409":"0",
"108":5,
"1":1012838823,
"52":1591628369905670813,
"1129":"1.0"
}


{
"msgType":"A",
"account":1012838823,
"sendingTime":1591628369905670813,
"sessionStatus":"0",
"rejectText":"",
"heartBtInt":5,
"cstmApplVerId":"1.0"
}



Sent by server (Market data API)

Field name (REST)

Field tag (WS)


Possible values

Description

msgType

35

M

A


heartBtInt

108

M

number

Heartbeat interval in seconds

cstmApplVerId

1129

M

string

API version

Samples

WS

REST

{
"35":"A",
"108":5,
"1129":"1.0"
}


{
"msgType":"A",
"heartBtInt":5,
"cstmApplVerId":"1.0"
}