Connect Katana Perps to Sumex
Katana Perps is a non-custodial perpetuals exchange: your funds sit in its smart contract, and trading is signed by keys that your wallet authorises. Connecting it to Sumex takes three values, more than a typical exchange:
- an API Key and 2. its API Secret, which let Sumex read your account and call trading endpoints, and
- a Delegated Key Private Key, the session key Katana uses to sign your orders.
What you get after connecting
- Perpetual futures trading on Katana Perps from the Sumex trading terminal. Katana lists perpetuals only, so there is no spot trading.
- Balances and positions from Katana Perps in your Sumex portfolio.
Before you start
- Have the wallet you trade Katana Perps with, and make sure it has funds deposited on Katana Perps.
- Katana's API keys belong to an API account. If you don't have one yet, Katana asks you to register with an email and password on its API keys portal.
- Plan for the 30-day rhythm: Katana session (delegated) keys expire 30 days after you authorise them.
Step 1: Create the API key
- Go to perps.katana.network and connect your wallet.
- Open More in the top navigation and choose API Keys. Log in to (or register) your API account.
- Click Create API key and choose the scopes:
- Read: included in every key.
- Trade: tick it so orders can be created and cancelled.
- Withdraw: leave it off.
- Copy the generated Key and Secret.
Step 2: Create the delegated (session) key
- From Katana's API keys area, create a new delegated key (Katana's web app calls these session keys). Your wallet signs to authorise it.
- Copy the generated key. This is the value Sumex calls the Delegated Key Private Key.
A delegated key can place and cancel orders for your wallet. It cannot deposit or withdraw: those always need your wallet's own signature.
Connect Katana Perps in Sumex
- Open the Exchanges tab of the Connection Manager and click Add Bundle.
- Choose Katana, then under If You Have Account click Manual API Connect.
- In Add Katana API, fill in:
- Account Name
- API Key: the Key from step 1.
- API Secret: the Secret from step 1.
- Delegated Key Private Key: the session key from step 2.
- Click Connect.
Every 30 days: renew the delegated key
Once the delegated key expires, Katana no longer accepts orders signed with it. Create a new delegated key on Katana Perps, delete the Katana Bundle in Sumex and connect again with the new key (your API key and secret can stay the same).
Troubleshooting
| What you see | What to do |
|---|---|
| "Passphrase is required for this exchange." | The Delegated Key Private Key field was left empty. Sumex needs it for Katana. |
| Orders are rejected after a few weeks | The 30-day delegated key probably expired. Create a new one and reconnect. |
| Katana rejects the API key | Check that the key and secret come from the same API account and that the key wasn't deleted. |
| "Max API connections reached for your subscription" | Delete or disable another exchange connection. |
Security notes
- Only paste the delegated key. Never enter your wallet's own private key or seed phrase into Sumex.
- Sumex encrypts the API secret and the delegated key before storing them.
- To revoke access, delete the Bundle in Sumex and remove the API key on Katana Perps; the delegated key also lapses by itself after 30 days.