<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jack Chen</title>
    <description>The latest articles on DEV Community by Jack Chen (@jacktrader).</description>
    <link>https://dev.to/jacktrader</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3977439%2Fa3ff3f15-83d5-431a-9276-dac37e13a3f8.png</url>
      <title>DEV Community: Jack Chen</title>
      <link>https://dev.to/jacktrader</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jacktrader"/>
    <language>en</language>
    <item>
      <title>The payout math of running a trading community (a 3-variable model)</title>
      <dc:creator>Jack Chen</dc:creator>
      <pubDate>Tue, 07 Jul 2026 00:52:19 +0000</pubDate>
      <link>https://dev.to/jacktrader/the-payout-math-of-running-a-trading-community-a-3-variable-model-1hfi</link>
      <guid>https://dev.to/jacktrader/the-payout-math-of-running-a-trading-community-a-3-variable-model-1hfi</guid>
      <description>&lt;p&gt;Most people who run a trading group, a signals channel, or a bot community have never modeled what that audience is worth in &lt;em&gt;fee flow&lt;/em&gt;. Not token-hype worth — boring, recurring, fee-flow worth. It's a three-variable problem, so let's model it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three numbers that matter
&lt;/h2&gt;

&lt;p&gt;Every major exchange pays partners out of the same pool: the trading fees their introduced users generate. Which means your channel's monthly value is just:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Active traders&lt;/strong&gt; you actually send (not subscribers — people who trade)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Volume per trader per month&lt;/strong&gt;, in USD&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Effective fee rate&lt;/strong&gt;, in basis points (perps taker is the workhorse here)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Multiply, then apply whatever &lt;strong&gt;split&lt;/strong&gt; the program gives you.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;monthly_payout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;traders&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;vol_usd&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fee_bps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;split&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;fees&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;traders&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;vol_usd&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;fee_bps&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;10_000&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;fees&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;split&lt;/span&gt;

&lt;span class="c1"&gt;# a 50-person bot community, $200k/mo each, 2 bps taker, 35% split
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;monthly_payout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;2.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.35&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;   &lt;span class="c1"&gt;# -&amp;gt; 700.0 USD / month
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why the naive estimate is usually wrong
&lt;/h2&gt;

&lt;p&gt;Three corrections that move the answer by 2–5x in practice:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bots trade more than humans.&lt;/strong&gt; A grid or DCA bot at $200k/mo is a &lt;em&gt;small&lt;/em&gt; bot. Communities built around automated strategies routinely average 5–10x the volume of discretionary-trader communities of the same size. If your 50 people run bots, the example above is closer to $3,500–$7,000/mo.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fee tiers cut both ways.&lt;/strong&gt; High-volume users climb VIP tiers, and their taker fee drops (say 5 bps → 2 bps). Your payout pool shrinks with it. Model the &lt;em&gt;blended&lt;/em&gt; rate of your actual audience, not the headline rate.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The split itself is tiered.&lt;/strong&gt; This is the part almost nobody prices in: the public self-serve rate and the negotiated partner tiers can differ by 10–20 percentage points for exactly the same audience. On a $10k/yr fee pool, that difference is rent money.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sensitivity, quick and dirty
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Traders&lt;/th&gt;
&lt;th&gt;Vol/mo each&lt;/th&gt;
&lt;th&gt;Blended bps&lt;/th&gt;
&lt;th&gt;Split 20%&lt;/th&gt;
&lt;th&gt;Split 35%&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;$100k&lt;/td&gt;
&lt;td&gt;2.5&lt;/td&gt;
&lt;td&gt;$100&lt;/td&gt;
&lt;td&gt;$175&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;$200k&lt;/td&gt;
&lt;td&gt;2.0&lt;/td&gt;
&lt;td&gt;$400&lt;/td&gt;
&lt;td&gt;$700&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;$1M (bots)&lt;/td&gt;
&lt;td&gt;1.8&lt;/td&gt;
&lt;td&gt;$1,800&lt;/td&gt;
&lt;td&gt;$3,150&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;td&gt;$500k&lt;/td&gt;
&lt;td&gt;2.0&lt;/td&gt;
&lt;td&gt;$4,000&lt;/td&gt;
&lt;td&gt;$7,000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The lesson from the table: &lt;strong&gt;the split tier you land matters more than adding 30% more users.&lt;/strong&gt; Negotiating (or qualifying into) a higher tier is the highest-leverage move available to a channel owner, and it costs nothing.&lt;/p&gt;

&lt;p&gt;I wrote up a tier-by-tier breakdown of one major exchange's partner program — thresholds, what's negotiable, and the exact payout mechanics — here: &lt;a href="https://www.jacktrader.xyz/en/blog/okx-sub-broker-affiliate-program.html" rel="noopener noreferrer"&gt;OKX partner-tier breakdown, with numbers&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;And the raw fee schedules I used (maker/taker per VIP tier, per exchange, as JSON) are open-sourced in this repo: &lt;a href="https://github.com/jack0752168/crypto-exchange-fee-data" rel="noopener noreferrer"&gt;crypto-exchange-fee-data&lt;/a&gt; — PRs welcome if a schedule drifts.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Not financial advice. Numbers current as of July 2026 — always check the exchange's live schedule before modeling anything on top of it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>crypto</category>
      <category>finance</category>
      <category>datascience</category>
    </item>
    <item>
      <title>I open-sourced every Binance and OKX 2026 fee tier as JSON (+ a calculator)</title>
      <dc:creator>Jack Chen</dc:creator>
      <pubDate>Wed, 17 Jun 2026 07:36:15 +0000</pubDate>
      <link>https://dev.to/jacktrader/i-open-sourced-every-binance-and-okx-2026-fee-tier-as-json-a-calculator-fnj</link>
      <guid>https://dev.to/jacktrader/i-open-sourced-every-binance-and-okx-2026-fee-tier-as-json-a-calculator-fnj</guid>
      <description>&lt;p&gt;If you've ever written a backtest or a fee-aware order router for Binance or OKX, you've hit this wall: the exchanges publish their fee schedules as HTML tables that change without notice, and there's no clean machine-readable source. So you end up hardcoding &lt;code&gt;0.0004&lt;/code&gt; somewhere and forgetting about it until your live PnL doesn't match your sim.&lt;/p&gt;

&lt;p&gt;I got tired of that, so I open-sourced the whole thing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The repo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/jack0752168/crypto-exchange-fee-data" rel="noopener noreferrer"&gt;github.com/jack0752168/crypto-exchange-fee-data&lt;/a&gt;&lt;/strong&gt; (MIT)&lt;/p&gt;

&lt;p&gt;Every VIP tier for Binance (spot + USD-M futures) and OKX (futures), maker/taker, as JSON — plus the qualification rules and a small CLI calculator. No dependencies, stdlib only.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"tier"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"VIP 2"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"futures_vol_min_usd"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;75000000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"maker"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.0140&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"taker"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.0350&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Rates are in &lt;strong&gt;percent&lt;/strong&gt; (so &lt;code&gt;0.0140&lt;/code&gt; means 0.014%, i.e. 1.4 bps), which is the unit the exchanges themselves print. Pick whichever convention you want, just be consistent — mixing percent and fraction is the #1 fee bug I see.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part most people get wrong
&lt;/h2&gt;

&lt;p&gt;Your real per-trade cost isn't one number. It's a stack:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;effective_fee&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;base_rate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;VIP&lt;/span&gt; &lt;span class="n"&gt;tier&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="n"&gt;token_discount&lt;/span&gt; &lt;span class="nf"&gt;x &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;rebate_share&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three independent levers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;VIP tier&lt;/strong&gt; sets the base rate. On Binance it's gated on 30-day volume &lt;strong&gt;plus&lt;/strong&gt; a BNB-balance floor, recalculated daily at 00:00 UTC on a rolling window — so your tier can silently drop overnight. On OKX it's the &lt;em&gt;better of&lt;/em&gt; 30-day volume &lt;strong&gt;or&lt;/strong&gt; assets held, which means a high-balance/low-frequency account can sit at a tier it would never reach on volume alone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Token discount&lt;/strong&gt; — paying fees in BNB knocks 25% off spot / 10% off futures. OKB is woven into OKX's tier qualification instead of a flat toggle.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rebate&lt;/strong&gt; — an affiliate/sub-broker partner can pass back a slice of the fee. This one is multiplicative on top of the other two and most people leave it on the table.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The calculator models all three:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 calculator.py &lt;span class="nt"&gt;--exchange&lt;/span&gt; binance &lt;span class="nt"&gt;--market&lt;/span&gt; futures &lt;span class="se"&gt;\&lt;/span&gt;
    &lt;span class="nt"&gt;--volume&lt;/span&gt; 10_000_000 &lt;span class="nt"&gt;--maker-share&lt;/span&gt; 0.7 &lt;span class="nt"&gt;--rebate&lt;/span&gt; 0.4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Binance futures — tier Regular (maker 0.02% / taker 0.05%)
Blended rate: 0.0290%
Gross monthly fee on $10,000,000: $2,900.00
After 40% rebate: $1,740.00  (rebate back: $1,160.00)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A worked detail that surprises people: at $10M/month futures, Binance is still &lt;strong&gt;Regular&lt;/strong&gt; tier (its futures gate is $15M) while OKX already auto-qualifies &lt;strong&gt;VIP 2&lt;/strong&gt; ($10M gate). Same volume, different base rate — your fee model has to branch per-exchange, not share one tier table.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I care about this number
&lt;/h2&gt;

&lt;p&gt;I run &lt;a href="https://www.jacktrader.xyz/en/" rel="noopener noreferrer"&gt;JackTrader&lt;/a&gt;, an independent fee-rebate channel for Binance and OKX (not affiliated with either — I'm a sub-broker partner). The repo is the same data I use to reconcile rebate statements, so it's in my interest to keep it accurate. If you want the deep-dive write-ups, the tier mechanics are here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.jacktrader.xyz/en/blog/binance-vip-fee-tiers-2026.html" rel="noopener noreferrer"&gt;Binance VIP fee tiers 2026 — the full breakdown&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.jacktrader.xyz/en/blog/okx-vip-fee-tiers-2026.html" rel="noopener noreferrer"&gt;OKX VIP fee tiers 2026 — the assets-OR-volume rule&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.jacktrader.xyz/en/blog/crypto-fee-rebate-explained.html" rel="noopener noreferrer"&gt;How a sub-broker rebate actually works (no keys, no custody)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Contributions welcome
&lt;/h2&gt;

&lt;p&gt;If you spot a stale rate — exchanges revise these a few times a year — open a PR against the JSON and I'll merge it. The whole point is one source of truth the community can keep current instead of everyone hardcoding their own.&lt;/p&gt;

&lt;p&gt;Star the repo if it saves you a fee bug: &lt;strong&gt;&lt;a href="https://github.com/jack0752168/crypto-exchange-fee-data" rel="noopener noreferrer"&gt;github.com/jack0752168/crypto-exchange-fee-data&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclaimer: fee schedules change; always confirm against the exchange's own page before trading. "Up to 40%" rebate is a maximum reference, not a guarantee, and depends on platform policy and account status. Nothing here is investment advice.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>crypto</category>
      <category>api</category>
    </item>
    <item>
      <title>The Fee Assumption Quietly Wrong in Most Backtests</title>
      <dc:creator>Jack Chen</dc:creator>
      <pubDate>Mon, 15 Jun 2026 04:02:57 +0000</pubDate>
      <link>https://dev.to/jacktrader/the-fee-assumption-quietly-wrong-in-most-backtests-1jpa</link>
      <guid>https://dev.to/jacktrader/the-fee-assumption-quietly-wrong-in-most-backtests-1jpa</guid>
      <description>&lt;p&gt;If you've written a crypto backtester, there's a decent chance one line in it is quietly wrong. It's not the slippage model, not the funding rate, not the fill logic. It's the fee.&lt;/p&gt;

&lt;p&gt;I've reviewed a lot of grid-bot and market-making backtests over the past couple of years, and the fee handling falls into three buckets, roughly in order of how common they are:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;fee&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.0&lt;/span&gt;              &lt;span class="c1"&gt;# "I'll add fees later" (you won't)
&lt;/span&gt;&lt;span class="n"&gt;fee&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.001&lt;/span&gt;            &lt;span class="c1"&gt;# 0.1%, the spot default everyone copies
&lt;/span&gt;&lt;span class="n"&gt;fee&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;taker_rate&lt;/span&gt;       &lt;span class="c1"&gt;# better, but still missing two layers
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a low-frequency swing strategy, getting the fee wrong by a few basis points is noise. For anything that churns — grids, scalpers, MM, anything with a high turnover ratio — the fee assumption is one of the largest single error terms in the whole backtest. And it's wrong in a direction that flatters your results, which is the worst kind of wrong.&lt;/p&gt;

&lt;p&gt;Let me break down the four things a realistic fee model needs, then show what happens to net PnL when you actually wire them in.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Maker/taker asymmetry is not a rounding error
&lt;/h2&gt;

&lt;p&gt;The 0.1% default comes from Binance &lt;strong&gt;spot&lt;/strong&gt;, where maker and taker are symmetric at the Regular tier. But most bot volume lives in USDT-M perpetual futures, where the schedule is asymmetric. Per Binance's official fee schedule, USDT-M futures at the Regular tier are roughly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Maker: &lt;strong&gt;0.02%&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Taker: &lt;strong&gt;0.05%&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's a 2.5x difference between the two. If your grid uses post-only limit orders for entries and exits (as most well-built grids do), you're paying the maker rate on the bulk of your fills — which means a backtest hardcoded at 0.1% is overcharging you by 5x, and a backtest hardcoded at the taker rate is overcharging you by 2.5x.&lt;/p&gt;

&lt;p&gt;Either way, the point stands: a single &lt;code&gt;fee&lt;/code&gt; constant cannot represent reality. You need to model your &lt;strong&gt;maker share&lt;/strong&gt; — the fraction of fills that rest on the book versus cross the spread:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;blended_rate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;maker_rate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;taker_rate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;maker_share&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;maker_rate&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;maker_share&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;taker_rate&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;maker_share&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# A tight grid running post-only exits, ~90% maker:
&lt;/span&gt;&lt;span class="nf"&gt;blended_rate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.0002&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.0005&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.90&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# -&amp;gt; 0.000230  (2.3 bps)
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your maker share is a real, measurable property of your strategy. Pull it from your fill logs. Don't guess it, and definitely don't assume 100% — even post-only grids eat taker fills when the market gaps through a level.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The BNB / token discount
&lt;/h2&gt;

&lt;p&gt;If you pay fees in BNB on Binance, futures fees drop by a further 10% (spot gets 25%), per the exchange's official schedule. OKX has an equivalent mechanic. This is a flat multiplier on the blended rate:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;after_token_discount&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;discount&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.10&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;rate&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;discount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Small, but it stacks, and stacking is the whole game here.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. VIP tiers — model the tier you're actually in
&lt;/h2&gt;

&lt;p&gt;Exchange fee schedules step down as 30-day volume climbs. The trap in backtesting is assuming the VIP-9 maker rate while testing a strategy that will never do VIP-9 volume. Model the tier your live volume actually qualifies for. If you're a $20M/month desk, that's roughly VIP 1 territory on Binance futures — meaningful, but not the rebate-on-fills fantasy of the top tiers. Be honest about where you sit.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The rebate layer almost nobody models
&lt;/h2&gt;

&lt;p&gt;This is the one that's genuinely absent from most backtests, because most devs don't know it exists. A meaningful slice of the fee you pay can come back to you as a rebate.&lt;/p&gt;

&lt;p&gt;Exchanges run affiliate / sub-broker programs that pay a share of the fees your account generates. If your account is bound to such a channel, you get a slice back — single-level referral, paid on your own trading volume, typically settled weekly. The headline figure is &lt;strong&gt;up to 40%&lt;/strong&gt; of the affiliate's fee share (the exact number depends on the exchange's official schedule, your account status, review, and your jurisdiction — it's a maximum reference, not a guaranteed return).&lt;/p&gt;

&lt;p&gt;The key insight for a quant: this is not a marketing perk, it's a term in your cost function. It applies &lt;em&gt;after&lt;/em&gt; the discount, on the fees you've already paid:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;effective_fee&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;notional&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;blended&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;token_discount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rebate&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;gross&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;notional&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;blended&lt;/span&gt;
    &lt;span class="n"&gt;after_discount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;gross&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;token_discount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;net&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;after_discount&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;rebate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;net&lt;/span&gt;

&lt;span class="c1"&gt;# $20M monthly notional, 90% maker, BNB discount, up to 40% rebate
&lt;/span&gt;&lt;span class="nf"&gt;effective_fee&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20_000_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.000230&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.40&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# -&amp;gt; $2,484
# vs the naive 0.1% model on the same notional:
&lt;/span&gt;&lt;span class="mi"&gt;20_000_000&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;0.001&lt;/span&gt;                                &lt;span class="c1"&gt;# -&amp;gt; $20,000
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The naive model says you'll pay $20k/month in fees. The realistic model says ~$2.5k. That's not a tweak — it's an &lt;strong&gt;8x&lt;/strong&gt; difference in your single largest controllable cost. A strategy that looks marginal at 0.1% can be solidly profitable once you model the fee correctly; conversely, a strategy that looks great at 0-fee can be dead on arrival.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example: a 5-bot grid desk
&lt;/h2&gt;

&lt;p&gt;Take a desk running five grid bots at $20M combined monthly notional, split $16M maker / $4M taker. Working it through the official Binance futures schedule:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Monthly cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Gross fees (0.02% / 0.05% blended)&lt;/td&gt;
&lt;td&gt;~$5,200&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;After BNB discount (−10% futures)&lt;/td&gt;
&lt;td&gt;~$4,680&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;After rebate (up to 40% back, weekly)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;~$2,808 net&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Roughly &lt;strong&gt;$1,872/month recovered&lt;/strong&gt; that a naive backtest would have silently expensed — about $22k/year. On a strategy whose edge might be a few hundred bps annually on deployed capital, that rebate layer can be the difference between green and red. The full grid-specific breakdown, including how maker-share optimization interacts with VIP tiers, is laid out here: &lt;a href="https://www.jacktrader.xyz/en/blog/grid-bot-fee-optimization.html" rel="noopener noreferrer"&gt;grid-bot fee optimization&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The practical takeaway
&lt;/h2&gt;

&lt;p&gt;Replace your &lt;code&gt;fee&lt;/code&gt; constant with an effective-fee function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;effective&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;blended_rate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;maker_share&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
            &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;token_discount&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; \
            &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;rebate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then sanity-check it against your real account: pull a month of fills, sum what you actually paid net of any rebate, and reconcile it against what your model predicts. If they don't match, your backtest's PnL is fiction at the margin — and for a high-turnover strategy, the margin is the whole business.&lt;/p&gt;

&lt;p&gt;Two honest caveats. First, rebate eligibility and exact rates depend on the exchange's official program, account review, and your local regulations and KYC — model it as "up to," never as a guaranteed number. Worth noting the channels are single-level referral on your own volume, not anything multi-tier. Second, none of this is investment advice; it's cost modeling. A correctly modeled fee can turn a losing strategy profitable on paper, but it doesn't change the strategy's actual edge — it just stops you from lying to yourself about your costs. If you want the mechanics of how the rebate is structured and settled, the reference I used is here: &lt;a href="https://www.jacktrader.xyz/en/okx-rebate.html" rel="noopener noreferrer"&gt;OKX rebate / sub-broker&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Model your real effective fee. It's the cheapest alpha in your stack — you're already paying for it.&lt;/p&gt;

</description>
      <category>crypto</category>
      <category>trading</category>
      <category>algotrading</category>
    </item>
    <item>
      <title>Grid Bot Fees Are Quietly Eating Your Returns: The Quant Fee Checklist</title>
      <dc:creator>Jack Chen</dc:creator>
      <pubDate>Wed, 10 Jun 2026 10:20:34 +0000</pubDate>
      <link>https://dev.to/jacktrader/grid-bot-fees-are-quietly-eating-your-returns-the-quant-fee-checklist-2cbc</link>
      <guid>https://dev.to/jacktrader/grid-bot-fees-are-quietly-eating-your-returns-the-quant-fee-checklist-2cbc</guid>
      <description>&lt;p&gt;If you run a grid bot or any automated strategy, you've optimized the spacing, the range, the rebalance logic. But the fee side often goes unexamined — and on a high-churn bot it can quietly eat 20-30% of your gross returns. Here's the checklist I use.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Know your &lt;em&gt;effective&lt;/em&gt; fee, not the headline
&lt;/h2&gt;

&lt;p&gt;The exchange shows 0.02% maker / 0.05% taker on futures. Your real cost is the blend:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;effective_fee = maker_share * maker_fee + (1 - maker_share) * taker_fee&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Most bot operators assume they're mostly maker. Verify it. If your grid uses post-only orders you should be 90%+ maker. If you cross the spread to guarantee fills, you're paying taker on those, and it adds up fast.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Three levers that cut the effective fee
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Maker share&lt;/strong&gt; — switch limit orders to post-only (rejected if it would take, so you never accidentally pay taker).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VIP tier&lt;/strong&gt; — your 30-day volume already discounts your base fee; concentrate volume on one venue to climb faster.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fee rebate&lt;/strong&gt; — a referral / sub-broker channel passes back a percentage of the fee you pay. It stacks on top of the VIP tier and token discount (BNB / OKB); it does not replace them.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. The rebate is the most-overlooked lever
&lt;/h2&gt;

&lt;p&gt;The standard referral code caps the rebate at ~20%. A sub-broker channel pushes it toward 40%. For a bot doing $5M/month that's a few hundred dollars a month back — pure margin, no strategy change.&lt;/p&gt;

&lt;p&gt;Full grid-bot fee math (worked examples for $5M / $20M / $50M desks, Binance vs OKX vs perp DEX): &lt;a href="https://www.jacktrader.xyz/en/blog/grid-bot-fee-optimization.html" rel="noopener noreferrer"&gt;https://www.jacktrader.xyz/en/blog/grid-bot-fee-optimization.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Free calculator for the effective-fee math on both exchanges: &lt;a href="https://www.jacktrader.xyz/en/" rel="noopener noreferrer"&gt;https://www.jacktrader.xyz/en/&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Up to 40% is a maximum, not guaranteed. Independent referral / sub-broker partner, not affiliated with Binance or OKX. Not financial advice.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>crypto</category>
      <category>trading</category>
      <category>python</category>
    </item>
  </channel>
</rss>
