Skip to content

Authorization

x.509

An x.509 certificate is used to authorize API requests. After registering, get in touch with the Trading platform's Admin to receive the x.509 certificate that must be used in further requests to the API. All requests to Trading MUST contain the certificate.

Example how to check the certificate

To check the certificate, send a request for the version of the latest patch/log via curl.

Get the latest version via curl `client.crt` and `client.key` will be provided by the DATA.BET integration team.
1
2
3
4
5
curl --request GET \
     --url https://feed.int.databet.cloud/logVersion \
     --cert    client.crt \
     --key     client.key \
     --verbose \ 
The response:
1
2
3
4
5
6
7
8
9
< HTTP/1.1 200 OK
< Last-Version: 1znkQdjQYSW000004gfKZM
< Last-Version-Hex: 174213d5391edf1000000001000050b8
< Date: Thu, 09 Feb 2023 06:34:10 GMT
< Content-Length: 22
< Content-Type: text/plain; charset=utf-8
< 
* Connection #0 to host 127.0.0.1 left intact
1znkQdjQYSW000004gfKZM