Bot trading · Setup · Updated June 2026

How to claim a fee rebate when you connect a bot via API key

Here's the one fact that decides whether your bot earns a fee rebate: the rebate binds to your exchange account, not to your API key and not to your bot. Once you understand that, the whole picture clears up — a self-hosted bot like Freqtrade, Hummingbot or OctoBot can capture an up-to-40% rebate with zero code changes, while some hosted bots quietly spend your one-time binding on themselves. This is the setup guide for getting the rebate onto the account your bot trades.

The short version

  1. The rebate lives on the account. When you bind a referral on Binance or OKX, the binding is recorded on the exchange account. Every trade that account makes — manual, scripted or bot — earns the rebate.
  2. The API key is just a door key. Your bot authenticates with an API key to place orders. Creating, deleting or rotating keys changes nothing about the rebate. The key carries no referral information.
  3. So the question is never "does my bot support rebates" — it's "is the account my bot trades on bound to one". Self-hosted bots win here because you own the account and the binding. The only thing that can go wrong is letting a hosted bot register the account for you under its referral.

If you take one thing away: register the exchange account yourself under a rebate first, then connect the bot by API key. Never the other way around.

Why the rebate binds to the account, not the key

A fee rebate is a share of the trading commission the exchange already charges you, paid back because your account is attributed to a referral/sub-broker relationship. That attribution is a property of the account, set when the account is created (or bound later if it was never attributed). It has to be — the exchange settles rebates from total trading volume on the account at the end of each cycle, then pays out, typically weekly in USDT.

An API key, by contrast, is a per-account credential with scoped permissions (read, trade, sometimes withdraw). It exists below the account in the hierarchy. You can hold five keys for five different bots on one account, rotate them monthly for security, and the rebate is completely unaffected because it was never attached to a key in the first place. This is good news: it means securing your bot (trade-only keys, no withdrawal, IP allowlist) and earning a rebate are fully independent decisions.

Self-hosted vs SaaS bots: who controls the binding

Bot typeWho registers the exchange accountCan you bind your own rebate?What to watch
Self-hosted / open-source (Freqtrade, Hummingbot, OctoBot, Jesse)You doYes — full controlNothing; just register under a rebate before generating the key
SaaS bot that connects by API key to your account (most grid/DCA dashboards)You doYes — the bot only borrows the keyConfirm it asks for an API key, not a "sign up through us" link
SaaS / copy platform that asks you to register the exchange through its referralThe provider doesNo — your binding is spent on themThis is the one to avoid if you want your own rebate

The dividing line isn't "self-hosted vs hosted" — it's who owns the referral binding on the underlying exchange account. A hosted bot that connects via API key is fine. A hosted bot that makes you sign up for the exchange through its link is the one that takes the rebate you could have kept.

The setup, step by step

  1. Register the exchange account under a rebate. Use the referral binding on the Binance rebate or OKX rebate page. This is the only step that touches the rebate — and it takes two minutes.
  2. Complete KYC and fund the account as normal. The binding is already recorded; nothing about funding or verification changes it.
  3. Create an API key with trade permission only. Disable withdrawals on the key. Add an IP allowlist if your bot runs from a fixed server. This is a security step, unrelated to the rebate.
  4. Paste the key into your bot (Freqtrade's config.json, Hummingbot's connect flow, OctoBot's exchange tab). The bot starts trading on the bound account.
  5. Verify the rebate accrues. After the first settlement cycle, your rebate should reflect the bot's trading volume. Because it's bound to the account, it captures 100% of what the bot trades, not a sampled subset.

For exchange-specific fee tuning inside the bot — maker-only entries, BNB discounts, trading-mode selection — see the companion guide on Freqtrade fees on Binance and OKX, which works through the config knobs that decide whether your bot pays maker or taker.

Worked example — a self-hosted bot doing $4M/month

You run Freqtrade on a personal VPS, trading USDT-margined perps, turning over $4,000,000 of notional per month. Assume a blended effective fee of 0.04% (a realistic mix of maker entries and taker exits):

  • Monthly trading fees ≈ $4,000,000 × 0.04% = $1,600 (about $19,200/year).
  • If the account is not bound to a rebate, you pay all of it. The bot earns the rebate provider nothing and you nothing.
  • If the same account is bound to an up-to-40% rebate: ≈ $1,600 × 40% = $640/month back, settled weekly in USDT — about $7,680 a year returned, with the bot, the strategy and the API keys all untouched.

The strategy didn't change. The code didn't change. The only difference between the two scenarios is which way you registered the account before you generated the API key. That is the entire lever — and it's why "register first, connect second" matters.

Common mistakes

  • Registering the exchange through a bot platform's link when you wanted your own rebate — this spends your binding on them. Register the exchange yourself.
  • Assuming a new API key resets or creates a rebate — it does nothing of the sort. The account binding is what matters.
  • Giving a "rebate bot" your API key or password — no legitimate rebate needs either. The exchange computes it from your bound account; see are crypto fee rebates safe for the red-flag checklist.
  • Forgetting funding costs — a rebate cuts trading fees, not funding payments. On a perp bot, model both.

How this fits the bigger fee picture

Binding a rebate is one of two levers that change every fee line for a bot; the other is maker routing. For how fees differ across bot styles, see the crypto trading bot fee comparison; for the maker-vs-taker mechanics every bot config exposes, see maker vs taker fees explained. The rebate is the lever you can pull once and keep forever — but only if it's bound to the account your bot actually trades on.

FAQ

Does the fee rebate attach to my API key or my exchange account?+
To your exchange account. A referral/rebate binding is recorded on the account itself at registration (or, on Binance and OKX, on an unbound existing account within the eligibility window). The API key is just a credential that lets your bot place orders on that account — creating, deleting or rotating keys does not change the rebate. So if your account is bound to a rebate, every order your bot sends through any of its API keys earns it; if the account is not bound, no API key can fix that.
Can a self-hosted bot like Freqtrade or Hummingbot get the referral discount?+
Yes, fully. Self-hosted and open-source bots connect to an exchange account that you registered yourself, so you control the referral binding. Register the account under a referral, generate an API key, paste it into the bot, and every trade the bot makes counts toward your rebate. The bot software has no idea a rebate exists — it just trades; the rebate is settled by the exchange on the bound account.
Why can't some SaaS or copy-trading bots give me the rebate?+
Some hosted bots and signal platforms ask you to register a new exchange account through their own referral link, which spends your one-time binding on them instead of you. After that the account is bound to the provider, and you cannot rebind it to a different rebate. If a bot connects to an account you already own via API key (the normal model), it does not touch your binding — so the issue is only with bots that funnel you through their own sign-up. Always register the exchange account yourself first, then connect the bot by API key.
Do I need to give the bot or the rebate provider any extra permissions?+
No. The rebate is calculated by the exchange from your bound account's trading volume — the rebate provider never needs your API key, password or withdrawal access. For the bot, create an API key with trade permission only and leave withdrawal disabled. A legitimate rebate setup requires nothing beyond the account binding itself; anyone asking for your password, withdrawal-enabled keys or a deposit to them is a red flag.
I already run a bot on an existing account — can I still add a rebate?+
Possibly. If the account has never been bound to a referral, Binance and OKX let you bind one on the existing account within their eligibility rules (Binance applies a 90-day window logic for referral binding). You do not need to touch the bot or its keys — binding happens at the account level, and the bot keeps trading. If the account is already bound elsewhere, the cleaner route is to run the bot on a fresh account registered under the rebate. Ask for an account-specific check before assuming.

Bind the rebate before you connect the bot

Register your exchange account under an up-to-40% rebate, then paste a trade-only API key into Freqtrade, Hummingbot or any bot. The rebate captures 100% of the account's volume, settled weekly in USDT — no strategy change, no extra permissions.

Disclaimer: Fee schedules and rebate rates reflect published rates at the time of writing and may change without notice. Examples are illustrative; your real costs depend on venue, product, maker/taker split and VIP tier. Bot names are open-source tools referenced neutrally for context. This article is educational and not investment advice. JackTrader is an independent referral / sub-broker partner and is not Binance or OKX. Single-tier referrals only, no downline or multi-level structure.