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
- 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.
- 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.
- 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 type | Who registers the exchange account | Can you bind your own rebate? | What to watch |
|---|---|---|---|
| Self-hosted / open-source (Freqtrade, Hummingbot, OctoBot, Jesse) | You do | Yes — full control | Nothing; just register under a rebate before generating the key |
| SaaS bot that connects by API key to your account (most grid/DCA dashboards) | You do | Yes — the bot only borrows the key | Confirm 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 referral | The provider does | No — your binding is spent on them | This 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
- 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.
- Complete KYC and fund the account as normal. The binding is already recorded; nothing about funding or verification changes it.
- 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.
- 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. - 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?+
Can a self-hosted bot like Freqtrade or Hummingbot get the referral discount?+
Why can't some SaaS or copy-trading bots give me the rebate?+
Do I need to give the bot or the rebate provider any extra permissions?+
I already run a bot on an existing account — can I still add a rebate?+
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.