Learn

How to connect LBank to Kwant (step by step)

Updated 2026-10-23

TL;DR: You create an API key on LBank and paste two things into Kwant: the API key and the secret key. It takes about 10 minutes. The one rule: never tick Withdraw. LBank keys without an IP address expire after 30 days, so you'll redo this each month.

Connecting LBank lets Kwant show your balances and open orders in Portfolio, fill your trade journal on its own from your trades, and size trade ideas from your real balance. New to this? Read what an API key is first: in short, it's a password that lets an app read your account without being able to log in as you. No LBank account or no crypto yet? Start with how to buy your first crypto.

What Kwant sees on LBank

Spot only. Spot means coins you simply hold and trade directly. LBank offers no API for its futures account, so Kwant can't see or trade LBank futures.

What you need

  • An LBank account you can log into. A computer is easiest: the steps below are on lbank.com.
  • Your phone or email nearby for LBank's security check.
  • A Kwant account.
  • A safe place to keep your secret for a few minutes (a password manager is ideal).

The two things Kwant asks for

Field in KwantWhat it isWhere you get it
API keyThe key's ID, a long string of letters and digitsLBank shows it when you create the key
Secret key (HmacSHA256) or RSA private keyThe key's password. Never share it.LBank shows the secret once, right after you create the key

If LBank asks you to pick a signing method (the way the key proves it's really you), choose HmacSHA256: it's the simplest, and you just paste the secret LBank gives you. Kwant also accepts an RSA private key if you chose RSA instead.

Kwant also has a Name field. It's optional ("Main" if you leave it empty) and only helps you tell connections apart.

Step 1: Open My API on LBank

  1. Log in on lbank.com.
  2. Open Profile, then My API (Kwant's in-app tip calls it API Management). Kwant's connect window also has a link: Open LBank's API page.
  3. Click Create New API.
  4. Give it a name, like Kwant.

Step 2: Choose what the key can do

Pick one of the two paths.

Read only (recommended to start)

  1. Choose Read Only.
  2. Leave Trade unticked.
  3. Leave Withdraw unticked.

Kwant can then show your portfolio and journal, but it cannot place any order. You can make a trading key later.

Also let Kwant prepare trades

  1. Choose Read Only.
  2. Add Trade.
  3. Leave Withdraw unticked.

With Trade, Kwant can prepare spot orders in the chat. Nothing is sent until you tap Confirm on each one.

Never tick Withdraw. Kwant never withdraws. On LBank, Kwant can read the key's withdrawal setting, and it refuses a key that can withdraw ("This key can withdraw funds, so Kwant won't keep it").

Step 3: Leave the IP address empty

Some exchanges let you lock a key to an IP address (the internet address of one computer). Kwant's servers have no fixed IP address, so a locked key would not work. Leave the IP address empty.

What that means on LBank: a key without a bound IP expires after 30 days. Then you make a new one and connect it again (see "My key stopped working" below).

Step 4: Verify and copy the secret right away

  1. Complete LBank's security check.
  2. LBank shows the API key and the secret key. The secret is shown only once. Copy both right away, into your password manager or straight into Kwant.
  3. If you closed the window before copying the secret, delete that key on LBank and make a new one.

Step 5: Paste it into Kwant

  1. On kwant.trade, click your profile picture (top right), then Exchanges. In the iPhone app: Settings → Exchanges. (New users see the same step during sign-up setup.)
  2. Click Connect an exchange, then pick LBank.
  3. Paste the API key into API key and the secret into Secret key (HmacSHA256) or RSA private key.
  4. Click Connect. Kwant checks the key with LBank ("Checking with the exchange…").

What you'll see after

  • An LBank card with your account ID and "Last sync".
  • Badges for what the key can do: Read, then Trade or Read only, No withdrawals, Spot, and Expires with the date the key runs out.
  • Your Portfolio, and a journal that fills in the background. LBank gives apps up to 90 days of trade history, and Kwant reads it for the coins you currently hold.
  • With a trading key, Trading stays off until you turn it on: tap Trading, then Turn on trading. You can also set a Max order (USD). Every order still needs your Confirm.

If it doesn't work

  • "The exchange didn't accept this key": the key and the secret are often swapped, or a character is missing. Copy each one again with LBank's copy button and paste it into the right field.
  • Extra spaces: Kwant removes spaces at the start and end, but not in the middle. Don't type the key by hand.
  • "This key can withdraw funds": Withdraw was ticked. Delete that key on LBank and make a new one without it.
  • "This key doesn't have the permission needed": reading is off. Make a new key with Read Only.
  • Trading says the key looked read-only: Trade wasn't added. Make a key with Trade, or if LBank lets you edit the key, add Trade there and tap Trading again so Kwant checks again.
  • It worked, then stopped after about 30 days: the key expired. See below.

How to disconnect

  1. In Kwant, open Exchanges, click the trash icon on the LBank card ("Remove LBank"), then Remove. This deletes the key and this connection's journal and order history from Kwant. Nothing changes on LBank.
  2. On LBank, open My API and delete the key. This makes the key useless for good.

Questions

Is it safe to connect LBank to Kwant?

A read-only key can only look at your account. Kwant stores your key encrypted, never shows it again, never sends it to the AI, and uses it only from its own servers. You can delete the key on LBank at any time, and it stops working at once.

Can Kwant withdraw my money from LBank?

No. Kwant never withdraws, and on LBank it checks the key and refuses one that can withdraw. With Trade on, Kwant can only send orders you confirm one by one.

My LBank key stopped working. Why?

Most often it expired: LBank keys without a bound IP address expire after 30 days. Kwant shows the date on the connection. Make a new key the same way, connect it in Kwant, then remove the old connection. Removing it clears that connection's journal in Kwant; the new connection fills its journal again from your recent LBank trades.

Why don't I see my LBank futures?

LBank offers no API for its futures account, so Kwant reads and trades LBank spot only.

How do I disconnect LBank?

Remove the connection in Kwant (Exchanges → trash icon → Remove), then delete the key in LBank's My API page.

Keep reading