2121class FuturesClient (BaseClient ):
2222 """
2323 Client for the Futures REST Endpoints
24- (aligned with the paths from /futures/vX /...)
24+ (aligned with the paths from /futures/v1 /...)
2525 """
2626
2727 def list_futures_aggregates (
@@ -40,15 +40,15 @@ def list_futures_aggregates(
4040 options : Optional [RequestOptionBuilder ] = None ,
4141 ) -> Union [Iterator [FuturesAgg ], HTTPResponse ]:
4242 """
43- Endpoint: GET /futures/vX /aggs/{ticker}
43+ Endpoint: GET /futures/v1 /aggs/{ticker}
4444
4545 Get aggregates for a futures contract in a given time range.
4646 This endpoint returns data that includes:
4747 - open, close, high, low
4848 - volume, dollar_volume, etc.
4949 If `next_url` is present, it will be paginated.
5050 """
51- url = f"/futures/vX /aggs/{ ticker } "
51+ url = f"/futures/v1 /aggs/{ ticker } "
5252 return self ._paginate (
5353 path = url ,
5454 params = self ._get_params (self .list_futures_aggregates , locals ()),
@@ -96,11 +96,11 @@ def list_futures_contracts(
9696 options : Optional [RequestOptionBuilder ] = None ,
9797 ) -> Union [Iterator [FuturesContract ], HTTPResponse ]:
9898 """
99- Endpoint: GET /futures/vX /contracts
99+ Endpoint: GET /futures/v1 /contracts
100100
101101 The Contracts endpoint returns a paginated list of futures contracts.
102102 """
103- url = "/futures/vX /contracts"
103+ url = "/futures/v1 /contracts"
104104 return self ._paginate (
105105 path = url ,
106106 params = self ._get_params (self .list_futures_contracts , locals ()),
@@ -151,11 +151,11 @@ def list_futures_products(
151151 options : Optional [RequestOptionBuilder ] = None ,
152152 ) -> Union [Iterator [FuturesProduct ], HTTPResponse ]:
153153 """
154- Endpoint: GET /futures/vX /products
154+ Endpoint: GET /futures/v1 /products
155155
156156 Returns a list of futures products (including combos).
157157 """
158- url = "/futures/vX /products"
158+ url = "/futures/v1 /products"
159159 return self ._paginate (
160160 path = url ,
161161 params = self ._get_params (self .list_futures_products , locals ()),
@@ -184,11 +184,11 @@ def list_futures_quotes(
184184 options : Optional [RequestOptionBuilder ] = None ,
185185 ) -> Union [Iterator [FuturesQuote ], HTTPResponse ]:
186186 """
187- Endpoint: GET /futures/vX /quotes/{ticker}
187+ Endpoint: GET /futures/v1 /quotes/{ticker}
188188
189189 Get quotes for a contract in a given time range (paginated).
190190 """
191- url = f"/futures/vX /quotes/{ ticker } "
191+ url = f"/futures/v1 /quotes/{ ticker } "
192192 return self ._paginate (
193193 path = url ,
194194 params = self ._get_params (self .list_futures_quotes , locals ()),
@@ -217,11 +217,11 @@ def list_futures_trades(
217217 options : Optional [RequestOptionBuilder ] = None ,
218218 ) -> Union [Iterator [FuturesTrade ], HTTPResponse ]:
219219 """
220- Endpoint: GET /futures/vX /trades/{ticker}
220+ Endpoint: GET /futures/v1 /trades/{ticker}
221221
222222 Get trades for a contract in a given time range (paginated).
223223 """
224- url = f"/futures/vX /trades/{ ticker } "
224+ url = f"/futures/v1 /trades/{ ticker } "
225225 return self ._paginate (
226226 path = url ,
227227 params = self ._get_params (self .list_futures_trades , locals ()),
@@ -257,12 +257,12 @@ def list_futures_schedules(
257257 options : Optional [RequestOptionBuilder ] = None ,
258258 ) -> Union [Iterator [FuturesSchedule ], HTTPResponse ]:
259259 """
260- Endpoint: GET /futures/vX /schedules
260+ Endpoint: GET /futures/v1 /schedules
261261
262262 Returns a list of trading schedules for multiple futures products on a specific date.
263263 If `next_url` is present, this is paginated.
264264 """
265- url = "/futures/vX /schedules"
265+ url = "/futures/v1 /schedules"
266266 return self ._paginate (
267267 path = url ,
268268 params = self ._get_params (self .list_futures_schedules , locals ()),
@@ -284,7 +284,7 @@ def list_futures_market_statuses(
284284 raw : bool = False ,
285285 options : Optional [RequestOptionBuilder ] = None ,
286286 ) -> Union [Iterator [FuturesMarketStatus ], HTTPResponse ]:
287- url = "/futures/vX /market-status"
287+ url = "/futures/v1 /market-status"
288288 return self ._paginate (
289289 path = url ,
290290 params = self ._get_params (self .list_futures_market_statuses , locals ()),
@@ -313,7 +313,7 @@ def get_futures_snapshot(
313313 raw : bool = False ,
314314 options : Optional [RequestOptionBuilder ] = None ,
315315 ) -> Union [Iterator [FuturesSnapshot ], HTTPResponse ]:
316- url = "/futures/vX /snapshot"
316+ url = "/futures/v1 /snapshot"
317317 return self ._paginate (
318318 path = url ,
319319 params = self ._get_params (self .get_futures_snapshot , locals ()),
@@ -330,11 +330,11 @@ def list_futures_exchanges(
330330 options : Optional [RequestOptionBuilder ] = None ,
331331 ) -> Union [Iterator [FuturesExchange ], HTTPResponse ]:
332332 """
333- Endpoint: GET /futures/vX /exchanges
333+ Endpoint: GET /futures/v1 /exchanges
334334
335335 US futures exchanges and trading venues including major derivatives exchanges (CME, CBOT, NYMEX, COMEX) and other futures market infrastructure for commodity, financial, and other derivative contract trading.
336336 """
337- url = "/futures/vX /exchanges"
337+ url = "/futures/v1 /exchanges"
338338 return self ._paginate (
339339 path = url ,
340340 params = self ._get_params (self .list_futures_exchanges , locals ()),
0 commit comments