-
-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathsymbols.rb
More file actions
24 lines (23 loc) · 699 Bytes
/
symbols.rb
File metadata and controls
24 lines (23 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module IEX
module Resources
class Symbols < Resource
property 'symbol'
property 'exchange'
property 'exchange_suffix', from: 'exchangeSuffix'
property 'exchange_name', from: 'exchangeName'
property 'exchange_segment', from: 'exchangeSegment'
property 'exchange_segment_name', from: 'exchangeSegmentName'
property 'name'
property 'date', transform_with: ->(v) { Date.parse(v) }
property 'enabled', from: 'isEnabled'
property 'type'
property 'region'
property 'currency'
property 'iex_id', from: 'iexId'
property 'figi'
property 'cik'
property 'lei'
alias :enabled? enabled
end
end
end