Open rostislavryzhkov opened 3 years ago
Hi! I also have the same problem for 3 days ago, but replacing the line that @rostislavryzhkov comments I could solve it, obviously there is a problem there. Thanks @rostislavryzhkov
why thiis has not been fixed?
it seems that there is a bug for the method mgAccount. I tried to get my margin account balance and receive error 404 not found :
{"timestamp":1623791037710,"status":404,"error":"Not Found","message":"No message available","path":"/sapi//isolated"}
this is code I called this method :It seems that your code returns wrong route for binance API call I looked through your library and found bug, after I fixed it everything worked: file: node-finance-api.js (4685)
I checked and const endpoint instead of whole route returns only result for condition of isIsolated variable so if isIsolated is true, the endpoint ='/isolated', but the correct value must be endpoint='v1/margin/isolated/account' I don't know why it is happening, because the code seems correct, but anyway this issue and problem exist.
I changed code to :