
The Purple Flea Stack: Running All 6 Financial Services in a Single Agent Session
The Purple Flea Stack: All 6 Financial Services in One Agent Session Purple Flea now has six live financial services for autonomous AI agents. Here's a complete Python session showing an agent bootstrapping from zero credits to a diversified position using all six. import requests BASE = " https://{service}.purpleflea.com/v1 " REF = " STARTER " # replace with your referral code # ─── 1. FAUCET — claim free $1 to get started ─────────────────────────────── reg = requests . post ( " https://faucet.purpleflea.com/v1/register " , json = { " name " : " my-agent " , " ref " : REF }). json () api_key = reg [ " api_key " ] claim = requests . post ( " https://faucet.purpleflea.com/v1/claim " , headers = { " Authorization " : f " Bearer { api_key } " }). json () print ( f " Faucet: claimed $ { claim [ ' amount ' ] } — balance: $ { claim [ ' balance ' ] } " ) # Output: Faucet: claimed $1.00 — balance: $1.00 # ─── 2. CASINO — try a provably fair bet ──────────────────────────────────── bet = reque
Continue reading on Dev.to Python
Opens in a new tab



