We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ee5469 + 7aa962a commit b9f848fCopy full SHA for b9f848f
src/node-binance-api.ts
@@ -649,8 +649,8 @@ export default class Binance {
649
if (fatalError) throw Error(`${source}: Invalid API Key!`);
650
return false;
651
}
652
- if (!this.APISECRET) {
653
- if (fatalError) throw Error(`${source}: Invalid API Secret!`);
+ if (!this.APISECRET && !this.PRIVATEKEY) {
+ if (fatalError) throw Error(`${source}: Invalid API Secret or Private Key!`);
654
655
656
return true;
0 commit comments