-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
executable file
·67 lines (61 loc) · 1.01 KB
/
schema.graphql
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
type Order @entity {
id: ID!
owner: String!
status: String!
orderType: String!
denomAsk: String!
denomBid: String!
amount: BigInt!
inverseAmount: BigInt!
rate: BigDecimal!
inverseRate: BigDecimal!
begTime: BigInt!
updTime: BigInt!
}
enum HistoricalFrameType {
Minute
FiveMinute
QuarterHour
Hour
QuarterDay
Day
Week
}
type HistoricalFrame @entity {
id: ID!
type: HistoricalFrameType!
base: String!
quote: String!
updateTime: BigInt!
startTime: BigInt!
startPrice: BigDecimal!
endTime: BigInt!
endPrice: BigDecimal!
minPrice: BigDecimal!
maxPrice: BigDecimal!
volume: BigInt!
transactionsCount: BigInt!
}
type BookIncrement @entity {
id: ID!
book: String!
bin: String!
place: BigDecimal!
amount: BigInt!
orders: [ID!]!
}
type BookBin @entity {
id: ID!
increments: [ID!]!
}
type OrderBook @entity {
id: ID!
base: String!
quote: String!
direction: String!
rate: BigDecimal!
total: BigInt!
ceiling: BigDecimal!
orders: [String!]!
bins: [String!]!
}