API Traders

API traders can trade via Hyperliquid exchange endpoints using the Purrps builder code. This ensures all trades generate builder fees distributed to $DEDCAT stakers as $HYPE yield.

Purrps builder wallet:

0x038a9e6803BA93d57d562E667eFc35e6C0d2ADEF

Builder fee: 0.03% (3bps)

All trades executed with this builder code route builder fees to the DEDCAT Vault.

Getting started

We've put together a complete API example repo with working code across four SDKs: Python, Rust, TypeScript, and REST API (no SDK).

Each example approves the Purrps builder code and places a BTC limit order with the builder fee pre-configured.

GitHub: https://github.com/dedcat-inc/purrps-api-examplesarrow-up-right

Setup

Copy .env.example to .env and set your main wallet private key.

Builder fee approval requires the main wallet signature, not an agent or API wallet.

Full Hyperliquid API reference: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-an-orderarrow-up-right

Last updated