Ethereum: Findinf data for Binance USDT-M trading commissions on my orders with Binance API

Ethereum: Finding data for Binance-M Trading Commission is on the Binance API

AS A User NPM Binance with Nodejs, you are probably familiar with the Binance API, which provides various trading data and marker information. However, discovering that the commissions enchanted for your orders can be covered. In this article, we will explore how to recover the commission data from the Binance fi.

Trading commission based on trading

Traditions in the hospital subsidiary. USDT-M (Tether-Minded in US dollar) formation, the communicable steering is followed:

  • Long market orders: 0.1% discount on the commercial currency

  • Short market orders: 0.3% discount on the commercial currency

Access to traffic safety The Binance API

To access the trading commissions, it is necessary to use the endpoint get /spot /tradingcommission" on the API Binance. This endpoint returns high alirable commission rates for different assessments.

Here is an explosion how to make a request to receive the binance bees with nodejs:

Javacript

Const Axios = requirement ('Axios');

Const Apikey = 'Your_api_key';

Const Apisecret = 'Your_api_Seret';

Const Endpoint =https: // ap.binisance.com/ap3/v3/exchange/spots;

Gettcommissions asynchronic function () {

Const Response = wait axios.get (endpoint, {

newspapers: {

‘X-Mambi-APikey’: apikey,

‘X-Mambi-Secret-Key’: Apisecret

}

});

Const Commission = response.

communions;

}

Gettradingcommissions (). So (commissions => {

Console.log (commissions);

}). Catch (error => {

console.error (error);

});

`

Rethost Commission given for specific activities

To recover the Commission data for a specific asset (in this case, USDT-M), you will be Endpoint "Get /Spot /TradingCommission" to include the desired asset.

For example, to obtain commissions for USDT-M:

Javacript

Const Endpoint =tradingcomision? Symbol = usd-m ';

Access to the data of the Commission with Binance API V2

Like January 2021, API Binance is up to Ocese well updated a new version (V2). To access the data of the WEOING V2 Commission, it is necessary to restGET /Exchangeinfo /Spot /TradingCommission ‘ConGet /Tran".

Here is an example on how to make a request to get the Binance V2 API:

Javacript

Const Api = Requirement ('Axios');

Api.get ('/Commercial? Symbol = USDT-M')

.then (Data => {

Console.log (data);

})

.Catch (Error => {

console.error (error);

});

Example of use of the case

Suppose that you want to monitor the commission accused for a long-standing order susto-M. You will have endpointget /spot /tradingcommission» to recover the Commission data:

`Javacript

Const Apikey = 'Your_api_key';

Const Apisecret = 'Your_api_Seret';

Asynching function Getlongmarketorcommmission () {

Const Response = Wait Axios.get (tradingcommission? Symbol = usdt-m);

the return response.

}

GetlongmarketordercommSion (). So (commissions => {{{

Console.log (commissions);

}). Catch (error => {

console.error (error);

});

Following these steps, you shuold for accessible the commissions recharge the binance bees. Remember to findYour_api_Key is Your_api_Seret` With Effective Binance API credentials.

Conclusion

Ethereum: Findinf data for Binance USDT-M trading commissions on my orders with Binance API

Finding the data for trading commissions on the API Binance may seem discouraging adverse, but it is absorbed that the quites will be understood to correct and parameters. Following these examples, you will do the commission data become on the orders of Marchet on the Usst-M surgery of the old and new versions from the Binance’s EPI. Happy trading!

Metamask Defined Nextjs

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *