KYT OPEN-API Developer Document

API Domain Name

​https://openapi.trustformer.info

Interface Authentication

KYT operations will provide the client with apikey and secret. when requesting the interface, in addition to passing the apikey for security purposes, it is also necessary to encrypt the signature according to the specified algorithm. The timestamp and sign are also passed in the header.

Parameter name

Data type

Required or optional

Description

timestamp

int

true

Timestamp (in seconds)

sign

string

true

Signature calculation method:sha256("timestamp=timestamp value&secret=secret value")

online encryption tool:https://crypot.51strive.com/sha256.html

example:

Before encryption :

timestamp=1677148682&secret=9e3df800bbcbb1b8fc97bf78ed95a95a92aa3a155d270f1e48eb330c2d435321

After encryption : 110a20dcbe1fef5456051a8887c8d1aeba637bbc624e606697fb82a7e7ded604

API key expired or invalid, interface returned:

{
    "code": -1,
    "data": {},
    "message": "api_key is invalid"
}

Last updated