Skip to content

GET /market/{market}/trades

Description

Request executed trades of a market

Parameters

Parameter Required Type Description Default Example
market true string A listed market SNXETH
from false number timestamp from which to query trades SNXETH
to false number timestamp up to which to query trades SNXETH
before false number trades before the last known one SNXETH
limit false number Limit the length (max: 50) 20 50

Example

Request

1
curl https://api.dex.blue/rest/v1/market/SNXETH/trades?limit=10

Response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
  "status": 0,
  "message": "success",
  "data": {
    "trades": [
      {
        "id": 3570,
        "market": "SNXETH",
        "direction": "BUY",
        "rate": "0.0069496",
        "amount": "552076900000000000000",
        "timestamp": 1578992677822
      },
      {
        "id": 3569,
        "market": "SNXETH",
        "direction": "BUY",
        "rate": "0.0069424",
        "amount": "974250000000000000000",
        "timestamp": 1578992677822
      },
      {
        "id": 3568,
        "market": "SNXETH",
        "direction": "BUY",
        "rate": "0.0069415",
        "amount": "1",
        "timestamp": 1578992677822
      },
      {
        "id": 3567,
        "market": "SNXETH",
        "direction": "BUY",
        "rate": "0.0069348",
        "amount": "868770000000000000000",
        "timestamp": 1578992677822
      },
      {
        "id": 3566,
        "market": "SNXETH",
        "direction": "BUY",
        "rate": "0.0068983",
        "amount": "82494000000000000000",
        "timestamp": 1578992677822
      },
      {
        "id": 3565,
        "market": "SNXETH",
        "direction": "BUY",
        "rate": "0.006915",
        "amount": "36105400000000000000",
        "timestamp": 1578992265819
      },
      {
        "id": 3564,
        "market": "SNXETH",
        "direction": "BUY",
        "rate": "0.0069091",
        "amount": "760530000000000000000",
        "timestamp": 1578992265819
      },
      {
        "id": 3563,
        "market": "SNXETH",
        "direction": "BUY",
        "rate": "0.0069031",
        "amount": "748820000000000000000",
        "timestamp": 1578992265819
      },
      {
        "id": 3562,
        "market": "SNXETH",
        "direction": "BUY",
        "rate": "0.0068973",
        "amount": "752350000000000000000",
        "timestamp": 1578992265819
      },
      {
        "id": 3561,
        "market": "SNXETH",
        "direction": "BUY",
        "rate": "0.0068915",
        "amount": "764470000000000000000",
        "timestamp": 1578992265819
      }
    ],
    "market": "SNXETH",
    "limit": 10
  }
}