possible error messages in OpenAPI v2

Created at 29 Jan 2019, 11:05
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
HS

hsbcstor

Joined 06.11.2018

possible error messages in OpenAPI v2
29 Jan 2019, 11:05


Hi Spotware Support,

After creating orders, we receive a ProtoOAExecutionEvent message from OpenAPI v2 server.

There is an errorCode field indicating errors if order is having problems.

Is there any documentation about the possible error codes that could be returned?

Thank you.


@hsbcstor
Replies

PanagiotisCharalampous
29 Jan 2019, 12:02

Hi hsbcstor,

You can find possible error codes in CommomModelMessages.ProtoErrorCode.

Best Regards,

Panagiotis


@PanagiotisCharalampous

hsbcstor
30 Jan 2019, 03:06

RE:

Hello,

Actually ProtoOAExecutionEvent.errorCode is a string field (instead of the ProtoErrorCode enum).

I am asking this because last time I received a "NOT_ENOUGH_MONEY" string which is not documented anywhere.  Just wonder if there are other possible errors.

Thanks


@hsbcstor

PanagiotisCharalampous
30 Jan 2019, 10:32

Hi hsbcstor,

Indeed there are more errors you might get and we do not have them somewhere in the documentation at the moment. Most of the errors are self explanatory but we will add them in the documentation as well in the near future.

Best Regards,

Panagiotis


@PanagiotisCharalampous

... Deleted by UFO ...

PanagiotisCharalampous
30 Apr 2019, 14:20

Open API Error Codes have been added here


@PanagiotisCharalampous