Skip to content

Instantly share code, notes, and snippets.

@leovarmak
Created June 19, 2020 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leovarmak/1d106dc8dde93593d8b88a5efa8bbcfd to your computer and use it in GitHub Desktop.
Save leovarmak/1d106dc8dde93593d8b88a5efa8bbcfd to your computer and use it in GitHub Desktop.
❯ node app.js
dB connected successfully!
(node:58162) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
<ref *1> Request {
_events: [Object: null prototype] {
error: [Function: bound ],
complete: [Function: bound ],
pipe: [Function (anonymous)]
},
_eventsCount: 3,
_maxListeners: undefined,
headers: {
'X-AUTH-APIKEY': 'apikey',
'X-AUTH-SIGNATURE': 'daf4ee80395f8f202f293f20b2cd6265aeff4f2dba12b0090b5c6d6373f86015',
host: 'api.coindcx.com',
accept: 'application/json',
'content-type': 'application/json',
'content-length': 111
},
body: '{"side":"buy","order_type":"market_order","market":"IOTXBTC","total_quantity":0.0004,"timestamp":1592559507757}',
callback: [Function (anonymous)],
method: 'POST',
readable: true,
writable: true,
explicitMethod: true,
_qs: Querystring {
request: [Circular *1],
lib: {
formats: [Object],
parse: [Function (anonymous)],
stringify: [Function (anonymous)]
},
useQuerystring: undefined,
parseOptions: {},
stringifyOptions: {}
},
_auth: Auth {
request: [Circular *1],
hasAuth: false,
sentAuth: false,
bearerToken: null,
user: null,
pass: null
},
_oauth: OAuth { request: [Circular *1], params: null },
_multipart: Multipart {
request: [Circular *1],
boundary: '145f7acb-50c3-4f0d-ac08-1e1f4c76d3cf',
chunked: false,
body: null
},
_redirect: Redirect {
request: [Circular *1],
followRedirect: true,
followRedirects: true,
followAllRedirects: false,
followOriginalHttpMethod: false,
allowRedirect: [Function (anonymous)],
maxRedirects: 10,
redirects: [],
redirectsFollowed: 0,
removeRefererHeader: false
},
_tunnel: Tunnel {
request: [Circular *1],
proxyHeaderWhiteList: [
'accept', 'accept-charset',
'accept-encoding', 'accept-language',
'accept-ranges', 'cache-control',
'content-encoding', 'content-language',
'content-location', 'content-md5',
'content-range', 'content-type',
'connection', 'date',
'expect', 'max-forwards',
'pragma', 'referer',
'te', 'user-agent',
'via'
],
proxyHeaderExclusiveList: []
},
setHeader: [Function (anonymous)],
hasHeader: [Function (anonymous)],
getHeader: [Function (anonymous)],
removeHeader: [Function (anonymous)],
localAddress: undefined,
pool: {},
dests: [],
__isRequestRequest: true,
_callback: [Function (anonymous)],
uri: Url {
protocol: 'https:',
slashes: true,
auth: null,
host: 'api.coindcx.com',
port: 443,
hostname: 'api.coindcx.com',
hash: null,
search: null,
query: null,
pathname: '/exchange/v1/orders/create',
path: '/exchange/v1/orders/create',
href: 'https://api.coindcx.com/exchange/v1/orders/create'
},
proxy: null,
tunnel: true,
setHost: true,
originalCookieHeader: undefined,
_disableCookies: true,
_jar: undefined,
port: 443,
host: 'api.coindcx.com',
path: '/exchange/v1/orders/create',
_json: true,
httpModule: {
Agent: [Function: Agent],
globalAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object],
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
},
agentClass: [Function: Agent],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: { path: null },
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: { map: {}, list: [] },
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false
}
<ref *1> Request {
_events: [Object: null prototype] {
error: [Function: bound ],
complete: [Function: bound ],
pipe: [Function (anonymous)]
},
_eventsCount: 3,
_maxListeners: undefined,
headers: {
'X-AUTH-APIKEY': 'apikey',
'X-AUTH-SIGNATURE': '6ffba28b8d86b049f8bf98f8a550eddfe196959c6b33f6ffdad22c37bd6c7be4',
host: 'api.coindcx.com',
accept: 'application/json',
'content-type': 'application/json',
'content-length': 111
},
body: '{"side":"buy","order_type":"market_order","market":"IOTXBTC","total_quantity":0.0004,"timestamp":1592559507763}',
callback: [Function (anonymous)],
method: 'POST',
readable: true,
writable: true,
explicitMethod: true,
_qs: Querystring {
request: [Circular *1],
lib: {
formats: [Object],
parse: [Function (anonymous)],
stringify: [Function (anonymous)]
},
useQuerystring: undefined,
parseOptions: {},
stringifyOptions: {}
},
_auth: Auth {
request: [Circular *1],
hasAuth: false,
sentAuth: false,
bearerToken: null,
user: null,
pass: null
},
_oauth: OAuth { request: [Circular *1], params: null },
_multipart: Multipart {
request: [Circular *1],
boundary: '2f771f36-893f-43bf-8853-ec63cfd37b07',
chunked: false,
body: null
},
_redirect: Redirect {
request: [Circular *1],
followRedirect: true,
followRedirects: true,
followAllRedirects: false,
followOriginalHttpMethod: false,
allowRedirect: [Function (anonymous)],
maxRedirects: 10,
redirects: [],
redirectsFollowed: 0,
removeRefererHeader: false
},
_tunnel: Tunnel {
request: [Circular *1],
proxyHeaderWhiteList: [
'accept', 'accept-charset',
'accept-encoding', 'accept-language',
'accept-ranges', 'cache-control',
'content-encoding', 'content-language',
'content-location', 'content-md5',
'content-range', 'content-type',
'connection', 'date',
'expect', 'max-forwards',
'pragma', 'referer',
'te', 'user-agent',
'via'
],
proxyHeaderExclusiveList: []
},
setHeader: [Function (anonymous)],
hasHeader: [Function (anonymous)],
getHeader: [Function (anonymous)],
removeHeader: [Function (anonymous)],
localAddress: undefined,
pool: {},
dests: [],
__isRequestRequest: true,
_callback: [Function (anonymous)],
uri: Url {
protocol: 'https:',
slashes: true,
auth: null,
host: 'api.coindcx.com',
port: 443,
hostname: 'api.coindcx.com',
hash: null,
search: null,
query: null,
pathname: '/exchange/v1/orders/create',
path: '/exchange/v1/orders/create',
href: 'https://api.coindcx.com/exchange/v1/orders/create'
},
proxy: null,
tunnel: true,
setHost: true,
originalCookieHeader: undefined,
_disableCookies: true,
_jar: undefined,
port: 443,
host: 'api.coindcx.com',
path: '/exchange/v1/orders/create',
_json: true,
httpModule: {
Agent: [Function: Agent],
globalAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object],
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
},
agentClass: [Function: Agent],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: { path: null },
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: { map: {}, list: [] },
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false
}
<ref *1> Request {
_events: [Object: null prototype] {
error: [Function: bound ],
complete: [Function: bound ],
pipe: [Function (anonymous)]
},
_eventsCount: 3,
_maxListeners: undefined,
headers: {
'X-AUTH-APIKEY': 'apikey',
'X-AUTH-SIGNATURE': '6ffba28b8d86b049f8bf98f8a550eddfe196959c6b33f6ffdad22c37bd6c7be4',
host: 'api.coindcx.com',
accept: 'application/json',
'content-type': 'application/json',
'content-length': 111
},
body: '{"side":"buy","order_type":"market_order","market":"IOTXBTC","total_quantity":0.0004,"timestamp":1592559507763}',
callback: [Function (anonymous)],
method: 'POST',
readable: true,
writable: true,
explicitMethod: true,
_qs: Querystring {
request: [Circular *1],
lib: {
formats: [Object],
parse: [Function (anonymous)],
stringify: [Function (anonymous)]
},
useQuerystring: undefined,
parseOptions: {},
stringifyOptions: {}
},
_auth: Auth {
request: [Circular *1],
hasAuth: false,
sentAuth: false,
bearerToken: null,
user: null,
pass: null
},
_oauth: OAuth { request: [Circular *1], params: null },
_multipart: Multipart {
request: [Circular *1],
boundary: 'afebc291-e4ec-430c-87b2-00749f5ee6a4',
chunked: false,
body: null
},
_redirect: Redirect {
request: [Circular *1],
followRedirect: true,
followRedirects: true,
followAllRedirects: false,
followOriginalHttpMethod: false,
allowRedirect: [Function (anonymous)],
maxRedirects: 10,
redirects: [],
redirectsFollowed: 0,
removeRefererHeader: false
},
_tunnel: Tunnel {
request: [Circular *1],
proxyHeaderWhiteList: [
'accept', 'accept-charset',
'accept-encoding', 'accept-language',
'accept-ranges', 'cache-control',
'content-encoding', 'content-language',
'content-location', 'content-md5',
'content-range', 'content-type',
'connection', 'date',
'expect', 'max-forwards',
'pragma', 'referer',
'te', 'user-agent',
'via'
],
proxyHeaderExclusiveList: []
},
setHeader: [Function (anonymous)],
hasHeader: [Function (anonymous)],
getHeader: [Function (anonymous)],
removeHeader: [Function (anonymous)],
localAddress: undefined,
pool: {},
dests: [],
__isRequestRequest: true,
_callback: [Function (anonymous)],
uri: Url {
protocol: 'https:',
slashes: true,
auth: null,
host: 'api.coindcx.com',
port: 443,
hostname: 'api.coindcx.com',
hash: null,
search: null,
query: null,
pathname: '/exchange/v1/orders/create',
path: '/exchange/v1/orders/create',
href: 'https://api.coindcx.com/exchange/v1/orders/create'
},
proxy: null,
tunnel: true,
setHost: true,
originalCookieHeader: undefined,
_disableCookies: true,
_jar: undefined,
port: 443,
host: 'api.coindcx.com',
path: '/exchange/v1/orders/create',
_json: true,
httpModule: {
Agent: [Function: Agent],
globalAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object],
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
},
agentClass: [Function: Agent],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: { path: null },
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: { map: {}, list: [] },
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false
}
<ref *1> Request {
_events: [Object: null prototype] {
error: [Function: bound ],
complete: [Function: bound ],
pipe: [Function (anonymous)]
},
_eventsCount: 3,
_maxListeners: undefined,
headers: {
'X-AUTH-APIKEY': 'apikey',
'X-AUTH-SIGNATURE': '6ffba28b8d86b049f8bf98f8a550eddfe196959c6b33f6ffdad22c37bd6c7be4',
host: 'api.coindcx.com',
accept: 'application/json',
'content-type': 'application/json',
'content-length': 111
},
body: '{"side":"buy","order_type":"market_order","market":"IOTXBTC","total_quantity":0.0004,"timestamp":1592559507763}',
callback: [Function (anonymous)],
method: 'POST',
readable: true,
writable: true,
explicitMethod: true,
_qs: Querystring {
request: [Circular *1],
lib: {
formats: [Object],
parse: [Function (anonymous)],
stringify: [Function (anonymous)]
},
useQuerystring: undefined,
parseOptions: {},
stringifyOptions: {}
},
_auth: Auth {
request: [Circular *1],
hasAuth: false,
sentAuth: false,
bearerToken: null,
user: null,
pass: null
},
_oauth: OAuth { request: [Circular *1], params: null },
_multipart: Multipart {
request: [Circular *1],
boundary: 'bd1f3c3e-032b-4718-84f9-6305ddb840c8',
chunked: false,
body: null
},
_redirect: Redirect {
request: [Circular *1],
followRedirect: true,
followRedirects: true,
followAllRedirects: false,
followOriginalHttpMethod: false,
allowRedirect: [Function (anonymous)],
maxRedirects: 10,
redirects: [],
redirectsFollowed: 0,
removeRefererHeader: false
},
_tunnel: Tunnel {
request: [Circular *1],
proxyHeaderWhiteList: [
'accept', 'accept-charset',
'accept-encoding', 'accept-language',
'accept-ranges', 'cache-control',
'content-encoding', 'content-language',
'content-location', 'content-md5',
'content-range', 'content-type',
'connection', 'date',
'expect', 'max-forwards',
'pragma', 'referer',
'te', 'user-agent',
'via'
],
proxyHeaderExclusiveList: []
},
setHeader: [Function (anonymous)],
hasHeader: [Function (anonymous)],
getHeader: [Function (anonymous)],
removeHeader: [Function (anonymous)],
localAddress: undefined,
pool: {},
dests: [],
__isRequestRequest: true,
_callback: [Function (anonymous)],
uri: Url {
protocol: 'https:',
slashes: true,
auth: null,
host: 'api.coindcx.com',
port: 443,
hostname: 'api.coindcx.com',
hash: null,
search: null,
query: null,
pathname: '/exchange/v1/orders/create',
path: '/exchange/v1/orders/create',
href: 'https://api.coindcx.com/exchange/v1/orders/create'
},
proxy: null,
tunnel: true,
setHost: true,
originalCookieHeader: undefined,
_disableCookies: true,
_jar: undefined,
port: 443,
host: 'api.coindcx.com',
path: '/exchange/v1/orders/create',
_json: true,
httpModule: {
Agent: [Function: Agent],
globalAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object],
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
},
agentClass: [Function: Agent],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: { path: null },
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: { map: {}, list: [] },
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false
}
<ref *1> Request {
_events: [Object: null prototype] {
error: [Function: bound ],
complete: [Function: bound ],
pipe: [Function (anonymous)]
},
_eventsCount: 3,
_maxListeners: undefined,
headers: {
'X-AUTH-APIKEY': 'apikey',
'X-AUTH-SIGNATURE': '6ffba28b8d86b049f8bf98f8a550eddfe196959c6b33f6ffdad22c37bd6c7be4',
host: 'api.coindcx.com',
accept: 'application/json',
'content-type': 'application/json',
'content-length': 111
},
body: '{"side":"buy","order_type":"market_order","market":"IOTXBTC","total_quantity":0.0004,"timestamp":1592559507763}',
callback: [Function (anonymous)],
method: 'POST',
readable: true,
writable: true,
explicitMethod: true,
_qs: Querystring {
request: [Circular *1],
lib: {
formats: [Object],
parse: [Function (anonymous)],
stringify: [Function (anonymous)]
},
useQuerystring: undefined,
parseOptions: {},
stringifyOptions: {}
},
_auth: Auth {
request: [Circular *1],
hasAuth: false,
sentAuth: false,
bearerToken: null,
user: null,
pass: null
},
_oauth: OAuth { request: [Circular *1], params: null },
_multipart: Multipart {
request: [Circular *1],
boundary: '61237817-cfd2-48cf-9442-b358f6b919ae',
chunked: false,
body: null
},
_redirect: Redirect {
request: [Circular *1],
followRedirect: true,
followRedirects: true,
followAllRedirects: false,
followOriginalHttpMethod: false,
allowRedirect: [Function (anonymous)],
maxRedirects: 10,
redirects: [],
redirectsFollowed: 0,
removeRefererHeader: false
},
_tunnel: Tunnel {
request: [Circular *1],
proxyHeaderWhiteList: [
'accept', 'accept-charset',
'accept-encoding', 'accept-language',
'accept-ranges', 'cache-control',
'content-encoding', 'content-language',
'content-location', 'content-md5',
'content-range', 'content-type',
'connection', 'date',
'expect', 'max-forwards',
'pragma', 'referer',
'te', 'user-agent',
'via'
],
proxyHeaderExclusiveList: []
},
setHeader: [Function (anonymous)],
hasHeader: [Function (anonymous)],
getHeader: [Function (anonymous)],
removeHeader: [Function (anonymous)],
localAddress: undefined,
pool: {},
dests: [],
__isRequestRequest: true,
_callback: [Function (anonymous)],
uri: Url {
protocol: 'https:',
slashes: true,
auth: null,
host: 'api.coindcx.com',
port: 443,
hostname: 'api.coindcx.com',
hash: null,
search: null,
query: null,
pathname: '/exchange/v1/orders/create',
path: '/exchange/v1/orders/create',
href: 'https://api.coindcx.com/exchange/v1/orders/create'
},
proxy: null,
tunnel: true,
setHost: true,
originalCookieHeader: undefined,
_disableCookies: true,
_jar: undefined,
port: 443,
host: 'api.coindcx.com',
path: '/exchange/v1/orders/create',
_json: true,
httpModule: {
Agent: [Function: Agent],
globalAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object],
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
},
agentClass: [Function: Agent],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: { path: null },
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: { map: {}, list: [] },
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false
}
<ref *1> Request {
_events: [Object: null prototype] {
error: [Function: bound ],
complete: [Function: bound ],
pipe: [Function (anonymous)]
},
_eventsCount: 3,
_maxListeners: undefined,
headers: {
'X-AUTH-APIKEY': 'apikey',
'X-AUTH-SIGNATURE': '6ffba28b8d86b049f8bf98f8a550eddfe196959c6b33f6ffdad22c37bd6c7be4',
host: 'api.coindcx.com',
accept: 'application/json',
'content-type': 'application/json',
'content-length': 111
},
body: '{"side":"buy","order_type":"market_order","market":"IOTXBTC","total_quantity":0.0004,"timestamp":1592559507763}',
callback: [Function (anonymous)],
method: 'POST',
readable: true,
writable: true,
explicitMethod: true,
_qs: Querystring {
request: [Circular *1],
lib: {
formats: [Object],
parse: [Function (anonymous)],
stringify: [Function (anonymous)]
},
useQuerystring: undefined,
parseOptions: {},
stringifyOptions: {}
},
_auth: Auth {
request: [Circular *1],
hasAuth: false,
sentAuth: false,
bearerToken: null,
user: null,
pass: null
},
_oauth: OAuth { request: [Circular *1], params: null },
_multipart: Multipart {
request: [Circular *1],
boundary: '26ae7fad-2cc0-483f-88d9-d75c71cbd568',
chunked: false,
body: null
},
_redirect: Redirect {
request: [Circular *1],
followRedirect: true,
followRedirects: true,
followAllRedirects: false,
followOriginalHttpMethod: false,
allowRedirect: [Function (anonymous)],
maxRedirects: 10,
redirects: [],
redirectsFollowed: 0,
removeRefererHeader: false
},
_tunnel: Tunnel {
request: [Circular *1],
proxyHeaderWhiteList: [
'accept', 'accept-charset',
'accept-encoding', 'accept-language',
'accept-ranges', 'cache-control',
'content-encoding', 'content-language',
'content-location', 'content-md5',
'content-range', 'content-type',
'connection', 'date',
'expect', 'max-forwards',
'pragma', 'referer',
'te', 'user-agent',
'via'
],
proxyHeaderExclusiveList: []
},
setHeader: [Function (anonymous)],
hasHeader: [Function (anonymous)],
getHeader: [Function (anonymous)],
removeHeader: [Function (anonymous)],
localAddress: undefined,
pool: {},
dests: [],
__isRequestRequest: true,
_callback: [Function (anonymous)],
uri: Url {
protocol: 'https:',
slashes: true,
auth: null,
host: 'api.coindcx.com',
port: 443,
hostname: 'api.coindcx.com',
hash: null,
search: null,
query: null,
pathname: '/exchange/v1/orders/create',
path: '/exchange/v1/orders/create',
href: 'https://api.coindcx.com/exchange/v1/orders/create'
},
proxy: null,
tunnel: true,
setHost: true,
originalCookieHeader: undefined,
_disableCookies: true,
_jar: undefined,
port: 443,
host: 'api.coindcx.com',
path: '/exchange/v1/orders/create',
_json: true,
httpModule: {
Agent: [Function: Agent],
globalAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object],
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
},
agentClass: [Function: Agent],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: { path: null },
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: { map: {}, list: [] },
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false
}
<ref *1> Request {
_events: [Object: null prototype] {
error: [Function: bound ],
complete: [Function: bound ],
pipe: [Function (anonymous)]
},
_eventsCount: 3,
_maxListeners: undefined,
headers: {
'X-AUTH-APIKEY': 'apikey',
'X-AUTH-SIGNATURE': 'b16192feeef8c5fd94fe2615a30b8e145023e1e51a30d11dc66a35f90fe81481',
host: 'api.coindcx.com',
accept: 'application/json',
'content-type': 'application/json',
'content-length': 111
},
body: '{"side":"buy","order_type":"market_order","market":"IOTXBTC","total_quantity":0.0004,"timestamp":1592559507764}',
callback: [Function (anonymous)],
method: 'POST',
readable: true,
writable: true,
explicitMethod: true,
_qs: Querystring {
request: [Circular *1],
lib: {
formats: [Object],
parse: [Function (anonymous)],
stringify: [Function (anonymous)]
},
useQuerystring: undefined,
parseOptions: {},
stringifyOptions: {}
},
_auth: Auth {
request: [Circular *1],
hasAuth: false,
sentAuth: false,
bearerToken: null,
user: null,
pass: null
},
_oauth: OAuth { request: [Circular *1], params: null },
_multipart: Multipart {
request: [Circular *1],
boundary: '578950ab-5bf1-424e-8415-94bff4a61b89',
chunked: false,
body: null
},
_redirect: Redirect {
request: [Circular *1],
followRedirect: true,
followRedirects: true,
followAllRedirects: false,
followOriginalHttpMethod: false,
allowRedirect: [Function (anonymous)],
maxRedirects: 10,
redirects: [],
redirectsFollowed: 0,
removeRefererHeader: false
},
_tunnel: Tunnel {
request: [Circular *1],
proxyHeaderWhiteList: [
'accept', 'accept-charset',
'accept-encoding', 'accept-language',
'accept-ranges', 'cache-control',
'content-encoding', 'content-language',
'content-location', 'content-md5',
'content-range', 'content-type',
'connection', 'date',
'expect', 'max-forwards',
'pragma', 'referer',
'te', 'user-agent',
'via'
],
proxyHeaderExclusiveList: []
},
setHeader: [Function (anonymous)],
hasHeader: [Function (anonymous)],
getHeader: [Function (anonymous)],
removeHeader: [Function (anonymous)],
localAddress: undefined,
pool: {},
dests: [],
__isRequestRequest: true,
_callback: [Function (anonymous)],
uri: Url {
protocol: 'https:',
slashes: true,
auth: null,
host: 'api.coindcx.com',
port: 443,
hostname: 'api.coindcx.com',
hash: null,
search: null,
query: null,
pathname: '/exchange/v1/orders/create',
path: '/exchange/v1/orders/create',
href: 'https://api.coindcx.com/exchange/v1/orders/create'
},
proxy: null,
tunnel: true,
setHost: true,
originalCookieHeader: undefined,
_disableCookies: true,
_jar: undefined,
port: 443,
host: 'api.coindcx.com',
path: '/exchange/v1/orders/create',
_json: true,
httpModule: {
Agent: [Function: Agent],
globalAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object],
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
},
agentClass: [Function: Agent],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: { path: null },
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: { map: {}, list: [] },
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false
}
<ref *1> Request {
_events: [Object: null prototype] {
error: [Function: bound ],
complete: [Function: bound ],
pipe: [Function (anonymous)]
},
_eventsCount: 3,
_maxListeners: undefined,
headers: {
'X-AUTH-APIKEY': 'apikey',
'X-AUTH-SIGNATURE': 'b16192feeef8c5fd94fe2615a30b8e145023e1e51a30d11dc66a35f90fe81481',
host: 'api.coindcx.com',
accept: 'application/json',
'content-type': 'application/json',
'content-length': 111
},
body: '{"side":"buy","order_type":"market_order","market":"IOTXBTC","total_quantity":0.0004,"timestamp":1592559507764}',
callback: [Function (anonymous)],
method: 'POST',
readable: true,
writable: true,
explicitMethod: true,
_qs: Querystring {
request: [Circular *1],
lib: {
formats: [Object],
parse: [Function (anonymous)],
stringify: [Function (anonymous)]
},
useQuerystring: undefined,
parseOptions: {},
stringifyOptions: {}
},
_auth: Auth {
request: [Circular *1],
hasAuth: false,
sentAuth: false,
bearerToken: null,
user: null,
pass: null
},
_oauth: OAuth { request: [Circular *1], params: null },
_multipart: Multipart {
request: [Circular *1],
boundary: '1141587d-3425-40ef-91fb-87011df7a40a',
chunked: false,
body: null
},
_redirect: Redirect {
request: [Circular *1],
followRedirect: true,
followRedirects: true,
followAllRedirects: false,
followOriginalHttpMethod: false,
allowRedirect: [Function (anonymous)],
maxRedirects: 10,
redirects: [],
redirectsFollowed: 0,
removeRefererHeader: false
},
_tunnel: Tunnel {
request: [Circular *1],
proxyHeaderWhiteList: [
'accept', 'accept-charset',
'accept-encoding', 'accept-language',
'accept-ranges', 'cache-control',
'content-encoding', 'content-language',
'content-location', 'content-md5',
'content-range', 'content-type',
'connection', 'date',
'expect', 'max-forwards',
'pragma', 'referer',
'te', 'user-agent',
'via'
],
proxyHeaderExclusiveList: []
},
setHeader: [Function (anonymous)],
hasHeader: [Function (anonymous)],
getHeader: [Function (anonymous)],
removeHeader: [Function (anonymous)],
localAddress: undefined,
pool: {},
dests: [],
__isRequestRequest: true,
_callback: [Function (anonymous)],
uri: Url {
protocol: 'https:',
slashes: true,
auth: null,
host: 'api.coindcx.com',
port: 443,
hostname: 'api.coindcx.com',
hash: null,
search: null,
query: null,
pathname: '/exchange/v1/orders/create',
path: '/exchange/v1/orders/create',
href: 'https://api.coindcx.com/exchange/v1/orders/create'
},
proxy: null,
tunnel: true,
setHost: true,
originalCookieHeader: undefined,
_disableCookies: true,
_jar: undefined,
port: 443,
host: 'api.coindcx.com',
path: '/exchange/v1/orders/create',
_json: true,
httpModule: {
Agent: [Function: Agent],
globalAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object],
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
},
agentClass: [Function: Agent],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: { path: null },
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: { map: {}, list: [] },
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false
}
<ref *1> Request {
_events: [Object: null prototype] {
error: [Function: bound ],
complete: [Function: bound ],
pipe: [Function (anonymous)]
},
_eventsCount: 3,
_maxListeners: undefined,
headers: {
'X-AUTH-APIKEY': 'apikey',
'X-AUTH-SIGNATURE': 'b16192feeef8c5fd94fe2615a30b8e145023e1e51a30d11dc66a35f90fe81481',
host: 'api.coindcx.com',
accept: 'application/json',
'content-type': 'application/json',
'content-length': 111
},
body: '{"side":"buy","order_type":"market_order","market":"IOTXBTC","total_quantity":0.0004,"timestamp":1592559507764}',
callback: [Function (anonymous)],
method: 'POST',
readable: true,
writable: true,
explicitMethod: true,
_qs: Querystring {
request: [Circular *1],
lib: {
formats: [Object],
parse: [Function (anonymous)],
stringify: [Function (anonymous)]
},
useQuerystring: undefined,
parseOptions: {},
stringifyOptions: {}
},
_auth: Auth {
request: [Circular *1],
hasAuth: false,
sentAuth: false,
bearerToken: null,
user: null,
pass: null
},
_oauth: OAuth { request: [Circular *1], params: null },
_multipart: Multipart {
request: [Circular *1],
boundary: 'cc47e07b-fe4c-46da-bae3-ee39f16f1dd6',
chunked: false,
body: null
},
_redirect: Redirect {
request: [Circular *1],
followRedirect: true,
followRedirects: true,
followAllRedirects: false,
followOriginalHttpMethod: false,
allowRedirect: [Function (anonymous)],
maxRedirects: 10,
redirects: [],
redirectsFollowed: 0,
removeRefererHeader: false
},
_tunnel: Tunnel {
request: [Circular *1],
proxyHeaderWhiteList: [
'accept', 'accept-charset',
'accept-encoding', 'accept-language',
'accept-ranges', 'cache-control',
'content-encoding', 'content-language',
'content-location', 'content-md5',
'content-range', 'content-type',
'connection', 'date',
'expect', 'max-forwards',
'pragma', 'referer',
'te', 'user-agent',
'via'
],
proxyHeaderExclusiveList: []
},
setHeader: [Function (anonymous)],
hasHeader: [Function (anonymous)],
getHeader: [Function (anonymous)],
removeHeader: [Function (anonymous)],
localAddress: undefined,
pool: {},
dests: [],
__isRequestRequest: true,
_callback: [Function (anonymous)],
uri: Url {
protocol: 'https:',
slashes: true,
auth: null,
host: 'api.coindcx.com',
port: 443,
hostname: 'api.coindcx.com',
hash: null,
search: null,
query: null,
pathname: '/exchange/v1/orders/create',
path: '/exchange/v1/orders/create',
href: 'https://api.coindcx.com/exchange/v1/orders/create'
},
proxy: null,
tunnel: true,
setHost: true,
originalCookieHeader: undefined,
_disableCookies: true,
_jar: undefined,
port: 443,
host: 'api.coindcx.com',
path: '/exchange/v1/orders/create',
_json: true,
httpModule: {
Agent: [Function: Agent],
globalAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object],
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
},
agentClass: [Function: Agent],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: { path: null },
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: { map: {}, list: [] },
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false
}
<ref *1> Request {
_events: [Object: null prototype] {
error: [Function: bound ],
complete: [Function: bound ],
pipe: [Function (anonymous)]
},
_eventsCount: 3,
_maxListeners: undefined,
headers: {
'X-AUTH-APIKEY': 'apikey',
'X-AUTH-SIGNATURE': 'b16192feeef8c5fd94fe2615a30b8e145023e1e51a30d11dc66a35f90fe81481',
host: 'api.coindcx.com',
accept: 'application/json',
'content-type': 'application/json',
'content-length': 111
},
body: '{"side":"buy","order_type":"market_order","market":"IOTXBTC","total_quantity":0.0004,"timestamp":1592559507764}',
callback: [Function (anonymous)],
method: 'POST',
readable: true,
writable: true,
explicitMethod: true,
_qs: Querystring {
request: [Circular *1],
lib: {
formats: [Object],
parse: [Function (anonymous)],
stringify: [Function (anonymous)]
},
useQuerystring: undefined,
parseOptions: {},
stringifyOptions: {}
},
_auth: Auth {
request: [Circular *1],
hasAuth: false,
sentAuth: false,
bearerToken: null,
user: null,
pass: null
},
_oauth: OAuth { request: [Circular *1], params: null },
_multipart: Multipart {
request: [Circular *1],
boundary: '307890e0-ec47-4a6a-8592-9c79eab7ab27',
chunked: false,
body: null
},
_redirect: Redirect {
request: [Circular *1],
followRedirect: true,
followRedirects: true,
followAllRedirects: false,
followOriginalHttpMethod: false,
allowRedirect: [Function (anonymous)],
maxRedirects: 10,
redirects: [],
redirectsFollowed: 0,
removeRefererHeader: false
},
_tunnel: Tunnel {
request: [Circular *1],
proxyHeaderWhiteList: [
'accept', 'accept-charset',
'accept-encoding', 'accept-language',
'accept-ranges', 'cache-control',
'content-encoding', 'content-language',
'content-location', 'content-md5',
'content-range', 'content-type',
'connection', 'date',
'expect', 'max-forwards',
'pragma', 'referer',
'te', 'user-agent',
'via'
],
proxyHeaderExclusiveList: []
},
setHeader: [Function (anonymous)],
hasHeader: [Function (anonymous)],
getHeader: [Function (anonymous)],
removeHeader: [Function (anonymous)],
localAddress: undefined,
pool: {},
dests: [],
__isRequestRequest: true,
_callback: [Function (anonymous)],
uri: Url {
protocol: 'https:',
slashes: true,
auth: null,
host: 'api.coindcx.com',
port: 443,
hostname: 'api.coindcx.com',
hash: null,
search: null,
query: null,
pathname: '/exchange/v1/orders/create',
path: '/exchange/v1/orders/create',
href: 'https://api.coindcx.com/exchange/v1/orders/create'
},
proxy: null,
tunnel: true,
setHost: true,
originalCookieHeader: undefined,
_disableCookies: true,
_jar: undefined,
port: 443,
host: 'api.coindcx.com',
path: '/exchange/v1/orders/create',
_json: true,
httpModule: {
Agent: [Function: Agent],
globalAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object],
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
},
agentClass: [Function: Agent],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: { path: null },
requests: {},
sockets: {},
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
maxCachedSessions: 100,
_sessionCache: { map: {}, list: [] },
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment