File tree Expand file tree Collapse file tree 3 files changed +38
-3
lines changed
Expand file tree Collapse file tree 3 files changed +38
-3
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,41 @@ It is possible to subscribe to a real-time stream for a dataset:
110110 The Result object takes care of converting the various fields to the
111111appropriate type, so ``record.timestamp_utc `` will be a ``datetime ``
112112
113+ Entity mapping
114+ ~~~~~~~~~~~~~~
115+
116+ The entity mapping endpoint allow you to find the RP\_ ENTITY\_ ID mapped
117+ to your universe of entities.
118+
119+ .. code :: python
120+
121+ universe = [
122+ " RavenPack" ,
123+ {' ticker' : ' AAPL' },
124+ ' California USA' ,
125+ { # Amazon, specifying various fields
126+ " client_id" : " 12345-A" ,
127+ " date" : " 2017-01-01" ,
128+ " name" : " Amazon Inc." ,
129+ " entity_type" : " COMP" ,
130+ " isin" : " US0231351067" ,
131+ " cusip" : " 023135106" ,
132+ " sedol" : " B58WM62" ,
133+ " listing" : " XNAS:AMZN"
134+ },
135+
136+ ]
137+ mapping = api.get_entity_mapping(universe)
138+
139+ # in this case we match everything
140+ assert len (mapping.matched) == len (universe)
141+ assert [m.name for m in mapping.matched] == [
142+ " RavenPack International S.L." ,
143+ " Apple Inc." ,
144+ " California, U.S." ,
145+ " Amazon.com Inc."
146+ ]
147+
113148 Entity reference
114149~~~~~~~~~~~~~~~~
115150
Original file line number Diff line number Diff line change 1414from ravenpackapi .utils .constants import JSON_AVAILABLE_FIELDS
1515
1616_VALID_METHODS = ('get' , 'post' , 'put' , 'delete' )
17- VERSION = '1.0.14 '
17+ VERSION = '1.0.16 '
1818
1919logger = logging .getLogger ("ravenpack.core" )
2020
Original file line number Diff line number Diff line change 11from setuptools import setup , find_packages
22
3- VERSION = '1.0.14 '
3+ VERSION = '1.0.16 '
44
55with open ('README.rst' ) as readme_file :
66 readme = readme_file .read ()
77
88setup (
99 name = 'ravenpackapi' ,
1010 version = VERSION ,
11- packages = find_packages (include = ['ravenpackapi' ]),
11+ packages = find_packages (include = ['ravenpackapi.* ' ]),
1212 include_package_data = True ,
1313
1414 url = 'https://github.com/RavenPack/python-api' ,
You can’t perform that action at this time.
0 commit comments