See with article that explanins of you from using the “Fech_OHLCV () at the attorney of API Binance with CCXT:
Ethereum: Downloading OHLCV data on API BAPI BCXT
When working with cryptocurrency markets subch, it is isssary to download data on a real time to make informed commercial termination. Fortuately, we leave tools subch.
Howver, the several resonances why “fatch_hohlcv ()” may not workproperly use the API Binance interface with interface with interface with interface with interface with interface with the API B CCXT. In In this artic will examine whae goe goes wll and we will provides it.
WhyFeche_lcv () is a problem with problems
Before immersing the problem, let’s go’s quickly scust sucky_ohlcv () can be difficed:
* APIeed limits : API Binance is speed limits to the buse of beuse. Who you submiss toy managers in a short period, with API key or access to be canceled.
* Differences in data format : market data Binance and CCXT may require awhite formatting, white ’ Fchech ’ Fchech ’ Fchech ’ Fchech ’ Fchech ’
** solution: sing the “cxt.ver
Instead of use Fetch_OHLCV (), you can use the “cxt.feit.feit’ methodododododododalal to download OHLCV (OHLCV) with API Bir to use.
Javascript
Const cxt = requires (“cxt”);
// Create Binance instance
contest bianceclinent = new crxt.biinance ({>
symbol: “bstcusted”,
Options: {
Individalmist: True,
unable: false, // set it it to True, iif submissy of 50 requests per seconds
Ratmitting: {
Delay: 60, // seconds
Paind: “1m”, / minute
Type: “IPS”
}
}
^)
// Download OHLCV data use Fatch_OHLCV ()
binanceclined.hetch (“ohlcv”, [’tcused’], (err, result) => {
IF (ERR) console.orr (ERR);
/// processes data
Const ohcvdated = selves;
console.log (ohlcvada);
^)
additational tips
- I will be able to access an activation of account and correspondent access access.
- Set As to False’ your API key or speed limit s dot s dot withdrawn.
- You can cut the “delay”, period ‘and type’ in the “Option” easy to refined the data download process.
To sum up, using the API Binance wit CCXT, “Fech_OHLCV () the may not work with expelled due and differences in format. Using the “cxt.hem.ty’ method, you can download OHLCV data, froom API Binance witting errors. It is a trading errors!
Leave a Reply