-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathstream-events.graphql
More file actions
54 lines (52 loc) · 1.17 KB
/
stream-events.graphql
File metadata and controls
54 lines (52 loc) · 1.17 KB
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
# How to stream events from a Data Node using GraphQL calls:
# ----------------------------------------------------------------------
# Cursor pagination is supported
# ----------------------------------------------------------------------
# There can be various arguments passed into busEvents, such as:
# batchSize
# marketId
# partyId
# ----------------------------------------------------------------------
# For full details see the GraphQL Reference API docs at https://docs.vega.xyz
subscription StreamEvents {
busEvents(batchSize: 0, types: [Order], marketId: "'$marketID'") {
type
event {
... on Order {
id
side
price
timeInForce
side
market {
id
}
size
remaining
party {
id
}
createdAt
expiresAt
status
reference
tradesConnection {
edges {
node {
id
size
aggressor
}
}
}
type
rejectionReason
version
updatedAt
}
... on TimeUpdate {
timestamp
}
}
}
}