feat: deprecate request and implement axios. bump ws. cleaning. expose request options for proxy support. resolves #12. resolves #4.

This commit is contained in:
tiagosiebler
2020-10-04 19:37:26 +01:00
parent b201d364bf
commit 3a2125e77b
10 changed files with 223 additions and 4992 deletions

View File

@@ -1,12 +1,12 @@
const assert = require('assert');
const Request = require('./request-v2');
const RequestWrapper = require('./util/requestWrapper');
module.exports = class RestClient {
constructor(key, secret, livenet=false, options={}) {
this.request = new Request(...arguments);
this.request = new RequestWrapper(...arguments);
}
async placeActiveOrder(params) {