<?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: Talon Panel</title>
    <description>The latest articles on DEV Community by Talon Panel (@talonpanel).</description>
    <link>https://dev.to/talonpanel</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%2F4261122%2Fb8b9ac7e-c150-4dcf-80f4-76029e4636f5.png</url>
      <title>DEV Community: Talon Panel</title>
      <link>https://dev.to/talonpanel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/talonpanel"/>
    <language>en</language>
    <item>
      <title>Building an SMM panel API client that never loses money</title>
      <dc:creator>Talon Panel</dc:creator>
      <pubDate>Mon, 23 Nov 2026 23:24:53 +0000</pubDate>
      <link>https://dev.to/talonpanel/building-an-smm-panel-api-client-that-never-loses-money-14fk</link>
      <guid>https://dev.to/talonpanel/building-an-smm-panel-api-client-that-never-loses-money-14fk</guid>
      <description>&lt;p&gt;Money bugs in API clients are rarely dramatic. Nobody's bank account empties in one line of code. What happens is quieter: a retry after a timeout creates a second order, a float sum drifts by a fraction of a cent, and six weeks later the reconciliation spreadsheet disagrees with the panel dashboard by $0.03 that nobody can trace.&lt;/p&gt;

&lt;p&gt;I maintain &lt;a href="https://gitea.com/talonpanel/perfectpanel-client" rel="noopener noreferrer"&gt;a small Python client&lt;/a&gt; for the Perfect Panel v2 API, the shape most SMM panels speak: one &lt;code&gt;POST&lt;/code&gt; endpoint, an &lt;code&gt;action=&lt;/code&gt; field, seven operations. This post is about the three decisions that keep it from losing money — and the one place where the obvious implementation is wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  The API shape is a single order desk
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;POST /api/v2
key=...&amp;amp;action=services
key=...&amp;amp;action=add&amp;amp;service=12&amp;amp;link=...&amp;amp;quantity=1000
key=...&amp;amp;action=status&amp;amp;order=23501
key=...&amp;amp;action=balance
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Four calls carry almost all the weight: list services, place an order against a prepaid balance, poll status, read the balance. Everything else (&lt;code&gt;cancel&lt;/code&gt;, &lt;code&gt;refill&lt;/code&gt;, batch status) is a variant. The full contract is at &lt;a href="https://talonpanel.com/api-docs" rel="noopener noreferrer"&gt;talonpanel.com/api-docs&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Two properties of that contract matter more than the rest.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Errors arrive as HTTP 200.&lt;/strong&gt; A rejected action returns &lt;code&gt;200 OK&lt;/code&gt; with &lt;code&gt;{"error": "ORDER_REJECTED"}&lt;/code&gt; because older reseller panels never learned status codes. So &lt;code&gt;response.raise_for_status()&lt;/code&gt; tells you nothing. You have to read the body and branch on &lt;code&gt;error_code&lt;/code&gt;, which is the stable part; the human &lt;code&gt;message&lt;/code&gt; gets reworded between deployments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Charges arrive as decimal strings.&lt;/strong&gt; &lt;code&gt;"0.6327"&lt;/code&gt;. Not cents, not floats — strings that look like money, which means the moment you do &lt;code&gt;float(charge)&lt;/code&gt; you have already lost.&lt;/p&gt;

&lt;h2&gt;
  
  
  Money is an integer, not a float
&lt;/h2&gt;

&lt;p&gt;Sum 10,000 charges of &lt;code&gt;0.1&lt;/code&gt; as floats and you get &lt;code&gt;999.9999999999997&lt;/code&gt; (or something very close, depending on order). Compare that to &lt;code&gt;1000.0&lt;/code&gt; and your "balance mismatch" alarm fires at 3 a.m. for no reason.&lt;/p&gt;

&lt;p&gt;The fix is to parse every amount into an integer number of micro-units — one millionth of a currency unit:&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;from&lt;/span&gt; &lt;span class="n"&gt;decimal&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Decimal&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;ROUND_HALF_UP&lt;/span&gt;

&lt;span class="no"&gt;MICRO&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1_000_000&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;to_micro&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;amount&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Decimal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;MICRO&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;amount&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;quantize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Decimal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rounding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;ROUND_HALF_UP&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;"0.6327"&lt;/code&gt; becomes &lt;code&gt;632700&lt;/code&gt;. Integers add exactly, compare exactly, and survive a round trip through SQLite, JSON and CSV without a single binary rounding surprise. Rounding half-up rather than truncating matters too: &lt;code&gt;0.0000005&lt;/code&gt; should be &lt;code&gt;1&lt;/code&gt;, not &lt;code&gt;0&lt;/code&gt;, or tiny per-unit prices silently vanish.&lt;/p&gt;

&lt;p&gt;The client stores money in that integer form and refuses to mix currencies, so &lt;code&gt;Money("1") + Money("1", "RUB")&lt;/code&gt; raises instead of adding dollars to rubles.&lt;/p&gt;

&lt;h2&gt;
  
  
  The call that can charge you twice
&lt;/h2&gt;

&lt;p&gt;This is the part worth reading twice.&lt;/p&gt;

&lt;p&gt;Placing an order is &lt;strong&gt;not idempotent&lt;/strong&gt;, and the v2 API has &lt;strong&gt;no idempotency key&lt;/strong&gt;. There is no header, no client reference field, no dedupe window. Two identical &lt;code&gt;add&lt;/code&gt; requests are two orders and two charges.&lt;/p&gt;

&lt;p&gt;Now combine that with retries. The standard pattern — retry on timeout, retry on &lt;code&gt;502&lt;/code&gt;/&lt;code&gt;503&lt;/code&gt;/&lt;code&gt;504&lt;/code&gt; — is correct for reads and dangerous for writes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You send &lt;code&gt;add&lt;/code&gt; for 1,000 followers.&lt;/li&gt;
&lt;li&gt;The panel processes it, charges your balance, then the response is lost to a read timeout.&lt;/li&gt;
&lt;li&gt;Your client retries. The panel has no way to know it is the same request.&lt;/li&gt;
&lt;li&gt;You now own two orders and paid twice.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The first version of my client had exactly this bug: one retry loop for all seven actions. The tests were green because the fake panel never charged anything.&lt;/p&gt;

&lt;p&gt;The fix is a per-action retry policy:&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;_call&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&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="n"&gt;idempotent&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;idempotent&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;request_may_have_been_processed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;AmbiguousOrderError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# do not send it again&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Concretely, for &lt;code&gt;add&lt;/code&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Outcome&lt;/th&gt;
&lt;th&gt;Retry?&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;DNS failure, connection refused&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;The request never left the process.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;429 Too Many Requests&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;The panel refused it before doing anything. Honour &lt;code&gt;Retry-After&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read timeout, connection reset mid-body&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;no&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The order may exist and the balance may already be gone.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;500&lt;/code&gt;/&lt;code&gt;502&lt;/code&gt;/&lt;code&gt;503&lt;/code&gt;/&lt;code&gt;504&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;no&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Same ambiguity — a gateway error says nothing about whether the app committed the order.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Ambiguity is raised as an exception with a message that tells you what to do next, not what went wrong. Calls that only read (&lt;code&gt;services&lt;/code&gt;, &lt;code&gt;status&lt;/code&gt;, &lt;code&gt;balance&lt;/code&gt;) keep the full retry budget with exponential backoff and jitter, because repeating them costs nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reconcile with the only two facts you have
&lt;/h2&gt;

&lt;p&gt;When an &lt;code&gt;add&lt;/code&gt; is ambiguous, the API cannot tell you whether the order exists. But the balance can.&lt;/p&gt;

&lt;p&gt;Read the balance before the call, read it again after the failure, and subtract — in integers:&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;before&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;panel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;balance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;balance&lt;/span&gt;
&lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;order&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;panel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;service&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;link&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;quantity&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nc"&gt;AmbiguousOrderError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;spent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;before&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;panel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;balance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;balance&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;spent&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nc"&gt;Money&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;pass&lt;/span&gt;            &lt;span class="c1"&gt;# nothing was charged: safe to retry&lt;/span&gt;
    &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;spent&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;pass&lt;/span&gt;            &lt;span class="c1"&gt;# it was placed: find the id, never place it again&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;pass&lt;/span&gt;            &lt;span class="c1"&gt;# partial or unrelated movement: needs a human&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is the whole trick, and it turns a guess into three explicit states. &lt;code&gt;examples/reconcile_add.py&lt;/code&gt; in the repo runs this against a SQLite ledger.&lt;/p&gt;

&lt;p&gt;The second half is the &lt;strong&gt;charge id&lt;/strong&gt;. Every successful &lt;code&gt;add&lt;/code&gt; returns &lt;code&gt;order&lt;/code&gt;, &lt;code&gt;charge&lt;/code&gt; and &lt;code&gt;balance&lt;/code&gt;, and the order id is the panel's primary key for that charge. Store it with a &lt;code&gt;UNIQUE&lt;/code&gt; constraint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;create&lt;/span&gt; &lt;span class="k"&gt;table&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="k"&gt;exists&lt;/span&gt; &lt;span class="n"&gt;order_charge&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;panel_order_id&lt;/span&gt; &lt;span class="kt"&gt;integer&lt;/span&gt; &lt;span class="k"&gt;primary&lt;/span&gt; &lt;span class="k"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;-- the charge id&lt;/span&gt;
  &lt;span class="n"&gt;client_ref&lt;/span&gt;     &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="k"&gt;unique&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;-- your own idempotency token&lt;/span&gt;
  &lt;span class="n"&gt;charge_micro&lt;/span&gt;   &lt;span class="kt"&gt;integer&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;placed_at&lt;/span&gt;      &lt;span class="kt"&gt;text&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The unique index is what makes replays harmless at the application layer: if the same logical order is ever submitted twice, the second insert fails loudly instead of becoming a second charge. It does not replace an idempotency key, but it stops the duplicate from reaching your accounting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Retries worth having
&lt;/h2&gt;

&lt;p&gt;For the calls that are safe to repeat, the details matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Retry &lt;code&gt;429&lt;/code&gt; and &lt;code&gt;5xx&lt;/code&gt; only; a &lt;code&gt;400&lt;/code&gt;-class rejection is a bug in the request, not a temporary condition.&lt;/li&gt;
&lt;li&gt;Exponential backoff with jitter (&lt;code&gt;0.5s, 1s, 2s, ...&lt;/code&gt; plus up to 10%) so a queue of workers does not synchronise into a thundering herd.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Retry-After&lt;/code&gt; wins over your own schedule when the panel sends it, capped so a hostile header cannot stall a worker forever.&lt;/li&gt;
&lt;li&gt;Validate input &lt;strong&gt;before&lt;/strong&gt; the first request. A &lt;code&gt;quantity&lt;/code&gt; of &lt;code&gt;-5&lt;/code&gt; should cost zero HTTP calls.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And log the action name, attempt number and timing — never the API key, which should also be redacted from every exception message and &lt;code&gt;repr()&lt;/code&gt;. Panel keys are bearer credentials for your whole balance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Putting it together
&lt;/h2&gt;

&lt;p&gt;The client is about 700 lines including tests: typed frozen dataclasses, seven methods, exact micro-unit money, and the retry policy above. It is panel-agnostic — any panel that follows the v2 shape works with it, and Talon is only the default base URL.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Source: &lt;a href="https://gitea.com/talonpanel/perfectpanel-client" rel="noopener noreferrer"&gt;gitea.com/talonpanel/perfectpanel-client&lt;/a&gt; (MIT, &lt;code&gt;httpx&lt;/code&gt; only)&lt;/li&gt;
&lt;li&gt;API contract: &lt;a href="https://talonpanel.com/api-docs" rel="noopener noreferrer"&gt;talonpanel.com/api-docs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;158 tests, 100% line and branch coverage, no network in CI
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install &lt;span class="s2"&gt;"git+https://gitea.com/talonpanel/perfectpanel-client.git"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Disclosure, since it belongs in the post rather than a footer: I work on Talon, an SMM panel that publishes its prices and its methodology. The client is deliberately not tied to it — the interesting problem here is the Perfect Panel v2 contract, which dozens of panels share, and the money bugs it invites in every client that speaks it.&lt;/p&gt;

&lt;p&gt;If you integrate against a similar order desk, the useful takeaway is not the library: it is that retrying writes without an idempotency key is a purchase, not a retry.&lt;/p&gt;

</description>
      <category>python</category>
      <category>api</category>
      <category>webdev</category>
      <category>opensource</category>
    </item>
    <item>
      <title>An SMM panel price list is three prices stacked, not one: 139,982 public offers, measured</title>
      <dc:creator>Talon Panel</dc:creator>
      <pubDate>Mon, 23 Nov 2026 17:49:10 +0000</pubDate>
      <link>https://dev.to/talonpanel/an-smm-panel-price-list-is-three-prices-stacked-not-one-139982-public-offers-measured-40i6</link>
      <guid>https://dev.to/talonpanel/an-smm-panel-price-list-is-three-prices-stacked-not-one-139982-public-offers-measured-40i6</guid>
      <description>&lt;p&gt;I run an SMM panel, so the disclosure first: I have a commercial interest in you understanding these numbers. The reason I measured them anyway is that the "per 1,000" figure everyone quotes is not one number. It is three numbers stacked, and the gap between them is usually bigger than the gap between two competing panels.&lt;/p&gt;

&lt;p&gt;Every figure below comes from a public crawl of panel price lists, edition 23 Nov 2026 (crawl #66): 33 panels tracked, 31 answered, 139,982 priced offers resolved into 9,183 comparable products. The dataset is CC BY 4.0 and downloadable as CSV and JSON, so you can check any line without trusting me: &lt;a href="https://talonpanel.com/market/price-index/" rel="noopener noreferrer"&gt;market price index&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The cheapest row is usually the row you should not buy
&lt;/h2&gt;

&lt;p&gt;Instagram followers, base listing (no country, no quality label): 27 panels publish it, 1,064 priced offers, cheapest &lt;strong&gt;$0.143 per 1,000&lt;/strong&gt;, median &lt;strong&gt;$0.73&lt;/strong&gt;. The spread between cheapest and median is 80.4%.&lt;/p&gt;

&lt;p&gt;The same shape appears on every platform:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Product (base listing)&lt;/th&gt;
&lt;th&gt;Panels&lt;/th&gt;
&lt;th&gt;Priced offers&lt;/th&gt;
&lt;th&gt;Cheapest /1k&lt;/th&gt;
&lt;th&gt;Median /1k&lt;/th&gt;
&lt;th&gt;Spread&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Instagram followers&lt;/td&gt;
&lt;td&gt;27&lt;/td&gt;
&lt;td&gt;1,064&lt;/td&gt;
&lt;td&gt;$0.143&lt;/td&gt;
&lt;td&gt;$0.73&lt;/td&gt;
&lt;td&gt;80.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;YouTube views&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;1,502&lt;/td&gt;
&lt;td&gt;$0.0493&lt;/td&gt;
&lt;td&gt;$0.3859&lt;/td&gt;
&lt;td&gt;87.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TikTok views&lt;/td&gt;
&lt;td&gt;28&lt;/td&gt;
&lt;td&gt;1,451&lt;/td&gt;
&lt;td&gt;$0.0028&lt;/td&gt;
&lt;td&gt;$0.0205&lt;/td&gt;
&lt;td&gt;86.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Instagram followers, refill 30d&lt;/td&gt;
&lt;td&gt;23&lt;/td&gt;
&lt;td&gt;546&lt;/td&gt;
&lt;td&gt;$0.198&lt;/td&gt;
&lt;td&gt;$1.49&lt;/td&gt;
&lt;td&gt;86.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If the cheapest row is real and delivers, the median buyer is overpaying five to eight times. In practice the bottom of this market is also where the "cheap followers vanished in 24 hours" stories come from. A price is evidence of what a panel charges. It is not evidence of what it delivers.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Quality labels and refill windows are the second price
&lt;/h2&gt;

&lt;p&gt;Same family, a few extra words, a different median:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Instagram followers: base &lt;strong&gt;$0.73&lt;/strong&gt;, "Real" &lt;strong&gt;$0.835&lt;/strong&gt;, "Real · refill 30d" &lt;strong&gt;$1.2334&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;YouTube views: base &lt;strong&gt;$0.3859&lt;/strong&gt;, "Real" &lt;strong&gt;$0.815&lt;/strong&gt;, "US" &lt;strong&gt;$1.29875&lt;/strong&gt; (22 panels, 495 offers).&lt;/li&gt;
&lt;li&gt;TikTok views: base &lt;strong&gt;$0.0205&lt;/strong&gt;, "HQ" &lt;strong&gt;$0.012&lt;/strong&gt; — the "premium" label is cheaper than the plain one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last line is the important one. Labels are not a controlled vocabulary. Two panels can mean opposite things by "HQ" or "Real", and neither definition is published. What is contractual is the refill window and the start time, because those are the parts you can hold a panel to when delivery goes wrong. When you compare two offers, compare the refill window before you compare the rate.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Country targeting is the third price, and nobody quotes it
&lt;/h2&gt;

&lt;p&gt;Panels sell the same product twice: once worldwide, once with a country attached. Matching both rows inside the same panel — same platform, category, quality label and refill window — produced &lt;strong&gt;18,104 pairs&lt;/strong&gt; in this edition.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Median country-targeted listing costs &lt;strong&gt;2.5×&lt;/strong&gt; the same panel's worldwide rate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;45.9%&lt;/strong&gt; of pairs cost 3× or more.&lt;/li&gt;
&lt;li&gt;Mean is 7.2×; the median is the headline and the mean is printed beside it so the long tail is not hidden.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The most expensive targets, using only countries with at least 30 matched pairs:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Country&lt;/th&gt;
&lt;th&gt;Median premium&lt;/th&gt;
&lt;th&gt;Cheapest worldwide /1k&lt;/th&gt;
&lt;th&gt;Cheapest targeted /1k&lt;/th&gt;
&lt;th&gt;Pairs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Nigeria&lt;/td&gt;
&lt;td&gt;5.1×&lt;/td&gt;
&lt;td&gt;$0.0015&lt;/td&gt;
&lt;td&gt;$0.008&lt;/td&gt;
&lt;td&gt;286&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Iraq&lt;/td&gt;
&lt;td&gt;4.6×&lt;/td&gt;
&lt;td&gt;$0.003&lt;/td&gt;
&lt;td&gt;$0.012&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Morocco&lt;/td&gt;
&lt;td&gt;4.5×&lt;/td&gt;
&lt;td&gt;$0.0028&lt;/td&gt;
&lt;td&gt;$0.012&lt;/td&gt;
&lt;td&gt;103&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Egypt&lt;/td&gt;
&lt;td&gt;3.9×&lt;/td&gt;
&lt;td&gt;$0.0009&lt;/td&gt;
&lt;td&gt;$0.0045&lt;/td&gt;
&lt;td&gt;315&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;China&lt;/td&gt;
&lt;td&gt;3.3×&lt;/td&gt;
&lt;td&gt;$0.0005&lt;/td&gt;
&lt;td&gt;$0.0045&lt;/td&gt;
&lt;td&gt;353&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spain&lt;/td&gt;
&lt;td&gt;3.2×&lt;/td&gt;
&lt;td&gt;$0.0005&lt;/td&gt;
&lt;td&gt;$0.0045&lt;/td&gt;
&lt;td&gt;425&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Azerbaijan&lt;/td&gt;
&lt;td&gt;1.3×&lt;/td&gt;
&lt;td&gt;$0.0015&lt;/td&gt;
&lt;td&gt;$0.008&lt;/td&gt;
&lt;td&gt;61&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Azerbaijan is the flattest target measured: targeting costs almost nothing there. At the other end, "1,000 Instagram followers" and "1,000 Nigerian Instagram followers" are not the same product with a small markup; the median markup is +150%. Also worth knowing: 20.4% of pairs cost the same or less with a country target, so the premium is a distribution, not a law. The full table and method are on the &lt;a href="https://talonpanel.com/market/country-premium/" rel="noopener noreferrer"&gt;country premium page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. A five-minute reading routine for any panel price list
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Compare families, not rows.&lt;/strong&gt; Family = platform + category + quality label + refill window. Anything else is two products wearing the same name.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Budget on the median, not the cheapest.&lt;/strong&gt; The cheapest row tells you what one panel advertises; the median tells you what a normal panel charges.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Count the panels behind a number.&lt;/strong&gt; A median built from two rows is noise. The index only ranks a country at 30+ pairs for exactly this reason.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read the minimum order and the refund rule before the rate.&lt;/strong&gt; A $0.14/1k rate with a 10,000 minimum and no partial refund is $1.40 of risk, not a bargain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask what happens on partial delivery.&lt;/strong&gt; "Automatic refund to wallet" versus "open a ticket" changes the real cost more than a 10% price difference.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  5. What this data cannot tell you
&lt;/h2&gt;

&lt;p&gt;Price lists contain no delivery evidence. A panel can publish a rate and never fill an order, and that risk does not show up in any crawl, including ours. Two questions no dataset answers: are the accounts real, and will they still be there in 30 days. Only a small test order answers both, and it should cost less than the amount you would lose on a large one.&lt;/p&gt;

&lt;p&gt;For disclosure on my own numbers: our customer price is supplier cost + 20%, read from the same catalogue, with no second margin at checkout. That is not a claim of being the cheapest. On several families we are not, and the index above will show it — which is the point of publishing it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Source and citation.&lt;/strong&gt; Talon. (2026). &lt;em&gt;Talon SMM Price Index, edition of 23 Nov 2026&lt;/em&gt; [Data set], crawl #66, CC BY 4.0. &lt;a href="https://talonpanel.com/market/price-index/" rel="noopener noreferrer"&gt;https://talonpanel.com/market/price-index/&lt;/a&gt; — country table: &lt;a href="https://talonpanel.com/market/country-premium/" rel="noopener noreferrer"&gt;https://talonpanel.com/market/country-premium/&lt;/a&gt; — method: &lt;a href="https://talonpanel.com/methodology/" rel="noopener noreferrer"&gt;https://talonpanel.com/methodology/&lt;/a&gt;. Rates are USD per 1,000 units, read from public panel price lists; a blank price means no priced offer in that edition, not zero.&lt;/p&gt;

</description>
      <category>data</category>
      <category>marketing</category>
      <category>analytics</category>
      <category>api</category>
    </item>
  </channel>
</rss>
