Skip to content

Migrate to API v2 and add OHLC endpoint#4

Merged
oligirling merged 5 commits intomasterfrom
feat/v2-api-ohlc
Feb 21, 2026
Merged

Migrate to API v2 and add OHLC endpoint#4
oligirling merged 5 commits intomasterfrom
feat/v2-api-ohlc

Conversation

@oligirling
Copy link
Contributor

Summary

  • Migrates all endpoints from API v1 to v2 (/api/v1//api/v2/)
  • Adds new ohlc() endpoint with candlestick data support (intervals: 5m, 15m, 30m, 1h, 4h, 12h, 1d)
  • Bumps package version to 2.0.0

Test plan

  • All 50 tests pass with 100% coverage (verified via Docker)
  • All existing endpoint tests updated to assert v2 URLs
  • New ohlc.test.js covers constructor defaults, all setter methods, method chaining, JSON and XML fetch

🤖 Generated with Claude Code

- Update API version from v1 to v2 across all endpoints
- Add new Ohlc class with currency(), date(), interval(), and base() methods
- Add ohlc() factory method to CurrencyApi
- Add ohlc.test.js with 100% coverage
- Bump package version to 2.0.0
- Update README with OHLC usage and examples
- Update CHANGELOG for v2.0.0 release

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coveralls
Copy link

coveralls commented Feb 19, 2026

Pull Request Test Coverage Report for Build 22254535815

Details

  • 16 of 16 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 21981944585: 0.0%
Covered Lines: 87
Relevant Lines: 87

💛 - Coveralls

oligirling and others added 4 commits February 21, 2026 09:33
- Add deprecation banner to README pointing users to v2.0.0
- Add `make deprecate` target to mark v1.x as deprecated on npm

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Each matrix job now uploads with parallel: true and a dedicated
finish job signals Coveralls once all Node versions have reported.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oligirling oligirling merged commit 4f20b86 into master Feb 21, 2026
12 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.

2 participants