Initial commit
This commit is contained in:
80
mocks/api/v2/dena/public/markets/GET.mock
Normal file
80
mocks/api/v2/dena/public/markets/GET.mock
Normal file
@@ -0,0 +1,80 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
|
||||
[
|
||||
{
|
||||
"id": "btczar",
|
||||
"name": "BTC/ZAR",
|
||||
"base_unit": "btc",
|
||||
"quote_unit": "zar",
|
||||
"ask_fee": "0.0015",
|
||||
"bid_fee": "0.0015",
|
||||
"min_price": "0.0",
|
||||
"max_price": "0.0",
|
||||
"min_amount": "0.0",
|
||||
"amount_precision": 6,
|
||||
"price_precision": 2,
|
||||
"state": "enabled"
|
||||
},
|
||||
{
|
||||
"id": "bchzar",
|
||||
"name": "BCH/ZAR",
|
||||
"base_unit": "bch",
|
||||
"quote_unit": "zar",
|
||||
"ask_fee": "0.0015",
|
||||
"bid_fee": "0.0015",
|
||||
"min_price": "0.0",
|
||||
"max_price": "0.0",
|
||||
"min_amount": "0.0",
|
||||
"amount_precision": 4,
|
||||
"price_precision": 4,
|
||||
"state": "enabled"
|
||||
},
|
||||
{
|
||||
"id": "ethbtc",
|
||||
"name": "ETH/BTC",
|
||||
"base_unit": "eth",
|
||||
"quote_unit": "btc",
|
||||
"ask_fee": "0.0015",
|
||||
"bid_fee": "0.0015",
|
||||
"min_price": "0.0",
|
||||
"max_price": "0.0",
|
||||
"min_amount": "0.0",
|
||||
"amount_precision": 4,
|
||||
"price_precision": 4,
|
||||
"state": "enabled"
|
||||
},
|
||||
{
|
||||
"id": "dashbtc",
|
||||
"name": "DASH/BTC",
|
||||
"base_unit": "dash",
|
||||
"quote_unit": "btc",
|
||||
"ask_fee": "0.0015",
|
||||
"bid_fee": "0.0015",
|
||||
"min_price": "0.0",
|
||||
"max_price": "0.0",
|
||||
"min_amount": "0.0",
|
||||
"amount_precision": 4,
|
||||
"price_precision": 4,
|
||||
"state": "enabled"
|
||||
},
|
||||
{
|
||||
"id": "eurusd",
|
||||
"name": "EUR/USD",
|
||||
"base_unit": "eur",
|
||||
"quote_unit": "usd",
|
||||
"ask_fee": "0.0015",
|
||||
"bid_fee": "0.0015",
|
||||
"min_price": "0.0",
|
||||
"max_price": "0.0",
|
||||
"min_amount": "0.0",
|
||||
"amount_precision": 4,
|
||||
"price_precision": 4,
|
||||
"state": "enabled"
|
||||
}
|
||||
]
|
||||
5
mocks/api/v2/dena/public/markets/OPTIONS.mock
Normal file
5
mocks/api/v2/dena/public/markets/OPTIONS.mock
Normal file
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
8
mocks/api/v2/dena/public/markets/bchzar/depth/GET.mock
Normal file
8
mocks/api/v2/dena/public/markets/bchzar/depth/GET.mock
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
#import './script.js';
|
||||
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
26
mocks/api/v2/dena/public/markets/bchzar/depth/script.js
Normal file
26
mocks/api/v2/dena/public/markets/bchzar/depth/script.js
Normal file
@@ -0,0 +1,26 @@
|
||||
var ts = parseInt(Date.now() / 1000);
|
||||
|
||||
module.exports = {
|
||||
"timestamp": ts,
|
||||
"asks":
|
||||
[
|
||||
["0.99","1"],
|
||||
["0.98","20"],
|
||||
["0.96","1"],
|
||||
["0.80","1"],
|
||||
["0.75","1"],
|
||||
["0.70","1"],
|
||||
["0.60","0.1"]
|
||||
],
|
||||
"bids":
|
||||
[
|
||||
["0.50","0.041"],
|
||||
["0.49","0.5"],
|
||||
["0.48","0.2"],
|
||||
["0.47","0.1"],
|
||||
["0.30","10"],
|
||||
["0.28","2"],
|
||||
["0.27","5"],
|
||||
["0.26","25"]
|
||||
]
|
||||
}
|
||||
8
mocks/api/v2/dena/public/markets/bchzar/k-line/GET.mock
Normal file
8
mocks/api/v2/dena/public/markets/bchzar/k-line/GET.mock
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
#import '../../k-line.js';
|
||||
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
19
mocks/api/v2/dena/public/markets/bchzar/trades/GET.mock
Normal file
19
mocks/api/v2/dena/public/markets/bchzar/trades/GET.mock
Normal file
@@ -0,0 +1,19 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
[
|
||||
{"id":53,"price":3000,"amount":1,"total":3000,"market":"bchzar","created_at":1595235146,"taker_type":"buy"},
|
||||
{"id":52,"price":2935,"amount":105.7314,"total":310321.659,"market":"bchzar","created_at":1595022413,"taker_type":"buy"},
|
||||
{"id":51,"price":2935,"amount":128.7715,"total":377944.3525,"market":"bchzar","created_at":1595022412,"taker_type":"sell"},
|
||||
{"id":50,"price":3015,"amount":4,"total":12060,"market":"bchzar","created_at":1595022372,"taker_type":"buy"},
|
||||
{"id":49,"price":2935,"amount":4,"total":11740,"market":"bchzar","created_at":1595021816,"taker_type":"sell"},
|
||||
{"id":48,"price":3010,"amount":4,"total":12040,"market":"bchzar","created_at":1595021692,"taker_type":"buy"},
|
||||
{"id":47,"price":3015,"amount":5,"total":15075,"market":"bchzar","created_at":1595017688,"taker_type":"buy"},
|
||||
{"id":46,"price":3015,"amount":12.1883,"total":36747.7245,"market":"bchzar","created_at":1595012890,"taker_type":"buy"},
|
||||
{"id":45,"price":3015,"amount":7.1883,"total":21672.7245,"market":"bchzar","created_at":1595008724,"taker_type":"buy"},
|
||||
{"id":44,"price":3015,"amount":5,"total":15075,"market":"bchzar","created_at":1595008632,"taker_type":"sell"}
|
||||
]
|
||||
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
8
mocks/api/v2/dena/public/markets/btczar/depth/GET.mock
Normal file
8
mocks/api/v2/dena/public/markets/btczar/depth/GET.mock
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
#import './script.js';
|
||||
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
26
mocks/api/v2/dena/public/markets/btczar/depth/script.js
Normal file
26
mocks/api/v2/dena/public/markets/btczar/depth/script.js
Normal file
@@ -0,0 +1,26 @@
|
||||
var ts = parseInt(Date.now() / 1000);
|
||||
|
||||
module.exports = {
|
||||
"timestamp": ts,
|
||||
"asks":
|
||||
[
|
||||
["0.99","1"],
|
||||
["0.98","20"],
|
||||
["0.96","1"],
|
||||
["0.80","1"],
|
||||
["0.75","1"],
|
||||
["0.70","1"],
|
||||
["0.60","0.1"]
|
||||
],
|
||||
"bids":
|
||||
[
|
||||
["0.50","0.041"],
|
||||
["0.49","0.5"],
|
||||
["0.48","0.2"],
|
||||
["0.47","0.1"],
|
||||
["0.30","10"],
|
||||
["0.28","2"],
|
||||
["0.27","5"],
|
||||
["0.26","25"]
|
||||
]
|
||||
}
|
||||
8
mocks/api/v2/dena/public/markets/btczar/k-line/GET.mock
Normal file
8
mocks/api/v2/dena/public/markets/btczar/k-line/GET.mock
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
#import '../../k-line.js';
|
||||
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
39
mocks/api/v2/dena/public/markets/btczar/trades/GET.mock
Normal file
39
mocks/api/v2/dena/public/markets/btczar/trades/GET.mock
Normal file
@@ -0,0 +1,39 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
[
|
||||
{"id":35,"price":10894000,"amount":0.1164,"total":1268061.6,"market":"btczar","created_at":1594951964,"taker_type":"buy"},
|
||||
{"id":34,"price":10894000,"amount":0.2414,"total":2629811.6,"market":"btczar","created_at":1594951957,"taker_type":"sell"},
|
||||
{"id":33,"price":10894000,"amount":0.1417,"total":1543679.8,"market":"btczar","created_at":1594951952,"taker_type":"buy"},
|
||||
{"id":32,"price":10894000,"amount":0.2125,"total":2314975,"market":"btczar","created_at":1594951947,"taker_type":"buy"},
|
||||
{"id":31,"price":10890000,"amount":0.3481,"total":3790809,"market":"btczar","created_at":1594951940,"taker_type":"buy"},
|
||||
{"id":30,"price":10890000,"amount":0.2203,"total":2399067,"market":"btczar","created_at":1594951933,"taker_type":"sell"},
|
||||
{"id":29,"price":10895000,"amount":0.3205,"total":3491847.5,"market":"btczar","created_at":1594951929,"taker_type":"sell"},
|
||||
{"id":28,"price":10895000,"amount":0.2362,"total":2573399,"market":"btczar","created_at":1594951921,"taker_type":"sell"},
|
||||
{"id":27,"price":10895000,"amount":0.2171,"total":2365304.5,"market":"btczar","created_at":1594951911,"taker_type":"sell"},
|
||||
{"id":26,"price":10895000,"amount":0.1993,"total":2171373.5,"market":"btczar","created_at":1594951906,"taker_type":"buy"},
|
||||
{"id":25,"price":10895000,"amount":0.2417,"total":2633321.5,"market":"btczar","created_at":1594951903,"taker_type":"sell"},
|
||||
{"id":24,"price":10895000,"amount":0.2666,"total":2904607,"market":"btczar","created_at":1594951898,"taker_type":"sell"},
|
||||
{"id":23,"price":10895000,"amount":0.2976,"total":3242352,"market":"btczar","created_at":1594951893,"taker_type":"buy"},
|
||||
{"id":22,"price":10895000,"amount":0.2432,"total":2649664,"market":"btczar","created_at":1594951891,"taker_type":"sell"},
|
||||
{"id":21,"price":10895000,"amount":0.328,"total":3573560,"market":"btczar","created_at":1594951888,"taker_type":"sell"},
|
||||
{"id":20,"price":10895000,"amount":0.2686,"total":2926397,"market":"btczar","created_at":1594951881,"taker_type":"buy"},
|
||||
{"id":19,"price":10895000,"amount":0.261,"total":2843595,"market":"btczar","created_at":1594951874,"taker_type":"buy"},
|
||||
{"id":18,"price":10895000,"amount":0.2948,"total":3211846,"market":"btczar","created_at":1594951864,"taker_type":"buy"},
|
||||
{"id":17,"price":10895000,"amount":0.3808,"total":4148816,"market":"btczar","created_at":1594951856,"taker_type":"buy"},
|
||||
{"id":16,"price":10895000,"amount":0.1169,"total":1273625.5,"market":"btczar","created_at":1594951845,"taker_type":"buy"},
|
||||
{"id":15,"price":10895000,"amount":0.2269,"total":2472075.5,"market":"btczar","created_at":1594951836,"taker_type":"buy"},
|
||||
{"id":1925296,"price":2500000,"amount":2.5,"total":6250000,"market":"btczar","created_at":1594619651,"taker_type":"sell"},
|
||||
{"id":1925230,"price":10031000,"amount":0.0039,"total":39120.9,"market":"btczar","created_at":1594572438,"taker_type":"buy"},
|
||||
{"id":1925229,"price":10031000,"amount":0.0019,"total":19058.9,"market":"btczar","created_at":1594571253,"taker_type":"buy"},
|
||||
{"id":1925228,"price":10029000,"amount":0.0042,"total":42121.8,"market":"btczar","created_at":1594571253,"taker_type":"buy"},
|
||||
{"id":1925227,"price":10028000,"amount":0.0052,"total":52145.6,"market":"btczar","created_at":1594571253,"taker_type":"buy"},
|
||||
{"id":1925226,"price":10025000,"amount":0.0051,"total":51127.5,"market":"btczar","created_at":1594571253,"taker_type":"buy"},
|
||||
{"id":1925225,"price":10023000,"amount":0.006,"total":60138,"market":"btczar","created_at":1594571253,"taker_type":"buy"},
|
||||
{"id":1925224,"price":10021000,"amount":0.0044,"total":44092.4,"market":"btczar","created_at":1594571253,"taker_type":"buy"},
|
||||
{"id":1925223,"price":10020000,"amount":0.0055,"total":55110,"market":"btczar","created_at":1594571253,"taker_type":"buy"}
|
||||
]
|
||||
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
8
mocks/api/v2/dena/public/markets/dashbtc/depth/GET.mock
Normal file
8
mocks/api/v2/dena/public/markets/dashbtc/depth/GET.mock
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/2 200
|
||||
cContent-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
#import './script.js';
|
||||
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
26
mocks/api/v2/dena/public/markets/dashbtc/depth/script.js
Normal file
26
mocks/api/v2/dena/public/markets/dashbtc/depth/script.js
Normal file
@@ -0,0 +1,26 @@
|
||||
var ts = parseInt(Date.now() / 1000);
|
||||
|
||||
module.exports = {
|
||||
"timestamp": ts,
|
||||
"asks":
|
||||
[
|
||||
["0.99","1"],
|
||||
["0.98","20"],
|
||||
["0.96","1"],
|
||||
["0.80","1"],
|
||||
["0.75","1"],
|
||||
["0.70","1"],
|
||||
["0.60","0.1"]
|
||||
],
|
||||
"bids":
|
||||
[
|
||||
["0.50","0.041"],
|
||||
["0.49","0.5"],
|
||||
["0.48","0.2"],
|
||||
["0.47","0.1"],
|
||||
["0.30","10"],
|
||||
["0.28","2"],
|
||||
["0.27","5"],
|
||||
["0.26","25"]
|
||||
]
|
||||
}
|
||||
8
mocks/api/v2/dena/public/markets/dashbtc/k-line/GET.mock
Normal file
8
mocks/api/v2/dena/public/markets/dashbtc/k-line/GET.mock
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
#import '../../k-line.js';
|
||||
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
109
mocks/api/v2/dena/public/markets/dashbtc/trades/GET.mock
Normal file
109
mocks/api/v2/dena/public/markets/dashbtc/trades/GET.mock
Normal file
@@ -0,0 +1,109 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
[
|
||||
{"id":492221222,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321400,"taker_type":"buy"},
|
||||
{"id":492221221,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321399,"taker_type":"buy"},
|
||||
{"id":492221220,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321398,"taker_type":"buy"},
|
||||
{"id":492221219,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321397,"taker_type":"buy"},
|
||||
{"id":492221213,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221212,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221214,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221210,"price":2.418e-05,"amount":20.15,"total":0.000487227,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221215,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221194,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221205,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221206,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221217,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221211,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221208,"price":2.418e-05,"amount":20.15,"total":0.000487227,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221216,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221202,"price":2.418e-05,"amount":20.15,"total":0.000487227,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221207,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221201,"price":2.418e-05,"amount":20.15,"total":0.000487227,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221204,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221200,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221209,"price":2.418e-05,"amount":20.15,"total":0.000487227,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221193,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221218,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221195,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221187,"price":2.418e-05,"amount":20.15,"total":0.000487227,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221198,"price":2.418e-05,"amount":20.11,"total":0.0004862598,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221197,"price":2.418e-05,"amount":20.11,"total":0.0004862598,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221203,"price":2.418e-05,"amount":20.15,"total":0.000487227,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221190,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221199,"price":2.418e-05,"amount":20.11,"total":0.0004862598,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221192,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221196,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221191,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221186,"price":2.418e-05,"amount":20.11,"total":0.0004862598,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221188,"price":2.418e-05,"amount":20.15,"total":0.000487227,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221183,"price":2.418e-05,"amount":20.11,"total":0.0004862598,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221184,"price":2.418e-05,"amount":20.11,"total":0.0004862598,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221189,"price":2.418e-05,"amount":20.15,"total":0.000487227,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221185,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221181,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221180,"price":2.418e-05,"amount":10.894185,"total":0.0002634213933,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221182,"price":2.418e-05,"amount":20.1,"total":0.000486018,"market":"dashbtc","created_at":1597321394,"taker_type":"sell"},
|
||||
{"id":492221179,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492221178,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492221177,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492221176,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492221173,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492221175,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492221174,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492221171,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492221172,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205170,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205169,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205164,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205168,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205162,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205167,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205166,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205163,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205165,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205161,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205160,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205156,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205159,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205152,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205149,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205158,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205157,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205155,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205151,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205150,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205154,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205153,"price":2.421e-05,"amount":20.1,"total":0.000486621,"market":"dashbtc","created_at":1597321386,"taker_type":"sell"},
|
||||
{"id":492205143,"price":2.423e-05,"amount":516.66323965,"total":0.0125187502967195,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205136,"price":2.423e-05,"amount":27.92569329,"total":0.0006766395484167,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205097,"price":2.422e-05,"amount":27.91353335,"total":0.000676065777737,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205140,"price":2.423e-05,"amount":27.94563541,"total":0.0006771227459843,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205133,"price":2.423e-05,"amount":27.94563541,"total":0.0006771227459843,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205112,"price":2.422e-05,"amount":27.91353335,"total":0.000676065777737,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205109,"price":2.422e-05,"amount":27.91353335,"total":0.000676065777737,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205131,"price":2.423e-05,"amount":27.94563541,"total":0.0006771227459843,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205122,"price":2.423e-05,"amount":27.96070701,"total":0.0006774879308523,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205120,"price":2.423e-05,"amount":27.96070701,"total":0.0006774879308523,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205124,"price":2.423e-05,"amount":27.96070701,"total":0.0006774879308523,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205139,"price":2.423e-05,"amount":27.94563541,"total":0.0006771227459843,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205114,"price":2.422e-05,"amount":27.91353335,"total":0.000676065777737,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205106,"price":2.422e-05,"amount":27.91353335,"total":0.000676065777737,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205115,"price":2.422e-05,"amount":27.94890792,"total":0.0006769225498224,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205104,"price":2.422e-05,"amount":27.91353335,"total":0.000676065777737,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205098,"price":2.422e-05,"amount":27.91353335,"total":0.000676065777737,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205142,"price":2.423e-05,"amount":27.94563541,"total":0.0006771227459843,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205107,"price":2.422e-05,"amount":27.91353335,"total":0.000676065777737,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205135,"price":2.423e-05,"amount":27.92569329,"total":0.0006766395484167,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205138,"price":2.423e-05,"amount":27.92569329,"total":0.0006766395484167,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205103,"price":2.422e-05,"amount":27.91353335,"total":0.000676065777737,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205099,"price":2.422e-05,"amount":27.91353335,"total":0.000676065777737,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205137,"price":2.423e-05,"amount":27.92569329,"total":0.0006766395484167,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205100,"price":2.422e-05,"amount":27.91353335,"total":0.000676065777737,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"},
|
||||
{"id":492205128,"price":2.423e-05,"amount":27.94405457,"total":0.0006770844422311,"market":"dashbtc","created_at":1597321121,"taker_type":"buy"}
|
||||
]
|
||||
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
8
mocks/api/v2/dena/public/markets/ethbtc/depth/GET.mock
Normal file
8
mocks/api/v2/dena/public/markets/ethbtc/depth/GET.mock
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
#import './script.js';
|
||||
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
26
mocks/api/v2/dena/public/markets/ethbtc/depth/script.js
Normal file
26
mocks/api/v2/dena/public/markets/ethbtc/depth/script.js
Normal file
@@ -0,0 +1,26 @@
|
||||
var ts = parseInt(Date.now() / 1000);
|
||||
|
||||
module.exports = {
|
||||
"timestamp": ts,
|
||||
"asks":
|
||||
[
|
||||
["0.99","1"],
|
||||
["0.98","20"],
|
||||
["0.96","1"],
|
||||
["0.80","1"],
|
||||
["0.75","1"],
|
||||
["0.70","1"],
|
||||
["0.60","0.1"]
|
||||
],
|
||||
"bids":
|
||||
[
|
||||
["0.50","0.041"],
|
||||
["0.49","0.5"],
|
||||
["0.48","0.2"],
|
||||
["0.47","0.1"],
|
||||
["0.30","10"],
|
||||
["0.28","2"],
|
||||
["0.27","5"],
|
||||
["0.26","25"]
|
||||
]
|
||||
}
|
||||
8
mocks/api/v2/dena/public/markets/ethbtc/k-line/GET.mock
Normal file
8
mocks/api/v2/dena/public/markets/ethbtc/k-line/GET.mock
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
#import '../../k-line.js';
|
||||
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
109
mocks/api/v2/dena/public/markets/ethbtc/trades/GET.mock
Normal file
109
mocks/api/v2/dena/public/markets/ethbtc/trades/GET.mock
Normal file
@@ -0,0 +1,109 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
[
|
||||
{"id":492199108,"price":0.033987,"amount":2.07,"total":0.07035309,"market":"ethbtc","created_at":1597320544,"taker_type":"sell"},
|
||||
{"id":492199107,"price":0.033978,"amount":0.1145387,"total":0.0038917959486,"market":"ethbtc","created_at":1597320543,"taker_type":"sell"},
|
||||
{"id":492199106,"price":0.03398,"amount":0.029,"total":0.00098542,"market":"ethbtc","created_at":1597320541,"taker_type":"sell"},
|
||||
{"id":492199104,"price":0.03398,"amount":0.029,"total":0.00098542,"market":"ethbtc","created_at":1597320541,"taker_type":"sell"},
|
||||
{"id":492199105,"price":0.03398,"amount":0.029,"total":0.00098542,"market":"ethbtc","created_at":1597320541,"taker_type":"sell"},
|
||||
{"id":492199103,"price":0.03398,"amount":0.029,"total":0.00098542,"market":"ethbtc","created_at":1597320541,"taker_type":"sell"},
|
||||
{"id":492199102,"price":0.03398,"amount":0.0291,"total":0.000988818,"market":"ethbtc","created_at":1597320541,"taker_type":"sell"},
|
||||
{"id":492199101,"price":0.033987,"amount":0.13247508,"total":0.00450243054396,"market":"ethbtc","created_at":1597320540,"taker_type":"sell"},
|
||||
{"id":492199100,"price":0.033995,"amount":0.17065299,"total":0.00580134839505,"market":"ethbtc","created_at":1597320539,"taker_type":"sell"},
|
||||
{"id":492199097,"price":0.034005,"amount":0.1145387,"total":0.0038948884935,"market":"ethbtc","created_at":1597320437,"taker_type":"sell"},
|
||||
{"id":492199096,"price":0.034014,"amount":0.13247508,"total":0.00450600737112,"market":"ethbtc","created_at":1597320425,"taker_type":"sell"},
|
||||
{"id":492199093,"price":0.034025,"amount":0.029,"total":0.000986725,"market":"ethbtc","created_at":1597320417,"taker_type":"sell"},
|
||||
{"id":492199095,"price":0.034025,"amount":0.029,"total":0.000986725,"market":"ethbtc","created_at":1597320417,"taker_type":"sell"},
|
||||
{"id":492199094,"price":0.034025,"amount":0.029,"total":0.000986725,"market":"ethbtc","created_at":1597320417,"taker_type":"sell"},
|
||||
{"id":492199092,"price":0.034032,"amount":0.1145387,"total":0.0038979810384,"market":"ethbtc","created_at":1597320416,"taker_type":"sell"},
|
||||
{"id":492199088,"price":0.034036,"amount":0.029,"total":0.000987044,"market":"ethbtc","created_at":1597320415,"taker_type":"sell"},
|
||||
{"id":492199091,"price":0.034036,"amount":0.029,"total":0.000987044,"market":"ethbtc","created_at":1597320415,"taker_type":"sell"},
|
||||
{"id":492199090,"price":0.034036,"amount":0.029,"total":0.000987044,"market":"ethbtc","created_at":1597320415,"taker_type":"sell"},
|
||||
{"id":492199089,"price":0.034036,"amount":0.029,"total":0.000987044,"market":"ethbtc","created_at":1597320415,"taker_type":"sell"},
|
||||
{"id":492199087,"price":0.034036,"amount":0.0291,"total":0.0009904476,"market":"ethbtc","created_at":1597320415,"taker_type":"sell"},
|
||||
{"id":492199086,"price":0.034041,"amount":0.17042238,"total":0.00580134823758,"market":"ethbtc","created_at":1597320414,"taker_type":"sell"},
|
||||
{"id":492199085,"price":0.034041,"amount":0.13247508,"total":0.00450958419828,"market":"ethbtc","created_at":1597320414,"taker_type":"sell"},
|
||||
{"id":492199078,"price":0.034059,"amount":0.0291,"total":0.0009911169,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199079,"price":0.034059,"amount":0.0291,"total":0.0009911169,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199083,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199075,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199070,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199065,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199072,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199067,"price":0.034059,"amount":0.0291,"total":0.0009911169,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199062,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199061,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199082,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199076,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199074,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199084,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199080,"price":0.034059,"amount":0.0291,"total":0.0009911169,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199081,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199068,"price":0.034059,"amount":0.0291,"total":0.0009911169,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199077,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199069,"price":0.034059,"amount":0.0291,"total":0.0009911169,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199073,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199071,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199066,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199064,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199063,"price":0.034059,"amount":0.029,"total":0.000987711,"market":"ethbtc","created_at":1597320392,"taker_type":"sell"},
|
||||
{"id":492199059,"price":0.03407,"amount":0.029,"total":0.00098803,"market":"ethbtc","created_at":1597320368,"taker_type":"buy"},
|
||||
{"id":492199057,"price":0.034066,"amount":0.15,"total":0.0051099,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199055,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199050,"price":0.034066,"amount":0.0291,"total":0.0009913206,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199043,"price":0.034066,"amount":0.0291,"total":0.0009913206,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199052,"price":0.034066,"amount":0.0291,"total":0.0009913206,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199047,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199039,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199040,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199044,"price":0.034066,"amount":0.0291,"total":0.0009913206,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199030,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199056,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199036,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199049,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199054,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199038,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199042,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199029,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199041,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199048,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199045,"price":0.034066,"amount":0.0291,"total":0.0009913206,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199024,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199053,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199033,"price":0.034066,"amount":0.0291,"total":0.0009913206,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199051,"price":0.034066,"amount":0.0291,"total":0.0009913206,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199025,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199022,"price":0.034066,"amount":0.0291,"total":0.0009913206,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199034,"price":0.034066,"amount":0.0291,"total":0.0009913206,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199018,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199046,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199035,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199020,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199037,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199031,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199028,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199032,"price":0.034066,"amount":0.0291,"total":0.0009913206,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199021,"price":0.034066,"amount":0.0291,"total":0.0009913206,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199026,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199015,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199027,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199023,"price":0.034066,"amount":0.0291,"total":0.0009913206,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199019,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199017,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199013,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199012,"price":0.034066,"amount":0.0291,"total":0.0009913206,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199009,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199016,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492198986,"price":0.034067,"amount":0.029,"total":0.000987943,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199008,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199005,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199010,"price":0.034066,"amount":0.0291,"total":0.0009913206,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199006,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492198997,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"},
|
||||
{"id":492199014,"price":0.034066,"amount":0.029,"total":0.000987914,"market":"ethbtc","created_at":1597320367,"taker_type":"sell"}
|
||||
]
|
||||
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
31
mocks/api/v2/dena/public/markets/eurusd/depth/GET.mock
Normal file
31
mocks/api/v2/dena/public/markets/eurusd/depth/GET.mock
Normal file
@@ -0,0 +1,31 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
|
||||
{
|
||||
"timestamp": 1544783545,
|
||||
"asks": [
|
||||
[
|
||||
"25.0",
|
||||
"0.5"
|
||||
],
|
||||
[
|
||||
"20.0",
|
||||
"4.0"
|
||||
]
|
||||
],
|
||||
"bids": [
|
||||
[
|
||||
"15.0",
|
||||
"2.0"
|
||||
],
|
||||
[
|
||||
"10.0",
|
||||
"1.0"
|
||||
]
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
8
mocks/api/v2/dena/public/markets/eurusd/k-line/GET.mock
Normal file
8
mocks/api/v2/dena/public/markets/eurusd/k-line/GET.mock
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
#import '../../k-line.js';
|
||||
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
108
mocks/api/v2/dena/public/markets/eurusd/trades/GET.mock
Normal file
108
mocks/api/v2/dena/public/markets/eurusd/trades/GET.mock
Normal file
@@ -0,0 +1,108 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
[{"id":492040459,"price":1.31,"amount":394.61490657,"total":516.9455276067,"market":"eurusd","created_at":1597320614,"taker_type":"buy"},
|
||||
{"id":492040458,"price":1.3046,"amount":45.56013984,"total":59.437758435264,"market":"eurusd","created_at":1597320281,"taker_type":"sell"},
|
||||
{"id":492040456,"price":1.3046,"amount":1590.04462822,"total":2074.372221975812,"market":"eurusd","created_at":1597320281,"taker_type":"sell"},
|
||||
{"id":492040457,"price":1.3046,"amount":397.26727176,"total":518.274882738096,"market":"eurusd","created_at":1597320281,"taker_type":"sell"},
|
||||
{"id":492040454,"price":1.3218,"amount":393.9111523,"total":520.67176111014,"market":"eurusd","created_at":1597319868,"taker_type":"buy"},
|
||||
{"id":492040453,"price":1.3218,"amount":393.67620492,"total":520.361207663256,"market":"eurusd","created_at":1597319836,"taker_type":"buy"},
|
||||
{"id":492040451,"price":1.319,"amount":394.26696561,"total":520.03812763959,"market":"eurusd","created_at":1597319500,"taker_type":"buy"},
|
||||
{"id":492040450,"price":1.3189,"amount":392.47238776,"total":517.631832216664,"market":"eurusd","created_at":1597319407,"taker_type":"buy"},
|
||||
{"id":492040449,"price":1.3159,"amount":392.08566349,"total":515.945524586491,"market":"eurusd","created_at":1597319390,"taker_type":"buy"},
|
||||
{"id":492040448,"price":1.3159,"amount":392.86477063,"total":516.970751672017,"market":"eurusd","created_at":1597319214,"taker_type":"buy"},
|
||||
{"id":492040444,"price":1.3159,"amount":394.60232578,"total":519.257200493902,"market":"eurusd","created_at":1597317665,"taker_type":"buy"},
|
||||
{"id":492040443,"price":1.3159,"amount":393.66269374,"total":518.020738692466,"market":"eurusd","created_at":1597317662,"taker_type":"buy"},
|
||||
{"id":492040442,"price":1.3159,"amount":393.65057078,"total":518.004786089402,"market":"eurusd","created_at":1597317659,"taker_type":"buy"},
|
||||
{"id":492040441,"price":1.3159,"amount":393.61640645,"total":517.959829247555,"market":"eurusd","created_at":1597317656,"taker_type":"buy"},
|
||||
{"id":492040439,"price":1.3073,"amount":1000,"total":1307.3,"market":"eurusd","created_at":1597317513,"taker_type":"sell"},
|
||||
{"id":492040438,"price":1.315,"amount":394.67635325,"total":518.99940452375,"market":"eurusd","created_at":1597317224,"taker_type":"buy"},
|
||||
{"id":492040436,"price":1.2992,"amount":888,"total":1153.6896,"market":"eurusd","created_at":1597316844,"taker_type":"sell"},
|
||||
{"id":492040435,"price":1.2986,"amount":888,"total":1153.1568,"market":"eurusd","created_at":1597316766,"taker_type":"sell"},
|
||||
{"id":492040423,"price":1.3331,"amount":45.5845895,"total":60.76881626245,"market":"eurusd","created_at":1597312774,"taker_type":"buy"},
|
||||
{"id":492040424,"price":1.3348,"amount":1265.38331556,"total":1689.033649609488,"market":"eurusd","created_at":1597312774,"taker_type":"buy"},
|
||||
{"id":492040422,"price":1.333,"amount":1587.70656213,"total":2116.41284731929,"market":"eurusd","created_at":1597312774,"taker_type":"buy"},
|
||||
{"id":492040421,"price":1.333,"amount":396.92664053,"total":529.10321182649,"market":"eurusd","created_at":1597312774,"taker_type":"buy"},
|
||||
{"id":492040416,"price":1.2705,"amount":131.78210778,"total":167.42916793449,"market":"eurusd","created_at":1597310588,"taker_type":"sell"},
|
||||
{"id":492040415,"price":1.2706,"amount":64.66011722,"total":82.157144939732,"market":"eurusd","created_at":1597310588,"taker_type":"sell"},
|
||||
{"id":492040414,"price":1.2761,"amount":9.299e-05,"total":0.000118664539,"market":"eurusd","created_at":1597310377,"taker_type":"sell"},
|
||||
{"id":492040413,"price":1.2761,"amount":64.31238919,"total":82.069039845359,"market":"eurusd","created_at":1597310377,"taker_type":"sell"},
|
||||
{"id":492040412,"price":1.2816,"amount":63.96484714,"total":81.977348094624,"market":"eurusd","created_at":1597310159,"taker_type":"sell"},
|
||||
{"id":492040410,"price":1.2871,"amount":63.61721211,"total":81.881713706781,"market":"eurusd","created_at":1597310048,"taker_type":"sell"},
|
||||
{"id":492040409,"price":1.2926,"amount":15.26957707,"total":19.737455320682,"market":"eurusd","created_at":1597310048,"taker_type":"sell"},
|
||||
{"id":492040407,"price":1.3,"amount":94.33,"total":122.629,"market":"eurusd","created_at":1597310007,"taker_type":"sell"},
|
||||
{"id":492040408,"price":1.3,"amount":45.63021972,"total":59.319285636,"market":"eurusd","created_at":1597310007,"taker_type":"sell"},
|
||||
{"id":492040404,"price":1.2926,"amount":48,"total":62.0448,"market":"eurusd","created_at":1597308179,"taker_type":"sell"},
|
||||
{"id":492040402,"price":1.2981,"amount":62.92194203,"total":81.678972949143,"market":"eurusd","created_at":1597308162,"taker_type":"sell"},
|
||||
{"id":492040401,"price":1.3037,"amount":62.57430699,"total":81.578124022863,"market":"eurusd","created_at":1597308120,"taker_type":"sell"},
|
||||
{"id":492040400,"price":1.3092,"amount":62.22667195,"total":81.46715891694,"market":"eurusd","created_at":1597308109,"taker_type":"sell"},
|
||||
{"id":492040399,"price":1.3147,"amount":61.87903691,"total":81.352369825577,"market":"eurusd","created_at":1597307995,"taker_type":"sell"},
|
||||
{"id":492040398,"price":1.3202,"amount":61.53140187,"total":81.233756748774,"market":"eurusd","created_at":1597307994,"taker_type":"sell"},
|
||||
{"id":492040396,"price":1.3257,"amount":61.18376683,"total":81.111319686531,"market":"eurusd","created_at":1597307260,"taker_type":"sell"},
|
||||
{"id":492040395,"price":1.3312,"amount":60.8361318,"total":80.98505865216,"market":"eurusd","created_at":1597307260,"taker_type":"sell"},
|
||||
{"id":492040397,"price":1.3245,"amount":376.98010137,"total":499.310144264565,"market":"eurusd","created_at":1597307260,"taker_type":"sell"},
|
||||
{"id":492040392,"price":1.3367,"amount":60.48849676,"total":80.854973619092,"market":"eurusd","created_at":1597306106,"taker_type":"sell"},
|
||||
{"id":492040389,"price":1.349,"amount":293.7363074,"total":396.2502786826,"market":"eurusd","created_at":1597306102,"taker_type":"sell"},
|
||||
{"id":492040390,"price":1.3478,"amount":59.79322668,"total":80.589310919304,"market":"eurusd","created_at":1597306102,"taker_type":"sell"},
|
||||
{"id":492040391,"price":1.3422,"amount":60.14086172,"total":80.721064600584,"market":"eurusd","created_at":1597306102,"taker_type":"sell"},
|
||||
{"id":492040388,"price":1.349,"amount":212.77469259,"total":287.03306030391,"market":"eurusd","created_at":1597306064,"taker_type":"sell"},
|
||||
{"id":492040387,"price":1.3533,"amount":59.44559164,"total":80.447719166412,"market":"eurusd","created_at":1597306064,"taker_type":"sell"},
|
||||
{"id":492040386,"price":1.3541,"amount":0.08562665,"total":0.115947046765,"market":"eurusd","created_at":1597306064,"taker_type":"sell"},
|
||||
{"id":492040385,"price":1.3588,"amount":59.0979566,"total":80.30230342808,"market":"eurusd","created_at":1597306064,"taker_type":"sell"},
|
||||
{"id":492040384,"price":1.3643,"amount":58.75032156,"total":80.153063704308,"market":"eurusd","created_at":1597306064,"taker_type":"sell"},
|
||||
{"id":492040383,"price":1.3698,"amount":5.42648252,"total":7.433195755896,"market":"eurusd","created_at":1597306052,"taker_type":"sell"},
|
||||
{"id":492040381,"price":1.3698,"amount":48.80115,"total":66.84781527,"market":"eurusd","created_at":1597305097,"taker_type":"sell"},
|
||||
{"id":492040379,"price":1.3698,"amount":50.769946,"total":69.5446720308,"market":"eurusd","created_at":1597305072,"taker_type":"sell"},
|
||||
{"id":492040380,"price":1.3698,"amount":4.175054,"total":5.7189889692,"market":"eurusd","created_at":1597305072,"taker_type":"sell"},
|
||||
{"id":492040376,"price":1.3735,"amount":369.89048027,"total":508.044574650845,"market":"eurusd","created_at":1597304425,"taker_type":"sell"},
|
||||
{"id":492040377,"price":1.3735,"amount":29.50951973,"total":40.531325349155,"market":"eurusd","created_at":1597304425,"taker_type":"sell"},
|
||||
{"id":492040373,"price":1.39,"amount":40,"total":55.6,"market":"eurusd","created_at":1597304276,"taker_type":"buy"},
|
||||
{"id":492040374,"price":1.3733,"amount":998,"total":1370.5534,"market":"eurusd","created_at":1597304276,"taker_type":"sell"},
|
||||
{"id":492040372,"price":1.39,"amount":373.01198274,"total":518.4866560086,"market":"eurusd","created_at":1597304117,"taker_type":"buy"},
|
||||
{"id":492040371,"price":1.39,"amount":374.14040366,"total":520.0551610874,"market":"eurusd","created_at":1597304114,"taker_type":"buy"},
|
||||
{"id":492040370,"price":1.39,"amount":374.27485967,"total":520.2420549413,"market":"eurusd","created_at":1597304110,"taker_type":"buy"},
|
||||
{"id":492040369,"price":1.39,"amount":374.16821212,"total":520.0938148468,"market":"eurusd","created_at":1597304107,"taker_type":"buy"},
|
||||
{"id":492040368,"price":1.39,"amount":375.11608549,"total":521.4113588311,"market":"eurusd","created_at":1597304076,"taker_type":"buy"},
|
||||
{"id":492040367,"price":1.39,"amount":375.39863172,"total":521.8040980908,"market":"eurusd","created_at":1597304071,"taker_type":"buy"},
|
||||
{"id":492040365,"price":1.39,"amount":40,"total":55.6,"market":"eurusd","created_at":1597304006,"taker_type":"buy"},
|
||||
{"id":492040364,"price":1.3873,"amount":92.81332885,"total":128.759931113605,"market":"eurusd","created_at":1597304006,"taker_type":"buy"},
|
||||
{"id":492040366,"price":1.39,"amount":1049.49093232,"total":1458.7923959248,"market":"eurusd","created_at":1597304006,"taker_type":"buy"},
|
||||
{"id":492040363,"price":1.3864,"amount":49.901219,"total":69.1830500216,"market":"eurusd","created_at":1597304006,"taker_type":"buy"},
|
||||
{"id":492040362,"price":1.385,"amount":264.331167,"total":366.098666295,"market":"eurusd","created_at":1597304006,"taker_type":"buy"},
|
||||
{"id":492040361,"price":1.3843,"amount":7.46335283,"total":10.331519322569,"market":"eurusd","created_at":1597304006,"taker_type":"buy"},
|
||||
{"id":492040360,"price":1.3842,"amount":196.832013,"total":272.4548723946,"market":"eurusd","created_at":1597303823,"taker_type":"buy"},
|
||||
{"id":492040357,"price":1.3843,"amount":50,"total":69.215,"market":"eurusd","created_at":1597302338,"taker_type":"buy"},
|
||||
{"id":492040355,"price":1.3843,"amount":35.34997602,"total":48.934971804486,"market":"eurusd","created_at":1597302321,"taker_type":"buy"},
|
||||
{"id":492040354,"price":1.3812,"amount":14.65002398,"total":20.234613121176,"market":"eurusd","created_at":1597302321,"taker_type":"buy"},
|
||||
{"id":492040353,"price":1.3812,"amount":50,"total":69.06,"market":"eurusd","created_at":1597302306,"taker_type":"buy"},
|
||||
{"id":492040352,"price":1.3812,"amount":28.16330487,"total":38.899156686444,"market":"eurusd","created_at":1597302292,"taker_type":"buy"},
|
||||
{"id":492040350,"price":1.3782,"amount":92.81332885,"total":127.91532982107,"market":"eurusd","created_at":1597302292,"taker_type":"buy"},
|
||||
{"id":492040351,"price":1.38,"amount":200,"total":276,"market":"eurusd","created_at":1597302292,"taker_type":"buy"},
|
||||
{"id":492040349,"price":1.3752,"amount":56.89057568,"total":78.235919675136,"market":"eurusd","created_at":1597302292,"taker_type":"buy"},
|
||||
{"id":492040348,"price":1.3752,"amount":35.92275317,"total":49.400970159384,"market":"eurusd","created_at":1597302292,"taker_type":"buy"},
|
||||
{"id":492040347,"price":1.3722,"amount":14.07724683,"total":19.316798100126,"market":"eurusd","created_at":1597302292,"taker_type":"buy"},
|
||||
{"id":492040346,"price":1.3722,"amount":78.73608202,"total":108.041651747844,"market":"eurusd","created_at":1597302215,"taker_type":"buy"},
|
||||
{"id":492040345,"price":1.37,"amount":299.61828748,"total":410.4770538476,"market":"eurusd","created_at":1597302215,"taker_type":"buy"},
|
||||
{"id":492040342,"price":1.37,"amount":379.74245203,"total":520.2471592811,"market":"eurusd","created_at":1597300997,"taker_type":"buy"},
|
||||
{"id":492040341,"price":1.37,"amount":379.42143271,"total":519.8073628127,"market":"eurusd","created_at":1597300990,"taker_type":"buy"},
|
||||
{"id":492040340,"price":1.37,"amount":374.51850572,"total":513.0903528364,"market":"eurusd","created_at":1597300987,"taker_type":"buy"},
|
||||
{"id":492040339,"price":1.37,"amount":379.45621859,"total":519.8550194683,"market":"eurusd","created_at":1597300982,"taker_type":"buy"},
|
||||
{"id":492040338,"price":1.37,"amount":379.50128177,"total":519.9167560249,"market":"eurusd","created_at":1597300965,"taker_type":"buy"},
|
||||
{"id":492040337,"price":1.37,"amount":379.41986245,"total":519.8052115565,"market":"eurusd","created_at":1597300962,"taker_type":"buy"},
|
||||
{"id":492040336,"price":1.37,"amount":375.37418405,"total":514.2626321485,"market":"eurusd","created_at":1597300898,"taker_type":"buy"},
|
||||
{"id":492040335,"price":1.37,"amount":52.9477752,"total":72.538452024,"market":"eurusd","created_at":1597300893,"taker_type":"buy"},
|
||||
{"id":492040333,"price":1.3662,"amount":92.81332885,"total":126.80156987487,"market":"eurusd","created_at":1597300893,"taker_type":"buy"},
|
||||
{"id":492040331,"price":1.3602,"amount":49.26042042,"total":67.004023855284,"market":"eurusd","created_at":1597300893,"taker_type":"buy"},
|
||||
{"id":492040334,"price":1.3692,"amount":92.81332885,"total":127.08000986142,"market":"eurusd","created_at":1597300893,"taker_type":"buy"},
|
||||
{"id":492040332,"price":1.3632,"amount":92.81332885,"total":126.52312988832,"market":"eurusd","created_at":1597300893,"taker_type":"buy"},
|
||||
{"id":492040329,"price":1.3571,"amount":4.54309157,"total":6.165429569647,"market":"eurusd","created_at":1597300610,"taker_type":"buy"},
|
||||
{"id":492040330,"price":1.3602,"amount":43.55290843,"total":59.240666046486,"market":"eurusd","created_at":1597300610,"taker_type":"buy"},
|
||||
{"id":492040328,"price":1.3571,"amount":41.6960092,"total":56.58565408532,"market":"eurusd","created_at":1597300581,"taker_type":"buy"},
|
||||
{"id":492040327,"price":1.3571,"amount":46.42432809,"total":63.002455650939,"market":"eurusd","created_at":1597300573,"taker_type":"buy"},
|
||||
{"id":492040326,"price":1.3571,"amount":0.14989999,"total":0.203429276429,"market":"eurusd","created_at":1597300535,"taker_type":"buy"},
|
||||
{"id":492040325,"price":1.3562,"amount":49.85010001,"total":67.606705633562,"market":"eurusd","created_at":1597300535,"taker_type":"buy"}
|
||||
]
|
||||
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
50
mocks/api/v2/dena/public/markets/k-line.js
Normal file
50
mocks/api/v2/dena/public/markets/k-line.js
Normal file
@@ -0,0 +1,50 @@
|
||||
const queryIndex = request.url.indexOf('?')
|
||||
let k = [];
|
||||
|
||||
const parseQuery = (url) => {
|
||||
let vars = {};
|
||||
url.substring(queryIndex + 1).split("&").forEach((chunk) => {
|
||||
const arr = chunk.split("=");
|
||||
vars[arr[0]] = arr[1];
|
||||
});
|
||||
return vars;
|
||||
}
|
||||
|
||||
// Those functions are the same used in k-line mocked ranger event
|
||||
const minDay = 6;
|
||||
const maxDay = 10;
|
||||
const fakePeriod = 86400;
|
||||
|
||||
const timeToPrice = (time) => {
|
||||
return minDay + (maxDay - minDay) / 2 * (1 + Math.cos((time / fakePeriod) * 2 * Math.PI));
|
||||
}
|
||||
const timeToVolume = (time, periodInSeconds) => {
|
||||
return maxDay * 10 / 2 * (1 + Math.cos((time / fakePeriod) * 2 * Math.PI));
|
||||
};
|
||||
|
||||
const kLine = (time, period) => {
|
||||
const periodInSeconds = parseInt(period * 60);
|
||||
time = parseInt(time / periodInSeconds) * periodInSeconds;
|
||||
const open = timeToPrice(time);
|
||||
const close = timeToPrice(time + periodInSeconds);
|
||||
const delta = (maxDay - minDay) / fakePeriod * periodInSeconds * 2;
|
||||
const high = Math.max(open, close) + delta;
|
||||
const low = Math.min(open, close) - delta;
|
||||
const volume = timeToVolume(time, periodInSeconds);
|
||||
return [time, open, high, low, close, volume]
|
||||
}
|
||||
|
||||
if (queryIndex != -1) {
|
||||
const vars = parseQuery(request.url);
|
||||
const period = parseInt(vars.period);
|
||||
const time_to = parseInt(vars.time_to);
|
||||
const time_from = parseInt(vars.time_from);
|
||||
let time = time_from;
|
||||
|
||||
while (time < time_to) {
|
||||
k.push(kLine(time, period));
|
||||
time += period * 60;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = k;
|
||||
8
mocks/api/v2/dena/public/markets/tickers/GET.mock
Normal file
8
mocks/api/v2/dena/public/markets/tickers/GET.mock
Normal file
@@ -0,0 +1,8 @@
|
||||
HTTP/2 200
|
||||
Content-Type: application/json; charset=utf-8
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
|
||||
#import './script.js';
|
||||
5
mocks/api/v2/dena/public/markets/tickers/OPTIONS.mock
Normal file
5
mocks/api/v2/dena/public/markets/tickers/OPTIONS.mock
Normal file
@@ -0,0 +1,5 @@
|
||||
HTTP/2 200
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONS, HEAD
|
||||
Access-Control-Max-Age: 3600
|
||||
Access-Control-Allow-Credentials: true
|
||||
172
mocks/api/v2/dena/public/markets/tickers/script.js
Normal file
172
mocks/api/v2/dena/public/markets/tickers/script.js
Normal file
@@ -0,0 +1,172 @@
|
||||
var ts = parseInt(Date.now() / 1000);
|
||||
|
||||
module.exports = {
|
||||
"btczar": {
|
||||
"at": ts,
|
||||
"ticker": {
|
||||
"amount": "60.0",
|
||||
"buy": "1200.0",
|
||||
"sell": "1300.0",
|
||||
"low": "1150.0",
|
||||
"high": "1350.0",
|
||||
"last": "1250.0",
|
||||
"volume": "120.0",
|
||||
"open": 1251.0,
|
||||
"price_change_percent": "+0.08%"
|
||||
}
|
||||
},
|
||||
"bchbtc": {
|
||||
"at": ts,
|
||||
"ticker": {
|
||||
"amount": "8.0",
|
||||
"buy": "120.0",
|
||||
"sell": "130.0",
|
||||
"low": "115.0",
|
||||
"high": "135.0",
|
||||
"last": "125.0",
|
||||
"volume": "12.0",
|
||||
"open": 123.2,
|
||||
"price_change_percent": "-1.44%"
|
||||
}
|
||||
},
|
||||
"ethbtc": {
|
||||
"at": ts,
|
||||
"ticker": {
|
||||
"amount": "124.021",
|
||||
"buy": "0.240",
|
||||
"sell": "0.250",
|
||||
"low": "0.238",
|
||||
"high": "0.253",
|
||||
"last": "0.245",
|
||||
"volume": "200.0",
|
||||
"open": 0.247,
|
||||
"price_change_percent": "+0.81%"
|
||||
}
|
||||
},
|
||||
"dashbtc": {
|
||||
"at": ts,
|
||||
"ticker": {
|
||||
"amount": "23.0",
|
||||
"buy": "1.20",
|
||||
"sell": "1.30",
|
||||
"low": "1.15",
|
||||
"high": "1.35",
|
||||
"last": "1.250",
|
||||
"volume": "50.0",
|
||||
"open": 1.250,
|
||||
"price_change_percent": "+0.00%"
|
||||
}
|
||||
},
|
||||
"ltcbtc": {
|
||||
"at": ts,
|
||||
"ticker": {
|
||||
"amount": "5.0",
|
||||
"buy": "100.0",
|
||||
"sell": "110.0",
|
||||
"low": "99.0",
|
||||
"high": "150.0",
|
||||
"last": "105.0",
|
||||
"volume": "10.0",
|
||||
"open": 106.0,
|
||||
"price_change_percent": "+0.95%"
|
||||
}
|
||||
},
|
||||
"xrpbtc": {
|
||||
"at": ts,
|
||||
"ticker": {
|
||||
"amount": "12.0",
|
||||
"buy": "200.0",
|
||||
"sell": "300.0",
|
||||
"low": "150.0",
|
||||
"high": "350.0",
|
||||
"last": "250.0",
|
||||
"volume": "20.0",
|
||||
"open": 250.3,
|
||||
"price_change_percent": "+0.12%"
|
||||
}
|
||||
},
|
||||
"xrpzar": {
|
||||
"at": ts,
|
||||
"ticker": {
|
||||
"amount": "11.0",
|
||||
"buy": "200.0",
|
||||
"sell": "300.0",
|
||||
"low": "150.0",
|
||||
"high": "350.0",
|
||||
"last": "250.0",
|
||||
"volume": "20.0",
|
||||
"open": 251.2,
|
||||
"price_change_percent": "+0.48%"
|
||||
}
|
||||
},
|
||||
"ltczar": {
|
||||
"at": ts,
|
||||
"ticker": {
|
||||
"amount": "13.0",
|
||||
"buy": "200.0",
|
||||
"sell": "300.0",
|
||||
"low": "150.0",
|
||||
"high": "350.0",
|
||||
"last": "250.0",
|
||||
"volume": "20.0",
|
||||
"open": 248.0,
|
||||
"price_change_percent": "-0.80%"
|
||||
}
|
||||
},
|
||||
"eurusd": {
|
||||
"at": ts,
|
||||
"ticker": {
|
||||
"amount": "9.0",
|
||||
"buy": "200.0",
|
||||
"sell": "300.0",
|
||||
"low": "150.0",
|
||||
"high": "350.0",
|
||||
"last": "250.0",
|
||||
"volume": "20.0",
|
||||
"open": 250.1,
|
||||
"price_change_percent": "+0.04%"
|
||||
}
|
||||
},
|
||||
"ethzar": {
|
||||
"at": ts,
|
||||
"ticker": {
|
||||
"amount": "8.0",
|
||||
"buy": "200.0",
|
||||
"sell": "300.0",
|
||||
"low": "150.0",
|
||||
"high": "350.0",
|
||||
"last": "250.0",
|
||||
"volume": "20.0",
|
||||
"open": 235.4,
|
||||
"price_change_percent": "-5.84%"
|
||||
}
|
||||
},
|
||||
"dashzar": {
|
||||
"at": ts,
|
||||
"ticker": {
|
||||
"amount": "9.0",
|
||||
"buy": "200.0",
|
||||
"sell": "300.0",
|
||||
"low": "150.0",
|
||||
"high": "350.0",
|
||||
"last": "250.0",
|
||||
"volume": "20.0",
|
||||
"open": 252.0,
|
||||
"price_change_percent": "+0.80%"
|
||||
}
|
||||
},
|
||||
"btczar": {
|
||||
"at": ts,
|
||||
"ticker": {
|
||||
"amount": "5.0",
|
||||
"buy": "200.0",
|
||||
"sell": "300.0",
|
||||
"low": "150.0",
|
||||
"high": "350.0",
|
||||
"last": "250.0",
|
||||
"volume": "20.0",
|
||||
"open": 266.1,
|
||||
"price_change_percent": "+6.44%"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user