This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
forked from jaggedsoft/node-binance-api
-
Notifications
You must be signed in to change notification settings - Fork 146
response undefined when error occurs. #54
Labels
Comments
Thanks. Looking in to this |
TypeError: Cannot read property 'msg' of undefined /node_modules/node-binance-api/node-binance-api.js:143 |
Perhaps something like this would work signedRequest(base+endpoint, opt, function(error, response) {
if ( !response ) {
if ( callback ) callback(error, response);
else console.error('Order() error:', error);
return;
}
if ( typeof response.msg !== 'undefined' && response.msg === 'Filter failure: MIN_NOTIONAL' ) {
console.error('Order quantity too small. See exchangeInfo() for minimum amounts');
}
if ( callback ) callback(error, response);
else console.log(side+'('+symbol+','+quantity+','+price+') ',response);
}, 'POST'); |
could be. please fix and i'll test. |
live in |
For anyone else reviewing this, it might be better to check |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: