Skip to main content
This places one order that rests on the book, then cancels it. It signs with a local test key, so you can see the whole loop before you wire up a real wallet. Pick Python (plain HTTP, no SDK) or JavaScript (the SDK). You need:
  • Your partner id and the staging base URL (onboarding).
  • A test wallet funded on one venue: for example USDC in its Hyperliquid account. See funding.
  • A market id from that venue, such as hyperliquid:<digits> or polymarket:0x…. Find one with Show markets.
Staging trades on the real venues with real funds. Use a test wallet and a price well away from the market.

Run it

Save the Python client as kairos_wallet.py. It signs with a local key using eth-account; in an app, the user’s wallet signs instead.
quickstart.py
What you’ll see:
  1. Setup asks for the venue’s one-time signatures (none on a wallet that is already set up).
  2. The order asks for one signature, then returns with status and final: false, because it rests.
  3. Open orders needs one sign-in signature first: orders are private. Keep the token for 24 hours (the SDK does this for you).
  4. The cancel asks for one signature on Polygon (0x89), whatever the venue.
The clientOrderId above is in Hyperliquid’s format (0x plus 32 hex), which every venue accepts. Hyperliquid buys must be worth at least 10 USDC; other venues have their own minimums (venue rules).

The same over HTTP

Every SDK call is a few JSON requests. Read a wallet’s status with curl:
Plain HTTP clients runs the whole loop with curl, and has complete JavaScript and Python clients.

Next