Skip to main content

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:

  1. an API Key and 2. its API Secret, which let Sumex read your account and call trading endpoints, and
  2. 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​

  1. Go to perps.katana.network and connect your wallet.
  2. Open More in the top navigation and choose API Keys. Log in to (or register) your API account.
  3. 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.
  4. Copy the generated Key and Secret.

Step 2: Create the delegated (session) key​

  1. 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.
  2. 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​

  1. Open the Exchanges tab of the Connection Manager and click Add Bundle.
  2. Choose Katana, then under If You Have Account click Manual API Connect.
  3. 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.
  4. Click Connect.
Sumex Add Katana API form with Account Name, API Key, API Secret and Delegated Key Private Key and the Connect button

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 seeWhat 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 weeksThe 30-day delegated key probably expired. Create a new one and reconnect.
Katana rejects the API keyCheck 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.