MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / requireApiKey

Method requireApiKey

src/node-binance-api.ts:681–687  ·  view source on GitHub ↗
(source = 'requireApiKey', fatalError = true)

Source from the content-addressed store, hash-verified

679 }
680
681 requireApiKey(source = 'requireApiKey', fatalError = true) {
682 if (!this.APIKEY) {
683 if (fatalError) throw Error(`${source}: Invalid API Key!`);
684 return false;
685 }
686 return true;
687 }
688
689 // Check if API secret is present
690 requireApiSecret(source = 'requireApiSecret', fatalError = true) {

Callers 2

futuresRequestMethod · 0.95
apiRequestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected