diff --git a/docs/source/vX.rst b/docs/source/vX.rst index 17bd9f5f..69a25311 100644 --- a/docs/source/vX.rst +++ b/docs/source/vX.rst @@ -4,7 +4,7 @@ vX ========== .. note:: - To call vX methods, use the vX class member on RESTClient. + To call vX methods, use the vx class member on RESTClient. For example, :code:`financials = RESTClient().vx.list_stock_financials()` @@ -16,4 +16,4 @@ List stock financials .. automethod:: polygon.rest.VXClient.list_stock_financials -.. _Stocks financials vX: https://polygon.io/docs/stocks/get_vx_reference_financials \ No newline at end of file +.. _Stocks financials vX: https://polygon.io/docs/stocks/get_vx_reference_financials diff --git a/polygon/rest/__init__.py b/polygon/rest/__init__.py index 5a2e4a3c..13a29d6d 100644 --- a/polygon/rest/__init__.py +++ b/polygon/rest/__init__.py @@ -52,7 +52,7 @@ def __init__( base=base, verbose=verbose, ) - self.vX = VXClient( + self.vx = VXClient( api_key=api_key, connect_timeout=connect_timeout, read_timeout=read_timeout, diff --git a/test_rest/test_financials.py b/test_rest/test_financials.py index 7a00a9db..f5196212 100644 --- a/test_rest/test_financials.py +++ b/test_rest/test_financials.py @@ -22,7 +22,7 @@ class FinancialsTest(BaseTest): def test_list_stock_financials(self): - financials = [f for f in self.c.vX.list_stock_financials()] + financials = [f for f in self.c.vx.list_stock_financials()] expected = [ StockFinancial( cik="0001413447",