Skip to content

Upgrade SDK to API v2, add OHLC endpoint, remove limit#4

Merged
oligirling merged 2 commits intomasterfrom
api-v2-support
Feb 21, 2026
Merged

Upgrade SDK to API v2, add OHLC endpoint, remove limit#4
oligirling merged 2 commits intomasterfrom
api-v2-support

Conversation

@oligirling
Copy link
Contributor

Summary

  • Upgrades the SDK from API v1 to v2 (/api/v2/)
  • Adds new ohlc() endpoint for candlestick data, with setCurrency() and setInterval() methods
  • Removes setLimit() — the limit parameter is no longer supported in API v2

Test plan

  • All existing tests updated and passing (27 tests, 57 assertions)
  • New tests added for setCurrency(), setInterval(), getOhlcParams(), and ohlc() endpoint
  • Verified in Docker with PHP 8.5

🤖 Generated with Claude Code

oligirling and others added 2 commits February 19, 2026 08:31
- Bump API version from v1 to v2 (/api/v2/)
- Add ohlc() endpoint with setCurrency() and setInterval() methods
- Remove setLimit() — not supported in API v2
- Replace getCommonBaseAndLimit() with getCommonBase()
- Update tests: remove limit tests, add ohlc/currency/interval tests
- Update README with endpoint descriptions and OHLC docs
- Add CHANGELOG entry for v3.0.0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
API v1 will be retired on 31st July 2026, redirecting to v2.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oligirling oligirling merged commit 7ba21d2 into master Feb 21, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant