API Reference#
Configuration#
- class orion_finance_sdk_py.contracts.OrionConfig[source]#
Bases:
OrionSmartContractOrionConfig contract.
Initialize the OrionConfig contract.
- property get_investment_universe: list[str]#
Alias for whitelisted_assets (Investment Universe).
- is_system_idle()[source]#
Check if the system is in idle state, required for vault deployment.
- Return type:
bool
- is_whitelisted(token_address)[source]#
Check if a token address is whitelisted.
- Return type:
bool- Parameters:
token_address (str)
- is_whitelisted_manager(manager_address)[source]#
Check if a manager address is whitelisted.
- Return type:
bool- Parameters:
manager_address (str)
- property manager_intent_decimals: int#
Alias for strategist_intent_decimals.
- property orion_encrypted_vaults: list[str]#
Fetch all Orion encrypted vault addresses from the OrionConfig contract.
- property orion_transparent_vaults: list[str]#
Fetch all Orion transparent vault addresses from the OrionConfig contract.
- property risk_free_rate: int#
Fetch the risk free rate from the OrionConfig contract.
- property strategist_intent_decimals: int#
Fetch the strategist intent decimals from the OrionConfig contract.
- property whitelisted_assets: list[str]#
Fetch all whitelisted assets from the OrionConfig contract.
Vaults#
- class orion_finance_sdk_py.contracts.OrionVault(contract_name)[source]#
Bases:
OrionSmartContractOrionVault contract.
Initialize the OrionVault contract.
- Parameters:
contract_name (str)
- can_request_deposit(user)[source]#
Check if a user is allowed to request a deposit.
This method queries the vault’s depositAccessControl contract. If no access control is set (zero address), it returns True.
- Return type:
bool- Parameters:
user (str)
- convert_to_assets(shares)[source]#
Convert shares to assets.
- Return type:
int- Parameters:
shares (int)
- max_deposit(receiver)[source]#
Fetch the maximum deposit amount for a receiver.
- Return type:
int- Parameters:
receiver (str)
- set_deposit_access_control(access_control_address)[source]#
Set the deposit access control contract address.
- Return type:
TransactionResult- Parameters:
access_control_address (str)
Fetch the current share price (value of 1 share unit).
- property total_assets: int#
Fetch the total assets of the vault.
- class orion_finance_sdk_py.contracts.OrionTransparentVault[source]#
Bases:
OrionVaultOrionTransparentVault contract.
Initialize the OrionTransparentVault contract.
- class orion_finance_sdk_py.contracts.OrionEncryptedVault[source]#
Bases:
OrionVaultOrionEncryptedVault contract.
Initialize the OrionEncryptedVault contract.
- submit_order_intent(order_intent, input_proof)[source]#
Submit a portfolio order intent.
- Parameters:
order_intent (
dict[str,bytes]) – Dictionary mapping token addresses to valuesinput_proof (
str) – A Zero-Knowledge Proof ensuring the validity of the encrypted data.
- Return type:
TransactionResult- Returns:
TransactionResult
Factory#
- class orion_finance_sdk_py.contracts.VaultFactory(vault_type, contract_address=None)[source]#
Bases:
OrionSmartContractVaultFactory contract.
Initialize the VaultFactory contract.
- Parameters:
vault_type (str)
contract_address (str | None)
- create_orion_vault(name, symbol, fee_type, performance_fee, management_fee, deposit_access_control='0x0000000000000000000000000000000000000000')[source]#
Create an Orion vault for a given strategist address.
- Return type:
TransactionResult- Parameters:
name (str)
symbol (str)
fee_type (int)
performance_fee (int)
management_fee (int)
deposit_access_control (str)
Liquidity Orchestrator#
- class orion_finance_sdk_py.contracts.LiquidityOrchestrator[source]#
Bases:
OrionSmartContractLiquidityOrchestrator contract.
Initialize the LiquidityOrchestrator contract.
- property slippage_tolerance: int#
Fetch the slippage tolerance.
- property target_buffer_ratio: int#
Fetch the target buffer ratio.