Hi,
Thanks for the node module. There seems to be some troubles when chaining calls. For instance if I do a buyLimit, followed by an orderStatus, the orderStatus response is a 404 not found. This is due to the fact that the orderStatus is sent as a POST request, instead of a GET request. If I change it to a GET request, I then get another 400 error, saying the request is malformed.
I think the problem comes when doing
let opt = defaultRequestOpt;
and then modifying opt, it seems to actually modify the original defaultRequestOpt object. So each method call modifies it and every call after is afected by the previous values.
Hi,
Thanks for the node module. There seems to be some troubles when chaining calls. For instance if I do a buyLimit, followed by an orderStatus, the orderStatus response is a 404 not found. This is due to the fact that the orderStatus is sent as a POST request, instead of a GET request. If I change it to a GET request, I then get another 400 error, saying the request is malformed.
I think the problem comes when doing
let opt = defaultRequestOpt;
and then modifying opt, it seems to actually modify the original defaultRequestOpt object. So each method call modifies it and every call after is afected by the previous values.