MCPcopy Index your code
hub / github.com/ccxt/node-binance-api / apiRequest

Function apiRequest

deprecated/node-binance-api.js:276–285  ·  view source on GitHub ↗
(url, data = {}, callback, method = 'GET')

Source from the content-addressed store, hash-verified

274 * @return {undefined}
275 */
276 const apiRequest = (url, data = {}, callback, method = 'GET') => {
277 requireApiKey('apiRequest');
278 let opt = reqObj(
279 url,
280 data,
281 method,
282 Binance.options.APIKEY
283 );
284 proxyRequest(opt, callback);
285 };
286
287 // Check if API key is empty or invalid
288 const requireApiKey = function (source = 'requireApiKey', fatalError = true) {

Callers 1

apiFunction · 0.85

Calls 3

requireApiKeyFunction · 0.85
reqObjFunction · 0.85
proxyRequestFunction · 0.85

Tested by

no test coverage detected