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

Function requireApiKey

deprecated/node-binance-api.js:288–294  ·  view source on GitHub ↗
(source = 'requireApiKey', fatalError = true)

Source from the content-addressed store, hash-verified

286
287 // Check if API key is empty or invalid
288 const requireApiKey = function (source = 'requireApiKey', fatalError = true) {
289 if (!Binance.options.APIKEY) {
290 if (fatalError) throw Error(`${source}: Invalid API Key!`);
291 return false;
292 }
293 return true;
294 }
295
296 // Check if API secret is present
297 const requireApiSecret = function (source = 'requireApiSecret', fatalError = true) {

Callers 3

apiRequestFunction · 0.85
marketRequestFunction · 0.85
promiseRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected