diff --git a/pyEX/client.py b/pyEX/client.py index 5d1f01d..8f93e45 100644 --- a/pyEX/client.py +++ b/pyEX/client.py @@ -1,5 +1,5 @@ import os -from functools import partial +from functools import partial, wraps from .common import PyEXception, _getJson, _USAGE_TYPES from .refdata import symbols, iexSymbols, mutualFundSymbols, otcSymbols, internationalSymbols, fxSymbols, optionsSymbols, \ @@ -311,7 +311,7 @@ def __init__(self, api_token=None, version='beta'): self._version = version for name, method in _INCLUDE_FUNCTIONS: - setattr(self, name, partial(self.bind, meth=method)) + setattr(self, name, wraps(method)(partial(self.bind, meth=method))) getattr(self, name).__doc__ = method.__doc__ def bind(self, *args, meth=None, **kwargs):