Build on Cardboard
Build a trading app on Cardboard with wallet signatures and builder fees. Users sign with their own wallets or registered sessions. Builders choose how their app presents orders and fees.
The Cardboard SDK includes an integration guide and TypeScript, Python, Rust and HTTP examples for connecting wallets, trading and tracking earnings.
Connect and trade
Connect the user’s wallet, create their trading account and deposit USDC. The builder’s receiving wallet also needs a trading account. Prepare an order, inspect its effective fee terms, then have the user sign and submit it. Follow its status before trying again after an uncertain response.
The SDK handles wallet authorization, exact amounts, quote guards and live subscriptions. Wallet signatures authorize user actions. A builder’s receiving wallet identifies who receives fees.
Builder fees
Choose an additional percentage of the base notional fee and of the winning-profit fee. Both default to 10%, with a maximum of 25% each. Inspect the effective terms returned with the prepared order; they are fixed when the position opens.
At 10%, a 0.5 bp notional fee adds 0.05 bp, and a 2% winning-profit fee adds 0.2% of winning profit. The profit component applies to wins. Collection is limited by available proceeds. Credited fees enter the receiving trading account and can be withdrawn.
Access and live data
Browser apps can connect without a builder key. If you receive one, keep it on your app's server. User actions still require wallet signatures.
Live subscriptions can follow builder-attributed positions, earnings, markets and individual users’ accounts. Private transaction statuses require the matching user’s wallet authorization. After disconnecting, reconcile a fresh snapshot.