Skip to content

Bump specs to 2.1.4, fix linting#46

Merged
danigr99727 merged 8 commits intomainfrom
feat/bump-specs
Mar 11, 2026
Merged

Bump specs to 2.1.4, fix linting#46
danigr99727 merged 8 commits intomainfrom
feat/bump-specs

Conversation

@danigr99727
Copy link
Collaborator

@danigr99727 danigr99727 commented Mar 11, 2026

Summary by CodeRabbit

  • Bug Fixes

    • Enhanced balance validators to properly handle numeric values with optional leading minus signs
  • Chores

    • Updated SDK version to 2.1.4.0 with corresponding specification updates

@coderabbitai
Copy link

coderabbitai bot commented Mar 11, 2026

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: eb7f39f5-b5ed-4e42-9b85-cacc22ae043e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This pull request bumps the SDK version from 2.1.3.x to 2.1.4.0 by updating version strings across configuration files, module docstrings, and subproject references. One file updates numeric validation regex patterns with optional minus sign support.

Changes

Cohort / File(s) Summary
Version Bump - Project Config
pyproject.toml
Updated project version from 2.1.3.5 to 2.1.4.0.
Version Bump - SDK Core Modules
sdk/open_api/__init__.py, sdk/open_api/api_client.py, sdk/open_api/exceptions.py, sdk/open_api/rest.py
Updated OpenAPI document version in module docstrings from 2.1.3 to 2.1.4.
Version Bump - API Modules
sdk/open_api/api/market_data_api.py, sdk/open_api/api/order_entry_api.py, sdk/open_api/api/reference_data_api.py, sdk/open_api/api/specs_api.py, sdk/open_api/api/wallet_data_api.py
Updated OpenAPI document version in module docstrings from 2.1.3 to 2.1.4.
Version Bump - Data Models
sdk/open_api/models/__init__.py, sdk/open_api/models/account.py, sdk/open_api/models/account_type.py, sdk/open_api/models/asset_definition.py, sdk/open_api/models/cancel_order_request.py, sdk/open_api/models/cancel_order_response.py, sdk/open_api/models/candle_history_data.py, sdk/open_api/models/create_order_request.py, sdk/open_api/models/create_order_response.py, sdk/open_api/models/depth.py, sdk/open_api/models/depth_type.py, sdk/open_api/models/execution_type.py, sdk/open_api/models/fee_tier_parameters.py, sdk/open_api/models/global_fee_parameters.py, sdk/open_api/models/level.py, sdk/open_api/models/liquidity_parameters.py, sdk/open_api/models/market_definition.py, sdk/open_api/models/market_summary.py, sdk/open_api/models/mass_cancel_request.py, sdk/open_api/models/mass_cancel_response.py, sdk/open_api/models/order.py, sdk/open_api/models/order_status.py, sdk/open_api/models/order_type.py, sdk/open_api/models/pagination_meta.py, sdk/open_api/models/perp_execution.py, sdk/open_api/models/perp_execution_list.py, sdk/open_api/models/position.py, sdk/open_api/models/price.py, sdk/open_api/models/request_error.py, sdk/open_api/models/request_error_code.py, sdk/open_api/models/server_error.py, sdk/open_api/models/server_error_code.py, sdk/open_api/models/side.py, sdk/open_api/models/spot_execution.py, sdk/open_api/models/spot_execution_list.py, sdk/open_api/models/spot_market_definition.py, sdk/open_api/models/tier_type.py, sdk/open_api/models/time_in_force.py, sdk/open_api/models/wallet_configuration.py
Updated OpenAPI document version in module docstrings from 2.1.3 to 2.1.4.
Validator Pattern Updates
sdk/open_api/models/account_balance.py
Updated OpenAPI version and modified real\_balance and balance\_deprecated validators to permit optional leading minus sign in numeric strings; error messages updated to reflect new regex patterns.
Configuration Updates
sdk/open_api/configuration.py
Updated OpenAPI version in docstring and debug report string to reflect API version 2.1.4.
Submodule Reference
specs
Updated subproject commit reference.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A version hops from 2.1.3 to 2.1.4 so bright,
With docstrings updated and patterns made right,
Validators dance with their minus signs true,
Configuration whispers of changes so new,
We nibble on bugs and release with delight! 🥕

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately describes the main change: bumping the specs version to 2.1.4, which is reflected across all modified files including version updates in pyproject.toml and module docstrings throughout the SDK.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/bump-specs

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

🤖 SDK Version Check

Version automatically updated to 2.1.4.0

  • Previous version: 2.1.3.5
  • Reason: Specs tag changed to 2.1.4, version updated to match
  • Change committed automatically

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
sdk/open_api/__init__.py (1)

10-17: ⚠️ Potential issue | 🟠 Major

Update the exported package version as well.

This PR bumps the generated SDK/spec version, but sdk.open_api.__version__ on Line 17 still reports 2.0.0. That leaves the runtime package metadata out of sync with the release and can break consumers that introspect the SDK version.

Proposed fix
-__version__ = "2.0.0"
+__version__ = "2.1.4.0"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@sdk/open_api/__init__.py` around lines 10 - 17, The package-level __version__
variable is still "2.0.0" and must be updated to match the generated OpenAPI doc
version; update sdk.open_api.__version__ (the __version__ string in
sdk/open_api/__init__.py) to "2.1.4" so runtime package metadata matches the
SDK/spec bump.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@sdk/open_api/configuration.py`:
- Around line 499-500: Update the hardcoded SDK package version string that
currently reads "SDK Package Version: 2.0.0" (the string literal in
configuration.py) and the package version constant (likely __version__ in
open_api.__init__) so both match the project version 2.1.4.0; either replace the
literal "2.0.0" with "2.1.4.0" in the configuration string and set __version__ =
"2.1.4.0" in __init__.py, or refactor both locations to read the version
dynamically from pyproject.toml (e.g., via importlib.metadata or parsing) so
they stay in sync.

---

Outside diff comments:
In `@sdk/open_api/__init__.py`:
- Around line 10-17: The package-level __version__ variable is still "2.0.0" and
must be updated to match the generated OpenAPI doc version; update
sdk.open_api.__version__ (the __version__ string in sdk/open_api/__init__.py) to
"2.1.4" so runtime package metadata matches the SDK/spec bump.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 68918080-f0f2-4894-89b8-5bef03d8ee0c

📥 Commits

Reviewing files that changed from the base of the PR and between e889b9c and 5d795d1.

📒 Files selected for processing (52)
  • pyproject.toml
  • sdk/open_api/__init__.py
  • sdk/open_api/api/market_data_api.py
  • sdk/open_api/api/order_entry_api.py
  • sdk/open_api/api/reference_data_api.py
  • sdk/open_api/api/specs_api.py
  • sdk/open_api/api/wallet_data_api.py
  • sdk/open_api/api_client.py
  • sdk/open_api/configuration.py
  • sdk/open_api/exceptions.py
  • sdk/open_api/models/__init__.py
  • sdk/open_api/models/account.py
  • sdk/open_api/models/account_balance.py
  • sdk/open_api/models/account_type.py
  • sdk/open_api/models/asset_definition.py
  • sdk/open_api/models/cancel_order_request.py
  • sdk/open_api/models/cancel_order_response.py
  • sdk/open_api/models/candle_history_data.py
  • sdk/open_api/models/create_order_request.py
  • sdk/open_api/models/create_order_response.py
  • sdk/open_api/models/depth.py
  • sdk/open_api/models/depth_type.py
  • sdk/open_api/models/execution_type.py
  • sdk/open_api/models/fee_tier_parameters.py
  • sdk/open_api/models/global_fee_parameters.py
  • sdk/open_api/models/level.py
  • sdk/open_api/models/liquidity_parameters.py
  • sdk/open_api/models/market_definition.py
  • sdk/open_api/models/market_summary.py
  • sdk/open_api/models/mass_cancel_request.py
  • sdk/open_api/models/mass_cancel_response.py
  • sdk/open_api/models/order.py
  • sdk/open_api/models/order_status.py
  • sdk/open_api/models/order_type.py
  • sdk/open_api/models/pagination_meta.py
  • sdk/open_api/models/perp_execution.py
  • sdk/open_api/models/perp_execution_list.py
  • sdk/open_api/models/position.py
  • sdk/open_api/models/price.py
  • sdk/open_api/models/request_error.py
  • sdk/open_api/models/request_error_code.py
  • sdk/open_api/models/server_error.py
  • sdk/open_api/models/server_error_code.py
  • sdk/open_api/models/side.py
  • sdk/open_api/models/spot_execution.py
  • sdk/open_api/models/spot_execution_list.py
  • sdk/open_api/models/spot_market_definition.py
  • sdk/open_api/models/tier_type.py
  • sdk/open_api/models/time_in_force.py
  • sdk/open_api/models/wallet_configuration.py
  • sdk/open_api/rest.py
  • specs

The generate-api.sh script was hardcoding packageVersion=2.0.0, causing
the autogenerated open_api files to report a stale SDK version. Now reads
the version dynamically from pyproject.toml.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

🤖 SDK Version Check

Version automatically updated to 2.1.4.0

  • Previous version: 2.1.4.0
  • Reason: Specs tag changed to 2.1.4, version updated to match
  • Change committed automatically

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

🤖 SDK Version Check

Version automatically updated to 2.1.4.0

  • Previous version: 2.1.4.0
  • Reason: Specs tag changed to 2.1.4, version updated to match
  • Change committed automatically

- version-consistency: skip commit when version is already up to date
  instead of failing on "nothing to commit"
- pylint: use single `poetry install --extras dev` instead of separate
  install + extras steps, which caused dev deps to be missing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

🤖 SDK Version Check

Version automatically updated to 2.1.4.0

  • Previous version: 2.1.4.0
  • Reason: Specs tag changed to 2.1.4, version updated to match
  • Change committed automatically

Poetry's --extras flag doesn't reliably resolve [project.optional-dependencies].
Use pip install -e ".[dev]" inside the poetry venv instead, which natively
understands PEP 621 optional dependencies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

🤖 SDK Version Check

Version automatically updated to 2.1.4.0

  • Previous version: 2.1.4.0
  • Reason: Specs tag changed to 2.1.4, version updated to match
  • Change committed automatically

- Fix isort import ordering in market_trackers.py
- Fix black formatting in test_dynamic_pricing.py
- Fix flake8 F541: remove f-prefix from strings without placeholders
- Fix mypy: add None guards before float() on Optional fields

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

🤖 SDK Version Check

Version automatically updated to 2.1.4.0

  • Previous version: 2.1.4.0
  • Reason: Specs tag changed to 2.1.4, version updated to match
  • Change committed automatically

@danigr99727 danigr99727 merged commit a5a97d9 into main Mar 11, 2026
5 checks passed
@danigr99727 danigr99727 changed the title Bump specs to 2.1.4 Bump specs to 2.1.4, fix linting Mar 11, 2026
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.

3 participants