Below is a list of error codes and their meanings for API responses:

Code

Description

-99

System error, please try again later

0

Success

2

Record not found

3

Record already exists

4

Invalid action

5

Invalid value

7

Invalid session

8

Contract product does not exist

9

User does not exist

11

Market data not found

12

Field error

14

Duplicate action

18

Market order cannot be queued

20

Order expired

21

Order exceeds capacity

22

Order already exists

24

Order does not exist

25

Quote does not exist

26

Invalid contract product status

27

Invalid contract product status

30

Insufficient quantity to modify

31

Insufficient position to close

32

Position limit

33

Assets below zero after closing position

34

User position limit

35

Insufficient balance

36

Insufficient funds

37

Invalid quantity

44

Illegal quantity

48

Illegal price

49

Price exceeds upper limit

50

Price below lower limit

51

No trading permission

52

Close-only mode

54

User not logged in

56

No trading permission

58

User mismatch

59

User needs to re-login

60

Invalid username or password

62

User cannot be activated

65

Invalid login IP address

71

Cannot operate on this order

76

Order already pending

77

Order already activated

78

Order date missing

79

Unsupported order type

80

User lacks permission

88

User does not exist

99

Cannot perform operation for another user

100

Insufficient margin

118

Single instrument combination

139

OTC type error

172

Insufficient leverage

175

Price must be greater than zero

176

Invalid API key

177

API key expired

178

API key restriction exceeded

179

API key is null

180

Margin rate not found

181

Duplicate API key

182

No limit price

183

Exceeds maximum queries per second

184

Order limit exceeded

185

Insufficient open orders

186

Session does not exist

187

Price exceeds best ask

188

Price exceeds best bid

189

Position already exists

190

Mark price error

191

Record parsing error

192

Duplicate record

193

Exceeds maximum trading volume

194

Below minimum trading volume

195

Position below minimum trading volume

196

Trading prohibited

197

Fee does not exist

198

Position quantity exceeds limit

199

Leverage too high

200

Insufficient position

201

Cannot change position type

10001

Identity authentication sync failed

10002

Identity authentication parameters missing

10003

Identity authentication signature verification failed

10004

Request timed out

10005

Illegal parameters

10006

Path not open

10007

Authentication failed

10008

Secret key does not exist

10009

No permission

10010

Invalid signature

10011

Duplicate request

10012

Request too frequent

20120

Below minimum order amount

20121

Exceeds maximum order amount