"""Production OpenAPI purchase flow — placeholders only."""

import requests

API_BASE_URL = "https://api.sima-prime.com"


def offer(access_token: str) -> dict:
    response = requests.post(
        f"{API_BASE_URL}/agent/protection/offer",
        headers={
            "Authorization": f"Bearer {access_token}",
            "Content-Type": "application/json",
        },
        json={
            "chain": "SOLANA",
            "walletAddress": "YOUR_WALLET_ADDRESS",
            "assetAddress": "YOUR_ASSET_ADDRESS",
            "assetSymbol": "EXAMPLE",
            "assetType": "TOKEN",
            "protectedAmount": "1000",
        },
        timeout=30,
    )
    response.raise_for_status()
    return response.json()


if __name__ == "__main__":
    print(offer("YOUR_ACCESS_TOKEN"))
