Vortex SDK - Python Wrapper
A Python wrapper for the Vortex SDK enabling cross-chain ramp operations from Python applications.
Overview
This package wraps the TypeScript/JavaScript Vortex SDK using Node.js subprocess execution, allowing Python developers to interact with Vortex's API for on-ramp and off-ramp operations.
Installation
Prerequisites
- Python 3.9+
- Node.js 18+
Install
git clone https://github.com/pendulum-chain/vortex-python-sdk.git
cd vortex-python-sdk
# Install the Vortex SDK
npm install
# Install Python package
pip install -e .
Install from PyPI (when published)
pip install vortex-sdk-python
npm install -g @vortexfi/sdk
Quick Start
from vortex_sdk import VortexSDK, FiatToken, EvmToken, Networks
config = {
"apiBaseUrl": "https://api.vortexfinance.co"
}
sdk = VortexSDK(config)
quote = sdk.create_quote({
"from": "pix",
"inputAmount": "150000",
"inputCurrency": FiatToken.BRL,
"outputCurrency": EvmToken.USDC,
"rampType": "on",
"to": Networks.Polygon
})
print(f"Quote ID: {quote['id']}")
result = sdk.register_ramp(quote, {
"destinationAddress": "0x1234567890123456789012345678901234567890",
"taxId": "123.456.789-00"
})
print(f"Deposit QR Code: {result['rampProcess']['depositQrCode']}")
# After PIX payment
sdk.start_ramp(result['rampProcess']['id'])
Core Features
- Simple Installation: Just
npm install+pip install - No Build Required: Works with npm-published SDK
- Full Compatibility: Uses Node.js subprocess for complete SDK support
- Async Support: Both sync and async methods available
- Type Hints: Full type annotations for IDE support
API Reference
See Full Documentation for complete API reference.
Key Methods
create_quote(request)- Create a new quoteget_quote(quote_id)- Get existing quoteregister_ramp(quote, data)- Register ramp processstart_ramp(ramp_id)- Start the rampget_ramp_status(ramp_id)- Check ramp status
All methods have async versions: create_quote_async(), etc.
Examples
See examples/ directory for complete code samples:
brl_onramp_example.py- PIX to USDCbrl_offramp_example.py- USDC to PIXasync_example.py- Async/await usage
Development
pip install -e ".[dev]"
pytest tests/
Links
Metadata
Release files for vortex-sdk-python 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| vortex_sdk_python-0.2.1.tar.gz | 19.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vortex_sdk_python-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.3 kB
Release files / vortex_sdk_python-0.2.1.tar.gz
| Download URL | vortex_sdk_python-0.2.1.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2574fe7f1c9e07caf501650a8af17508498b7a069f5297369a7bfe1c1a72f36
|
|
BLAKE2b-256 checksum How to use checksums |
6ead581c9c7ccac9649a53be1a1b5ca1ef8467e5f350cff2d651b8b671695bc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Release files / vortex_sdk_python-0.2.1-py3-none-any.whl
| Download URL | vortex_sdk_python-0.2.1-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50a469fdfa1129d5bdc7986edc9db9f293a041904d475f3fb2d20b31c321d0f4
|
|
BLAKE2b-256 checksum How to use checksums |
5057b90fe47bbe91c2058aa57108cbaaae2c6ebf075f988d1b3b9fbef32c84e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Security for vortex-sdk-python 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.