-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.generated.graphql
106 lines (95 loc) · 1.45 KB
/
schema.generated.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
type Query {
stock(symbol: ID!): Stock!
searchStock(query: String!): [Stock!]!
}
scalar MyDate
enum InstrumentType {
EQUITY
ETF
FOREX
}
type Stock {
symbol: ID!
name: String!
type: InstrumentType!
quote: Quote!
priceHistory: PriceHistory!
companyProfile: CompanyProfile!
market: Market!
chartData(timeRange: TimeRange!, interval: Interval!): [PricePoint!]!
}
type Quote {
price: Float!
open: Float!
close: Float!
low: Float!
high: Float!
change: Float!
changePercent: Float!
volume: Int!
averageVolume: Int!
marketCap: Int!
peRatio: Float
dividend: Float!
dividendPercent: Float!
}
type PriceHistory {
fiftyTwoWeekLow: Float!
fiftyTwoWeekHigh: Float!
fiftyTwoWeekChange: Float!
fiftyTwoWeekChangePercent: Float!
}
type CompanyProfile {
address: String!
phoneNumber: String!
website: String!
sector: String!
industry: String!
fullTimeEmployees: Int!
description: String!
}
type Market {
exchangeName: ID!
region: String!
language: String!
timezone: String!
currency: String!
marketState: MarketState!
gmtOffset: Int!
}
enum MarketState {
PRE
REGULAR
POST
CLOSED
}
enum TimeRange {
DAY
FIVE_DAYS
MONTH
THREE_MONTH
SIX_MONTH
YEAR
TWO_YEARS
FIVE_YEARS
TEN_YEARS
YTD
MAX
}
enum Interval {
MINUTE
TWO_MINUTES
FIVE_MINUTES
FIFTEEN_MINUTES
THIRTY_MINUTES
HOUR
FOUR_HOURS
DAY
WEEK
MONTH
YEAR
}
type PricePoint {
time: MyDate!
price: Float!
}