That’s the state, performing on your delay:
Etherum: Opply on Bican Balan I Information Oh Coins
The task of the cryptic organization, there is an accumulary information and up -to -date information about your balance sheet ethereum, is a foothold for the resolution of the orgoval or investitions. In this state, we dissatisfied, how to get a stroke package and method and method-binance of the data.
Shag 1: Setting up the necessary packages
In the first, you need to install the API Node Binance package. Start the follow -up Commond in your Terminal:
Bash
NPM Install Binance API
re
Shag 2: Submit Client API Binance
It will be far away, the copy from the Binanceapiclients class and set your own API.
`Javacript
Const Binanceapi = Require ('Binar API');
// Out on your Credit Api
const apikey = 'Your_api_key';
const apisecret = 'Your_api_seret';
Const BinancePiclient = New Binanceapi ({
Clientid: Apikey,
Clientscret: Apisecret,
Time Date: New Date (). Gettime (),
});
re
Shag 3: Trust currency balance in
Now, when you made a copy with them binancepiclient ', you can get your essential balance.
Javacript
Async Function GetBalance () {
const symbol = '' th ';
// up
Const Balancesmap = Judat BinancePiclient.map ({
Simvol,
});
Returnsing balance;
}
// Primmer Using:
GetBalance (). Then ((balance) => console.log (balance)). Catch ((s) => console.error (oshbka));
re
Shag 4: Information about the Fetch Coingecko
After that, how you will have a Binance balance, you can make information about the Coingecko symbol.
`Javacript
Async Function Getcoingecoinfo (Symbol) {
Const URL =
ask {
Const Response = Judging Binanceapiclient.getjson (URL);
if (! Dinsonse ||! Dipnense.data ||! Dipnese.data [0]) {
the zero zero;
}
// Analyzide Data Json
Const Coingeckoda = {
Name: Response.data [0] .name,
Simvol: Response.data [0] .Symbol,
Price_change_percentage_24h: Response.data [0] .Price_change_percentage_24h,
// Add more flight to the measure …
};
Coingeckodat;
} Catch (error) {
Console.error (Oshbak);
the zero zero;
}
}
// Primmer Using:
Getcoingecoinfo (‘theth’). Thet ((Coingeckoinfo) => Console.log (Coingeckoinfo)). Catch ((s) => console.error (oshbka));
`re
conclusion
The following is a shag, you can get your balance of Ethereum in Binance and Coingecko, using the Node-Binance-API package. Obligatory Putter Credit Credit API Folder with Your Facial Data.
Note. This is the main priemer and the adjacent configuration or modification for treating dose for your specificity.