Skip to content

Commit 78fdea4

Browse files
author
Dario Varotto
committed
Hotfix - missing module update
1 parent 7656101 commit 78fdea4

File tree

3 files changed

+38
-3
lines changed

3 files changed

+38
-3
lines changed

README.rst

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff 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
111111
appropriate 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

ravenpackapi/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from 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

1919
logger = logging.getLogger("ravenpack.core")
2020

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
from setuptools import setup, find_packages
22

3-
VERSION = '1.0.14'
3+
VERSION = '1.0.16'
44

55
with open('README.rst') as readme_file:
66
readme = readme_file.read()
77

88
setup(
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',

0 commit comments

Comments
 (0)