Binance | Private REST API

The Binance REST API offer public and private endpoints. The Private endpoints requires that messages signed to increase the security of transactions.

First you must login to your Binance account and create a new API, you will get the following values:

 

 

These fields must be configured in the Binance property of the Binance API client component.

Once configured, you can start to do private requests to the Binance Pro REST API

 

*Private Requests, require that your local machine has the local time synchronized, if not, the requests will be rejected by Binance server. Check the following article about this, Binance Private Requests Time.

 


oBinance := TsgcWSAPI_Binance.Create(nil);
oBinance.Binance.ApiKey := '<your api key>';
oBinance.Binance.ApiSecret := '<your api secret>';
ShowMessage(oBinance.REST_API.GetAccountInformation);