Not public yet. This page is shared by link only. The API is open to the partners we have enabled it for: ask us to enable it for your account, then create a key in your account settings.

SnapCopier API

Updated

Connect your clients’ MetaTrader accounts to your master and manage them from your own website: set their multiplier, pause copying, remove an account. Your clients never have to open SnapCopier.

Overview

The accounts of your clients belong to your SnapCopier account, and each one follows one of your masters. Your website does the talking: a client enters the account on your page, your server calls this API with your key, and SnapCopier copies the master’s trades to the client’s account.

  1. 1You have a master in SnapCopier: the account whose trades are copied.
  2. 2A client enters their MetaTrader account on your site. Your server calls POST /accounts with your key.
  3. 3SnapCopier tests the login at the client’s broker, stores the account and starts copying from the master, with the multiplier you chose.
  4. 4The client changes their risk on your site; your server calls PUT /accounts/{accountId}/multiplier. Pausing and removing work the same way.

The API is for servers. Keep your key on your server, never in a web page or an app: anybody who has it can add and remove accounts. The API sends no CORS headers, so a browser cannot call it directly.

Your server decides who may do what. Your key reaches every client account of yours, and SnapCopier does not know which of your clients is asking. Sign your clients in yourself, and take the account id from your own records for the signed-in client, never from what the browser sends.

Any server language that can make HTTPS requests will do. It does not need a server of its own: PHP on ordinary web hosting is enough, if the hosting allows outgoing HTTPS requests and a request that runs for up to 90 seconds.

Quick start

  1. 1Turn on two-factor authentication, then create a key in SnapCopier under Settings → API keys. It is shown once; keep it secret.
  2. 2Find your master’s id with GET /masters.
  3. 3Connect a client account with POST /accounts (below).
  4. 4Read the account with GET /accounts/{accountId} until its status is connected.
export SNAPCOPIER_API_KEY=sc_...

# your masters
curl -s https://snapcopier.com/api/v1/masters -H "Authorization: Bearer $SNAPCOPIER_API_KEY"

# connect a client (takes up to a minute)
curl -s -X POST https://snapcopier.com/api/v1/accounts -H "Authorization: Bearer $SNAPCOPIER_API_KEY" \
  -H "Content-Type: application/json" --max-time 90 \
  -d '{ "masterId": "mst_3f9a1c7b5e2d8a4c6b10", "platform": "MT5", "server": "ICMarketsEU-MT5-5", "login": 12345678, "password": "the-clients-trading-password" }'

Authentication and limits

Send your key in the Authorization header of every request: Authorization: Bearer sc_…. Create, see and revoke keys in Settings; a revoked key stops working at once. Use HTTPS only. Every response is JSON (or empty, 204) and is not cacheable.

  • Request rate: 60 requests per minute per key, and 100 new accounts per hour per key. Above that the answer is 429 rate_limited with a Retry-After header (seconds). Failed attempts with an invalid key are limited per address.
  • Account limit: none: the number of accounts is not limited.
  • Timing: POST /accounts logs in at the client’s broker before it stores anything, so it can take up to about a minute. Use a client timeout of at least 90 seconds. A server search that asks the broker directory can take a few seconds; the other calls answer in well under a second.
  • Retries: connecting an account that is already connected under your key answers 409 already_connected with its accountId, so a retry after a timeout is safe.
  • Passwords: the client’s trading password is encrypted when stored, never returned, and never written to a log on our side. Do not log it on yours.

Errors

Every error has the form { "error": "<readable message>", "code": "<machine code>" } and an HTTP status. Some add a field: accountId with already_connected, openCopies with open_copies, allowedRange with out_of_range. Switch on code, show error.

CodeStatusMeaning
invalid_request400A field is missing or invalid; error names it.
unknown_server400The broker server name is not in the server directory and could not be found there.
unauthorized401Missing, invalid or revoked key.
forbidden403The key’s SnapCopier account is disabled, or its two-factor authentication is off (the API needs it to be on).
account_limit403The limit on the number of accounts is reached.
setting_not_allowed403A setting you did not allow for the clients of this master; the response has fields, the names.
not_found404The master or account does not exist, or is not yours.
already_connected409This trading account is already connected. When it is yours the response has accountId.
open_copies409The account still has open copies (see Remove a client account); the response has openCopies, how many.
connection_failed422The broker refused the login or could not be reached; nothing was stored.
out_of_range422The multiplier is outside the allowed range; the response has allowedRange.
rate_limited429Too many requests; wait Retry-After seconds.

An account’s status is one of:

connectedCopying works.
pending, connectingThe account is being connected.
disconnected, errorThe broker connection is down; lastError says why.
disabledSwitched off.

Endpoints

GET/api/v1/mastersList your master accounts
GET/api/v1/serversSearch broker servers
GET/api/v1/accountsList client accounts
POST/api/v1/accountsConnect a client account
GET/api/v1/accounts/{accountId}Get a client account
DELETE/api/v1/accounts/{accountId}Remove a client account
PUT/api/v1/accounts/{accountId}/multiplierSet the client’s multiplier
DELETE/api/v1/accounts/{accountId}/multiplierReset the client’s multiplier to the master’s default
POST/api/v1/accounts/{accountId}/pausePause copying to a client account
POST/api/v1/accounts/{accountId}/resumeResume copying to a client account
PUT/api/v1/accounts/{accountId}/passwordReplace the client’s trading password
GET/api/v1/accounts/{accountId}/settingsGet the client’s copy settings
PATCH/api/v1/accounts/{accountId}/settingsChange the client’s copy settings
GET/api/v1/accounts/{accountId}/positionsList the positions copied to a client
GET/api/v1/accounts/{accountId}/logRead the copy log of a client
GET/api/v1/auditRead what the API changed

List your master accounts

GET/api/v1/masters

The masters you can connect client accounts to, with each one’s default multiplier, the range of multipliers it allows and the copy settings its clients may change (clientSettings, see the settings calls). followers counts every account that follows the master.

A platform in an answer is MT4, MT5, CTRADER or TRADELOCKER: masters you added in SnapCopier itself can be on the last two. The API connects MT4 and MT5 clients, and they can follow a master of any of these platforms.

Request
curl -s https://snapcopier.com/api/v1/masters -H "Authorization: Bearer $SNAPCOPIER_API_KEY"
Response 200
{
  "masters": [
    {
      "id": "mst_3f9a1c7b5e2d8a4c6b10",
      "label": "Main master",
      "platform": "MT5",
      "server": "ICMarketsEU-MT5-5",
      "status": "connected",
      "defaultMultiplier": { "mode": "Multiplier", "value": 1 },
      "allowedRange": { "min": 0.1, "max": 2 },
      "clientSettings": ["maxLot", "copySl", "copyTp"],
      "followers": 37
    }
  ]
}

Search broker servers

GET/api/v1/servers

Suggestions for the server field of your connect form: a client types part of the broker’s name and picks the exact server, which POST /accounts needs letter for letter. The call is optional: if you only support a few brokers you can hard-code their server names.

It does not limit which accounts you can connect. POST /accounts takes any server name, and looks one up that SnapCopier has not seen yet.

The search answers from the servers SnapCopier already knows. When none of them matches a q of 3 characters or more, it asks the broker directory, and source is then live; that can take a few seconds. Send live=true to ask the directory even though some servers matched, for a client who does not find theirs among them. Search when the client pauses typing, not on every key press: each call counts towards your request rate, and directory lookups have a limit of their own (currently 20 a minute per key).

Query
platformMT4 | MT5Only servers of this platform.
qstringCase-insensitive search in the server name and the broker company, at most 60 characters.
livetrue | falseAsk the broker directory too, also when known servers matched. Needs a q of 3 characters or more. Default false.
Request
curl -s "https://snapcopier.com/api/v1/servers?platform=MT5&q=icmarkets" -H "Authorization: Bearer $SNAPCOPIER_API_KEY"
Response 200
{
  "servers": [
    { "name": "ICMarketsEU-MT5-5", "platform": "MT5", "company": "Raw Trading Ltd" }
  ],
  "source": "cache"
}

At most 50 servers in one answer: with more matches, search with a longer q or give the platform. source is cache for the known servers only, also when the directory could not be asked, and live when the directory answered.

Errors: invalid_request

List client accounts

GET/api/v1/accounts

All client accounts you connected, optionally of one master or one status. Only accounts connected through your key’s SnapCopier account that follow one of your masters are listed.

Query
masterIdstringOnly the clients of this master (mst_…).
statusstringOne of pending, connecting, connected, disconnected, error, disabled.
Request
curl -s "https://snapcopier.com/api/v1/accounts?masterId=mst_3f9a1c7b5e2d8a4c6b10" -H "Authorization: Bearer $SNAPCOPIER_API_KEY"
Response 200
{
  "accounts": [
    {
      "id": "acc_8b2e5d1f7a9c4e3b6d02",
      "masterId": "mst_3f9a1c7b5e2d8a4c6b10",
      "platform": "MT5",
      "server": "ICMarketsEU-MT5-5",
      "login": 12345678,
      "label": "Client A",
      "status": "connected",
      "lastError": null,
      "enabled": true,
      "currency": "USD",
      "balance": 10250.4,
      "equity": 10312.9,
      "leverage": 500,
      "multiplier": { "mode": "Multiplier", "value": 1.5, "source": "own", "allowedRange": { "min": 0.1, "max": 2 } },
      "openCopies": 0,
      "lastCopyAt": "2026-11-10T09:42:11.000Z",
      "createdAt": "2026-11-09T18:03:52.000Z",
      "limitPause": null
    }
  ]
}

Errors: invalid_request

Connect a client account

POST/api/v1/accounts

Connects a client’s MetaTrader account and makes it follow one of your masters. The account is tested with a live connection first, so only working credentials are stored: on connection_failed nothing is created.

This call can take up to about a minute, because it logs in at the client’s broker. Use a client timeout of at least 90 seconds.

If you send a multiplier it is checked against the master’s allowed range; without one the account uses the master’s default. Calling this again for a client account you already connected answers 409 already_connected with its accountId, so a retry after a timeout is safe: read the account with GET /accounts/{accountId}. An account that is on your SnapCopier account but follows none of your masters (or is a master itself) gets the same code without an accountId, and error says why.

The trading password is encrypted when it is stored and is never returned. Connect only accounts you are entitled to manage for the client. Use the trading password, not the investor password: orders have to be placed on the account.

An MT5 netting account cannot be a client: it has to be a hedging account. A netting account, like an investor password, answers 400 invalid_request with the reason in error, and nothing is stored. Tell your clients both before they fill in your form.

Body
masterIdrequiredstringThe master to follow: its id from GET /masters (mst_…).
platformrequiredMT4 | MT5The client account’s platform.
serverrequiredstringThe broker server name, exactly as the broker names it (see GET /servers).
loginrequiredintegerThe trading account number. MT4 logins are at most 2147483647.
passwordrequiredstringThe account’s trading password, at most 100 characters.
labelstringA name for the account in your SnapCopier dashboard, at most 60 characters. Default: the platform and login.
multiplierobject{ "mode": "Multiplier", "value": 0.5 }. mode is Multiplier, BalanceRatio or EquityRatio (default Multiplier), value is between 0.0001 and 1000 and inside the master’s allowed range.
Request
curl -s -X POST https://snapcopier.com/api/v1/accounts -H "Authorization: Bearer $SNAPCOPIER_API_KEY" \
  -H "Content-Type: application/json" --max-time 90 \
  -d '{
    "masterId": "mst_3f9a1c7b5e2d8a4c6b10",
    "platform": "MT5",
    "server": "ICMarketsEU-MT5-5",
    "login": 12345678,
    "password": "the-clients-trading-password",
    "label": "Client A",
    "multiplier": { "mode": "Multiplier", "value": 1.5 }
  }'
Response 201
{
  "id": "acc_8b2e5d1f7a9c4e3b6d02",
  "masterId": "mst_3f9a1c7b5e2d8a4c6b10",
  "platform": "MT5",
  "server": "ICMarketsEU-MT5-5",
  "login": 12345678,
  "label": "Client A",
  "status": "pending",
  "lastError": null,
  "enabled": true,
  "currency": "USD",
  "balance": 10000,
  "equity": 10000,
  "leverage": 500,
  "multiplier": { "mode": "Multiplier", "value": 1.5, "source": "own", "allowedRange": { "min": 0.1, "max": 2 } },
  "openCopies": 0,
  "lastCopyAt": null,
  "createdAt": "2026-11-09T18:03:52.000Z",
  "limitPause": null
}

The status is pending for a moment while the account connects: poll the account until it is connected.

Errors: invalid_request, unknown_server, account_limit, not_found, already_connected, connection_failed, out_of_range

Get a client account

GET/api/v1/accounts/{accountId}

Its connection status, balance, multiplier and copying state. Poll this to see whether an account is connected, or how many copies are open.

limitPause is null, or says that a loss limit or the profit target holds back new copies now: { "reason": "daily_loss_limit", "since": "2026-12-01T07:50:26.000Z", "ends": "next_trading_day" }. The account stays enabled. See Loss limits.

Path
accountIdrequiredstringThe id SnapCopier gave the client account when you connected it (acc_…).
Request
curl -s https://snapcopier.com/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02 -H "Authorization: Bearer $SNAPCOPIER_API_KEY"
Response 200
{
  "id": "acc_8b2e5d1f7a9c4e3b6d02",
  "masterId": "mst_3f9a1c7b5e2d8a4c6b10",
  "platform": "MT5",
  "server": "ICMarketsEU-MT5-5",
  "login": 12345678,
  "label": "Client A",
  "status": "connected",
  "lastError": null,
  "enabled": true,
  "currency": "USD",
  "balance": 10250.4,
  "equity": 10312.9,
  "leverage": 500,
  "multiplier": { "mode": "Multiplier", "value": 1.5, "source": "own", "allowedRange": { "min": 0.1, "max": 2 } },
  "openCopies": 0,
  "lastCopyAt": "2026-11-10T09:42:11.000Z",
  "createdAt": "2026-11-09T18:03:52.000Z",
  "limitPause": null
}

Errors: not_found

Remove a client account

DELETE/api/v1/accounts/{accountId}

Removes the account and its copy link, and forgets the stored password. Positions that are still open on the client’s account are not closed: they stay open at the broker without being managed. For that reason the call is refused with 409 open_copies while the account has open copies.

To remove a client cleanly: pause the account with openCopies: close, wait until openCopies is 0 in GET /accounts/{accountId}, then delete it. If the account is already paused (enabled is false), resume it first, or close closes nothing. If openCopies stays above 0, see Open copies. If you really want to remove it with the positions left open, add ?leaveOpenCopies=true.

Pause first even when openCopies is 0: the check sees the account as it is at that moment, and a copy that is on its way while your master trades could be left on the client’s account, unmanaged.

The account’s list of copied positions and its copy log are removed with it. Read what you want to keep before. Your audit log stays.

Path
accountIdrequiredstringThe id SnapCopier gave the client account when you connected it (acc_…).
Query
leaveOpenCopiesbooleanRemove the account even though copies are open. Default false.
Request
curl -s -X DELETE https://snapcopier.com/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02 -H "Authorization: Bearer $SNAPCOPIER_API_KEY"
Response 204

No body.

Errors: not_found, open_copies, invalid_request

Set the client’s multiplier

PUT/api/v1/accounts/{accountId}/multiplier

Sets how large this account’s copies are, from the next trade on. Copies that are already open keep their size.

Without a mode the account keeps its current mode (Multiplier when the master’s default is a fixed lot). The value must be inside the master’s allowed range (see GET /masters). Every other copy setting of the account, for example the maximum lot, still follows the master’s settings.

Path
accountIdrequiredstringThe id SnapCopier gave the client account when you connected it (acc_…).
Body
valuerequirednumberBetween 0.0001 and 1000, and inside the master’s allowed range.
modestringMultiplier, BalanceRatio or EquityRatio (see Multipliers below).
Request
curl -s -X PUT https://snapcopier.com/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02/multiplier -H "Authorization: Bearer $SNAPCOPIER_API_KEY" \
  -H "Content-Type: application/json" -d '{ "value": 1.5 }'
Response 200
{ "mode": "Multiplier", "value": 1.5, "source": "own", "allowedRange": { "min": 0.1, "max": 2 } }

Errors: invalid_request, not_found, out_of_range

Reset the client’s multiplier to the master’s default

DELETE/api/v1/accounts/{accountId}/multiplier

The account follows the master’s default multiplier again (source becomes default), also when the master changes it later.

Path
accountIdrequiredstringThe id SnapCopier gave the client account when you connected it (acc_…).
Request
curl -s -X DELETE https://snapcopier.com/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02/multiplier -H "Authorization: Bearer $SNAPCOPIER_API_KEY"
Response 200
{ "mode": "Multiplier", "value": 1, "source": "default", "allowedRange": { "min": 0.1, "max": 2 } }

Errors: not_found

Pause copying to a client account

POST/api/v1/accounts/{accountId}/pause

Stops copying new trades to the account. The account stays connected. You choose what happens to the copies that are already open with openCopies, which is required:

manage: they stay open and are still managed, so the master’s closes and stop changes still reach them. leave: they stay open and are not managed while the account is paused, the client has to close them. close: they are closed now.

`close` is attempted once. A copy that cannot be closed at that moment, for example because its market is closed, the account is not connected or the broker refuses, stays open and is not tried again by itself. Check that openCopies has reached 0.

If the account is already paused nothing changes, not even the mode, and close closes nothing. To change the mode, or to try close again, resume the account and pause it again.

Path
accountIdrequiredstringThe id SnapCopier gave the client account when you connected it (acc_…).
Body
openCopiesrequiredmanage | leave | closeWhat happens to the copies that are open now.
Request
curl -s -X POST https://snapcopier.com/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02/pause -H "Authorization: Bearer $SNAPCOPIER_API_KEY" \
  -H "Content-Type: application/json" -d '{ "openCopies": "close" }'
Response 200
{ …the account, with "enabled": false }

The account after the pause. With close, openCopies falls as the copies are closed, so read the account again until it is 0.

Errors: invalid_request, not_found

Resume copying to a client account

POST/api/v1/accounts/{accountId}/resume

Copying starts again with the master’s next trade. Trades the master opened while the account was paused are not copied late: they count as existing positions. Resuming an account that is not paused changes nothing.

Copies that stayed open through the pause are managed again, whatever the pause mode was. One whose master trade has been closed in the meantime is closed (with closeOrphans on, the default), a partial close of the master is followed, and the stop loss and take profit are set to the master’s again where the account copies them.

Path
accountIdrequiredstringThe id SnapCopier gave the client account when you connected it (acc_…).
Request
curl -s -X POST https://snapcopier.com/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02/resume -H "Authorization: Bearer $SNAPCOPIER_API_KEY"
Response 200
{ …the account, with "enabled": true }

Errors: not_found

Replace the client’s trading password

PUT/api/v1/accounts/{accountId}/password

For a client who changed the password at the broker: until you send the new one, the account stays on a login error. The password is tested with a live login first and only a working one is stored (connection_failed changes nothing). The account’s settings, its history and its open copies stay; the account reconnects, so status is pending for a moment.

This call can take up to about a minute, like connecting an account. Use the trading password, not the investor password.

A cTrader account that you added in SnapCopier has no password to change: the call answers 400 invalid_request.

Path
accountIdrequiredstringThe id SnapCopier gave the client account when you connected it (acc_…).
Body
passwordrequiredstringThe new trading password, at most 100 characters. Never returned.
Request
curl -s -X PUT https://snapcopier.com/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02/password -H "Authorization: Bearer $SNAPCOPIER_API_KEY" \
  -H "Content-Type: application/json" --max-time 90 \
  -d '{ "password": "the-clients-new-trading-password" }'
Response 200
{
  "id": "acc_8b2e5d1f7a9c4e3b6d02",
  "masterId": "mst_3f9a1c7b5e2d8a4c6b10",
  "platform": "MT5",
  "server": "ICMarketsEU-MT5-5",
  "login": 12345678,
  "label": "Client A",
  "status": "pending",
  "lastError": null,
  "enabled": true,
  "currency": "USD",
  "balance": 10250.4,
  "equity": 10312.9,
  "leverage": 500,
  "multiplier": { "mode": "Multiplier", "value": 1.5, "source": "own", "allowedRange": { "min": 0.1, "max": 2 } },
  "openCopies": 0,
  "lastCopyAt": "2026-11-10T09:42:11.000Z",
  "createdAt": "2026-11-09T18:03:52.000Z",
  "limitPause": null
}

The account, reconnecting. Poll it until status is connected.

Errors: invalid_request, not_found, connection_failed

Get the client’s copy settings

GET/api/v1/accounts/{accountId}/settings

The value of every copy setting of the account, which of them the client set itself (own; every other setting follows the master’s default), and which of them you allow the clients of this master to change (editable).

You choose what the clients may change in SnapCopier, on the master’s follower settings (“Settings your API clients may change”). Until you tick some, editable is empty and the API changes nothing but the multiplier. The multiplier is not in the settings: it has its own endpoints.

Path
accountIdrequiredstringThe id SnapCopier gave the client account when you connected it (acc_…).
Request
curl -s https://snapcopier.com/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02/settings -H "Authorization: Bearer $SNAPCOPIER_API_KEY"
Response 200
{
  "settings": {
    "minLot": null, "maxLot": 0.5, "belowMin": "Skip", "lotRounding": "Down", "seriesLots": false, "reverse": false,
    "copySl": true, "copyTp": false, "sltpMode": "Absolute", "pendingMode": "same_server",
    "pendingFillToMarket": false, "maxSlippagePoints": 30,
    "symbolFilterMode": "None", "symbolFilter": [], "magicFilter": [], "magicFilterExclude": false,
    "copyExistingOnStart": false, "lateOpenBetterPrice": false, "closeOnDisable": false,
    "closeOrphans": false, "marginGuard": "Off"
  },
  "own": ["maxLot", "copyTp"],
  "editable": ["maxLot", "copySl", "copyTp"]
}

Errors: not_found

Change the client’s copy settings

PATCH/api/v1/accounts/{accountId}/settings

Changes the settings you send, and only settings you allowed for the clients of this master: if the request names one that is not allowed, the answer is 403 setting_not_allowed with the names in fields, and nothing is changed. The checks are the ones of the SnapCopier settings form (ranges, lists, a minimum lot above the maximum is refused).

A setting that has several values, such as the symbol filter (symbolFilterMode and symbolFilter), may be sent in part: what is left out stays as it is. reset lists settings that go back to the master’s default and follow it again, also when the master changes it. The change applies from the next trade; copies that are already open keep their settings.

The allowed list is a guardrail for your own site, not a defence against the client: a client never holds a key, your server calls the API. Which client may change which account is your decision.

Path
accountIdrequiredstringThe id SnapCopier gave the client account when you connected it (acc_…).
Body
minLot, maxLotnumber | nullThe smallest and the largest lot copied, 0 to 1000; null for none. The minimum must not exceed the maximum.
belowMinSkip | UseMinWhat to do with a copy below the broker’s minimum lot.
lotRoundingDown | NearestHow a calculated size is brought to the broker’s lot step: with Down (the default) rounding never makes a copy bigger than calculated, Nearest rounds to the nearest step, halves up.
seriesLots, reverse, copySl, copyTp, pendingFillToMarket, magicFilterExclude, copyExistingOnStart, lateOpenBetterPrice, closeOnDisable, closeOrphansbooleanOn or off. reverse copies the opposite side, copySl and copyTp copy the stop loss and the take profit.
sltpModeAbsolute | RelativeToOpenHow the stop loss and the take profit are copied.
pendingModesame_server | always | offWhether pending orders are copied.
maxSlippagePointsinteger0 to 100000.
symbolFilterMode, symbolFilterNone | Whitelist | Blacklist, list of stringsCopy only, or everything except, these symbols (at most 200).
magicFilterlist of integersMagic numbers of the master’s trades to copy or, with magicFilterExclude, to leave out (at most 100).
marginGuardOff | Reduce | SkipWhat to do when the client’s account is short of margin for a copy.
ddLimitPct, ddActionnumber | null, pause | closeDrawdown limit (name in editable: ddLimit): a percentage of the balance, 0.01 to 99.99. While the account’s open loss is at or above it, new copies are held back; with close the copies also close once.
riskStartBalancenumber | nullStarting balance (startBalance) the percentages below are of. null: the balance at the moment a limit is first on.
riskDailyLossPct, riskDailyBasisnumber | null, max_balance_equity | balanceDaily loss limit (dailyLoss), 0.01 to 99.99 percent of the starting balance, measured from the day’s starting balance, or from the higher of its balance and equity.
riskResetZone, riskResetHourstring, integerWhere the trading day starts (dayStart): server | UTC | Europe/London | Europe/Prague | Europe/Athens | America/New_York | Asia/Dubai | Asia/Singapore | Australia/Sydney (server is the broker’s server time), and the hour, 0 to 23.
riskMaxLossPct, riskMaxLossMode, riskTrailingLocknumber | null, static | trailing | trailing_eod, booleanMaximum loss (maxLoss), 0.01 to 99.99 percent of the starting balance: fixed from it, following the highest equity, or the highest end-of-day balance. With the lock a following limit stops at the starting balance.
riskDailyPeakPctnumber | nullDaily drawdown from the high (dailyPeak) of the day’s equity, 0.01 to 99.99 percent of the starting balance.
riskProfitTargetPctnumber | nullProfit target (profitTarget), 0.01 to 1000 percent of the starting balance: new copies stop once the account is up this much. It never closes anything.
riskTradePctnumber | nullMaximum risk per trade (tradeRisk), 0.01 to 99.99 percent of the starting balance, measured to the copy’s stop loss: a bigger copy is made smaller, one without a stop loss is skipped.
riskRequireSlbooleanRequire a stop loss (requireSl): a copy without one is skipped.
riskMaxLots, riskMaxPositionsnumber | null, integer | nullMaximum open lots (0.01 to 100000) and open positions (1 to 100000) of this master’s copies. A copy that is too large is cut to what still fits.
riskCloseOnBreachbooleanClose on a breach (riskCloseOnBreach): at the daily loss, the maximum loss or the daily drawdown from the high, this master’s copies close too.
resetlist of namesSettings that go back to the master’s default, for example ["reverse"]. The names are those of editable: a field with several values (the symbol filter) is symbolFilter, magicFilter.
Request
curl -s -X PATCH https://snapcopier.com/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02/settings -H "Authorization: Bearer $SNAPCOPIER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "maxLot": 0.5, "copyTp": false, "reset": ["reverse"] }'
Response 200
{ "settings": { …as in the Get call… }, "own": [ … ], "editable": [ … ] }

The settings now in effect.

Errors: invalid_request, not_found, setting_not_allowed

List the positions copied to a client

GET/api/v1/accounts/{accountId}/positions

The copies on the client’s account, newest first: the open ones, the closed ones, or both. Closed copies are kept for 90 days. A page has at most limit entries; nextBefore is the value for before that gives the next page, and null on the last one. It is an opaque string: send it back as it is.

There are no profits here: SnapCopier does not keep the broker’s results of the client’s trades.

Path
accountIdrequiredstringThe id SnapCopier gave the client account when you connected it (acc_…).
Query
stateopen | closedOnly open or only closed copies. Default both.
limitintegerEntries per page, at most 200. Default 50.
beforestringThe nextBefore of the previous page of the same list.
Request
curl -s "https://snapcopier.com/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02/positions?state=open" -H "Authorization: Bearer $SNAPCOPIER_API_KEY"
Response 200
{
  "positions": [
    {
      "masterTicket": 55120934, "ticket": 70144422, "kind": "position", "status": "open",
      "symbol": "EURUSD", "side": "Buy", "lots": 0.15, "openPrice": 1.0821,
      "openedAt": "2026-11-10T09:42:11.000Z", "closedAt": null, "closeReason": null
    }
  ],
  "nextBefore": null
}

closeReason is informational (for example close, manual_close, partial_close): do not switch on it.

Errors: invalid_request, not_found

Read the copy log of a client

GET/api/v1/accounts/{accountId}/log

Every action the copier took for the account, newest first, with the reason when a trade was skipped or failed. This is what answers a client’s question “why was this trade not copied?”. The log is kept for 90 days, and goes with the account when you remove it. Paging as in the positions call.

outcome is copied, skipped (the copier decided not to send it; reason is a stable code such as filtered, below_min_lot or master_funds_unknown, listed in the SnapCopier guide “Why a trade was not copied”) or failed (it was sent and refused or got no answer; reason is the name of the broker’s answer, for example NoMoney, and message is what the broker said, as text for people: not stable).

Path
accountIdrequiredstringThe id SnapCopier gave the client account when you connected it (acc_…).
Query
outcomecopied | skipped | failedOnly entries with this outcome. Default all.
limitintegerEntries per page, at most 200. Default 50.
beforestringThe nextBefore of the previous page of the same list.
Request
curl -s "https://snapcopier.com/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02/log?outcome=skipped&limit=20" -H "Authorization: Bearer $SNAPCOPIER_API_KEY"
Response 200
{
  "entries": [
    {
      "at": "2026-11-10T09:42:11.412Z", "action": "open", "symbol": "XAUUSD",
      "masterTicket": 55120934, "ticket": 0, "requestedLots": null, "filledLots": null, "slavePrice": null,
      "outcome": "skipped", "reason": "below_min_lot", "message": null
    }
  ],
  "nextBefore": "q3kZ8vR1xT5nYw2LbPd7Ag"
}

Errors: invalid_request, not_found

Read what the API changed

GET/api/v1/audit

Every call you made with a key that is not a read (connecting, removing, pausing, changing a multiplier, settings or a password), newest first: which key (keyPrefix, the first characters of it, as in Settings), which account, the status the call was answered with and a few details, for example the multiplier that was set. A refused change is logged too. Passwords and request bodies are never stored. Use it to answer “who changed this?”. Paging as in the positions call.

Query
accountIdstringOnly the calls that concerned this account (acc_…), also one you have removed since.
limitintegerEntries per page, at most 200. Default 50.
beforestringThe nextBefore of the previous page of the same list.
Request
curl -s "https://snapcopier.com/api/v1/audit?accountId=acc_8b2e5d1f7a9c4e3b6d02" -H "Authorization: Bearer $SNAPCOPIER_API_KEY"
Response 200
{
  "entries": [
    {
      "keyPrefix": "sc_Qm4tZ", "method": "PUT", "path": "/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02/multiplier",
      "accountId": "acc_8b2e5d1f7a9c4e3b6d02", "status": 200, "detail": { "value": 1.5 }, "at": "2026-11-10T09:41:03.000Z"
    }
  ],
  "nextBefore": null
}

Errors: invalid_request

Multipliers

A client account copies the master’s trades scaled by its multiplier. The mode says what the value multiplies:

  • Multiplier: the master’s lot times the value. A value of 0.5 copies half the master’s size.
  • BalanceRatio: the master’s lot, scaled by the ratio of the two balances, times the value.
  • EquityRatio: like BalanceRatio, with the equities.

A fixed lot size is not a multiplier and cannot be set through the API. A master’s own default can be a fixed lot; then the account’s multiplier.mode reads Fixed until you set a multiplier of your own.

The allowed range. The owner of the master can limit the multipliers its followers and clients may use, in SnapCopier on the master’s page under Followers → Allowed multiplier. GET /masters shows the range as allowedRange (null when there is none, a missing bound is open); every account shows it in multiplier.allowedRange. A value outside it is refused with 422 out_of_range, which carries the range. source says where the multiplier comes from: own when you set it for the account, default when the account follows the master’s default.

Copy settings the clients may change

Besides the multiplier, a client can change other copy settings through the API: the maximum and minimum lot, whether the stop loss and the take profit are copied, pending orders, the symbol and magic number filters, slippage and a few more (GET /accounts/{accountId}/settings lists them). Only the settings you allow. In SnapCopier, on the master’s follower settings, tick Settings your API clients may change; until you do, nothing but the multiplier can be changed through the API. A request for a setting that is not allowed is refused with 403 setting_not_allowed and changes nothing; GET /masters shows the allowed list as clientSettings.

A setting the client changes becomes the client’s own (own in the answer) and no longer follows the master’s default; reset gives it back. The list is a guardrail for your own site: a client never holds a key, your server calls the API, so which client may change which account is your decision.

Loss limits

Loss limits are copy settings too: allow them under Settings your API clients may change and set them with PATCH /accounts/{accountId}/settings. They are off until a number is entered. The loss is measured on the follower’s whole account, whatever caused it; what is held back or closed is the copies of this master. The master’s closes, partial closes and stop changes are always copied.

When a limit holds copies back. At the daily loss limit, the maximum loss, the daily drawdown from the high or the profit target, new copies pause and the account shows limitPause with reason (daily_loss_limit, max_loss_limit, daily_peak_limit, profit_target_reached), since and ends: next_trading_day, or settings_change for the maximum loss and the profit target. The account stays enabled, and resume is not what lifts it. The drawdown limit and the limits on lots, positions and risk per trade decide trade by trade: they show only in the copy log, as the reason of a skipped trade. Poll GET /accounts to notice a pause; no call is made to your server.

Saving different numbers lifts a pause. If a limit is reached again with the new numbers, a new pause begins at once. So if you allow your clients to change the loss limits, a client can lift their own pause. Allow these fields only if that is what you want.

What was copied, and why not

Your clients can see what happened on their account without visiting SnapCopier: GET /accounts/{accountId}/positions lists the copied positions, open or closed, and GET /accounts/{accountId}/log is the copy log with the reason when a trade was skipped or failed (for example below_min_lot or filtered). Both are paged, newest first, and kept for 90 days. GET /audit lists what your own API calls changed, with the key that made each call: passwords and request bodies are never stored.

Noticing problems. The API does not push notifications. To notice an account that lost its broker connection, read GET /accounts every few minutes (one call for all your clients; ?status=error filters) and look at status and lastError. If a client changes the password at the broker, send the new one with PUT /accounts/{accountId}/password: the settings, the history and the open copies stay.

Open copies: pausing and removing

Pausing stops new copies; you choose what happens to the copies that are open (manage, leave or close). Removing an account stops all management of it, so the positions still open on the client’s account would be left unmanaged at the broker. That is why DELETE answers 409 open_copies while openCopies is above 0. The clean way to remove a client:

# 1. pause and close the open copies
curl -s -X POST https://snapcopier.com/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02/pause -H "Authorization: Bearer $SNAPCOPIER_API_KEY" \
  -H "Content-Type: application/json" -d '{ "openCopies": "close" }'

# 2. wait until "openCopies" is 0
curl -s https://snapcopier.com/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02 -H "Authorization: Bearer $SNAPCOPIER_API_KEY"

# 3. remove it
curl -s -X DELETE https://snapcopier.com/api/v1/accounts/acc_8b2e5d1f7a9c4e3b6d02 -H "Authorization: Bearer $SNAPCOPIER_API_KEY"

Already paused? When enabled is false, another pause changes nothing and closes nothing: call resume first, then pause with close. Resuming manages the copies that stayed open again, so one whose master trade has been closed in the meantime is closed right away, and a trade your master opens between the two calls may be copied (the close takes it too).

`openCopies` stays above 0? The close is attempted once, when the account is paused. A closed market, an account that is not connected (see status and lastError) or a refusal by the broker leaves the copy open. The reason of a refused close is in the account’s copy log (GET /accounts/{accountId}/log?outcome=failed). When the cause is gone, resume and pause with close again. If the copy cannot be closed from here, the client closes it at the broker, or you remove the account with ?leaveOpenCopies=true.

Removing an account also removes its list of copied positions and its copy log. Read what you want to keep before the DELETE.

Sample site

A complete small partner site in one file, with no dependencies, written for Node 18 or newer (the API itself works from any server language): a connect form that shows the allowed multiplier, a status page that refreshes while the account connects, changing the multiplier, pausing, resuming and removing. The browser only talks to this server; the server calls the API with your key.

SNAPCOPIER_API_KEY=sc_... MASTER_ID=mst_... node partner-site.js

Download partner-site.js

It is a demo of the calls, not a finished site. A real one also needs your own login for your clients, a table that maps your client to the SnapCopier accountId, and HTTPS.

Show the code
#!/usr/bin/env node
// A partner's website, in one file, no dependencies (Node 18 or newer): the pages a signal provider's clients use to connect their MetaTrader
// account, see its state, change their multiplier, pause and remove it. Everything the clients do goes through YOUR server, which calls the
// SnapCopier API with YOUR key: the key never reaches a browser.
//
//   SNAPCOPIER_API_KEY=sc_... MASTER_ID=mst_... node partner-site.js          (then open http://localhost:3000)
//
// Optional: SNAPCOPIER_URL (default https://snapcopier.com), PORT (default 3000).
//
// This is a demo of the API calls, not a finished site. What a real site adds, and this one does not:
//  - YOUR OWN login for your clients, and a table that maps your client to the SnapCopier account id (`accountId`). Here the account id is
//    in the URL, so anybody who knows an id can open the page: never ship that.
//  - HTTPS (the trading password travels from your client's browser to your server, and from there to SnapCopier).
//  - Never log or store the trading password. This file reads it from the form, sends it once, and forgets it.
'use strict';
const http = require('node:http');

const API = (process.env.SNAPCOPIER_URL || 'https://snapcopier.com').replace(/\/$/, '') + '/api/v1';
const KEY = process.env.SNAPCOPIER_API_KEY;
const MASTER_ID = process.env.MASTER_ID || ''; // mst_…
const PORT = Number(process.env.PORT || 3000);
if (!KEY || !MASTER_ID) {
    console.error('Set SNAPCOPIER_API_KEY and MASTER_ID (the id of your master, from GET /masters).');
    process.exit(1);
}

/** One API call. Returns { status, body }; an error answer is { error, code, ... } (see the error table of the API). */
async function call(method, path, body) {
    const res = await fetch(API + path, {
        method,
        headers: { Authorization: `Bearer ${KEY}`, ...(body ? { 'Content-Type': 'application/json' } : {}) },
        body: body ? JSON.stringify(body) : undefined,
        // Connecting an account logs in at the broker first and can take up to a minute: allow at least 90 seconds.
        signal: AbortSignal.timeout(90_000),
    });
    const text = await res.text();
    return { status: res.status, body: text ? JSON.parse(text) : null };
}

const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]);
const page = (title, inner, head = '') => `<!doctype html><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">${head}
<title>${esc(title)}</title><style>body{font:16px/1.5 system-ui,sans-serif;max-width:32rem;margin:2rem auto;padding:0 1rem}label{display:block;margin:.8rem 0 .2rem}
input,select,button{font:inherit;padding:.45rem .6rem;width:100%;box-sizing:border-box}button{width:auto;cursor:pointer}.err{background:#fde8e8;padding:.6rem .8rem;border-radius:.4rem}
.ok{background:#e6f6ea;padding:.6rem .8rem;border-radius:.4rem}small{color:#666}dl{display:grid;grid-template-columns:9rem 1fr;gap:.2rem .6rem}dt{color:#666}form{margin:1rem 0}</style>${inner}`;
const err = (r) => `<p class="err">${esc(r.body?.error || `Error ${r.status}`)}</p>`;
const rangeText = (r) => (!r ? '' : r.min != null && r.max != null ? `between ${r.min} and ${r.max}` : r.min != null ? `at least ${r.min}` : `at most ${r.max}`);

/** The connect form; `previous` keeps what the client typed (never the password) after an error. */
async function connectPage(message = '', previous = {}) {
    const masters = await call('GET', '/masters');
    const master = masters.body?.masters?.find((m) => m.id === MASTER_ID);
    if (!master) return page('Copy trading', `<h1>Copy trading</h1><p class="err">Master ${MASTER_ID} was not found for this API key.</p>`);
    const range = rangeText(master.allowedRange);
    return page('Connect your account', `<h1>Connect your account</h1>${message}
<form method="post" action="/connect">
<label>Broker server<input name="server" required value="${esc(previous.server)}" placeholder="e.g. ICMarketsEU-MT5-5"></label>
<label>Platform<select name="platform"><option>MT5</option><option${previous.platform === 'MT4' ? ' selected' : ''}>MT4</option></select></label>
<label>Account number (login)<input name="login" required inputmode="numeric" value="${esc(previous.login)}"></label>
<label>Trading password <small>(not the investor password)</small><input name="password" type="password" required autocomplete="off"></label>
<label>Risk multiplier <small>${range ? `allowed: ${esc(range)}` : ''}</small><input name="multiplier" type="number" step="0.01" min="0.01" value="${esc(previous.multiplier || master.defaultMultiplier.value)}"></label>
<button>Connect</button> <small>Connecting logs in at your broker and can take up to a minute.</small>
</form>`);
}

async function accountPage(id, message = '') {
    const r = await call('GET', `/accounts/${id}`);
    if (r.status !== 200) return page('Account', `<h1>Account</h1>${err(r)}<p><a href="/">Back</a></p>`);
    const a = r.body;
    const waiting = a.status === 'pending' || a.status === 'connecting';
    const range = rangeText(a.multiplier.allowedRange);
    return page('Your account', `<h1>Account ${esc(a.login)}</h1>${message}
<dl><dt>Status</dt><dd>${esc(a.status)}${a.lastError ? ` (${esc(a.lastError)})` : ''}${waiting ? ' <small>(refreshing…)</small>' : ''}</dd>
<dt>Copying</dt><dd>${a.enabled ? 'on' : 'paused'}</dd><dt>Balance</dt><dd>${esc(a.balance)} ${esc(a.currency)}</dd>
<dt>Multiplier</dt><dd>${esc(a.multiplier.value)} <small>(${esc(a.multiplier.source)})</small></dd><dt>Open copies</dt><dd>${esc(a.openCopies)}</dd></dl>
<form method="post" action="/account/${id}/multiplier"><label>New multiplier <small>${range ? `allowed: ${esc(range)}` : ''}</small>
<input name="value" type="number" step="0.01" min="0.01" value="${esc(a.multiplier.value)}"></label><button>Change</button></form>
<form method="post" action="/account/${id}/${a.enabled ? 'pause' : 'resume'}">
${a.enabled ? '<label>Open copies while paused<select name="openCopies"><option value="manage">keep managing them</option><option value="leave">leave them open</option><option value="close">close them</option></select></label>' : ''}
<button>${a.enabled ? 'Pause copying' : 'Resume copying'}</button></form>
<form method="post" action="/account/${id}/delete"><button>Remove my account</button></form>`,
    waiting ? '<meta http-equiv="refresh" content="3">' : '');
}

const readForm = (req) => new Promise((resolve) => {
    let data = '';
    req.on('data', (c) => { if (data.length < 10_000) data += c; });
    req.on('end', () => resolve(Object.fromEntries(new URLSearchParams(data))));
});
const send = (res, status, html) => { res.writeHead(status, { 'Content-Type': 'text/html; charset=utf-8' }); res.end(html); };
const redirect = (res, to) => { res.writeHead(303, { Location: to }); res.end(); };

http.createServer(async (req, res) => {
    try {
        const url = new URL(req.url, 'http://x');
        const m = url.pathname.match(/^\/account\/(acc_[0-9a-f]+)(?:\/(multiplier|pause|resume|delete))?$/);
        if (req.method === 'GET' && url.pathname === '/') return send(res, 200, await connectPage());
        if (req.method === 'GET' && m && !m[2]) return send(res, 200, await accountPage(m[1], url.searchParams.get('done') ? '<p class="ok">Done.</p>' : ''));

        if (req.method === 'POST' && url.pathname === '/connect') {
            const f = await readForm(req);
            const body = { masterId: MASTER_ID, platform: f.platform, server: f.server, login: Number(f.login), password: f.password,
                label: `Client ${f.login}`, ...(f.multiplier ? { multiplier: { value: Number(f.multiplier) } } : {}) };
            const r = await call('POST', '/accounts', body); // the password is sent once and not kept
            if (r.status === 201) return redirect(res, `/account/${r.body.id}`);
            if (r.status === 409 && r.body.accountId) return redirect(res, `/account/${r.body.accountId}?done=1`); // already connected: a retry is safe
            return send(res, 200, await connectPage(err(r), { server: f.server, platform: f.platform, login: f.login, multiplier: f.multiplier }));
        }
        if (req.method === 'POST' && m && m[2]) {
            const id = m[1];
            const f = await readForm(req);
            let r;
            if (m[2] === 'multiplier') r = await call('PUT', `/accounts/${id}/multiplier`, { value: Number(f.value) });
            if (m[2] === 'pause') r = await call('POST', `/accounts/${id}/pause`, { openCopies: f.openCopies });
            if (m[2] === 'resume') r = await call('POST', `/accounts/${id}/resume`);
            if (m[2] === 'delete') {
                r = await call('DELETE', `/accounts/${id}`);
                // Copies are still open: the API refuses, so the client is told how to do it cleanly (pause with "close", then remove).
                if (r.status === 409 && r.body.code === 'open_copies') return send(res, 200, await accountPage(id, `<p class="err">${esc(r.body.error)}</p>`));
                if (r.status === 204) return send(res, 200, page('Removed', '<h1>Your account was removed.</h1><p><a href="/">Connect again</a></p>'));
            }
            if (r.status >= 400) return send(res, 200, await accountPage(id, err(r)));
            return redirect(res, `/account/${id}?done=1`);
        }
        send(res, 404, page('Not found', '<h1>Not found</h1>'));
    } catch (e) {
        console.error(e.message); // never the request: it can hold a password
        send(res, 500, page('Error', '<h1>Something went wrong</h1><p>Please try again in a moment.</p>'));
    }
}).listen(PORT, () => console.log(`Partner site on http://localhost:${PORT} (API ${API})`));

Compatibility

Version 1 is stable: what you build on stays. Within /api/v1 we do not remove or rename a call, a parameter or a field, do not change its type or its meaning, do not make something required that was not, and keep the error codes and their statuses.

What can be added at any time: new calls, new optional parameters (without them everything behaves as before), new fields in answers, and new values of codes such as reason, closeReason, a platform or a setting name. So your code must ignore fields it does not know and cope with a value it does not know. A change that would break this would come as a new version under a new path, beside version 1.

OpenAPI file

The same API as a machine-readable OpenAPI 3.0 description, for generating a client or importing into a tool such as Postman: openapi-v1.yaml.

Questions or something missing? Contact us.

Create your API key

Keys are created in Settings. Connect a first client account from your own server in a few minutes.

Join for free