How to Connect Pi42 to ZeroLoss: API Key Setup
ZeroLoss trades Pi42's INR-margined futures on your own Pi42 account. It connects through an API key that you create on Pi42, not through your password, and the key only needs permission to read your account and trade futures. Your money stays on Pi42 the whole time. This guide shows how to create that key, restrict it, and connect it to ZeroLoss. It takes about five minutes.
Want to see the bot trade before connecting anything? The free 7-day paper test needs no exchange at all.
Before you start
- A Pi42 account with KYC completed and your bank account linked. UPI deposits must come from the bank account registered with Pi42, in the same name as your KYC.
- Rupees in your Futures Wallet, worth at least 100 USDT. Deposit INR to the INR Wallet by UPI (up to ₹1,00,000 a day) or bank transfer, then transfer from the INR Wallet to the Futures Wallet.
- A ZeroLoss account. You can start with the free paper test and connect later.
Step 1: Create the API key on Pi42
- Log in to Pi42 and go to the API section of your account.
- Create a new key and give it a name, such as “ZeroLoss”.
- Give it trade permission (Step 2) and add the IP whitelist (Step 3).
- Copy the API Key and the Secret. The secret is shown only once.
Step 2: Choose the permissions
The key needs trade permission: Pi42 requires it for placing and cancelling orders, adjusting margin and leverage, and closing positions. Pi42’s API offers no withdrawals; if the screen shows any withdrawal option, leave it off.
Step 3: Restrict the key to ZeroLoss’s IP addresses
Restricting a key to a few IP addresses means it only works from those servers, even if someone copied it. In the ZeroLoss app, open Connect Exchange; the step Add our IPs lists ZeroLoss’s server addresses with a Copy all button. Pi42 lets you whitelist IPs for a key; paste them there.
Step 4: Connect the key in ZeroLoss
- Log in to ZeroLoss and open Connect Exchange.
- Under 1 · Pick your exchange, choose Pi42.
- Under 2 · Paste your API key, paste your API key and secret key.
- Click Verify & connect. ZeroLoss checks the key and reads your futures balance. The connection needs the rupee equivalent of at least 100 USDT in your Pi42 Futures Wallet.
Check that the key is safe
Open the API management page on Pi42 and look at the key you created. It should allow reading and futures trading, with withdrawals off. To stop ZeroLoss at any time, delete the key on Pi42; trading through it ends immediately, without any action from us. Our guide to trade-only API keys explains why this is the setting that matters.
Common problems
- “Invalid API Key or Secret”: a character was missed when copying. Copy both again; if the secret was not saved, delete the key and create a new one.
- “API key missing required permissions”: futures trading or reading is not ticked on the key. Edit the key, or create a new one with both.
- “API IP restriction issue”: the key is restricted, but not to all of ZeroLoss’s addresses. Use Copy all in the app and paste the full list again.
- “Minimum … INR required in Futures wallet”: your rupees are still in the INR Wallet. Transfer them to the Futures Wallet on Pi42 and try again.
Trading from India? Our guide for Indian traders compares the five Indian exchanges ZeroLoss connects to, rupee versus USDT margin, and the tax basics.
Crypto futures trading carries a high risk of loss, and automation does not remove it. Exchange screens change from time to time; if a menu looks different, the permission names above are what to look for. This page is general information, not financial advice. See our Risk & Liability Disclaimer.