A Python SDK for interacting with Orion Finance smart contracts
Project description
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
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
source .venv/bin/activate
uv pip install -e .
or, with make:
make uv-download
make venv
source .venv/bin/activate
make install
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 100 --management-fee 10
Deploy a new Encrypted Orion vault
orion deploy-vault --vault-type encrypted --name "Quantitative Uncertainty Analysis of Network Topologies" --symbol "QUANT" --fee-type high_water_mark --performance-fee 0 --management-fee 20
Submit an order intent to a vault
# Use off-chain stack to generate an order intent
echo '{"0x5BA134aBc8BA11Cf7868F4Dfb02497A3f1544Eb5": 0.25, "0x490a81a1939762E6AA87C68C346A0be5E21B466c": 0.02, "0x8A359aAfbf0DF440B34bb97445d981C1944CD053": 0.015, "0xbD39EeAd46c3f28EB8309A74641ab9Ef947FFc83": 0.0255, "0x6b2741F97Ea3EA9C5bFeEa33575d1E73c4481010": 0.06, "0x58f7aaE7B2c017F74B7403C9e89537f43B13bE87": 0.40, "0x28345814d210f2FE11C8de03236f0Ba7b603D282": 0.22, "0x484fF4FB5Ca053b47e5e0490C363b5ea38bB2adF": 0.0095}' > order_intent.json
# Submit the order intent to the Orion vault
orion submit-order --order-intent-path order_intent.json
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file orion_finance_sdk-0.4.0.tar.gz.
File metadata
- Download URL: orion_finance_sdk-0.4.0.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa4c2cb4ece44dc5003c0e5c9bcc277aba660bf521a5a083f8ecdbfa97dcd9b9
|
|
| MD5 |
440d8df9621b45adf7e43b63d5b9306e
|
|
| BLAKE2b-256 |
01141763b2caa4d3e17506a2a17f8144bc573376e52ebc39fe7f254eef9362bb
|
File details
Details for the file orion_finance_sdk-0.4.0-py3-none-any.whl.
File metadata
- Download URL: orion_finance_sdk-0.4.0-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
754e2a05e3f2f134d3d29396ca8a59f6f494d70586d8361127478b4f7b21d537
|
|
| MD5 |
4242e13fc31a83a6f27d58c260e12428
|
|
| BLAKE2b-256 |
e641264434b8c9a91e0f0ec47d9fce50bc61a7a663232753f97df0de822b18c0
|