From aeb82af14dcd6757a1d2fc8f28c9d88d81b1066b Mon Sep 17 00:00:00 2001 From: Nguyen Sy Thanh Son Date: Sun, 3 Nov 2019 16:33:24 +0000 Subject: [PATCH] update slate --- swaggerui/slate.md | 926 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 877 insertions(+), 49 deletions(-) diff --git a/swaggerui/slate.md b/swaggerui/slate.md index 6eea45d..64fdbf8 100644 --- a/swaggerui/slate.md +++ b/swaggerui/slate.md @@ -2,7 +2,7 @@ title: TomoDex APIs language_tabs: - shell: cURL - - node: request + - nodejs: Node.js - go: GO - ruby: Ruby - python: Python @@ -38,6 +38,28 @@ curl -X GET /account/{userAddress} \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/account/{userAddress}', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -157,6 +179,28 @@ curl -X GET /account/{userAddress}/{tokenAddress} \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/account/{userAddress}/{tokenAddress}', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -281,6 +325,28 @@ curl -X POST /account/create \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/account/create', +{ + method: 'POST', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -404,6 +470,28 @@ curl -X GET /tokens \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/tokens', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -504,8 +592,8 @@ Return all tokens in an array "makeFee": "string", "takeFee": "string", "usd": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ] ``` @@ -560,6 +648,42 @@ curl -X POST /tokens \ ``` +```nodejs +const fetch = require('node-fetch'); +const inputBody = '{ + "name": "string", + "symbol": "string", + "address": "string", + "image": { + "url": "string", + "meta": {} + }, + "contractAddress": "string", + "active": true, + "quote": true, + "makeFee": "string", + "takeFee": "string" +}'; +const headers = { + 'Content-Type':'application/json', + 'Accept':'application/json' + +}; + +fetch('/tokens', +{ + method: 'POST', + body: inputBody, + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -664,6 +788,23 @@ Returns newly created token |Name|In|Type|Required|Description| |---|---|---|---|---| |body|body|[Token](#schematoken)|true|Token object that needs to be added| +|» id|body|string|false|none| +|» name|body|string|false|none| +|» symbol|body|string|false|none| +|» address|body|string|false|none| +|» image|body|[Image](#schemaimage)|false|none| +|»» url|body|string|false|none| +|»» meta|body|object|false|none| +|» contractAddress|body|string|false|none| +|» decimals|body|integer(int32)|false|none| +|» active|body|boolean|false|none| +|» listed|body|boolean|false|none| +|» quote|body|boolean|false|none| +|» makeFee|body|string|false|none| +|» takeFee|body|string|false|none| +|» usd|body|string|false|none| +|» createdAt|body|string(date-time)|false|none| +|» updatedAt|body|string(date-time)|false|none| > Example responses @@ -687,8 +828,8 @@ Returns newly created token "makeFee": "string", "takeFee": "string", "usd": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ``` @@ -717,6 +858,28 @@ curl -X GET /tokens/base \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/tokens/base', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -817,8 +980,8 @@ Return all base tokens in an array "makeFee": "string", "takeFee": "string", "usd": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ] ``` @@ -872,6 +1035,28 @@ curl -X GET /tokens/quote \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/tokens/quote', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -972,8 +1157,8 @@ Return all quote tokens in an array "makeFee": "string", "takeFee": "string", "usd": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ] ``` @@ -1027,6 +1212,28 @@ curl -X GET /tokens/{address} \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/tokens/{address}', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -1132,8 +1339,8 @@ Return token object "makeFee": "string", "takeFee": "string", "usd": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ``` @@ -1166,6 +1373,28 @@ curl -X GET /pairs?baseToken=string"eToken=string \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/pairs?baseToken=string"eToken=string', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -1271,8 +1500,8 @@ Return all pairs in an array "rank": 0, "makeFee": "string", "takeFee": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ] ``` @@ -1324,6 +1553,35 @@ curl -X POST /pairs \ ``` +```nodejs +const fetch = require('node-fetch'); +const inputBody = '{ + "baseTokenSymbol": "string", + "baseTokenAddress": "string", + "quoteTokenSymbol": "string", + "quoteTokenAddress": "string", + "active": true +}'; +const headers = { + 'Content-Type':'application/json', + 'Accept':'application/json' + +}; + +fetch('/pairs', +{ + method: 'POST', + body: inputBody, + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -1421,6 +1679,20 @@ Returns newly created pair |Name|In|Type|Required|Description| |---|---|---|---|---| |body|body|[Pair](#schemapair)|true|Pair object that needs to be added| +|» id|body|string|false|none| +|» baseTokenSymbol|body|string|false|none| +|» baseTokenAddress|body|string|false|none| +|» baseTokenDecimals|body|integer(int32)|false|none| +|» quoteTokenSymbol|body|string|false|none| +|» quoteTokenAddress|body|string|false|none| +|» quoteTokenDecimals|body|integer(int32)|false|none| +|» listed|body|boolean|false|none| +|» active|body|boolean|false|none| +|» rank|body|integer(int32)|false|none| +|» makeFee|body|string|false|none| +|» takeFee|body|string|false|none| +|» createdAt|body|string(date-time)|false|none| +|» updatedAt|body|string(date-time)|false|none| > Example responses @@ -1440,8 +1712,8 @@ Returns newly created pair "rank": 0, "makeFee": "string", "takeFee": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ``` @@ -1470,6 +1742,28 @@ curl -X GET /pair?baseToken=string"eToken=string \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/pair?baseToken=string"eToken=string', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -1574,8 +1868,8 @@ Multiple status values can be provided with comma separated strings "rank": 0, "makeFee": "string", "takeFee": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ``` @@ -1604,6 +1898,28 @@ curl -X GET /pair/data?baseToken=string"eToken=string \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/pair/data?baseToken=string"eToken=string', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -1744,6 +2060,28 @@ curl -X GET /pairs/data \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/pairs/data', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -1879,6 +2217,28 @@ curl -X GET /orders \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/orders', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -2003,8 +2363,8 @@ Return all orders in an array "makeFee": "string", "takeFee": "string", "pairName": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ] } @@ -2067,6 +2427,48 @@ curl -X POST /orders \ ``` +```nodejs +const fetch = require('node-fetch'); +const inputBody = '{ + "userAddress": "0x15e08dE16f534c890828F2a0D935433aF5B3CE0C", + "exchangeAddress": "0x0D3ab14BBaD3D99F4203bd7a11aCB94882050E7e", + "baseToken": "0x4d7eA2cE949216D6b120f3AA10164173615A2b6C", + "quoteToken": "0x0000000000000000000000000000000000000001", + "side": "SELL/BUY", + "type": "LO/MO", + "status": "NEW/CANCELLED", + "hash": "string", + "signature": { + "V": "string", + "R": "string", + "S": "string" + }, + "pricepoint": "21207020000000000000000", + "amount": "4693386710283129", + "nonce": "1", + "makeFee": "1", + "takeFee": "1" +}'; +const headers = { + 'Content-Type':'application/json', + 'Accept':'application/json' + +}; + +fetch('/orders', +{ + method: 'POST', + body: inputBody, + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -2205,8 +2607,8 @@ Returns newly created order "makeFee": "string", "takeFee": "string", "pairName": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ``` @@ -2236,6 +2638,28 @@ curl -X GET /orders/positions?address=string&limit=string \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/orders/positions?address=string&limit=string', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -2350,8 +2774,8 @@ Return all orders in an array "makeFee": "string", "takeFee": "string", "pairName": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ] ``` @@ -2411,6 +2835,28 @@ curl -X GET /orders/history?address=string \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/orders/history?address=string', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -2536,8 +2982,8 @@ Return all orders in an array "makeFee": "string", "takeFee": "string", "pairName": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ] } @@ -2599,6 +3045,28 @@ curl -X GET /orders/count?address=string \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/orders/count?address=string', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -2716,6 +3184,28 @@ curl -X GET /orders/nonce?address=string \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/orders/nonce?address=string', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -2834,6 +3324,38 @@ curl -X POST /orders/cancel \ ``` +```nodejs +const fetch = require('node-fetch'); +const inputBody = '{ + "orderHash": "string", + "nonce": "string", + "hash": "string", + "signature": { + "V": "string", + "R": "string", + "S": "string" + } +}'; +const headers = { + 'Content-Type':'application/json', + 'Accept':'application/json' + +}; + +fetch('/orders/cancel', +{ + method: 'POST', + body: inputBody, + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -2934,6 +3456,13 @@ Returns the hash of cancelled order |Name|In|Type|Required|Description| |---|---|---|---|---| |body|body|[OrderCancel](#schemaordercancel)|true|Cancel order object| +|» orderHash|body|string|false|none| +|» nonce|body|string|false|none| +|» hash|body|string|false|none| +|» signature|body|[Signature](#schemasignature)|false|none| +|»» V|body|string|false|none| +|»» R|body|string|false|none| +|»» S|body|string|false|none| > Example responses @@ -2968,6 +3497,28 @@ curl -X POST /orders/cancelAll?address=string \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/orders/cancelAll?address=string', +{ + method: 'POST', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -3089,6 +3640,28 @@ curl -X GET /orderbook?baseToken=string"eToken=string \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/orderbook?baseToken=string"eToken=string', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -3223,6 +3796,28 @@ curl -X GET /orderbook/raw?baseToken=string"eToken=string \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/orderbook/raw?baseToken=string"eToken=string', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -3340,8 +3935,8 @@ corresponding-to-a-basetoken-and-a-quotetoken-parameters">Parameters "makeFee": "string", "takeFee": "string", "pairName": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ] } @@ -3377,6 +3972,28 @@ curl -X GET /trades \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/trades', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -3489,8 +4106,8 @@ Return all trades in an array with total match "pricepoint": "string", "amount": "string", "status": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ] } @@ -3545,6 +4162,28 @@ curl -X GET /trades/history?address=string \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/trades/history?address=string', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -3659,8 +4298,8 @@ Return trades array "pricepoint": "string", "amount": "string", "status": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ] } @@ -3719,6 +4358,28 @@ curl -X GET /ohlcv?baseToken=string"eToken=string&timeInterval=string&from=s ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/ohlcv?baseToken=string"eToken=string&timeInterval=string&from=string&to=string', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -3882,6 +4543,28 @@ curl -X GET /notifications?userAddress=string&page=string&perPage=string \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/notifications?userAddress=string&page=string&perPage=string', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -3982,8 +4665,8 @@ Return notifications in an array "message": "string", "type": "string", "status": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ] ``` @@ -4029,6 +4712,34 @@ curl -X PUT /notifications/{id} \ ``` +```nodejs +const fetch = require('node-fetch'); +const inputBody = '{ + "recipient": "string", + "message": "string", + "type": "string", + "status": "string" +}'; +const headers = { + 'Content-Type':'application/json', + 'Accept':'application/json' + +}; + +fetch('/notifications/{id}', +{ + method: 'PUT', + body: inputBody, + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -4125,6 +4836,13 @@ Returns newly updated notification |Name|In|Type|Required|Description| |---|---|---|---|---| |body|body|[Notification](#schemanotification)|true|Notification object that needs to be updated| +|» id|body|string|false|none| +|» recipient|body|string|false|none| +|» message|body|string|false|none| +|» type|body|string|false|none| +|» status|body|string|false|none| +|» createdAt|body|string(date-time)|false|none| +|» updatedAt|body|string(date-time)|false|none| > Example responses @@ -4137,8 +4855,8 @@ Returns newly updated notification "message": "string", "type": "string", "status": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ``` @@ -4169,6 +4887,28 @@ curl -X GET /info \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'*/*' + +}; + +fetch('/info', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -4279,6 +5019,28 @@ curl -X GET /info/exchange \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'*/*' + +}; + +fetch('/info/exchange', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -4387,6 +5149,28 @@ curl -X GET /info/fees \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'*/*' + +}; + +fetch('/info/fees', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -4497,6 +5281,28 @@ curl -X GET /market/stats?baseToken=string"eToken=string \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/market/stats?baseToken=string"eToken=string', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -4601,8 +5407,8 @@ Multiple status values can be provided with comma separated strings "rank": 0, "makeFee": "string", "takeFee": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ``` @@ -4629,6 +5435,28 @@ curl -X GET /market/stats/all \ ``` +```nodejs +const fetch = require('node-fetch'); + +const headers = { + 'Accept':'application/json' + +}; + +fetch('/market/stats/all', +{ + method: 'GET', + + headers: headers +}) +.then(function(res) { + return res.json(); +}).then(function(body) { + console.log(body); +}); + +``` + ```go package main @@ -4823,8 +5651,8 @@ This operation does not require authentication "makeFee": "string", "takeFee": "string", "usd": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ``` @@ -4867,8 +5695,8 @@ This operation does not require authentication "rank": 0, "makeFee": "string", "takeFee": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ``` @@ -5010,8 +5838,8 @@ This operation does not require authentication "makeFee": "string", "takeFee": "string", "pairName": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ``` @@ -5200,8 +6028,8 @@ This operation does not require authentication "makeFee": "string", "takeFee": "string", "pairName": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ] } @@ -5234,8 +6062,8 @@ This operation does not require authentication "pricepoint": "string", "amount": "string", "status": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ``` @@ -5306,8 +6134,8 @@ This operation does not require authentication "message": "string", "type": "string", "status": "string", - "createdAt": "2019-11-03T15:42:56Z", - "updatedAt": "2019-11-03T15:42:56Z" + "createdAt": "2019-11-03T16:33:00Z", + "updatedAt": "2019-11-03T16:33:00Z" } ```