How to make requests

All requests are made by the following:

{"id": number, "type":"request_name", "body": {"request_key":"request_value"}}

where id - unqiue number for request identification, type - type of request, body - json object with parametrs for a request.

Example:

{"id": 11, "type":"TicksSubscribe", "body": {"symbol":"EURUSD.rw"}}

Responce will be like this:

{"id": number, "type":"response_name", "body": [{"response_name":"response_name_value"}]}

If the result of request is error the body of responce will be like:

 "body": {"code": error_code, "message": "err_message"}}

Last updated