<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MetaRPC Developer Guides]]></title><description><![CDATA[MetaRPC Developer Guides]]></description><link>https://metarpc.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 00:31:34 GMT</lastBuildDate><atom:link href="https://metarpc.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[MT4/MT5 trade copier recovery: reconcile before you retry]]></title><description><![CDATA[A developer checklist for MT4/MT5 copier timeouts, duplicate prevention, follower volume, pause/resume and demo cleanup across SDK languages.]]></description><link>https://metarpc.hashnode.dev/mt4-mt5-trade-copier-recovery-reconcile-before-you-retry</link><guid isPermaLink="true">https://metarpc.hashnode.dev/mt4-mt5-trade-copier-recovery-reconcile-before-you-retry</guid><category><![CDATA[api]]></category><category><![CDATA[software architecture]]></category><dc:creator><![CDATA[Timur Khamatov]]></dc:creator><pubDate>Wed, 25 Nov 2026 12:30:03 GMT</pubDate><content:encoded><![CDATA[<p>A trade-copying integration has at least two independent outcomes to reconcile: what happened on the master account, and what happened on the follower. A timeout in between them is not evidence that neither account changed.</p>
<p>This guide describes a recovery design for MT4/MT5 copier integrations. It applies regardless of whether your client uses C#, Python, Go, Java, C++, Rust, Ruby or Node.js. It is an engineering checklist, not an investment strategy.</p>
<p><em>Disclosure: published by MetaRPC, a provider of APIs and developer software. This article was drafted with an AI agent using our source documentation. MetaRPC does not hold or manage customer trading funds.</em></p>
<h2>Start with an operation record</h2>
<p>Before issuing a demo test operation, retain enough information to investigate its outcome: an internal operation ID, master account reference, intended symbol, direction, requested volume, relevant timestamp and the copy configuration version. Store the API's returned identifiers when available.</p>
<p>Keep this record separate from secrets. A useful support log does not need a broker password, API key or complete authorization header. Internal IDs used for reconciliation need not be published in public reports.</p>
<p>The operation record is your application's evidence trail. It is not a substitute for a service-supported idempotency mechanism.</p>
<h2>Represent uncertainty explicitly</h2>
<p>A useful local state model distinguishes:</p>
<ul>
<li><strong>Pending:</strong> submitted, but not yet reconciled.</li>
<li><strong>Confirmed:</strong> the resulting master and follower states have been observed.</li>
<li><strong>Rejected:</strong> a definitive rejection has been received and recorded.</li>
<li><strong>Unknown:</strong> the response was lost, timed out or cannot yet be matched to account state.</li>
<li><strong>Needs review:</strong> evidence remains ambiguous after the bounded reconciliation process.</li>
</ul>
<p>These are proposed application states, not claimed API enum names. A single Boolean such as success=false loses the difference between rejection and an unknown outcome.</p>
<h2>Reconcile before retrying</h2>
<p>When a response is lost, query the relevant current orders/positions, history and copier logs. Correlate them with identifiers supplied by the service and the operation record. Account for the platform's order, deal and position model; don't assume one identifier means the same thing everywhere.</p>
<p>Use bounded retries for reads, with backoff appropriate to the documented rate limits. If the state is still ambiguous, surface it for review. Blindly retrying a write can duplicate an order; blindly marking it failed can leave an untracked position.</p>
<p>For example, consider this sequence:</p>
<ol>
<li>The master demo order is accepted.</li>
<li>A follower order is created.</li>
<li>Your client loses the response.</li>
<li>The client automatically sends the same intended operation again.</li>
</ol>
<p>The fourth step can create a second operation unless the actual service contract prevents it. Don't invent an idempotency guarantee from an HTTP verb or an arbitrary request header.</p>
<h2>Check volume and symbols independently</h2>
<p>A connected follower can still reject a copied trade. Record its requested volume and the broker's minimum, maximum and step. If the calculation produces 0.05 lots while the follower requires at least 0.10, don't silently double the requested exposure to make the test pass.</p>
<p>Likewise, a suffix match between two symbol names is only a candidate mapping. Check the underlying instrument, contract size, trading permissions and broker specifications. Similar names alone do not prove equivalent contracts.</p>
<p>The <a href="https://mrpc.pro/tools/copier-sizing?lang=en&amp;utm_source=hashnode&amp;utm_medium=organic_social&amp;utm_campaign=copier_recovery_20261125&amp;utm_content=sizing_check">free copier-sizing calculator</a> illustrates requested volume and broker constraints without connecting an account or placing a trade.</p>
<h2>Define pause and resume before testing them</h2>
<p>Write down what your selected copier version promises while paused. Does it suppress new copies? What happens to already copied positions and subsequent master changes? On resume, does the saved configuration copy existing orders?</p>
<p>Those are contract questions, not behaviors to guess. Test them with disposable demo positions and inspect both accounts after each transition. Avoid resuming while an earlier operation remains unresolved.</p>
<p>A compact acceptance matrix should cover: open/close, an invalid volume, missing/invalid authentication, a follower disconnect, a lost response, pause/resume, and final cleanup. Preserve the actual broker error where possible instead of replacing every failure with a generic retry message.</p>
<h2>Finish with evidence and cleanup</h2>
<p>Close the positions created by your test and verify the master and follower independently. Disconnect test-owned resources according to the API lifecycle. Leave unrelated positions untouched.</p>
<p>For implementation links, use the <a href="https://mrpc.pro/guides/copier-migration?lang=en&amp;utm_source=hashnode&amp;utm_medium=organic_social&amp;utm_campaign=copier_recovery_20261125&amp;utm_content=acceptance_guide">copier migration and acceptance guide</a> and the <a href="https://mrpc.pro/api?lang=en&amp;utm_source=hashnode&amp;utm_medium=organic_social&amp;utm_campaign=copier_recovery_20261125&amp;utm_content=sdk_directory">SDK directory</a>. Check authentication and method signatures in the selected SDK documentation.</p>
<p>The important result of a recovery test is that every operation ends in a known state or an explicitly unresolved state. A green connection indicator cannot provide that guarantee.</p>
]]></content:encoded></item><item><title><![CDATA[A copier migration checklist that starts with the follower volume]]></title><description><![CDATA[Check follower volume, symbol mappings, API key errors and pause/resume before migrating a copier. Includes an offline Python sizing example.]]></description><link>https://metarpc.hashnode.dev/a-copier-migration-checklist-that-starts-with-the-follower-volume</link><guid isPermaLink="true">https://metarpc.hashnode.dev/a-copier-migration-checklist-that-starts-with-the-follower-volume</guid><category><![CDATA[Python]]></category><category><![CDATA[Testing]]></category><category><![CDATA[api]]></category><dc:creator><![CDATA[Timur Khamatov]]></dc:creator><pubDate>Fri, 13 Nov 2026 00:21:42 GMT</pubDate><content:encoded><![CDATA[<p>I work on MetaRPC. A trade copier migration is more than swapping endpoint URLs. A request can succeed while the follower trade is rejected, and two systems can interpret the same-looking size setting differently.</p>
<p>Start with a disposable demo account pair and one copier. Stop the previous copier for that pair so you can tell which system created each order. Record the master and follower identities before opening anything.</p>
<h2>Write down the expected size</h2>
<p>A fixed-lot setting requests the configured follower volume. A lot multiplier scales the master volume, with contract-size alignment where configured. Balance and equity modes also depend on the account ratio and contract sizes. For example, 0.10 master lots with a 0.5 follower/master balance ratio, equal contract sizes and a multiplier of 1 gives 0.05 requested follower lots.</p>
<p>Use matching deposit currencies for that comparison: a raw balance ratio does not perform currency conversion or establish equal monetary risk.</p>
<p>That calculation is only the requested size. The broker's minimum, maximum, step and available margin still matter. A 0.005-lot result is not a valid 0.01-lot order just because the arithmetic is correct. Inspect the copier's requested volume and actual broker result instead of silently increasing it.</p>
<p>For a reproducible check, clone <a href="https://github.com/MetaRPC/PyCopier">PyCopier</a> and run its standalone worksheet from the repository directory:</p>
<pre><code class="language-bash">python examples/sizing_preview.py --mode BalanceMultiplier --master-lots 0.10 --risk-value 1 --master-funds 10000 --follower-funds 5000
</code></pre>
<p>It prints 0.05 requested lots with the example's equal contract sizes. The worksheet uses Python's standard library, needs no credentials and makes no network calls. Supply the actual contract and volume rules when testing another case; it does not reproduce every server adjustment or check margin.</p>
<h2>Treat symbol names as clues</h2>
<p>EURUSD and EURUSD.a might be the right pair, but a suffix match does not verify the underlying contract. Compare contract size, precision, volume rules and trading hours. If two candidates match, choose explicitly. Do not turn ambiguity into an automatic live mapping.</p>
<h2>Test the lifecycle and the failures</h2>
<ol>
<li>Connect both demo accounts and check their identities.</li>
<li>Start the copier, open a small master trade and inspect the follower ticket, symbol and volume.</li>
<li>Close the master trade and verify both accounts.</li>
<li>Pause the copier, open a new demo trade and check the documented pause behavior. Resume and check the saved copy-existing-orders policy.</li>
<li>Exercise missing and invalid API keys, a disconnected follower and a volume rejection. Reads and log requests need the APIKey header too.</li>
<li>Reconcile positions after uncertain responses. Do not start another copier or repeat an order merely because a request timed out.</li>
</ol>
<p>Keep the evidence small: SDK version, settings, timestamp, expected outcome and actual outcome. Remove credentials and unrelated account data before sharing logs.</p>
<p>The <a href="https://mrpc.pro/tools/copier-sizing?lang=en&amp;utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=developer_guides_nov12&amp;utm_content=sizing">sizing calculator</a> and <a href="https://mrpc.pro/guides/copier-migration?lang=en&amp;utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=developer_guides_nov12&amp;utm_content=checklist">migration checklist</a> are planning aids. They do not connect to a broker or submit an order. The recorded <a href="https://mrpc.pro/tutorials/console/copier-troubleshooting?lang=en&amp;utm_source=hashnode&amp;utm_medium=referral&amp;utm_campaign=developer_guides_nov12&amp;utm_content=walkthrough">troubleshooting walkthrough</a> shows a rejected demo copy and the subsequent correction.</p>
<h2>Next: plan recovery from an unknown result</h2>
<p>The <a href="https://metarpc.hashnode.dev/mt4-mt5-trade-copier-recovery-reconcile-before-you-retry">MT4/MT5 copier recovery guide</a> explains operation records, uncertain responses and reconciliation before retrying. Use it alongside this volume checklist when testing a migration.</p>
]]></content:encoded></item></channel></rss>