Skip to main content

Python SDK for AngoraPay Mesh market-agent service routing, receipts, and reconciliation.

Project description

angorapay

Python SDK for AngoraPay Mesh, the paid-intelligence routing, policy, payment-boundary, receipt, and reconciliation layer for market agents.

Use it from a backend, research job, trading pipeline, or agent runtime. Keep API keys server-side.

Install

pip install angorapay

For the current repository build before registry publication:

cd sdk/python
python -m build

Configure

from angorapay import AngoraPay

client = AngoraPay(
    base_url="https://your-angora-gateway.example",
    api_key="ag_live_...",
)

Run A Market-Intelligence Mission

result = client.run_agent_mission(
    userGoal="Check whether this BTC prediction market is mispriced after the news shift.",
    module="prediction_market",
    paymentMode="arc_testnet",
    budgetUSDC="0.05",
)

print(result["recommendation"])
print(result["receipts"])

Route One Paid Provider Call

route = client.call_market_service(
    missionId="agent_mission_123",
    agentId="prediction-market-intelligence-agent",
    consumerId="enterprise-workspace",
    intent="Fetch prediction-market odds",
    category="odds",
    maxPrice="0.01",
    idempotencyKey="agent_mission_123:odds:001",
)

Inspect Proof And Reconciliation

payments = client.payment_intents(missionId="agent_mission_123")
runs = client.reconciliation_runs(missionId="agent_mission_123")
traces = client.agent_traces(missionId="agent_mission_123")

Enterprise Notes

  • Use API-key auth for production gateways.
  • Treat demo_fallback, arc_testnet, and real_x402 as distinct execution modes.
  • Do not represent fallback receipts as real settlement.
  • Store receipt IDs, route scores, provider decisions, output hashes, and reconciliation state with every market recommendation.

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

angorapay-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

angorapay-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file angorapay-0.1.0.tar.gz.

File metadata

  • Download URL: angorapay-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for angorapay-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d843713bf2aaa562d9bfb90db7b199e846e16791012422fc9ddcf3962be333e6
MD5 ba6d939e2db4ee38ac518b8f9cbea91f
BLAKE2b-256 afb4e960a74738f9cb1e1a43777dbeb4157077ab7e2e24173d8f7d968f076378

See more details on using hashes here.

File details

Details for the file angorapay-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: angorapay-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for angorapay-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1261cfa53e5a8b39e3e3450818a597ce44bd3ed65be462d6e61e8b59e0782a1
MD5 1e237e0d02c911f60522b8b6507dcded
BLAKE2b-256 1842c58ae21976d5f2bdc804ab4bd3b22226aae2c17b80f712b2825b2dbda677

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page