Authentication .

The API supports basic authorisation.

Required header

Authorization: Basic <base64-encoded credentials>

A username and password can be created and managed via the web panel https://app.tradesync.io

Sample http request

GET /account HTTP/1.0
Host: api.tradesync.io
Content-Type: application/json
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=

Success response

HTTP/1.0 200 OK
Date: Tue, 01 Jan 2019 00:00:00 GMT
Server: nginx/1.14.0 (Ubuntu)
Content-Length: 713
Connection: close
Content-Type: application/json; charset=UTF-8

Response body

{
    "result": "success",
    "status": 200,
    "code": "SUCCESS",
    "message": "Success",
    "data": {
        "accounts": [
            {
                "id": 12345,
                "..": "........."
            }
    }
}

Stay in the loop..

Sign up to our newsletter to keep up-to-date.