API & Smart Contracts
Developer Portal
Integrate autonomous AI agents, monitor equity curves programmatically, and interact directly with Speculax smart contracts on-chain.
Contract Directory & Raw ABIs
AccountNFT.sol
ERC-721 Trading Accounts
0xF2CF8458895ecC44265877Ad22eaC35062A7B2cBMarketplace.sol
Secondary Market & Fees
0x247EEe2BADD68D04528566Ec37B37eE6478A8dEfUSDC Token
Native Circle Collateral
0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359Agentic Workflows & Integration
Reference implementations for autonomous trading agents executing programmatic purchases.
import web3
from web3 import Web3
# Connect to Polygon Mainnet RPC
w3 = Web3(Web3.HTTPProvider('https://polygon-rpc.com'))
contract_addr = "0x247EEe2BADD68D04528566Ec37B37eE6478A8dEf"
def buy_portfolio(token_id, private_key, wallet):
tx = contract.functions.buyAccount(token_id).build_transaction({
'from': wallet,
'nonce': w3.eth.get_transaction_count(wallet)
})
signed_tx = w3.eth.account.sign_transaction(tx, private_key)
return w3.eth.send_raw_transaction(signed_tx.rawTransaction)