Field name (REST)

Field tag (WS)


Possible values

Description

MsgType

35

M

D


Account

1

M

ulong

Account ID

ClOrdId

11

M

string (40)


Symbol

55

M

string


OrdType

40

M

OrdType


Side

54

M

1 - Buy

2 - Sell


OrderQty

38

M

decimal


Price

44

C

decimal

Required for Limit and Stop-Limit orders

StopPx

99

C

decimal

Stop (trigger) price, required for Stop and Stop-Limit orders

TimeInForce

59

O

TimeInForce


ExecInst

18

O

ExecInst


PositionID

2618

C

ulong

Required when PositionEffect == Close and hedged accounting is used

PositionEffect

77

O

C — Close

O — Open

Send C along with the PositionID if the order must close a position (in the hedged accounting mode)

TransactTime

60

M

timestamp

Current timestamp

Text

58

O

string (40)

Optional comment for the order

GrpID

TODO

O

string (40)

Group identifier for cancel on disconnect orders

Samples

WS

REST

{
"1":1013838923,
"11":str(int(time.time() * 100000000)),
"38":"1",
"40":"2",
"54":"1",
"44":"9527",
"55": "XBTUSD",
"60":11
}


{
"account":1013838923,
"clOrdId":str(int(time.time() * 100000000)),
"orderQty":"1",
"ordType":"2",
"side":"1",
"price":"9527",
"symbol": "XBTUSD",
"transactTime":11
}