Core functions: Vaults

Vault Creation

def create_vault(self, name: str, description: str, initial_deposit: float) -> Dict:
        """Create an investable vault with initial deposit (min 100 USDC)."""
        endpoint = "vaults/create"
        data = {
            "name": name,
            "description": description,
            "initial_deposit_usdc": initial_deposit,
            "gas_fee_usdc": 100  # Fixed gas fee
        }
        return self._make_request(endpoint, method="POST", data=data)
# Create a vault
        vault_result = sdk.create_vault(
            name="Quantum Alpha Vault",
            description="AI-driven high-alpha crypto trading strategy",
            initial_deposit=100.0
        )
        vault_id = vault_result.get("vault_id")
        print("Vault Creation Result:", vault_result)

        # Get vault performance
        performance = sdk.get_vault_performance(vault_id)
        print("Vault Performance:", performance)

Vault Monitor

def get_vault_performance(self, vault_id: str) -> Dict:
        """Retrieve performance metrics for a vault."""
        endpoint = f"vaults/{vault_id}/performance"
        return self._make_request(endpoint)

Last updated