Fix: Update deprecated /candlesticks endpoint to /candles #110
+4
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Updates the deprecated
/api/v1/candlesticksendpoint to the current/api/v1/candlesendpoint.Background
The Lighter API deprecated the
/api/v1/candlesticksendpoint, causing all SDK candlestick downloads to fail with HTTP 403 Forbidden errors.Evidence
Old endpoint (deprecated):
https://mainnet.zklighter.elliot.ai/api/v1/candlesticksNew endpoint (current):
https://mainnet.zklighter.elliot.ai/api/v1/candlesVerification:
Changes
openapi.json):/api/v1/candlesticks→/api/v1/candleslighter/api/candlestick_api.pyREADME.mddocs/CandlestickApi.mdTesting
Manually verified endpoints:
/api/v1/candlesticksreturns 403/api/v1/candlesreturns 200Impact
This fix resolves HTTP 403 errors for all users attempting to download candlestick data via the SDK. No breaking changes to the Python API - the method names and signatures remain unchanged.
Note for Maintainers
This SDK appears to be auto-generated from OpenAPI spec. If you regenerate from a source spec file, please ensure the source spec is also updated to use
/api/v1/candles.References