orion-finance-sdk 
About
A Python Software Development Kit (SDK) to ease interactions with the Orion Finance protocol and its Vaults. This repository provides tools and utilities for quants and developers to seamlessly integrate with Orion's portfolio management on-chain infrastructure.
For additional information, please refer to the Orion documentation, and the curator section in particular.
Licence
This software is distributed under the BSD-3-Clause license. See the LICENSE file for the full text.
Installation
From PyPI (Recommended)
Install the latest stable version from PyPI:
pip install orion-finance-sdk
From Source
For development or to install the latest development version:
# Clone the repository
git clone https://github.com/OrionFinanceAI/orion-finance-sdk.git
cd orion-finance-sdk
# Using uv (recommended)
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
source .venv/bin/activate
uv pip install -e .
Or using make:
make uv-download
make venv
source .venv/bin/activate
make install
Environment Variables Setup
The SDK requires the user to specify an RPC_URL environment variable in the .env file of the project. Follow the SDK Installation to get one.
Based on the usage, additional environment variables may be required, e.g.:
CURATOR_ADDRESS: The address of the curator account.VAULT_DEPLOYER_PRIVATE_KEY: The private key of the vault deployer account.CURATOR_PRIVATE_KEY: The private key of the curator account.ORION_VAULT_ADDRESS: The address of the Orion vault.
Examples of Usage
List available commands
orion --help
orion deploy-vault --help
orion submit-order --help
Deploy a new Transparent Orion vault
orion deploy-vault --vault-type transparent --name "Algorithmic Liquidity Provision & Hedging Agent" --symbol "ALPHA" --fee-type hard_hurdle --performance-fee 10 --management-fee 1
Deploy a new Encrypted Orion vault
orion deploy-vault --vault-type encrypted --name "Fully Homomorphic Encryption for Vault Management" --symbol "FHEVM" --fee-type high_water_mark --performance-fee 0 --management-fee 2
Submit an order intent to a vault
# Use off-chain stack to generate an order intent
echo '{"0x3E15268AdE04Eb579EE490CA92736301C7D644Bb": 0.4, "0x4371227723a006e8ee3941AfF5018D084a06DB95": 0.2, "0x784C3AB4C7bdC2d219b902fA63e87b376F178d82": 0.15, "0xD06b768D498FFD3151e4Bc89e0dBdAA0d1413044": 0.15, "0x1904c298d44b6cd10003C843e29D51407fE1309f": 0.1}' > order_intent.json
# Submit the order intent to the Orion vault
orion submit-order --order-intent-path order_intent.json
Update the curator address for a vault
orion update-curator --new-curator-address 0x92Cc2706b5775e2E783D76F20dC7ccC59bB92E48
Update the fee model for a vault
orion update-fee-model --fee-type high_water_mark --performance-fee 5.5 --management-fee 0.1
Metadata
Release files for orion-finance-sdk 0.4.3
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 | |
|---|---|---|---|---|
| orion_finance_sdk-0.4.3.tar.gz | 1.9 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| orion_finance_sdk-0.4.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.8 MB
Release files / orion_finance_sdk-0.4.3.tar.gz
| Download URL | orion_finance_sdk-0.4.3.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35a0fa963f532885418211bd8371beed2bc81d4705051a6c647dd42d371bee2e
|
|
BLAKE2b-256 checksum How to use checksums |
15d7ba4d0419e51bbb6829c506776c83dbf85af15aa2de8d59d6e556548e14c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / orion_finance_sdk-0.4.3-py3-none-any.whl
| Download URL | orion_finance_sdk-0.4.3-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e1711dbeef6a5b62b8e7382e18fd2d40ebb8c29c81ba7af311117db2b9ffc6e
|
|
BLAKE2b-256 checksum How to use checksums |
561ceb047eafa37edb867ee0130559bd949cdafe42a965718c3022075b5fa08b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for orion-finance-sdk 0.4.3
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.