BybitAPI TradingQuant TradingFee Rebate

Bybit API Setup 2026: Key Permissions, IP, Rate Limits, Demo

NOVA888 gives new Bybit users a 30% fee rebate, up to 40% (invite-only). API key permissions, 90-day expiry without IP, rate limits, Demo vs Testnet, rebates.

Before a program can trade on Bybit you need three things in place: an API key with only the permissions it needs, a request pattern that stays inside the rate limits, and a test environment where mistakes cost nothing. This guide is based on Bybit's official V5 API documentation and Help Center, verified on 2026-09-28: where to create the key, which permissions to tick, why to bind an IP, when a key without an IP expires, the REST and WebSocket limits, Demo Trading versus Testnet, and finally what the official terms say about fees and rebates on API orders. Bind Bybit to Quant Nova with referral code NOVA888 and new users get a 30% fee rebate at Lv.1, 1.5 times the common 20% referral code, so part of the fee on every fill your strategy makes can come back to you.

Quick answers

Before you start: four official restrictions

Decide on the key type too. Bybit offers system-generated keys (HMAC), where Bybit issues the key and secret, and self-generated keys (RSA), where you create a key pair on your own machine with Bybit's RSA key generator (2048 or 4096 bits) and give Bybit only the public key, so the private key never leaves your computer (official RSA guide). Either way, Bybit's advice is the same: treat the keys like passwords.

Creating the key and choosing permissions

  1. Log in on the Bybit website, click the profile icon at the top right and choose API to open API Management (or go straight to bybit.com/app/user/api-management).
  2. Click Create New Key.
  3. Choose system-generated or self-generated, add a name, then set read/write, the functions to allow and the IPs to bind.
  4. Enter your Google Authenticator code and submit.

Save the secret the moment it is shown: the API documentation states the secret cannot be queried again through the API. The permission groups listed in the official API docs:

PermissionWhat it coversTick it for a strategy?
Read-only / read-writeRead-only can only query; read-write can trade and change settingsRead-only for monitoring or bookkeeping; read-write only if it places orders
Contract TradeOrders, positionsYes for futures strategies
Spot TradeSpot ordersYes for spot strategies
OptionsUSDC options tradingOnly if you trade them
WalletAccount transfer, subaccount transfer, Withdraw (master only)Transfers if needed; never Withdraw
Convert, Earn, etc.Convert, Earn productsLeave off if unused

Sources: Get API Key Information, Modify Master API Key. Subaccounts can have their own keys, created by the master account's key through an official endpoint with the same per-permission choices. One strategy per subaccount keeps limits and risk separate.

Withdraw is the most dangerous permission a key can have. Leave it off and a leaked key cannot be used to move your assets out; the same logic applies to transfer permissions you do not need.

IP binding and key expiry

When creating a key you can list the IPs allowed to call it, separated by commas; leaving it empty or entering * means no binding. The official docs state two expiry rules (Create Sub UID API Key):

The key information endpoint returns deadlineDay (days remaining) and expiredAt (expiry date), which Bybit says apply only to keys with no IP bound or where the password has been changed. In practice: run the strategy on a cloud server with a fixed outbound IP and bind that IP; if you run it on a home connection with a changing IP, plan to recreate the key regularly. If every request suddenly fails authentication, check whether the key has expired before debugging your code.

Rate limits: the IP layer and the UID layer

Bybit applies two layers of limits (Rate Limit Rules, verified 2026-09-28):

Because allowances sit on the UID, several programs under one UID share the same endpoint allowance; if you run many strategies, splitting them across subaccounts keeps them from throttling each other. Common endpoints (Unified Trading Account):

EndpointPurposeInverse / USDT contractsOptionsSpot
/v5/order/createPlace order10/s10/s20/s
/v5/order/amendAmend order10/s10/s10/s
/v5/order/cancelCancel order10/s10/s20/s
/v5/order/cancel-allCancel all10/s1/s20/s
/v5/order/create-batchBatch orders10/s10/s20/s
/v5/order/realtimeOpen orders50/s
/v5/position/listPositions50/sN/A
/v5/account/wallet-balanceBalance50/s
/v5/account/fee-rateYour fee rate5/s

Details that are easy to miss:

WebSocket: market data, private streams and WS orders

Bybit's WebSocket has three parts: public market data (separate URLs for spot, USDT/USDC contracts, inverse and options), the private stream (/v5/private for orders, executions, positions and wallet), and WS order entry (/v5/trade, which does not support spread trading or Demo Trading). The connection rules (WebSocket Connect):

A common pattern is to receive prices and order status over WebSocket and keep REST for placing orders and periodic reconciliation, so polling does not eat your REST allowance.

Test on Demo Trading or Testnet first

Bybit has two test environments, and its FAQ spells out the differences (FAQ — Demo Trading, Testnet test coins, Demo Trading API):

ItemDemo TradingTestnet
PricesMirror mainnet; fills do not enter the real order bookIndependent of mainnet; fills move Testnet prices
AccountSwitch in from your mainnet account; own UID; works for subaccountsSeparate registration; PC browser only
Simulated funds50,000 USDT, 50,000 USDC, 1 BTC, 1 ETH on creation; top up when equity is below 10,000 USDT10,000 USDT and 1 BTC once every 24 hours
REST domainapi-demo.bybit.comapi-testnet.bybit.com
LimitsUTA spot and derivatives only; not every API is available; orders kept 7 days; fixed rate limits; data cleared after 30 days without accessMost features, but no deposits or withdrawals

The rule of thumb: to see how a strategy reacts to real prices, use Demo Trading; to test non-trading features such as transfers, Bybit points you to Testnet. Two things to remember: demo keys are created separately inside Demo Trading, and they must connect to api-demo.bybit.com, not mainnet; the demo WebSocket only carries private streams (wss://stream-demo.bybit.com), so public data comes from mainnet's stream.bybit.com. Bybit also warns never to deposit real funds to a Testnet account, as they cannot be recovered.

A minimal example that reads the unified account balance with a demo key. Per the docs, a GET request signs timestamp + API key + recv_window + query string with HMAC-SHA256, output as lowercase hex. Keys come from environment variables, never hard-coded:

import hashlib, hmac, os, time, requests

API_KEY = os.environ["BYBIT_DEMO_KEY"]        # demo key, read-only is enough
API_SECRET = os.environ["BYBIT_DEMO_SECRET"]
BASE = "https://api-demo.bybit.com"
RECV_WINDOW = "5000"

query = "accountType=UNIFIED"
ts = str(int(time.time() * 1000))
payload = ts + API_KEY + RECV_WINDOW + query
sign = hmac.new(API_SECRET.encode(), payload.encode(), hashlib.sha256).hexdigest()

r = requests.get(f"{BASE}/v5/account/wallet-balance?{query}", headers={
    "X-BAPI-API-KEY": API_KEY,
    "X-BAPI-TIMESTAMP": ts,
    "X-BAPI-RECV-WINDOW": RECV_WINDOW,
    "X-BAPI-SIGN": sign,
})
print(r.json()["retCode"], r.headers.get("X-Bapi-Limit-Status"))

Once it works, switch the domain to api.bybit.com and use a mainnet key. Demo accounts can also be topped up through the API (/v5/account/demo-apply-money, once per minute).

Fees and rebates on API orders

Fees: Bybit's fee schedule is set by VIP level and does not list a separate API rate. VIP0 is 0.02% maker / 0.055% taker on contracts and 0.1% / 0.1% on spot. A separate Pro1 to Pro6 schedule requires, on top of volume, that API trading exceed 20% of volume; but the VIP rules state "The Pro status does not apply to Affiliate and Referral users, even if their API trading volume exceeds 20%", so users bound through a referral code pay their VIP-level fees even if they trade mainly by API. Full thresholds are in Bybit VIP levels and Pro tiers. Check your actual rate with /v5/account/fee-rate.

Rebates: Bybit's Affiliate Program FAQ (official text, updated 2026-09-19) says the commission base is trading fees minus market maker rebates minus bonuses and coupons, and that users who receive a rebate, discount or incentive under another Bybit program may not contribute to affiliate commission. The terms do not exclude API orders, but they do not mention them either, so whether API-generated fees count is determined by the settlement records; accounts in Bybit's market maker program should check first. The same FAQ says the referral relationship may be terminated if a referred user makes no trades for 180 consecutive days, which matters for strategies that sit idle for months.

Quant Nova's Bybit rebate is 30% at Lv.1 for new users, 35% at SVIP (reachable by volume), and up to 40% at the invite-only Supernova level. At a typical quant size: 5 million USDT of monthly futures volume, all taker, is about 2,750 USDT in fees, which reaches Lv.5 (2,500 USDT of fees in 30 days) at 34%, or about 935 USDT back each month; a common 20% code returns 550 USDT. See the Bybit fee rebate guide, adding a referral code within 14 days of sign-up, and fee rebates for quant traders.

If you are already a VIP on another exchange or trade large volume, contact Quant Nova support: we work directly with the exchange's official team to help you obtain benefits such as a VIP level trial, subject to the exchange's approval.

Need help? Contact support

For any binding or rebate question, or to learn about our exclusive OKX rewards and promotions, reach our support through the channels below.

If you trade at high volume, hold exchange VIP status, or run quantitative strategies, you can also apply here for an upgrade to Supernova — our highest tier, with the highest rebate.

Security: leaked keys, third-party bots and managed-account scams

Never hand an API key to anyone who offers to trade for you or promises returns, and never a key with withdrawal permission. Taiwan's Financial Supervisory Commission warned in a 22 September 2025 press release that scammers lure people into virtual assets with "guaranteed profit, low risk" pitches, then demand unfreezing fees, deposits or taxes before paying out (FSC press release).

For users in Taiwan: Bybit is not on the FSC list of virtual asset service providers that have completed AML registration (list updated 2026-09-03); see Taiwan VASP registration explained.

FAQ

Can I create a Bybit API key in the app?

No. The Help Center says API keys can only be created and deleted on the website, and new accounts may be unable to create one for the first 48 hours.

How long does a Bybit API key without an IP last?

90 days. After a password change, keys with no IP bound stop working 7 days later. The deadlineDay field of the key information endpoint shows the days left.

What do error 10006 and 403 mean?

10006, "Too many visits!", is the per-UID endpoint limit; slow down that endpoint. 403, "access too frequent", means the IP exceeded 600 requests in 5 seconds; close all connections and wait at least 10 minutes.

Can I use my mainnet key on Demo Trading?

No. Demo Trading is a separate account with its own UID; create a key inside demo mode and connect to api-demo.bybit.com.

Do API orders still earn a rebate?

Bybit's affiliate terms neither exclude nor mention API orders, so the settlement records decide. Note that referral-bound users do not get Pro fees, and accounts in other Bybit incentive programs such as market making may not contribute to affiliate commission.

Do I have to give Quant Nova an API key to bind my rebate?

No. Binding only needs your UID, never an API key, password or withdrawal permission.

Further reading

Rate limits, permissions and test environment rules are from Bybit's official V5 API documentation and Help Center, verified 2026-09-28; Bybit may change them, and the official documentation is authoritative. The code is an example only; test before trading live. Rebate rates are set by the exchanges and the platform and may change. For information only, not investment advice.

Data verified: 2026-09-28

BybitBybit — up to 40% fee rebate