Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
make install
poetry install --extras dev
poetry install -n
poetry run pip install -e ".[dev]"

- name: Lint
run: |
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/version-consistency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,13 @@ jobs:
git config --local user.email "${{ env.CI_COMMIT_EMAIL }}"
git config --local user.name "${{ env.CI_COMMIT_AUTHOR }}"
git add pyproject.toml
git commit -m "chore: bump SDK version to $NEW_VERSION"
git push origin HEAD:${{ github.head_ref }}
echo "✅ Committed and pushed version bump to $NEW_VERSION"
if git diff --cached --quiet; then
echo "✅ Version already at $NEW_VERSION, nothing to commit"
else
git commit -m "chore: bump SDK version to $NEW_VERSION"
git push origin HEAD:${{ github.head_ref }}
echo "✅ Committed and pushed version bump to $NEW_VERSION"
fi

- name: Validate version progression (for manual changes)
if: github.event_name == 'pull_request' && env.VERSION_MANUALLY_MODIFIED == 'true'
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "reya-python-sdk"
version = "2.1.3.5"
version = "2.1.4.0"
description = "SDK for interacting with Reya Labs APIs"
authors = [
{name = "Reya Labs"}
Expand Down
10 changes: 9 additions & 1 deletion scripts/generate-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ NC='\033[0m' # No Color

echo -e "${GREEN}🚀 Generating Python SDK from OpenAPI specifications...${NC}"

# Read package version from pyproject.toml
PACKAGE_VERSION=$(grep -m1 '^version' "$ROOT_DIR/pyproject.toml" | sed 's/version = "\(.*\)"/\1/')
if [ -z "$PACKAGE_VERSION" ]; then
echo -e "${RED}❌ Could not read version from pyproject.toml${NC}"
exit 1
fi
echo -e "${GREEN}📦 Using package version: $PACKAGE_VERSION${NC}"

# Check if OpenAPI Generator CLI is installed
if ! command -v openapi-generator-cli &> /dev/null; then
echo -e "${YELLOW}⚠️ OpenAPI Generator CLI not found. Installing...${NC}"
Expand All @@ -38,7 +46,7 @@ if [ -d "$PYTHON_SDK_REPO" ]; then
-o "$PYTHON_SDK_REPO" \
--skip-operation-example \
--global-property=models,apis,modelDocs=false,modelTests=false,apiDocs=false,apiTests=false,supportingFiles=__init__.py:api_client.py:configuration.py:api_response.py:exceptions.py:rest.py \
--additional-properties=library=asyncio,packageName=sdk.open_api,projectName=open-api,packageVersion=2.0.0,packageUrl=https://github.com/reya-network/reya-python-sdk
--additional-properties=library=asyncio,packageName=sdk.open_api,projectName=open-api,packageVersion=$PACKAGE_VERSION,packageUrl=https://github.com/reya-network/reya-python-sdk


if [ $? -ne 0 ]; then
Expand Down
4 changes: 2 additions & 2 deletions sdk/open_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


__version__ = "2.0.0"
__version__ = "2.1.4.0"

# Define package exports
__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/api/market_data_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/api/order_entry_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/api/reference_data_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/api/specs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/api/wallet_data_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
4 changes: 2 additions & 2 deletions sdk/open_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down Expand Up @@ -90,7 +90,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/2.0.0/python'
self.user_agent = 'OpenAPI-Generator/2.1.4.0/python'
self.client_side_validation = configuration.client_side_validation

async def __aenter__(self):
Expand Down
6 changes: 3 additions & 3 deletions sdk/open_api/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down Expand Up @@ -496,8 +496,8 @@ def to_debug_report(self) -> str:
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 2.1.3\n"\
"SDK Package Version: 2.0.0".\
"Version of the API: 2.1.4\n"\
"SDK Package Version: 2.1.4.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
10 changes: 5 additions & 5 deletions sdk/open_api/models/account_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down Expand Up @@ -44,15 +44,15 @@ def asset_validate_regular_expression(cls, value):
@field_validator('real_balance')
def real_balance_validate_regular_expression(cls, value):
"""Validates the regular expression"""
if not re.match(r"^\d+(\.\d+)?([eE][+-]?\d+)?$", value):
raise ValueError(r"must validate the regular expression /^\d+(\.\d+)?([eE][+-]?\d+)?$/")
if not re.match(r"^-?\d+(\.\d+)?([eE][+-]?\d+)?$", value):
raise ValueError(r"must validate the regular expression /^-?\d+(\.\d+)?([eE][+-]?\d+)?$/")
return value

@field_validator('balance_deprecated')
def balance_deprecated_validate_regular_expression(cls, value):
"""Validates the regular expression"""
if not re.match(r"^\d+(\.\d+)?([eE][+-]?\d+)?$", value):
raise ValueError(r"must validate the regular expression /^\d+(\.\d+)?([eE][+-]?\d+)?$/")
if not re.match(r"^-?\d+(\.\d+)?([eE][+-]?\d+)?$", value):
raise ValueError(r"must validate the regular expression /^-?\d+(\.\d+)?([eE][+-]?\d+)?$/")
return value

model_config = ConfigDict(
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/account_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/asset_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/cancel_order_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/cancel_order_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/candle_history_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/create_order_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/create_order_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/depth_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/execution_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/fee_tier_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/global_fee_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/level.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/liquidity_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/market_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/market_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/mass_cancel_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/mass_cancel_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
Expand Down
2 changes: 1 addition & 1 deletion sdk/open_api/models/order_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 2.1.3
The version of the OpenAPI document: 2.1.4
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
Expand Down
Loading
Loading