FinCopy

Developers

FinCopy API

Pair lists and pair views include read-only AIBotMode: OFF (Off), WATCH (Watch: AIBot records what it would do and sends nothing), EXITS (Exits only), or FULL (Full auto), using FinCopy's FxsAIBotPairMode string keys. The /v1 API cannot change this field.

Use the same trading API as the FinCopy member area from your own scripts and bots. Version 1 covers accounts, settings, pairs, orders, history, trading, performance, activity and terminal operations. Account paths use ACNO, allocated when an account is added; storage ids never appear in public routes.

Base URLhttps://api.fincopy.io

Authentication

Create a key in the member area under API, or send requests with your signed-in member session cookie. API keys use the X-Api-Key header. Keys are masked in the list and can be copied again there; copying a Read and trade key asks for the trade PIN. Older hash-only keys must be revoked and recreated before they can be copied.

A Read key can list and view accounts. A Read and trade key can also open and close trades, change settings, and start, stop or restart a terminal. Member-session trades pass the member's trade-PIN gate. A key or session reaches only the member's own accounts.

For a signed-in member app, give FinClient the same session-authenticated HttpClient or fetch used by the app and omit the API key. The browser sends its member cookie with the request.

curl https://api.fincopy.io/v1/fxs/accounts \
  -H "X-Api-Key: fck_1a2b3c4d_your-secret"

How trades complete

Your terminal runs on FinCopy's servers and checks in every few seconds. A trade request is queued for it, so a successful reply means queued, not filled. Read the account again a few seconds later: the order shows as filled with its broker ticket, or as rejected with the reason. A request your terminal does not pick up within its time window is rejected rather than kept waiting.

BUY and SELL are independent sides of a symbol: you can hold both, and closing one side leaves the other open. Use the symbol exactly as your broker names it (for example EURUSD or EURUSDm).

Send an Idempotency-Key header with every trade, account add, start, stop, restart and remove. A retry with the same key returns the first result instead of doing it twice.

FinClient SDK

FinClient is the official client for this API, for .NET and TypeScript. It covers every endpoint on this page, adds an idempotency key to every write, retries a busy service (429, 502, 503, 504) when it is told to wait 60 seconds or less, reads lists a page at a time, and keeps the API's PascalCase field names. Both languages share one version number, so a change lands in both at once.

LanguageInstallRuns on
.NETdotnet add package FinClient.NET Standard 2.0 and .NET 8 or newer
TypeScriptnpm install @bizjaya/finclientNode.js on a server; ES modules and CommonJS

.NET

using Fin;
using Fin.Copy;

using var fin = new FinClient(new FinClientOptions { ApiKey = Environment.GetEnvironmentVariable("FINCOPY_API_KEY")! });
var accounts = await fin.Copy.Accounts.ListAsync();
foreach (var account in accounts.Items)
    Console.WriteLine(account.State?.ACNO);

// A trade names its action and side; the account number is in the path.
// await fin.Copy.Orders.MakeAsync(52014125, new CmdApiFxsOrdrMake
// {
//     SYM = "EURUSD", ACT = FxsOrderAction.NEW, OTY = FxsOrderType.OP_BUY, LOT = 0.01,
// });

// Read what changed, a page at a time; save the cursor after each page so a restart resumes there.
string? cursor = null;
await foreach (var page in fin.Copy.Changes.ReadPagesAsync(cursor))
{
    foreach (var change in page.Changes ?? []) Console.WriteLine($"{change.Entity} {change.OID} {change.Status}");
    cursor = page.Cursor;
}

TypeScript

import { FinClient } from "@bizjaya/finclient";

const fin = new FinClient({ apiKey: process.env.FINCOPY_API_KEY! });
const accounts = await fin.copy.accounts.list();
for (const account of accounts.items) console.log(account.State?.ACNO);

// A trade names its action and side; the account number is in the path.
// await fin.copy.orders.make(52014125, { SYM: "EURUSD", ACT: "NEW", OTY: "OP_BUY", LOT: 0.01 });

// Read what changed, a page at a time; save the cursor after each page so a restart resumes there.
let cursor: string | undefined;
for await (const page of fin.copy.changes.readPages(cursor)) {
  for (const change of page.Changes ?? []) console.log(change.Entity, change.OID, change.Status);
  cursor = page.Cursor ?? cursor;
}

Signed-in member apps

Give FinClient your app's own session-authenticated HttpClient (.NET) or fetch (TypeScript) and leave the API key out: the request then carries the signed-in member's session cookie, as FinCopy's own member area does. Keep API keys on servers only.

Checking webhook signatures

Both languages check a webhook POST for you: the HMAC-SHA256 signature over the timestamp and the exact body, and a timestamp no more than five minutes away.

// .NET (namespace Fin)
bool genuine = FinWebhook.Verify(secret, timestampHeader, rawBody, signatureHeader);

// TypeScript (its own entry, because it uses Node.js's crypto module)
import { FinWebhook } from "@bizjaya/finclient/webhook";
const genuine = FinWebhook.verify(secret, timestampHeader, rawBody, signatureHeader);

Versions

FinClient is at 0.x while the API settles: a version that changes how you call it says so under BREAKING in the changelog, with a migration note. Read the changelog before upgrading. API keys are secrets: load them from your own secret store or environment, and never commit them to source control.

Change feed and webhooks

Call /v1/changes once without a cursor: it returns a cursor at "now". Read your accounts, then call the feed with that cursor. Each row names what changed (an account, its terminal, a symbol, an order, or a settled order) with its ids, oldest first. Keep the returned cursor and call again while More is true.

Or set a webhook with PUT /v1/webhook: FinCopy then POSTs the same rows to your HTTPS address and signs each POST. Check X-FinCopy-Signature, which is sha256= followed by the lowercase hex HMAC-SHA256 of X-FinCopy-Timestamp + "." + body keyed with the secret you were given, and refuse a timestamp older than five minutes.

Errors and limits

Every reply uses the same envelope: data, code, isOk, and a message when something went wrong.

CodeMeaning
200Done (for a trade: queued).
400The request was not valid; message says what to change.
401No valid API key or signed-in member session was supplied.
403The key lacks Trade permission, or a member-session trade did not pass the trade-PIN gate.
404The account does not exist, or it is not the caller's.
429The key or member session reached its rate limit. Honor Retry-After before retrying.

Endpoints · 8

Accounts

List, add, view and remove your hosted MT4 and MT5 accounts, start a free demo, and search broker servers.

GET/v1/fxs/accounts Read key

List the key owner's accounts, each with its terminal, broker server and latest state.

Path

PageNointeger (int32)
PageSizeinteger (int32)
Drawinteger (int64)
Sortstring
Srchstring
SortBystring[][]
SrchBystring[][]
Includestring[]
externalRefstring

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoMemberAccountResPaged, inside the usual envelope.

POST/v1/fxs/accounts Read and trade key

Add a hosted account for the key's owner. It waits for approval and a hosted instance, as on the member screens. Send an Idempotency-Key: a retry with the same key returns the account the first call made or reconnected. ExternalRef is your own id for the account. Needs the Trade permission.

Path

Idempotency-Keystring

Body CmdMemberAccountMake

Platformstring
BrokerServerIdstring
ServerNamestring
AccessPointstring
Loginstring
BrokerPasswordstring
SeatIdstring
ExternalRefstring
RequestIdstringThe API's Idempotency-Key, set by the /v1 make route only.

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"Platform": "", "BrokerServerId": "", "ServerName": "", "AccessPoint": "", "Login": "", "BrokerPassword": "", "SeatId": "", "ExternalRef": "", "RequestId": ""}'

Replies with data holding DtoFleetAccount, inside the usual envelope.

POST/v1/fxs/accounts/demo Read key

Create a demo account.

Body CmdMemberDemoMake

Platformstring
BrokerServerIdstring
Loginstring
BrokerPasswordstring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/demo \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"Platform": "", "BrokerServerId": "", "Login": "", "BrokerPassword": ""}'

Replies with data holding DtoFleetAccount, inside the usual envelope.

GET/v1/fxs/accounts/demo-availability Read key

Places available for a demo terminal on the selected platform.

Path

platformstring

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/demo-availability \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoDemoAvailability, inside the usual envelope.

GET/v1/brokers Read key

Searches broker servers available when adding a hosted account.

Path

querystring
platformstring
demosOnlyboolean

Example

curl -X GET https://api.fincopy.io/v1/brokers \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding a list of DtoBrokerServerSearch, inside the usual envelope.

GET/v1/fxs/accounts/{acno} Read key

One account: terminal status, balance, equity, margin, open positions, pending orders and recent orders.

Path

acnointeger

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoMemberAccount, inside the usual envelope.

DELETE/v1/fxs/accounts/{acno} Read and trade key

Disconnect the hosted terminal from this account. The terminal is stopped and removed, its broker password is forgotten, and its seat is freed. A customer account, its settings and trade history remain so the login can be restored later; a free demo's account and terminal records are deleted. Open orders stay at the broker; virtual TP, SL and TS stop working while no terminal runs. The Idempotency-Key header is required; a retry with the same key returns the same operation id. Needs the Trade permission. A signed-in member session also needs its trading PIN when the account requires one.

Path

acnointeger
Idempotency-Keystring

Body CmdMemTerminalDisconnect

TrPinstring
RequestIdstring

Example

curl -X DELETE https://api.fincopy.io/v1/fxs/accounts/ACNO \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"TrPin": "", "RequestId": ""}'

Replies with data holding DtoOperationQueued, inside the usual envelope.

PUT/v1/fxs/accounts/{acno}/external-ref Read and trade key

Set your own id for the account (for example your portfolio number); an empty value clears it. Works before the account is added. It comes back on the account and on every change-feed row. Needs the Trade permission.

Path

acnointeger

Body CmdTermAccountExternalRef

ExternalRefstring

Example

curl -X PUT https://api.fincopy.io/v1/fxs/accounts/ACNO/external-ref \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ExternalRef": ""}'

Replies with data holding DtoTermAccount, inside the usual envelope.

Endpoints · 6

Terminal

Start, stop and restart an account's hosted terminal, change its broker password, and read its operations.

GET/v1/fxs/operations Read key

The newest terminal operations (start, stop, restart, set-up, removal) across the caller's accounts, newest first.

Path

PageNointeger (int32)
PageSizeinteger (int32)
Drawinteger (int64)
Sortstring
Srchstring
SortBystring[][]
SrchBystring[][]
Includestring[]
acnointeger (int64)

Example

curl -X GET https://api.fincopy.io/v1/fxs/operations \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoApiTermOperationResPaged, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/password Read key

Change the broker password and queue the terminal operation.

Path

acnointeger

Body CmdTermAccountPassword

BrokerPasswordstring
BrokerServerIdstring
Loginstring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/password \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"BrokerPassword": "", "BrokerServerId": "", "Login": ""}'

Replies with data holding DtoOperationQueued, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/operations Read key

Recent terminal operations for this account.

Path

acnointeger
PageNointeger (int32)
PageSizeinteger (int32)
Drawinteger (int64)
Sortstring
Srchstring
SortBystring[][]
SrchBystring[][]
Includestring[]

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/operations \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoApiTermOperationResPaged, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/restart Read and trade key

Restart the account's hosted terminal (a terminal never set up is started). The Idempotency-Key header is required. Needs the Trade permission. Returns the operation id.

Path

acnointeger
Idempotency-Keystring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/restart \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoOperationQueued, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/start Read and trade key

Start the account's hosted terminal. The Idempotency-Key header is required. Needs the Trade permission. Returns the operation id.

Path

acnointeger
Idempotency-Keystring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/start \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoOperationQueued, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/stop Read and trade key

Stop the account's hosted terminal. The Idempotency-Key header is required. Needs the Trade permission. Returns the operation id.

Path

acnointeger
Idempotency-Keystring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/stop \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoOperationQueued, inside the usual envelope.

Endpoints · 5

Settings and symbols

An account's trading settings, the symbols enabled on it, and a symbol's specification and quote.

GET/v1/fxs/accounts/{acno}/settings Read key

The account's trading record: its settings (ACCSTG, the symbol template SYMSTG), mode and money. Exists from the account is added; until its first sync, live account data is empty.

Path

acnointeger

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/settings \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsAcct, inside the usual envelope.

PATCH/v1/fxs/accounts/{acno}/settings Read and trade key

Change the account's settings, as the member screens do, its three signal sets included; every change is written to the account log. Needs the Trade permission. A member session that sends a signal set (SigCold, SigWarm or SigHot) gives its Trading PIN in TrPin, as the member's own AIBot settings do; an API key does not.

Path

acnointeger

Body CmdApiFxsAcctPatch

Enabledboolean
ISNOinteger (int32)
SigModeTMode
DCACooloffMinsinteger (int32)
AccStgDtoEAAccStg
SymbolDefaultsDtoFxsStgSymStg
CascadeSymbolDefaultsboolean
SigColdSigMins
SigWarmSigMins
SigHotSigMins
TrPinstring
ValuesDtoAIBotValues

Example

curl -X PATCH https://api.fincopy.io/v1/fxs/accounts/ACNO/settings \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"Enabled": "", "ISNO": 0, "SigMode": "", "DCACooloffMins": 0, "AccStg": "", "SymbolDefaults": "", "CascadeSymbolDefaults": "", "SigCold": "", "SigWarm": "", "SigHot": "", "TrPin": "", "Values": ""}'

Replies with data holding DtoFxsAcct, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/symbols Read key

The broker's symbols for this account and which are enabled.

Path

acnointeger

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/symbols \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsSymbolCatalog, inside the usual envelope.

PUT/v1/fxs/accounts/{acno}/symbols Read and trade key

Add and/or remove symbols from the account's enabled list (at most 64, using broker names). The server applies the changes to its current list, so a stale picker cannot replace a concurrent change. Needs Trade permission.

Path

acnointeger

Body CmdFxsSymbolsEdit

Addstring[]
Removestring[]

Example

curl -X PUT https://api.fincopy.io/v1/fxs/accounts/ACNO/symbols \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"Add": "", "Remove": ""}'

Replies with data holding DtoFxsAccountState, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/quotes/{symbol} Read key

One symbol's specification and latest quote.

Path

acnointeger
symbolstring

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/quotes/EURUSD \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsSymbolSpec, inside the usual envelope.

Endpoints · 6

Pairs

Each symbol's BUY and SELL books with their settings, on one account or across all of them.

GET/v1/fxs/pairs Read key

Lists the pairs across the caller's accounts.

Path

PageNointeger (int32)
PageSizeinteger (int32)
Drawinteger (int64)
Sortstring
Srchstring
SortBystring[][]
SrchBystring[][]
Includestring[]
acnointeger (int64)
demoboolean
platformFxsPlatform
searchstring

Example

curl -X GET https://api.fincopy.io/v1/fxs/pairs \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsPairResPaged, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/pairs Read key

The account's symbols (pairs), each with its BUY and SELL books and settings.

Path

acnointeger
PageNointeger (int32)
PageSizeinteger (int32)
Drawinteger (int64)
Sortstring
Srchstring
SortBystring[][]
SrchBystring[][]
Includestring[]
searchstring

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/pairs \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsPairResPaged, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/pairs/{prno} Read key

One symbol (pair) of the account.

Path

acnointeger
prnointeger (int64)

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/pairs/PRNO \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsPair, inside the usual envelope.

PATCH/v1/fxs/accounts/{acno}/pairs/{prno} Read key

Change one symbol's settings (SYMSTG, the DCA gates, ExternalRef), as the member screens do. Needs the Trade permission.

Path

acnointeger
prnointeger (int64)

Body CmdApiFxsPairPatch

Enabledboolean
EnDcaGateBuyboolean
EnDcaGateSellboolean
SymbolSettingsDtoEASymStg
TrPinstring
ExternalRefstring
ValuesDtoAIBotValues

Example

curl -X PATCH https://api.fincopy.io/v1/fxs/accounts/ACNO/pairs/PRNO \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"Enabled": "", "EnDcaGateBuy": "", "EnDcaGateSell": "", "SymbolSettings": "", "TrPin": "", "ExternalRef": "", "Values": ""}'

Replies with data holding DtoFxsPair, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/pairs/instrument-suggestions/{symbol} Read key

Path

acnointeger
symbolstring

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/pairs/instrument-suggestions/EURUSD \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoPairInstrumentSuggestions, inside the usual envelope.

PUT/v1/fxs/accounts/{acno}/pairs/instrument-confirm Read key

Path

acnointeger

Body CmdFxsPairInstrumentConfirm

ACNOinteger (int64)
BrokerSymbolstring
InstrumentNamestring
NoMatchboolean
PreviewOnlyboolean

Example

curl -X PUT https://api.fincopy.io/v1/fxs/accounts/ACNO/pairs/instrument-confirm \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ACNO": 0, "BrokerSymbol": "", "InstrumentName": "", "NoMatch": "", "PreviewOnly": ""}'

Replies with data holding DtoFinInstrument, inside the usual envelope.

Endpoints · 9

Trading

Open, add to and close orders, hedge, change an order's exits, cancel, and answer Ask-First DCA proposals.

GET/v1/fxs/dca Read key

Ask-First DCA proposals waiting for an answer, across the caller's accounts, newest first. For a signed-in member session each row says whether the member's trading PIN must be entered to answer it.

Path

acnointeger (int64)

Example

curl -X GET https://api.fincopy.io/v1/fxs/dca \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding a list of DtoFxsOrdr, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/trade/adopt Read and trade key

Adopt open trades: every market position on the account that was opened outside FinCopy becomes FinCopy's own, keeping its ticket, lot, price and open time. FinCopy enables each trade's pair within the plan's pair limit (oldest trade first); a pair that does not fit is refused whole and listed with its tickets. The broker TP and SL a trade holds are kept until its side gets an add or the symbol's TP or SL settings change. Send Preview true to see what would happen without writing anything. Send an Idempotency-Key: a retry returns the first answer. Needs the Trade permission and an EA of 2.38 or later.

Path

acnointeger

Body CmdApiFxsAdopt

Previewboolean

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/trade/adopt \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"Preview": ""}'

Replies with data holding DtoApiFxsAdopt, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/dca Read key

Ask-First DCA proposals waiting for an answer.

Path

acnointeger

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/dca \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding a list of DtoFxsOrdr, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/dca/{oid} Read and trade key

Accept or reject an Ask-First DCA proposal. Needs the Trade permission.

Path

acnointeger
oidinteger (int64)

Body CmdFxsDcaAnswer

Acceptboolean
TrPinstring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/dca/OID \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"Accept": "", "TrPin": ""}'

Replies with data holding DtoFxsOrdr, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/trade/modify Read and trade key

Change an order's TP field, SL field, expiry, or a pending order's price. Needs the Trade permission.

Path

acnointeger
Idempotency-Keystring

Body CmdFxsModify

Ticketinteger (int64)
Pricenumber (double)
StopLossPricenumber (double)
TakeProfitPricenumber (double)
Expirystring (date-time)
RequestIdstring
ClearExpiryboolean
TrPinstring
TrailPercentnumber (double)

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/trade/modify \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"Ticket": 123456789, "Price": 0, "StopLossPrice": 0, "TakeProfitPrice": 0, "Expiry": "", "RequestId": "", "ClearExpiry": "", "TrPin": "", "TrailPercent": 0}'

Replies with data holding DtoFxsAccountState, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/trade/cancel Read and trade key

Cancel an order that has not yet been delivered to the terminal. Needs the Trade permission.

Path

acnointeger

Body CmdFxsCancelWaiting

Oidinteger (int64)
RequestIdstring
TrPinstring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/trade/cancel \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"Oid": 0, "RequestId": "", "TrPin": ""}'

Replies with data holding DtoFxsAccountState, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/trade/preinfo Read key

The facts a trade ticket needs for one symbol: price, lot limits, the side's books and settings. For a signed-in member session it also says whether the member's trading PIN must be entered (a key never needs one).

Path

acnointeger

Body CmdApiFxsPreInfo

PRNOinteger (int64)
SYMstring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/trade/preinfo \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"PRNO": 0, "SYM": ""}'

Replies with data holding DtoFxsPreInfo, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/trade Read and trade key

Make one FXS action (NEW, AVL, AVG, CLO, CLA, CLG, STP, CSL) on one side. The Idempotency-Key header is required. Needs the Trade permission.

Path

acnointeger
Idempotency-Keystring

Body CmdApiFxsOrdrMake

SYMstring
ACTFxsOrderAction
OTYFxsOrderType
LOTnumber (double)
PRCnumber (double)
TIDinteger (int64)
OIDinteger (int64)
SLPnumber (double)
SYMSTGDtoEASymStg
Expirystring (date-time)
ExitsByPriceboolean
TPnumber (double)
SLnumber (double)
TrPinstring
RequestIdstring
RouteIdstring
ChannelIdstring
AIBotAdviceIdstring
AIBotAcceptedSettingsobject

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/trade \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"SYM": "", "ACT": "", "OTY": "", "LOT": 0, "PRC": 0, "TID": 0, "OID": 0, "SLP": 0, "SYMSTG": "", "Expiry": "", "ExitsByPrice": "", "TP": 0, "SL": 0, "TrPin": "", "RequestId": "", "RouteId": "", "ChannelId": "", "AIBotAdviceId": "", "AIBotAcceptedSettings": ""}'

Replies with data holding DtoFxsAccountState, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/trade/hedge Read and trade key

Open a BUY and a SELL on one symbol together. The Idempotency-Key header is required. Needs the Trade permission.

Path

acnointeger
Idempotency-Keystring

Body CmdApiFxsHedgeMake

SYMstring
BUYCmdFxsHedgeLeg
SELLCmdFxsHedgeLeg
TrPinstring
RequestIdstring
RouteIdstring
ChannelIdstring
AIBotAdviceIdstring
AIBotAcceptedSettingsobject

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/trade/hedge \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"SYM": "", "BUY": "", "SELL": "", "TrPin": "", "RequestId": "", "RouteId": "", "ChannelId": "", "AIBotAdviceId": "", "AIBotAcceptedSettings": ""}'

Replies with data holding DtoFxsAccountState, inside the usual envelope.

Endpoints · 6

Orders and history

Live orders and settled history, on one account or across all of them.

GET/v1/fxs/orders Read key

Lists open orders across the caller's accounts.

Path

PageNointeger (int32)
PageSizeinteger (int32)
Drawinteger (int64)
Sortstring
Srchstring
SortBystring[][]
SrchBystring[][]
Includestring[]
acnointeger (int64)
prnointeger (int64)
demoboolean
platformFxsPlatform
searchstring

Example

curl -X GET https://api.fincopy.io/v1/fxs/orders \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsOrdrResPaged, inside the usual envelope.

GET/v1/fxs/history Read key

Lists settled orders across the caller's accounts.

Path

PageNointeger (int32)
PageSizeinteger (int32)
Drawinteger (int64)
Sortstring
Srchstring
SortBystring[][]
SrchBystring[][]
Includestring[]
acnointeger (int64)
prnointeger (int64)
demoboolean
platformFxsPlatform
searchstring

Example

curl -X GET https://api.fincopy.io/v1/fxs/history \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsOrdhResPaged, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/history Read key

Settled orders (closed, cancelled, expired, refused), newest first.

Path

acnointeger
PageNointeger (int32)
PageSizeinteger (int32)
Drawinteger (int64)
Sortstring
Srchstring
SortBystring[][]
SrchBystring[][]
Includestring[]
searchstring

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/history \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsOrdhResPaged, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/history/{oid} Read key

One settled order.

Path

acnointeger
oidinteger (int64)

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/history/OID \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsOrdh, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/orders Read key

Live orders: queued, sent to the terminal, open positions and pending orders.

Path

acnointeger
PageNointeger (int32)
PageSizeinteger (int32)
Drawinteger (int64)
Sortstring
Srchstring
SortBystring[][]
SrchBystring[][]
Includestring[]
searchstring

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/orders \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsOrdrResPaged, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/orders/{oid} Read key

One order: the live order, or, once it has settled, its history row (a DtoFxsOrdh).

Path

acnointeger
oidinteger (int64)

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/orders/OID \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsOrdr, inside the usual envelope.

Endpoints · 7

Performance and activity

Performance by day, the recent window and daily bars, and the activity feed.

GET/v1/fxs/activity Read key

Lists activity across the caller's accounts, newest first.

Path

PageNointeger (int32)
PageSizeinteger (int32)
Drawinteger (int64)
Sortstring
Srchstring
SortBystring[][]
SrchBystring[][]
Includestring[]
acnointeger (int64)
searchstring

Example

curl -X GET https://api.fincopy.io/v1/fxs/activity \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoMemberActivityResPaged, inside the usual envelope.

GET/v1/fxs/performance/window Read key

The last 30 days by currency book (real and demo apart) across the caller's accounts: equity, today's change, realised profit, 7- and 30-day growth, and each account's share. `acno` narrows it to one account; `demo` to demo (true) or real (false) accounts.

Path

acnointeger (int64)
demoboolean

Example

curl -X GET https://api.fincopy.io/v1/fxs/performance/window \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsPerfWindow, inside the usual envelope.

GET/v1/fxs/performance/bars Read key

Daily performance bars across the caller's accounts, per account and per currency book, between two dates (UTC). `acno` narrows it to one account; `demo` to demo (true) or real (false) accounts.

Path

acnointeger (int64)
demoboolean
fromDtstring (date-time)
toDtstring (date-time)

Example

curl -X GET https://api.fincopy.io/v1/fxs/performance/bars \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsPerfBars, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/performance Read key

The account's performance by day between two dates (UTC).

Path

acnointeger
fromDtstring (date-time)
toDtstring (date-time)

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/performance \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding a list of DtoFxsPerf, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/performance/window Read key

The selected account's recent performance window.

Path

acnointeger

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/performance/window \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsPerfWindow, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/performance/bars Read key

The selected account's performance bars.

Path

acnointeger
fromDtstring (date-time)
toDtstring (date-time)

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/performance/bars \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsPerfBars, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/activity Read key

The account's latest activity as the member screens show it (fills, closes, refusals, terminal events).

Path

acnointeger
PageNointeger (int32)
PageSizeinteger (int32)
Drawinteger (int64)
Sortstring
Srchstring
SortBystring[][]
SrchBystring[][]
Includestring[]
searchstring

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/activity \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoMemberActivityResPaged, inside the usual envelope.

Endpoints · 7

Strategies

Your strategies and FinCopy's presets: create, change and delete them, and preview or apply one to an account.

GET/v1/fxs/strategies Read key

Lists the strategies the caller can apply: its own and FinCopy's presets.

Example

curl -X GET https://api.fincopy.io/v1/fxs/strategies \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding a list of DtoFxsStg, inside the usual envelope.

POST/v1/fxs/strategies Read and trade key

Creates one of the caller's own strategies. Needs the Trade permission.

Body CmdFxsStgMake

StratNamestring
RiskLevFxsRiskLev
Enboolean
EnAvgboolean
Virtualboolean
SigModeTMode
DCACooloffMinsDecRng
ACCSTGDtoFxsStgAccStg
SYMSTGDtoFxsStgSymRng
AIBotCmdFxsStgAIBot
CopyFrominteger (int32)
SigColdSigMinsRng
SigWarmSigMinsRng
SigHotSigMinsRng
TrPinstring

Example

curl -X POST https://api.fincopy.io/v1/fxs/strategies \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"StratName": "", "RiskLev": "", "En": "", "EnAvg": "", "Virtual": "", "SigMode": "", "DCACooloffMins": "", "ACCSTG": "", "SYMSTG": "", "AIBot": "", "CopyFrom": 0, "SigCold": "", "SigWarm": "", "SigHot": "", "TrPin": ""}'

Replies with data holding DtoFxsStg, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/strategy/preview Read and trade key

What applying a strategy to this account would change, per symbol, without changing anything. The strategy is one of your own or a FinCopy preset (list them with the strategies route). EA settings only: a strategy's AIBot settings never travel through this API. Needs the Trade permission on the account.

Path

acnointeger

Body CmdApiFxsStgApply

ISNOinteger (int32)

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/strategy/preview \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ISNO": 0}'

Replies with data holding DtoFxsStgCascadePreview, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/strategy/apply Read and trade key

Apply a strategy (one of your own or a FinCopy preset) to this account: the account and its symbols take the strategy's settings, and a side that holds orders keeps what it must keep. The reply counts what changed and what was held. A strategy's AIBot settings never travel this way: AIBot is managed in FinCopy. Needs the Trade permission on the account.

Path

acnointeger

Body CmdApiFxsStgApply

ISNOinteger (int32)

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/strategy/apply \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ISNO": 0}'

Replies with data holding DtoFxsStgCascadeApplyResult, inside the usual envelope.

GET/v1/fxs/strategies/{isno} Read key

Reads one strategy by its strategy number.

Path

isnointeger (int32)

Example

curl -X GET https://api.fincopy.io/v1/fxs/strategies/ISNO \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFxsStg, inside the usual envelope.

PATCH/v1/fxs/strategies/{isno} Read and trade key

Changes one of the caller's own strategies; omitted fields keep their values. FinCopy's presets cannot be changed. Needs the Trade permission.

Path

isnointeger (int32)

Body CmdFxsStgPatch

StratNamestring
RiskLevFxsRiskLev
Enboolean
EnAvgboolean
Virtualboolean
SigModeTMode
DCACooloffMinsDecRng
ACCSTGDtoFxsStgAccStg
SYMSTGDtoFxsStgSymRng
AIBotCmdFxsStgAIBot
SigColdSigMinsRng
SigWarmSigMinsRng
SigHotSigMinsRng
Clearstring[]
TrPinstring

Example

curl -X PATCH https://api.fincopy.io/v1/fxs/strategies/ISNO \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"StratName": "", "RiskLev": "", "En": "", "EnAvg": "", "Virtual": "", "SigMode": "", "DCACooloffMins": "", "ACCSTG": "", "SYMSTG": "", "AIBot": "", "SigCold": "", "SigWarm": "", "SigHot": "", "Clear": "", "TrPin": ""}'

Replies with data holding DtoFxsStg, inside the usual envelope.

DELETE/v1/fxs/strategies/{isno} Read and trade key

Deletes one of the caller's own strategies. FinCopy's presets cannot be deleted. Needs the Trade permission.

Path

isnointeger (int32)

Example

curl -X DELETE https://api.fincopy.io/v1/fxs/strategies/ISNO \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding Boolean, inside the usual envelope.

Endpoints · 2

Signals and alerts

The signals shown for your enabled symbols, and warnings and errors on your accounts.

GET/v1/fxs/signals Read key

Reads the signals shown for the enabled symbols across the caller's accounts.

Example

curl -X GET https://api.fincopy.io/v1/fxs/signals \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoShelfSignals, inside the usual envelope.

GET/v1/fxs/alerts Read key

Lists warning and error activity across the caller's accounts.

Path

PageNointeger (int32)
PageSizeinteger (int32)
Drawinteger (int64)
Sortstring
Srchstring
SortBystring[][]
SrchBystring[][]
Includestring[]

Example

curl -X GET https://api.fincopy.io/v1/fxs/alerts \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoMemberActivityResPaged, inside the usual envelope.

Endpoints · 6

Following changes

Follow what changes: the change feed, the event stream, and webhooks.

GET/v1/changes Read key

What changed on the key owner's accounts, oldest first: Account (each sync and each settings change), Terminal, Pair, Order (queued, picked up, filled, refused, a HYBRID proposal and its answer) and History (settled, and close details arriving later). Each row names the record and its ids; re-read it when you need all of it. Start without a cursor: that returns no rows and a cursor at "now", so read the accounts once, then follow the feed. Keep the returned cursor and call again while `More` is true. The feed runs about ten seconds behind FinCopy's writes, so a write still finishing is read on a later call. `take` is 1 to 1000 (default 500).

Path

cursorstring
takeinteger (int32)

Example

curl -X GET https://api.fincopy.io/v1/changes \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoApiChangeFeed, inside the usual envelope.

GET/v1/webhook Read key

This key's webhook, if one is set (the secret is never shown again). API key only: a webhook belongs to a key, so a member session cannot call it.

Example

curl -X GET https://api.fincopy.io/v1/webhook \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoApiWebhook, inside the usual envelope.

PUT/v1/webhook Read and trade key

Set this key's webhook: an HTTPS address on port 443 that resolves to public addresses only. FinCopy then POSTs the change feed to it (event "changes": Changes, Cursor, More), at least once and oldest first, retrying with back-off and stopping after 20 failures in a row; a retry may repeat rows, and each row is safe to apply twice. Each POST carries X-FinCopy-Timestamp (Unix seconds) and X-FinCopy-Signature: "sha256=" + lowercase hex of HMAC-SHA256(secret, timestamp + "." + raw body). The secret is in this reply only. Setting the webhook again makes a new secret and restarts it from now. API key only, with the Trade permission.

Path

Idempotency-KeystringStable key for one write. Retrying the same request returns its original result.

Body CmdApiWebhookSet

Urlstring

Example

curl -X PUT https://api.fincopy.io/v1/webhook \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"Url": ""}'

Replies with data holding DtoApiWebhook, inside the usual envelope.

DELETE/v1/webhook Read and trade key

Remove this key's webhook. API key only, with the Trade permission.

Path

Idempotency-KeystringStable key for one write. Retrying the same request returns its original result.

Example

curl -X DELETE https://api.fincopy.io/v1/webhook \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding Boolean, inside the usual envelope.

POST/v1/webhook/ping Read and trade key

Send a signed test POST (event "ping") to this key's webhook. API key only, with the Trade permission.

Path

Idempotency-KeystringStable key for one write. Retrying the same request returns its original result.

Example

curl -X POST https://api.fincopy.io/v1/webhook/ping \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoApiWebhookPing, inside the usual envelope.

GET/v1/fxs/stream Read key

A server-sent event stream of changes on the caller's accounts. Each caller holds up to eight streams; a ninth closes the oldest.

Example

curl -X GET https://api.fincopy.io/v1/fxs/stream \
  -H "X-Api-Key: $FINCOPY_KEY"

Endpoints · 18

Other

Endpoints not yet placed in a group.

POST/v1/fxs/waitlist/join Read key

Join the caller's account waitlist. A caller can have one active place per waitlist kind.

Body CmdWaitlistJoin

Kindstring
Platformstring

Example

curl -X POST https://api.fincopy.io/v1/fxs/waitlist/join \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"Kind": "", "Platform": ""}'

Replies with data holding DtoWaitlistState, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/aibot Read key

Read the account's AIBot and AI Advisor settings and state: advice time, apply mode, paid switches, today's asks, included review, AI Advisor balance, latest advice, posture and hourly records. The balance and all Advisor charging belong to FinCopy; no second wallet or Advisor is used.

Path

acnointeger

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoAIBotFullAuto, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/aibot/advisor/preview Read key

Build the next AI Advisor ask for this account without sending it. Kind is ON_DEMAND or PLAN. Preview research is paid by FinCopy; closing the preview sends no Advisor ask and charges no Advisor credits. The preview belongs to this key owner and account and expires in fifteen minutes. Ultra required.

Path

acnointeger
kindstring

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/advisor/preview \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoAdvisorPreview, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/aibot/advisor/send Read key

Send the previewed ask, or ask now with an empty PreviewId. Uses FinCopy's Ultra gate, daily included review, AI Advisor credits and failure refunds. ACNO must match the route. Trade key and Idempotency-Key required.

Path

acnointeger
Idempotency-KeystringStable key for one write. Retrying the same request returns its original result.

Body CmdAdvisorSend

ACNOinteger (int64)
PreviewIdstring
Kindstring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/advisor/send \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ACNO": 0, "PreviewId": "", "Kind": ""}'

Replies with data holding DtoAIBotFullAuto, inside the usual envelope.

PUT/v1/fxs/accounts/{acno}/aibot/advisor/settings Read key

Save the account's AI Advisor preferences (including Advise on via ExcludedSymbols). Server-owned counters, included-review state and timestamps are ignored, as on the member screen. ACNO must match the route. Trade key and Idempotency-Key required; only the account owner's key may save.

Path

acnointeger
Idempotency-KeystringStable key for one write. Retrying the same request returns its original result.

Body CmdAdvisorSettings

ACNOinteger (int64)
SettingsFxsAdvisorSettings

Example

curl -X PUT https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/advisor/settings \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ACNO": 0, "Settings": ""}'

Replies with data holding DtoAIBotFullAuto, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/aibot/advisor/history Read key

The account's latest 100 AI Advisor asks, newest first, with the exact sent context, changes, decisions, included-review use, charges and refunds. The first item is the latest advice.

Path

acnointeger

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/advisor/history \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding a list of DtoAIBotAdvice, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/aibot/advisor/history/{id} Read key

One AI Advisor ask, including its sent context. An id from any other account is not found.

Path

acnointeger
idstring

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/advisor/history/{id} \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoAIBotAdvice, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/aibot/state Read key

Path

acnointeger
Idempotency-KeystringStable key for one write. Retrying the same request returns its original result.

Body CmdAIBotFullAutoState

ACNOinteger (int64)
Statestring
TrPinstring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/state \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ACNO": 0, "State": "", "TrPin": ""}'

Replies with data holding DtoAIBotFullAuto, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/aibot/retune Read key

Path

acnointeger
Idempotency-KeystringStable key for one write. Retrying the same request returns its original result.

Body CmdAIBotRetune

ACNOinteger (int64)
TrPinstring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/retune \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ACNO": 0, "TrPin": ""}'

Replies with data holding DtoAIBotFullAuto, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/aibot/settings Read key

Path

acnointeger
Idempotency-KeystringStable key for one write. Retrying the same request returns its original result.

Body CmdAIBotFullAutoSettings

HedgeOnboolean
ValuesDtoAIBotValues
ResetDrawdownboolean
ACNOinteger (int64)
TradingHoursstring
MaximumHoldHoursnumber (double)
DayFirmPctnumber (double)
DayClosePctnumber (double)
DdFirmPctnumber (double)
DdClosePctnumber (double)
DdMeasurestring
OpenPerSideinteger (int32)T709 (Q375-A): most AIBot trades open on one side at once.
DAYSLnumber (double)T709 (Q396-A): the account's daily loss (ACCSTG.DAYSL); 0 or empty turns it off.
MAXDDFRCnumber (double)
SigWarmSigMins
SigHotSigMins
EntModeTMode
AvgModeTMode
BRISKnumber (double)T709 (Q375-A): risk a trade per side, the account template's and every one of its pairs'; null leaves it.
SRISKnumber (double)
DCACooloffMinsinteger (int32)Minutes between DCA requests or adds on one side; null leaves it.
BALLOWEDAMode[]T709: the methods AIBot may choose per side (never COPY), the account template's and every one of its pairs' (SYMSTG.BALLOWED / SALLOWED); null leaves them.
SALLOWEDAMode[]
BAMODEAMode
SAMODEAMode
AIBotPairDefaultsFxsAIBotStgPair
BNLOTnumber (double)Q446-A: the opening lot per side (lots).
SNLOTnumber (double)
BLGPnumber (double)Q446-A: the ladder per side: level gap (% beyond the previous fill), level multiplier, most levels, group gap (%), group multiplier, most groups.
SLGPnumber (double)
BLMULnumber (double)
SLMULnumber (double)
BLMAXinteger (int32)
SLMAXinteger (int32)
BGGPnumber (double)
SGGPnumber (double)
BGMULnumber (double)
SGMULnumber (double)
BGMAXinteger (int32)
SGMAXinteger (int32)
BTPPnumber (double)Q446-A: TP per side (% beyond the set's average; 0 = no TP).
STPPnumber (double)
BTSPnumber (double)Q446-A: TS per side (% of the TP money) and its on/off (trailing from the TP).
STSPnumber (double)
BTRAILboolean
STRAILboolean
BFRATIOnumber (double)Q446-A: FIRR's reward ratio per side (the TP as a multiple of the SL).
SFRATIOnumber (double)
BSLPnumber (double)Q446-A: the SL a new trade starts with per side (%); 0 is off (AIBot's fallback SL applies).
SSLPnumber (double)
BHRSLbooleanQ446-A: the hard SL per side (the SL sits on the order at the broker).
SHRSLboolean
USEPObooleanQ446-A: pending orders (USEPO), descending lots (USEDESC) and its multiple per side (BDMUL / SDMUL, × the opening lot), and DCAEXP (FinCopy's DCA exponent).
USEDESCboolean
BDMULnumber (double)
SDMULnumber (double)
DCAEXPnumber (double)
TrPinstring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/settings \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"HedgeOn": "", "Values": "", "ResetDrawdown": "", "ACNO": 0, "TradingHours": "", "MaximumHoldHours": 0, "DayFirmPct": 0, "DayClosePct": 0, "DdFirmPct": 0, "DdClosePct": 0, "DdMeasure": "", "OpenPerSide": 0, "DAYSL": 0, "MAXDDFRC": 0, "SigWarm": "", "SigHot": "", "EntMode": "", "AvgMode": "", "BRISK": 0, "SRISK": 0, "DCACooloffMins": 0, "BALLOWED": "", "SALLOWED": "", "BAMODE": "", "SAMODE": "", "AIBotPairDefaults": "", "BNLOT": 0, "SNLOT": 0, "BLGP": 0, "SLGP": 0, "BLMUL": 0, "SLMUL": 0, "BLMAX": 0, "SLMAX": 0, "BGGP": 0, "SGGP": 0, "BGMUL": 0, "SGMUL": 0, "BGMAX": 0, "SGMAX": 0, "BTPP": 0, "STPP": 0, "BTSP": 0, "STSP": 0, "BTRAIL": "", "STRAIL": "", "BFRATIO": 0, "SFRATIO": 0, "BSLP": 0, "SSLP": 0, "BHRSL": "", "SHRSL": "", "USEPO": "", "USEDESC": "", "BDMUL": 0, "SDMUL": 0, "DCAEXP": 0, "TrPin": ""}'

Replies with data holding DtoAIBotFullAuto, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/aibot/pair-mode Read key

Path

acnointeger
Idempotency-KeystringStable key for one write. Retrying the same request returns its original result.

Body CmdAIBotPairMode

ACNOinteger (int64)
Symbolstring
Modestring
TrPinstring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/pair-mode \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ACNO": 0, "Symbol": "EURUSD", "Mode": "", "TrPin": ""}'

Replies with data holding DtoAIBotFullAuto, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/aibot/pair-rules Read key

Path

acnointeger
Idempotency-KeystringStable key for one write. Retrying the same request returns its original result.

Body CmdAIBotPairRules

ValuesDtoAIBotValues
ACNOinteger (int64)
Symbolstring
SYMSTGDtoEASymStg
EntryFxsAIBotEntryRules
TrPinstring
ConfirmClosebooleanT709 incident (Q459-A): the member saw the trades this save's SL would close now and confirms it.

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/pair-rules \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"Values": "", "ACNO": 0, "Symbol": "EURUSD", "SYMSTG": "", "Entry": "", "TrPin": "", "ConfirmClose": ""}'

Replies with data holding DtoAIBotFullAuto, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/aibot/tickets Read key

Path

acnointeger

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/tickets \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoAIBotTicketsView, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/aibot/advise Read key

Path

acnointeger
Idempotency-KeystringStable key for one write. Retrying the same request returns its original result.

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/advise \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoAIBotFullAuto, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/aibot/advice/decide Read key

Path

acnointeger
Idempotency-KeystringStable key for one write. Retrying the same request returns its original result.

Body CmdAIBotAdviceDecide

ACNOinteger (int64)
AdviceIdstring
Acceptboolean
TrPinstring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/advice/decide \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ACNO": 0, "AdviceId": "", "Accept": "", "TrPin": ""}'

Replies with data holding DtoAIBotFullAuto, inside the usual envelope.

POST/v1/fxs/accounts/{acno}/aibot/advice/undo Read key

Path

acnointeger
Idempotency-KeystringStable key for one write. Retrying the same request returns its original result.

Body CmdAIBotAdviceUndo

ACNOinteger (int64)
TrPinstring

Example

curl -X POST https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/advice/undo \
  -H "X-Api-Key: $FINCOPY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ACNO": 0, "TrPin": ""}'

Replies with data holding DtoAIBotFullAuto, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/aibot/advice Read key

Path

acnointeger

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/advice \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoFcAdviceSummaryList, inside the usual envelope.

GET/v1/fxs/accounts/{acno}/aibot/decisions Read key

Path

acnointeger

Example

curl -X GET https://api.fincopy.io/v1/fxs/accounts/ACNO/aibot/decisions \
  -H "X-Api-Key: $FINCOPY_KEY"

Replies with data holding DtoAIBotFullAutoDecisionList, inside the usual envelope.

Objects

AMode
BooleanBotPick
ModeBotValMode
Mode_BotValMode
Valboolean
Optsboolean[]
BotValMode
BrokerServerEnvironment
BrokerServerStatus
CmdAdvisorSend
ACNOinteger (int64)
PreviewIdstring
Kindstring
CmdAdvisorSettings
ACNOinteger (int64)
SettingsFxsAdvisorSettings
CmdAIBotAdviceDecide · T701 (Q10-C): Accept or Reject a waiting advice.
ACNOinteger (int64)
AdviceIdstring
Acceptboolean
TrPinstring
CmdAIBotAdviceUndo · T701 (Q10-C): Undo last advice.
ACNOinteger (int64)
TrPinstring
CmdAIBotFullAutoSettings
HedgeOnboolean
ValuesDtoAIBotValues
ResetDrawdownboolean
ACNOinteger (int64)
TradingHoursstring
MaximumHoldHoursnumber (double)
DayFirmPctnumber (double)
DayClosePctnumber (double)
DdFirmPctnumber (double)
DdClosePctnumber (double)
DdMeasurestring
OpenPerSideinteger (int32)T709 (Q375-A): most AIBot trades open on one side at once.
DAYSLnumber (double)T709 (Q396-A): the account's daily loss (ACCSTG.DAYSL); 0 or empty turns it off.
MAXDDFRCnumber (double)
SigWarmSigMins
SigHotSigMins
EntModeTMode
AvgModeTMode
BRISKnumber (double)T709 (Q375-A): risk a trade per side, the account template's and every one of its pairs'; null leaves it.
SRISKnumber (double)
DCACooloffMinsinteger (int32)Minutes between DCA requests or adds on one side; null leaves it.
BALLOWEDAMode[]T709: the methods AIBot may choose per side (never COPY), the account template's and every one of its pairs' (SYMSTG.BALLOWED / SALLOWED); null leaves them.
SALLOWEDAMode[]
BAMODEAMode
SAMODEAMode
AIBotPairDefaultsFxsAIBotStgPair
BNLOTnumber (double)Q446-A: the opening lot per side (lots).
SNLOTnumber (double)
BLGPnumber (double)Q446-A: the ladder per side: level gap (% beyond the previous fill), level multiplier, most levels, group gap (%), group multiplier, most groups.
SLGPnumber (double)
BLMULnumber (double)
SLMULnumber (double)
BLMAXinteger (int32)
SLMAXinteger (int32)
BGGPnumber (double)
SGGPnumber (double)
BGMULnumber (double)
SGMULnumber (double)
BGMAXinteger (int32)
SGMAXinteger (int32)
BTPPnumber (double)Q446-A: TP per side (% beyond the set's average; 0 = no TP).
STPPnumber (double)
BTSPnumber (double)Q446-A: TS per side (% of the TP money) and its on/off (trailing from the TP).
STSPnumber (double)
BTRAILboolean
STRAILboolean
BFRATIOnumber (double)Q446-A: FIRR's reward ratio per side (the TP as a multiple of the SL).
SFRATIOnumber (double)
BSLPnumber (double)Q446-A: the SL a new trade starts with per side (%); 0 is off (AIBot's fallback SL applies).
SSLPnumber (double)
BHRSLbooleanQ446-A: the hard SL per side (the SL sits on the order at the broker).
SHRSLboolean
USEPObooleanQ446-A: pending orders (USEPO), descending lots (USEDESC) and its multiple per side (BDMUL / SDMUL, × the opening lot), and DCAEXP (FinCopy's DCA exponent).
USEDESCboolean
BDMULnumber (double)
SDMULnumber (double)
DCAEXPnumber (double)
TrPinstring
CmdAIBotFullAutoState
ACNOinteger (int64)
Statestring
TrPinstring
CmdAIBotPairMode · T701 (Q2-B): set one pair's AIBot mode.
ACNOinteger (int64)
Symbolstring
Modestring
TrPinstring
CmdAIBotPairRules · T701 (Q8-A): edit one pair's rules. T709 (Q396-A): the pair's own settings (its per-side TP, SL, TS, opening lot, ladder, trailing and hard SL, and its EntMode / AvgMode) are sent as a partial SYMSTG, checked as the pair's settings are; the entry rules keep only the FinNews filter.
ValuesDtoAIBotValues
ACNOinteger (int64)
Symbolstring
SYMSTGDtoEASymStg
EntryFxsAIBotEntryRules
TrPinstring
ConfirmClosebooleanT709 incident (Q459-A): the member saw the trades this save's SL would close now and confirms it.
CmdAIBotRetune
ACNOinteger (int64)
TrPinstring
CmdApiFxsAcctPatch · Public API settings patch. Account identity comes from the ACNO route. Every field is optional: absent leaves it as stored. SigCold, SigWarm and SigHot are the account's own signal sets (COLD, WARM and HOT), each replaced whole: per side the weakest signal (any step of the scale: BUY VSS-VSB, SELL mirrored VSB-VSS) and trend (any step of the scale, or null for Any) accepted, the lowest confidence, and on COLD and WARM a minimum score 0-10 (HOT has none). Each is checked as the member's own AIBot settings are, and a change is written to the account log. A member session (the member's screens) that sends any of the three sets gives its Trading PIN in TrPin, as the member's own AIBot settings do; an API key does not.
Enabledboolean
ISNOinteger (int32)
SigModeTMode
DCACooloffMinsinteger (int32)
AccStgDtoEAAccStg
SymbolDefaultsDtoFxsStgSymStg
CascadeSymbolDefaultsboolean
SigColdSigMins
SigWarmSigMins
SigHotSigMins
TrPinstring
ValuesDtoAIBotValues
CmdApiFxsAdopt · T709 (Q257-A): press "Adopt open trades" for the account in the route. Preview returns what would happen and writes nothing. Send an Idempotency-Key: a second press with the same key returns the first answer.
Previewboolean
CmdApiFxsHedgeMake · Public paired hedge request. Account identity comes from the ACNO route.
SYMstring
BUYCmdFxsHedgeLeg
SELLCmdFxsHedgeLeg
TrPinstring
RequestIdstring
RouteIdstring
ChannelIdstring
AIBotAdviceIdstring
AIBotAcceptedSettingsobject
CmdApiFxsOrdrMake · Public trade request. Account identity comes from the ACNO route.
SYMstring
ACTFxsOrderAction
OTYFxsOrderType
LOTnumber (double)
PRCnumber (double)
TIDinteger (int64)
OIDinteger (int64)
SLPnumber (double)
SYMSTGDtoEASymStg
Expirystring (date-time)
ExitsByPriceboolean
TPnumber (double)
SLnumber (double)
TrPinstring
RequestIdstring
RouteIdstring
ChannelIdstring
AIBotAdviceIdstring
AIBotAcceptedSettingsobject
CmdApiFxsPairPatch · Public API pair patch. Pair identity comes from the PRNO route.
Enabledboolean
EnDcaGateBuyboolean
EnDcaGateSellboolean
SymbolSettingsDtoEASymStg
TrPinstring
ExternalRefstring
ValuesDtoAIBotValues
CmdApiFxsPreInfo · Public trade preflight request. Account identity comes from the ACNO route.
PRNOinteger (int64)
SYMstring
CmdApiFxsStgApply · Apply one of the member's strategies to the account in the route (preview or apply).
ISNOinteger (int32)
CmdApiWebhookSet · The key's webhook: the HTTPS address (port 443 only) FinCopy POSTs to when the key's accounts change.
Urlstring
CmdFxsCancelWaiting
Oidinteger (int64)
RequestIdstring
TrPinstring
CmdFxsDcaAnswer
Acceptboolean
TrPinstring
CmdFxsHedgeLeg
ACTFxsOrderAction
LOTnumber (double)
SLPnumber (double)
SYMSTGDtoEASymStg
CmdFxsModify · Edit one ticket's own exits (MOD). TrailPercent is the ticket's own TS, % of its TP money (T701 Q3-A): null keeps the ticket's current TS (while it keeps a TP), 0 clears it.
Ticketinteger (int64)
Pricenumber (double)
StopLossPricenumber (double)
TakeProfitPricenumber (double)
Expirystring (date-time)
RequestIdstring
ClearExpiryboolean
TrPinstring
TrailPercentnumber (double)
CmdFxsPairInstrumentConfirm
ACNOinteger (int64)
BrokerSymbolstring
InstrumentNamestring
NoMatchboolean
PreviewOnlyboolean
CmdFxsStgAIBot · TP496 Q285-A: a strategy's AIBot settings as a save sends them. Sent, its two parts replace the strategy's limits and pair defaults (a null part or a null field is then not part of the strategy and never travels); not sent, both stay as they are. T709: Protection (SL or DCA, the ladder) is the strategy's preference; null leaves it.
LimitsFxsAIBotStgLimits
PairDefaultsFxsAIBotStgPair
CmdFxsStgMake
StratNamestring
RiskLevFxsRiskLev
Enboolean
EnAvgboolean
Virtualboolean
SigModeTMode
DCACooloffMinsDecRng
ACCSTGDtoFxsStgAccStg
SYMSTGDtoFxsStgSymRng
AIBotCmdFxsStgAIBot
CopyFrominteger (int32)
SigColdSigMinsRng
SigWarmSigMinsRng
SigHotSigMinsRng
TrPinstring
CmdFxsStgPatch · Edits a strategy: each field sent replaces the stored one (a range whole; a set whole). Clear names the nullable ranges to empty (back to "not part of the strategy"): ACCSTG.<field> or SYMSTG.<field> of a range field, since a null in ACCSTG / SYMSTG means "unchanged". TrPin: the member's Trading PIN (the member routes ask it).
StratNamestring
RiskLevFxsRiskLev
Enboolean
EnAvgboolean
Virtualboolean
SigModeTMode
DCACooloffMinsDecRng
ACCSTGDtoFxsStgAccStg
SYMSTGDtoFxsStgSymRng
AIBotCmdFxsStgAIBot
SigColdSigMinsRng
SigWarmSigMinsRng
SigHotSigMinsRng
Clearstring[]
TrPinstring
CmdFxsSymbolsEdit · Add or remove symbols from the account's enabled list.
Addstring[]
Removestring[]
CmdMemberAccountMake
Platformstring
BrokerServerIdstring
ServerNamestring
AccessPointstring
Loginstring
BrokerPasswordstring
SeatIdstring
ExternalRefstring
RequestIdstringThe API's Idempotency-Key, set by the /v1 make route only.
CmdMemberDemoMake
Platformstring
BrokerServerIdstring
Loginstring
BrokerPasswordstring
CmdMemTerminalDisconnect
TrPinstring
RequestIdstring
CmdTermAccountExternalRef · The managing system's own id for a hosted account; empty clears it.
ExternalRefstring
CmdTermAccountPassword
BrokerPasswordstring
BrokerServerIdstring
Loginstring
CmdWaitlistJoin
Kindstring
Platformstring
Confidence
DecRng
Minnumber (double)
Defnumber (double)
Maxnumber (double)
DeployKind
DeployStatus
DesiredTermState
DtoAdvisorPreview
Idstring
BuiltAtstring (date-time)
ExpiresAtstring (date-time)
Modelstring
Inputstring
ContextJsonstring
EstimatedInputTokensinteger (int32)
EstimatedCostUsdnumber (double)
EstimateNotestring
DtoAIBotAdvice · T701 Phase 4: one AIAdvisor answer as the AIBot page shows it.
Creditsnumber (double)
Includedboolean
Refundedboolean
CreditNotestring
Inputstring
ContextJsonstring
Kindstring
RevisitAtstring (date-time)
InputTokensinteger (int32)
OutputTokensinteger (int32)
Idstring
Triggerstring
AskedAtstring (date-time)
Statusstring
Errorstring
Modelstring
CostUsdnumber (double)
Notestring
PairsFxsAIBotAdvisorPair[]
ChangesFxsAIBotAdvisorChange[]T709 (Q399-A): changes to the account's signal sets.
DecidedAtstring (date-time)
DecidedBystring
DtoAIBotFullAuto
ValuesDtoAIBotValues
StrategyChangesstring[]
StrategyChangedAtstring (date-time)
RetuneValuesDtoAIBotValues
Platformstring
ACNOinteger (int64)
ISNOinteger (int32)
StrategyNamestring
Grantedboolean
Statestring
BreakerTrippedboolean
BreakerReasonstring
BreakerTrippedAtstring (date-time)
TradingHoursstring
MaximumHoldHoursnumber (double)
DayFirmPctnumber (double)
DayClosePctnumber (double)
DdFirmPctnumber (double)
DdClosePctnumber (double)
DdMeasurestring
OpenPerSideinteger (int32)T709 (Q375-A): most AIBot trades open on one side at once (GRID).
DAYSLnumber (double)T709 (Q396-A): the account's daily loss (ACCSTG.DAYSL): AIBot's Stop new trades at stage; 0 or empty is off.
MAXDDFRCnumber (double)
SigColdSigMins
SigWarmSigMins
SigHotSigMins
SigModeTMode
EntModeTMode
AvgModeTMode
DCACooloffMinsinteger (int32)Minutes between the terminal's DCA requests or adds on one side (sent as DCATGMINS).
SYMSTGDtoFxsStgSymStg
AIBotPairDefaultsFxsAIBotStgPair
AdvisorAllowedboolean
AdvisorStaffboolean
AdvisorBalancenumber (double)
AdvisorFxsAdvisorSettings
AdviceModestring
AdviceTimestring
AdviceCallsTodayinteger (int32)
AdviceMaxPerDayinteger (int32)
LastAdviceAtstring (date-time)
CanUndoAdviceboolean
AdvisorOffbooleanAdvisor is disabled or this account has no Ultra entitlement; AIBot retains its own stance.
Posturestring
PostureWhystring
HedgeOnboolean
HourlyRecordsDtoAIBotFullAutoDecision[]
StrategyDtoFxsStg
PairsDtoAIBotFullAutoPair[]
AdviceDtoAIBotAdvice[]
DecisionsDtoAIBotFullAutoDecision[]
OutcomesDtoAIBotFullAutoOutcome[]
LessonsDtoAIBotFullAutoLesson[]
PlaybooksDtoAIBotFullAutoPlaybook[]
DtoAIBotFullAutoDecision
Idstring
ACNOinteger (int64)
LookAtstring (date-time)
Triggerstring
Modelstring
RulesJsonstringThe rule checks behind the decision, per pair and side (no model call).
InputTokensinteger (int32)
OutputTokensinteger (int32)
CostUsdnumber (double)
GuardVerdictstring
AnswerJsonstring
OrdersWrittenFxsAIBotOrderLink[]
DtoAIBotFullAutoLesson
SYMstring
Causestring
SetupTagsstring[]
SuggestedRulestring
MemberAdvicestring
ReviewedAtstring (date-time)
DtoAIBotFullAutoOutcome
Idstring
SYMstring
Sidestring
OpenedAtstring (date-time)
ClosedAtstring (date-time)
Pnlnumber (double)
Swapnumber (double)
Commissionnumber (double)
DurationSecondsinteger (int64)
CloseReasonstring
Maenumber (double)
Mfenumber (double)
SetupTagsstring[]
Lessonstring
RolestringT701 (Q7-A): OPENED or MANAGED.
DtoAIBotFullAutoPair
PendingStancestring
PendingStanceReadingsinteger (int32)
OwnStancestring
StanceSourcestring
BuyCanUndoTuneboolean
SellCanUndoTuneboolean
DeferredAccountValueKeysstring[]
ValuesDtoAIBotValues
BuyEntryWaitstring
SellEntryWaitstring
SYMstring
SYM6string
ENboolean
BuyOpenLotsnumber (double)
SellOpenLotsnumber (double)
FlatbooleanT709 Q446-A: nothing open on either side (the pair's counts, FxsPairDefaults.NothingOpen), so a settings save carries the pair defaults it sends to this pair; a pair holding trades keeps its own.
ModestringT701 (Q2-B): OFF, WATCH (Watch, TP523 Q556-A: recorded only), EXITS (Exits only) or FULL (Full auto).
EntryFxsAIBotEntryRules
SYMSTGDtoEASymStg
StancestringAIBot's own stance, overridden by live enabled Advisor advice for a selected pair.
StanceUntilstring (date-time)
StanceWhystring
Conditionstring
ConditionWhystring
NLOTnumber (double)The pair's starting lot (NLOT).
BrokerMaxLotnumber (double)The broker maximum from the existing symbol spec, not a clamp on saved settings.
TicketsDtoAIBotTicket[]
SlHoldsFxsSlHold[]T709 incident (Q459-A): the SL changes FinCopy holds back on this pair because they would close open trades at once, one per side, each with the trades it would close and their P/L now; Confirm (Trading PIN) sends one, Discard puts the side's settings back to what the EA has.
BuySlOffinteger (int32)T709 incident (Q460-C): the open trades on each side AIBot does not own (trades FinCopy does not own, adopted ones not handed over, Telegram copies, tickets taken back). While a side holds any, it takes no SL; Hand to AIBot hands them over.
SellSlOffinteger (int32)
DtoAIBotFullAutoPlaybook
Idstring
Versionstring
Statestring
Tradesinteger (int64)
Expectancynumber (double)
ProfitFactornumber (double)
DrawdownPctnumber (double)
Rulesstring
AdviceToLoosenstring
CreatedAtstring (date-time)
DtoAIBotPairModeRow
SYMstring
Modestring
DtoAIBotTicket · T701 (Q5-B, Q6-A): an open ticket and who manages its exits.
TIDinteger (int64)
SYMstring
Sidestring
Lotnumber (double)
OpenPricenumber (double)
TakeProfitPricenumber (double)
StopLossPricenumber (double)
TrailPercentnumber (double)
ManagerstringAIBOT, MEMBER (the member took it back), SIGNAL (a Telegram copy, never managed) or OFF (the pair is Off).
RolestringOPENED when AIBot opened it, MANAGED when AIBot set its exits.
ExitsSetboolean
ExitErrorstring
AdoptedbooleanT709: FinCopy adopted this trade from outside; true until Let AIBot manage hands it over.
AdoptedHandedboolean
DtoAIBotTicketsView · T701: the account's pairs with their AIBot mode and the open tickets, for the trade lists and trade window.
ACNOinteger (int64)
PairsDtoAIBotPairModeRow[]
TicketsDtoAIBotTicket[]
DtoAIBotValueCounts
Fixedinteger (int32)
Rangeinteger (int32)
Strategyinteger (int32)
DtoAIBotValues · Ordinary per-value edits. There is no account-wide stored switch.
Numbersobject
Signalsobject
Trendsobject
Confidenceobject
Methodsobject
NewsFilterBooleanBotPick
DtoApiChange · One record FinCopy wrote. `Entity` is Account, Terminal, Pair, Order or History; the ids say which record to re-read. Order and History rows carry the order's state; Account rows the money; Terminal rows the terminal's state.
Entitystring
ChangedAtstring (date-time)
AccountIdstring
ACNOinteger (int64)
ExternalRefstring
PRNOinteger (int64)
PairExternalRefstring
OIDinteger (int64)
TIDinteger (int64)
SYMstring
Sidestring
Actionstring
Statusstring
Signalstring
Errorstring
CloseReasonstring
CloseSourcestring
Balancenumber (double)
Equitynumber (double)
TerminalStatestring
BrokerConnectedboolean
DtoApiChangeFeed · One page of the change feed: oldest first, the cursor to keep, and whether more rows wait.
ChangesDtoApiChange[]
Cursorstring
Moreboolean
DtoApiFxsAdopt · What an adoption did (or, in a preview, would do). Oids are the new FinCopy order ids of the adopted trades.
Adoptedinteger (int32)
Oidsinteger (int64)[]
PairsDtoApiFxsAdoptPair[]
RefusedDtoApiFxsAdoptRefused[]
PairLimitinteger (int32)
Previewboolean
OpenTradeLimitinteger (int32)
DtoApiFxsAdoptPair · One pair's share of an adoption: the buys and sells taken over, and whether FinCopy had to enable the pair.
Symbolstring
Buyinteger (int32)
Sellinteger (int32)
EnabledNowboolean
BuySideDtoApiFxsAdoptSide
SellSideDtoApiFxsAdoptSide
DtoApiFxsAdoptRefused · A pair left out of an adoption, why, and the tickets still outside FinCopy.
Symbolstring
Reasonstring
Ticketsinteger (int64)[]
DtoApiFxsAdoptSide · What the pair's settings do with one side after adoption (adoption never changes AvgMode): its averaging mode, the next level the side would add, the price that add triggers at (a % beyond the newest fill), and whether today's price is already past it, so an automatic add would follow at once.
AvgModestring
NextLevelinteger (int32)
TriggerPricenumber (double)
PastTriggerboolean
Automaticboolean
DtoApiTermOperation
OperationIdstring
ACNOinteger (int64)
Loginstring
KindDeployKind
StatusDeployStatus
FromVersionstring
ToVersionstring
ProgressStatusstring
Reasonstring
Resultstring
StartedAtstring (date-time)
WorkerStartedAtstring (date-time)
EndedAtstring (date-time)
RetryAtstring (date-time)
RetryCountinteger (int32)
ElapsedMsinteger (int64)
DtoApiTermOperationResPaged
dataDtoApiTermOperation[]
pagingResPage
grpsobject
codeinteger (int32)
isOkboolean
messagestring
errorsstring[]
DtoApiWebhook · The key's webhook. `Secret` is shown once, when the webhook is set: FinCopy signs every POST with it.
Urlstring
Secretstring
LastSentAtstring (date-time)
Failuresinteger (int32)
LastErrorstring
ParkedAtstring (date-time)Set when FinCopy stopped sending after 20 failures in a row. Set the webhook again to resume.
DtoApiWebhookPing · A webhook test: whether the receiver answered 2xx, and its HTTP status.
Sentboolean
StatusCodeinteger (int32)
Atstring (date-time)
DtoBrokerServer
Idstring
Platformstring
Namestring
BrokerIdstring
BrokerNamestring
AccessPointsstring[]
Symbolstring
AvailableSymbolsstring[]
Enabledboolean
OperatorCuratedboolean
EnvironmentBrokerServerEnvironment
StatusBrokerServerStatus
FirstSeenAtstring (date-time)
LastSeenAtstring (date-time)
LastVerifiedAtstring (date-time)
SymbolLearnedAtstring (date-time)
SuccessCountinteger (int64)
FailureCountinteger (int64)
NoSymbolMatchPatternstring
NoSymbolMatchAtstring (date-time)
DtoBrokerServerSearch
ServerIdstring
ServerNamestring
Platformstring
EnvironmentBrokerServerEnvironment
StatusBrokerServerStatus
BrokerNamestring
DtoDemoAvailability · Demo places that can start now (a prepared terminal and a free slot), and whether this member already runs one (one at a time).
FreePlacesinteger (int32)
Quotainteger (int32)
MemberHasActiveboolean
DtoEAAccStg · Wire twin of the account settings. This type deliberately has no BSON attributes.
EntModeTMode
TRDSRCTRDSRC
AvgModeTMode
REBALMODERebalanceMode
DAYTPnumber (double)
DAYSLnumber (double)
DAYSTOPboolean
DCAGATEboolean
MGXinteger (int32)
POCNTinteger (int32)
DCAIVMINSinteger (int32)
POCLSMINSinteger (int32)
CAPSIZEnumber (double)
MAXDDFRCnumber (double)
MAXDLYSECSinteger (int32)
SYNCSECSinteger (int32)
CONFboolean
DCATGMINSinteger (int32)
DtoEASymStg · Wire twin of pair settings. This type deliberately has no BSON attributes.
SYMstring
SYM6string
EntModeTMode
AvgModeTMode
BAMODEAMode
SAMODEAMode
BFRATIOnumber (double)
SFRATIOnumber (double)
BRISKnumber (double)
SRISKnumber (double)
BTRAILboolean
STRAILboolean
BALLOWEDAMode[]
SALLOWEDAMode[]
BPENDINGAMode
SPENDINGAMode
REBALboolean
EALVLboolean
BCANboolean
SCANboolean
USEPOboolean
BNLOTnumber (double)
SNLOTnumber (double)
BTPPnumber (double)
STPPnumber (double)
BSLPnumber (double)
SSLPnumber (double)
BTSPnumber (double)
STSPnumber (double)
BHRSLboolean
SHRSLboolean
BBEinteger (int64)[]TP529: BUY/SELL break-even requests, bound to the named broker tickets. Not editable settings.
SBEinteger (int64)[]
T646Bboolean
T646Sboolean
LOGEXPnumber (double)
BGMAXinteger (int32)
SGMAXinteger (int32)
BLMAXinteger (int32)
SLMAXinteger (int32)
BGMULnumber (double)
SGMULnumber (double)
BLMULnumber (double)
SLMULnumber (double)
BLGPnumber (double)
SLGPnumber (double)
BGGPnumber (double)
SGGPnumber (double)
DCAEXPnumber (double)
USEDESCboolean
BDMULnumber (double)
SDMULnumber (double)
DtoFcAdviceSummary · One ask in the member's AIBot history. Refunded: its credits came back (a failed run, or a plan the check refused); ApiCredits and AiCredits still say what it was charged. Staff: asked by a staff member, so nothing was charged (T703 Q48-B).
Idstring
ACNOinteger (int64)
Usestring
Symbolstring
Statusstring
Stagestring
Callstring
Outcomestring
ApiCreditsnumber (double)
AiCreditsnumber (double)
CreatedAtstring (date-time)
Confidencenumber (double)
AIBotModestring
ValidationNotestring
Refundedboolean
Staffboolean
DtoFinInstrument
Namestring
AssetClassstring
TvdColstring
TvdCodestring
Notestring
DtoFleetAccount
Sharedinteger (int64)
AccountDtoTermAccount
TerminalDtoTermTerminal
BrokerServerDtoBrokerServer
LastPingMsnumber (double)
AvgLatencyMsnumber (double)
MemberEmailstring
AccountNamestringThe name on the MT4/MT5 account, as the EA reports it; null until the first sync.
OperationIdstring
DtoFxsAccountState
TerminalIdstring
TERMIDstring
TERMSTARTstring (date-time)
TERMNAMEstring
IDLETERMNAMEstring
IDLETERMSEENstring (date-time)
ACNOinteger (int64)The trading record's number (FxsAcct.ACNO); the Trade window's Pre-info and Make name the account by it.
ISNOinteger (int32)T709: the strategy the account follows (FxsAcct.ISNO; 0 = none), so a member's strategy page lists its accounts.
MARGIN_CCYstring
VirtualbooleanWhether the account's broker server is a demo server.
LastPingMsnumber (double)
AvgLatencyMsnumber (double)
SnapshotDtoFxsSnapshot
PositionsDtoFxsPosition[]
PendingOrdersDtoFxsPosition[]
OrdersDtoFxsOrdr[]
TradedSymbolsstring[]
EnabledSymbolsstring[]Symbols the operator or member enabled for this account (quotes stream every sync).
AllSymbolsstring[]Every symbol the broker offers, as the terminal last reported it.
PairLimitinteger (int32)TRD2-B8: the plan's limit of enabled pairs (an admin override wins, else what the last sync worked out from the seat's plan); null until the account has synced. The symbols editor refuses a pair over it before saving.
PairPreviewsstring[]Enabled symbols on a short AIBot preview: they are quoted but do not count toward PairLimit.
AccountTypeDtoFxsAccountType
SymbolsDtoFxsSymbolSpec[]
DtoFxsAccountType
MarginModestring
HedgeAllowedboolean
FifoCloseboolean
DtoFxsAcct
AIBotHedgeOnboolean
AIBotPosturestring
AIBotPostureWhystring
AIBotPostureHourstring (date-time)
ValuesDtoAIBotValues
Sharedinteger (int64)
AdvisorFxsAdvisorSettings
ACNOinteger (int64)
USNOinteger (int64)
TermAccountIdTextstring
AccountIdTextstring
TerminalIdTextstring
TermKindTermAccountKind
BrokerEnvironmentBrokerServerEnvironment
TerminalStateObservedTermState
OpenLegCountinteger (int32)
RestingOrderCountinteger (int32)
Approvedboolean
NodeIdstring
PlatformFxsPlatform
FxsStatusFxsStatus
FxsStatus_FxsStatus
Loginstring
SVRNAMEstring
ACCTNAMEstring
ACCTHASHstring
TERMIDstring
TERMSTARTstring (date-time)
TERMNAMEstring
IDLETERMNAMEstring
IDLETERMSEENstring (date-time)
BRKRNAMEstring
MARGIN_CCYstring
MARGMODEstring
ACCTHEDGEboolean
ACCTFIFOboolean
SVROFFSECinteger (int32)
ACCTBALnumber (double)
ACCTEQTnumber (double)
ACCTMGNnumber (double)
ACCTMGNFREEnumber (double)
ACCTMGNLVLnumber (double)
ACCTLEVinteger (int32)
ACCTMGNCALLnumber (double)
ACCTMGNSOnumber (double)
ACCTMGNSOMODEstring
STARTBALnumber (double)
AIBotPropFirmboolean
FullAutoFxsFullAutoSettings
ABSPNLAMTnumber (double)
PnlAmtnumber (double)
PnlPctnumber (double)
ABSPNLPCTnumber (double)
UNRPNLAMTnumber (double)
LastPingMsnumber (double)
AvgLatencyMsnumber (double)
LatencySampleAtstring (date-time)
EnBoardboolean
BoardHandlestring
Virtualboolean
ENboolean
ISNOinteger (int32)
SigModeTMode
SigColdSigMins
SigWarmSigMins
SigHotSigMins
DCACooloffMinsinteger (int32)
PairLimitOverrideinteger (int32)
PairLimitLastKnowninteger (int32)
EnSymListstring[]
AvlSymListstring[]
ACCSTGDtoEAAccStg
SYMSTGDtoFxsStgSymStg
SyncDtstring (date-time)
SyncMkinteger (int64)
PairsHashstring
PairSyncDtstring (date-time)
PairSyncMkinteger (int64)
AcctLogstring[]
SnapshotAtstring (date-time)
DayStartAtstring (date-time)
DAYHALTboolean
DAYEQ0number (double)
DAYHALTATstring (date-time)
DayStartEquitynumber (double)
ServerOffsetSecondsnumber (double)
LastPairsAskAtstring (date-time)
LastOrderBacklogAtstring (date-time)
AvlSymCountinteger (int32)
CreatedAtstring (date-time)
UpdatedAtstring (date-time)
OwnerEmailstring
DtoFxsBook
CNTinteger (int32)
TLOTnumber (double)
GAVPnumber (double)
WAVPnumber (double)
TPROnumber (double)
GRPinteger (int32)
LEVinteger (int32)
XLOTnumber (double)
FLOTnumber (double)
SLPRCnumber (double)
TPPRCnumber (double)
TSPRCnumber (double)
SLPnumber (double)
TPNotchinteger (int32)
SLNotchinteger (int32)
TSNotchinteger (int32)
TPMissinginteger (int32)
SLMissinginteger (int32)
TSAnumber (double)
AMODEAMode
DtoFxsOrdh
Idstring
ArchDtstring (date-time)
ArchMkinteger (int64)
FIDstring
USNOinteger (int64)
OwnerEmailstring
OIDinteger (int64)
TIDinteger (int64)
SYMstring
ACNOinteger (int64)
TermKindTermAccountKind
PRNOinteger (int64)
GRPinteger (int32)
LEVinteger (int32)
MULnumber (double)
DIRFxsSide
ACTFxsOrderAction
OTYFxsOrderType
OKIFxsOrderKind
ORDFxsOrderStatus
SIGFxsSignalStatus
ERRstring
CRSNFxsCloseReason
CRSRCstring
LOTnumber (double)
PRCnumber (double)
CMPnumber (double)
Digitsinteger (int32)
SLPnumber (double)
TPPnumber (double)
TSPnumber (double)
SLPRCnumber (double)
TPPRCnumber (double)
ExitTPPRCnumber (double)
ExitSLPRCnumber (double)
ExitTSLevelnumber (double)
ExitTPNotchinteger (int32)
ExitSLNotchinteger (int32)
ExitTSNotchinteger (int32)
ExitTSArmedboolean
ExitTSOnSLFieldboolean
ExitErrinteger (int32)
ExitFixboolean
OwnExitsboolean
TradePinRequiredbooleanThe member's trading PIN is required to answer this DCA proposal.
ODTstring (date-time)
PDTstring (date-time)
EDTstring (date-time)
CDTstring (date-time)
CLSnumber (double)
PROnumber (double)
SWPnumber (double)
COMMnumber (double)
OrdrLogstring[]
AccountIdstring
TerminalIdstring
NodeIdstring
Loginstring
Sourcestring
Actorstring
RequestIdstring
RouteIdstring
ChannelIdstring
HedgeIdstring
RebalIdstring
AutoDecisionIdstring
AIBotAutoboolean
AIBotRolestring
PlannedHoldMinsinteger (int32)
EXPinteger (int64)
EXPRCboolean
CreatedAtstring (date-time)
Messagestring
DtoFxsOrdhResPaged
dataDtoFxsOrdh[]
pagingResPage
grpsobject
codeinteger (int32)
isOkboolean
messagestring
errorsstring[]
DtoFxsOrdr
FIDstring
USNOinteger (int64)
OwnerEmailstring
OIDinteger (int64)
TIDinteger (int64)
SYMstring
ACNOinteger (int64)
TermKindTermAccountKind
PRNOinteger (int64)
GRPinteger (int32)
LEVinteger (int32)
MULnumber (double)
DIRFxsSide
ACTFxsOrderAction
OTYFxsOrderType
OKIFxsOrderKind
ORDFxsOrderStatus
SIGFxsSignalStatus
ERRstring
CRSNFxsCloseReason
CRSRCstring
LOTnumber (double)
PRCnumber (double)
CMPnumber (double)
Digitsinteger (int32)
SLPnumber (double)
TPPnumber (double)
TSPnumber (double)
SLPRCnumber (double)
TPPRCnumber (double)
ExitTPPRCnumber (double)
ExitSLPRCnumber (double)
ExitTSLevelnumber (double)
ExitTPNotchinteger (int32)
ExitSLNotchinteger (int32)
ExitTSNotchinteger (int32)
ExitTSArmedboolean
ExitTSOnSLFieldboolean
ExitErrinteger (int32)
ExitFixboolean
OwnExitsboolean
TradePinRequiredbooleanThe member's trading PIN is required to answer this DCA proposal.
ODTstring (date-time)
PDTstring (date-time)
EDTstring (date-time)
CDTstring (date-time)
CLSnumber (double)
PROnumber (double)
SWPnumber (double)
COMMnumber (double)
OrdrLogstring[]
AccountIdstring
TerminalIdstring
NodeIdstring
Loginstring
Sourcestring
Actorstring
RequestIdstring
RouteIdstring
ChannelIdstring
HedgeIdstring
RebalIdstring
AutoDecisionIdstring
AIBotAutoboolean
AIBotRolestring
PlannedHoldMinsinteger (int32)
EXPinteger (int64)
EXPRCboolean
CreatedAtstring (date-time)
Messagestring
DtoFxsOrdrResPaged
dataDtoFxsOrdr[]
pagingResPage
grpsobject
codeinteger (int32)
isOkboolean
messagestring
errorsstring[]
DtoFxsPair · Wire DTO for a trading pair; it intentionally has no BSON attributes or extra-elements bag.
ValuesDtoAIBotValues
PRNOinteger (int64)
ACNOinteger (int64)
USNOinteger (int64)
OwnerEmailstring
Loginstring
PlatformFxsPlatform
AccountIdstring
NodeIdstring
SYMstring
SYM6string
ExternalRefstring
ENboolean
AIBotModeOFF | WATCH | EXITS | FULLRead-only AIBot mode: OFF (Off), WATCH (Watch), EXITS (Exits only), FULL (Full auto). Set through AIBot, never /v1.
BIDnumber (double)
ASKnumber (double)
CMPnumber (double)
BGRPinteger (int32)
BLEVinteger (int32)
SGRPinteger (int32)
SLEVinteger (int32)
BCNTinteger (int32)
SCNTinteger (int32)
BFPRCnumber (double)
SFPRCnumber (double)
BGAVPnumber (double)
SGAVPnumber (double)
BGLOTnumber (double)
SGLOTnumber (double)
BPROnumber (double)
SPROnumber (double)
APCTnumber (double)
PnlAmtnumber (double)
PnlPctnumber (double)
AbsPnlAmtnumber (double)
AbsPnlPctnumber (double)
BXPRCnumber (double)
BWAVPnumber (double)
BXPROnumber (double)
BTPROnumber (double)
BCPROnumber (double)
BFLOTnumber (double)
BXLOTnumber (double)
BTLOTnumber (double)
BHPOSnumber (double)
BHNEGnumber (double)
BNLPnumber (double)
BNLAnumber (double)
BNLDnumber (double)
BNLDRPLnumber (double)
BNLDTCHboolean
BTSPRCnumber (double)
BTSAnumber (double)
BTPPRCnumber (double)
BTPMISSinteger (int32)
BSLMISSinteger (int32)
BTPAnumber (double)
BOSLPnumber (double)
BSLAnumber (double)
BSLPRCnumber (double)
BFTIXinteger (int64)
BFMKinteger (int64)
BFDTstring (date-time)
BXMKinteger (int64)
BXDTstring (date-time)
SXPRCnumber (double)
SWAVPnumber (double)
SXPROnumber (double)
STPROnumber (double)
SCPROnumber (double)
SFLOTnumber (double)
SXLOTnumber (double)
STLOTnumber (double)
SHPOSnumber (double)
SHNEGnumber (double)
SNLPnumber (double)
SNLAnumber (double)
SNLDnumber (double)
SNLDRPLnumber (double)
SNLDTCHboolean
STSPRCnumber (double)
STSAnumber (double)
STPPRCnumber (double)
STPMISSinteger (int32)
SSLMISSinteger (int32)
SPTAnumber (double)
SOSLPnumber (double)
SSLAnumber (double)
SSLPRCnumber (double)
SFTIXinteger (int64)
SFMKinteger (int64)
SFDTstring (date-time)
SXMKinteger (int64)
SXDTstring (date-time)
ALOTnumber (double)
APROnumber (double)
FxsStatusFxsStatus
FxsStatus_FxsStatus
BPSESHNOinteger (int32)
BCYCLENOinteger (int32)
BCYCLPNLAMTnumber (double)
SPSESHNOinteger (int32)
SCYCLENOinteger (int32)
SCYCLPNLAMTnumber (double)
EnDcaGateBuyboolean
EnDcaGateSellboolean
SYMSTGDtoEASymStg
SpecDtoFxsSpec
PairLogstring[]
AIMiscstring[]
AIMetastring[]
SyncDtstring (date-time)
SyncMkAtstring (date-time)
DtoFxsPairResPaged
dataDtoFxsPair[]
pagingResPage
grpsobject
codeinteger (int32)
isOkboolean
messagestring
errorsstring[]
DtoFxsPerf
ACNOinteger (int64)
USNOinteger (int64)
ValDtstring (date-time)
ACCTEQTnumber (double)
ACCTBALnumber (double)
ACCTMGNnumber (double)
DtoFxsPerfAccountBars
ACNOinteger (int64)
AccountNamestring
Currencystring
BarsDtoFxsPerfBar[]
DtoFxsPerfBar
Datestring (date-time)
Realisednumber (double)
Flownumber (double)
Equitynumber (double)
Balancenumber (double)
ReturnPctnumber (double)
HasDataboolean
DtoFxsPerfBars
FromDtstring (date-time)
ToDtstring (date-time)
AccountsDtoFxsPerfAccountBars[]
CurrenciesDtoFxsPerfCurrencyBars[]
DtoFxsPerfContribution
ACNOinteger (int64)
AccountNamestring
Currencystring
Virtualboolean
Realised30number (double)
SharePctnumber (double)
DtoFxsPerfCurrencyBars
Currencystring
Virtualboolean
BarsDtoFxsPerfBar[]
DtoFxsPerfCurrencyWindow
Currencystring
Virtualboolean
Equitynumber (double)
TodayEquityChangenumber (double)
TodayEquityChangePctnumber (double)
RealisedTodaynumber (double)
RealisedTodayPctnumber (double)
Growth7Pctnumber (double)
Growth30Pctnumber (double)
Realised30number (double)
HasHistoryboolean
DtoFxsPerfWindow
AsOfstring (date-time)
AccountCountinteger (int32)
CurrenciesDtoFxsPerfCurrencyWindow[]
ContributionsDtoFxsPerfContribution[]
DtoFxsPosition
Symbolstring
Ticketinteger (int64)
Oidinteger (int64)
GRPinteger (int32)
LEVinteger (int32)
Sidestring
Lotsnumber (double)
OpenPricenumber (double)
CurrentPricenumber (double)
Profitnumber (double)
Statusstring
OpenedAtstring (date-time)
StopLossPricenumber (double)
TakeProfitPricenumber (double)
ExitTPPRCnumber (double)
ExitSLPRCnumber (double)
ExitTSLevelnumber (double)
ExitTPNotchinteger (int32)
ExitSLNotchinteger (int32)
ExitTSNotchinteger (int32)
ExitTSArmedboolean
ExitTSOnSLFieldboolean
OwnExitsboolean
ExpiresAtstring (date-time)
OrderTypestringThe MetaTrader order type (OP_BUY, OP_SELLLIMIT …); a pending order's kind.
DtoFxsPreInfo
ACNOinteger (int64)
PRNOinteger (int64)
SYMstring
SYM6string
Enabledboolean
Bidnumber (double)
Asknumber (double)
Spreadnumber (double)
QuoteAtstring (date-time)
SpecDtoFxsSpec
BuyBookDtoFxsBook
SellBookDtoFxsBook
SYMSTGDtoEASymStg
BuyLegsDtoFxsPreInfoLeg[]
SellLegsDtoFxsPreInfoLeg[]
PendingOrdersDtoFxsOrdr[]
WaitingOrdersDtoFxsOrdr[]
MARGMODEstring
ACCTHEDGEboolean
ACCTFIFOboolean
TRDSRCTRDSRC
POCLSMINSinteger (int32)
VerbsFxsOrderAction[]
Extrasboolean
PinRequiredboolean
PinSkippedboolean
MARGIN_CCYstring
DtoFxsPreInfoLeg
SYMstring
DIRFxsSide
TIDinteger (int64)
OIDinteger (int64)
LOTnumber (double)
PRCnumber (double)
CMPnumber (double)
PROnumber (double)
GRPinteger (int32)
LEVinteger (int32)
SLPRCnumber (double)
TPPRCnumber (double)
TSPnumber (double)
ExitTPPRCnumber (double)
ExitSLPRCnumber (double)
ExitTSLevelnumber (double)
ExitTPNotchinteger (int32)
ExitSLNotchinteger (int32)
ExitTSNotchinteger (int32)
ExitTSArmedboolean
ExitTSOnSLFieldboolean
OwnExitsboolean
OTYFxsOrderType
ODTstring (date-time)
DtoFxsSnapshot
Atstring (date-time)
Balancenumber (double)
Equitynumber (double)
Marginnumber (double)
FreeMarginnumber (double)
MarginLevelnumber (double)
Leverageinteger (int64)
StopOutCallnumber (double)
StopOutLevelnumber (double)
StopOutModestring
ServerOffsetSecondsinteger (int32)
DtoFxsSpec
SVRNAMEstring
SYMstring
SYM6string
MD5string
DIGITSinteger (int32)
SPREADinteger (int32)
STOPLVLinteger (int32)
FREEZLVLinteger (int32)
CONTRACT_SIZEnumber (double)
MARGIN_PCTnumber (double)
PROFIT_MODEstring
MARGIN_MODEstring
MARGIN_HEDGEnumber (double)
MARGIN_HEDGE_USE_LEGboolean
MARGIN_1LOT_P2number (double)
MARGIN_1LOT_P2_PRCnumber (double)
COMM_1LOTnumber (double)
VOLUME_LIMITnumber (double)
TRADE_MODEstring
EXEC_MODEstring
GTC_MODEstring
ORDER_MODEinteger (int64)
FILLING_MODEinteger (int64)
EXPIRATION_MODEinteger (int64)
MINLOTnumber (double)
MAXLOTnumber (double)
LOTSTEPnumber (double)
SWAP_LONGnumber (double)
SWAP_SHORTnumber (double)
SWAP_TYPEstring
TVnumber (double)
TV_PROFITnumber (double)
TV_LOSSnumber (double)
TSnumber (double)
PTnumber (double)
MARGIN_INITnumber (double)
MARGIN_MAINTnumber (double)
MARGIN_1LOTnumber (double)
MARGIN_1LOT_PRCnumber (double)
QuoteAtstring (date-time)
BIDnumber (double)
ASKnumber (double)
CMPnumber (double)
QTMinteger (int64)
DtoFxsStg
ISNOinteger (int32)
USNOinteger (int64)
OwnerEmailstring
SeedKeystring
StratNamestring
RiskLevFxsRiskLev
SigModeTMode
SigColdSigMinsRng
SigWarmSigMinsRng
SigHotSigMinsRng
Enboolean
EnAvgboolean
Virtualboolean
ACCSTGDtoFxsStgAccStg
SYMSTGDtoFxsStgSymRng
AIBotFxsAIBotStrategy
DCACooloffMinsDecRng
StgLogstring[]
AccountCountinteger (int32)TP496 Q284-B: the accounts on this strategy and their enabled pairs (the caller's own, for a member).
PairCountinteger (int32)
Equitynumber (double)Read-only member account facts; unavailable totals stay null, mixed currencies are never added.
LifetimePnlnumber (double)
Currencystring
Platformsstring
PicFilestringT709 Q412-A: the picture's file name in FinCopy's media folder (null: none, the screens show the initials).
PicUrlstringT709 Q412-A: the picture's path on the API's origin (`/media/stg/<file>`); null when there is none.
RankDtoFxsStgRank
DtoFxsStgAccStg · Wire twin of a strategy's ACCSTG (FxsStgAccStg): its numbers as ranges (T709 Q387-A). No BSON attributes.
EntModeTMode
TRDSRCTRDSRC
AvgModeTMode
REBALMODERebalanceMode
DAYTPDecRng
DAYSLDecRng
DAYSTOPboolean
POCNTDecRng
DCAIVMINSDecRng
POCLSMINSDecRng
MAXDDFRCDecRng
MAXDLYSECSDecRng
SYNCSECSDecRng
CONFboolean
DCAGATEboolean
DtoFxsStgCascadeApplyResult
ISNOinteger (int32)
ACNOinteger (int64)
AccountFieldsWritteninteger (int32)
PairRowsChangedinteger (int32)
PairFieldsWritteninteger (int32)
BuySidesHeldinteger (int32)
SellSidesHeldinteger (int32)
AIBotLimitsWritteninteger (int32)
AIBotPairModesChangedinteger (int32)
AIBotRefusalsinteger (int32)
DtoFxsStgCascadeChange · One field a cascade changes: its name and the value before and after, as text.
Fieldstring
Fromstring
Tostring
DtoFxsStgCascadePair · One pair in a cascade preview. TP496 Q285-A: AIBot lists the AIBot mode, exit template and entry rule changes; AIBotRefused names why the pair's AIBot mode is not changed; ToFullAuto marks a pair the cascade puts on Full auto.
SYMstring
BuyHeldboolean
SellHeldboolean
FieldsToWritestring[]
FieldsHeldstring[]
AIBotDtoFxsStgCascadeChange[]
AIBotRefusedstring
ToFullAutoboolean
DtoFxsStgCascadePreview · What a cascade would change on one account. TP496 Q285-A: AIBotLimits lists the AIBot limits it writes, AIBotLimitsRefused names why none are written. AI Advisor settings and advice time remain per account; the cascade does not change them and AdviceTimeAlso is empty.
ISNOinteger (int32)
ACNOinteger (int64)
AttachesStrategyboolean
AccountFieldsToWritestring[]
PairsDtoFxsStgCascadePair[]
PairCountinteger (int32)
BuyHeldCountinteger (int32)
SellHeldCountinteger (int32)
PairCountChangedinteger (int32)
Loginstring
SVRNAMEstring
AIBotLimitsDtoFxsStgCascadeChange[]
AIBotLimitsRefusedstring
AdviceTimeAlsointeger (int64)[]
FullAutoPairsinteger (int32)
AIBotRefusalsinteger (int32)
DtoFxsStgRank · T709 Q411-A: a strategy's ranking as the strategy list and view routes return it (see FC.Com.Doms.IFxsStgRank). Score null reads "New".
ISNOinteger (int32)
Followersinteger (int32)
Tradesinteger (int32)
Winsinteger (int32)
PnlAmtnumber (double)
EqtBasenumber (double)
BaseAtStartinteger (int32)
BaseInWininteger (int32)
BaseNowinteger (int32)
PnlPctnumber (double)
WinPctnumber (double)
MaxDDPctnumber (double)
Scoreinteger (int32)
WinFromstring (date-time)
WinTostring (date-time)
DtoFxsStgSymRng · T709: wire twin of a strategy's symbol template with ranges (FxsStgSymRng). This type deliberately has no BSON attributes; the ranges are BizJaya.Core's shared DecRng.
BAMODEAMode
SAMODEAMode
BFRATIODecRng
SFRATIODecRng
BRISKDecRng
SRISKDecRng
BTRAILboolean
STRAILboolean
BALLOWEDAMode[]
SALLOWEDAMode[]
BPENDINGAMode
SPENDINGAMode
REBALboolean
EALVLboolean
BCANboolean
SCANboolean
USEPOboolean
BNLOTDecRng
SNLOTDecRng
BTPPDecRng
STPPDecRng
BSLPDecRng
SSLPDecRng
BTSPDecRng
STSPDecRng
BHRSLboolean
SHRSLboolean
LOGEXPDecRng
BGMAXDecRng
SGMAXDecRng
BLMAXDecRng
SLMAXDecRng
BGMULDecRng
SGMULDecRng
BLMULDecRng
SLMULDecRng
BLGPDecRng
SLGPDecRng
BGGPDecRng
SGGPDecRng
DCAEXPDecRng
USEDESCboolean
BDMULDecRng
SDMULDecRng
DtoFxsStgSymStg · Wire twin of the account symbol template. This type deliberately has no BSON attributes.
BAMODEAMode
SAMODEAMode
BFRATIOnumber (double)
SFRATIOnumber (double)
BRISKnumber (double)
SRISKnumber (double)
BTRAILboolean
STRAILboolean
BALLOWEDAMode[]
SALLOWEDAMode[]
BPENDINGAMode
SPENDINGAMode
REBALboolean
EALVLboolean
BCANboolean
SCANboolean
USEPOboolean
BNLOTnumber (double)
SNLOTnumber (double)
BTPPnumber (double)
STPPnumber (double)
BSLPnumber (double)
SSLPnumber (double)
BTSPnumber (double)
STSPnumber (double)
BHRSLboolean
SHRSLboolean
LOGEXPnumber (double)
BGMAXinteger (int32)
SGMAXinteger (int32)
BLMAXinteger (int32)
SLMAXinteger (int32)
BGMULnumber (double)
SGMULnumber (double)
BLMULnumber (double)
SLMULnumber (double)
BLGPnumber (double)
SLGPnumber (double)
BGGPnumber (double)
SGGPnumber (double)
DCAEXPnumber (double)
USEDESCboolean
BDMULnumber (double)
SDMULnumber (double)
DtoFxsSymbolCatalog
TerminalIdstring
UpdatedAtstring (date-time)
AccountTypeDtoFxsAccountType
EnabledSymbolsstring[]Symbols enabled for this account (quotes stream every sync).
AllSymbolsstring[]Every symbol the broker offers, as the terminal last reported it.
SymbolsDtoFxsSymbolSpec[]
DtoFxsSymbolSpec
Symbolstring
Bidnumber (double)
Asknumber (double)
Pointnumber (double)
TickSizenumber (double)
TickValuenumber (double)
ContractSizenumber (double)
QuoteAtstring (date-time)
Digitsinteger (int32)
MinLotnumber (double)
MaxLotnumber (double)
LotStepnumber (double)
StopLevelnumber (double)
FreezeLevelnumber (double)
OrderModeinteger (int64)
ExpirationModeinteger (int64)
TradeModestring
DtoMemberAccount
AIBotDtoMemberAIBotSummary
ShareRoleFxsShareRole
OwnerNamestring
SharesDtoMemberShare[]Who has access to this account: filled only on a row the caller owns, empty on a row shared with the caller.
FleetDtoFleetAccount
StateDtoFxsAccountState
DtoMemberAccountResPaged
dataDtoMemberAccount[]
pagingResPage
grpsobject
codeinteger (int32)
isOkboolean
messagestring
errorsstring[]
DtoMemberActivity
Idstring
USNOinteger (int64)
OwnerEmailstring
AccountIdstring
ACNOinteger (int64)
Kindstring
Statusstring
Titlestring
Detailstring
Levelstring
Atstring (date-time)
DtoMemberActivityResPaged
dataDtoMemberActivity[]
pagingResPage
grpsobject
codeinteger (int32)
isOkboolean
messagestring
errorsstring[]
DtoMemberAIBotSummary · Read-only AIBot and trade-mode summary projected onto a member account row.
Posturestring
Statestring
Grantedboolean
AdviceModestring
BreakerTrippedboolean
BreakerReasonstring
EntryModestring
DcaModestring
SignalModestring
ValueCountsDtoAIBotValueCounts
DtoMemberShare
Namestring
Emailstring
RoleFxsShareRole
DtoOperationQueued
OperationIdstringThe queued terminal operation; null when nothing needed doing.
DtoPairInstrumentCandidate
Namestring
AssetClassstring
TvdColstring
TvdCodestring
Sourcestring
HasFinGraphReadingboolean
DtoPairInstrumentSuggestions
ServerNamestring
BrokerSymbolstring
SuggestionsDtoPairInstrumentCandidate[]
DtoShelfSignal · FinGraph's current FXS reading for one symbol on the member's accounts. The codes are FinGraph's (Signal VSS … VSB, Trend VSD … VSU, Confidence None … VHigh), sent as their names.
Symbolstring
Signalstring
Trendstring
Confidencestring
Scorenumber (double)FinGraph's TA score, -10 … 10.
Atstring (date-time)When FinGraph last wrote this reading.
DtoShelfSignals · The Signals card: the readings, strongest first, and the member's symbols with no fresh reading.
RowsDtoShelfSignal[]
NoReadingstring[]
DtoTermAccount
ACNOinteger (int64)
TMNOinteger (int64)
Idstring
NodeIdstring
USNOinteger (int64)
Platformstring
BrokerServerIdstring
PrivateBrokerAccessPointstring
TerminalIdstring
Loginstring
Capabilitiesstring[]
DesiredStateDesiredTermState
KindTermAccountKind
ExpiresAtstring (date-time)
Approvedboolean
MemberTerminalAlertsboolean
ExternalRefstring
DtoTermTerminal
TMNOinteger (int64)
Idstring
NodeIdstring
USNOinteger (int64)
AccountIdstring
Platformstring
Displayinteger (int32)
ObservedStateObservedTermState
ConnectionStateTerminalConnectionState
LastLoginLogLinestring
TerminalBuildstring
EaVersionstring
PreviousEaVersionstring
RestartCountinteger (int32)
ConsecutiveFailuresinteger (int32)
NextRetryAtstring (date-time)
LastErrorAtstring (date-time)
LastErrorstring
LastHeartbeatAtstring (date-time)
HeartbeatAgeSecondsinteger (int32)
WakeConnectedboolean
BrokerConnectedboolean
BrokerDisconnectedSinceAtstring (date-time)
TerminalTradeAllowedboolean
LastSyncAtstring (date-time)
LastSyncResultstring
PriceTickAtstring (date-time)
PriceLagSecnumber (double)
OpenAlertsstring[]
TerminalMemoryBytesinteger (int64)
CpuPercentnumber (double)
MemoryBytesinteger (int64)
MemoryLimitBytesinteger (int64)
DiskBytesinteger (int64)
LastDiskMeasuredAtstring (date-time)
OomKillCountinteger (int64)
BrokerReconnectDayUtcstring (date-time)
BrokerReconnectsTodayinteger (int32)
PasswordPendingboolean
LastStartedAtstring (date-time)
LastAutomaticReloginAtstring (date-time)
LastBrokerVerifiedStartAtstring (date-time)
LastBrokerFailureStartAtstring (date-time)
HealthySinceAtstring (date-time)
StaleHeartbeatRestartsinteger (int32)
PriceLagRestartDayUtcstring (date-time)
PriceLagRestartsTodayinteger (int32)
OutageActiveboolean
Healthstring
UnitNamestring
Folderstring
DtoWaitlistEntry
Idstring
USNOinteger (int64)
Emailstring
Kindstring
Platformstring
Sincestring (date-time)
Statusstring
NodeIdstring
OfferedAtstring (date-time)
OfferedUntilstring (date-time)
DtoWaitlistState
HasFreeSlotboolean
Kindstring
Platformstring
Positioninteger (int32)
PlaceDtoWaitlistEntry
FxsAdvisorSettings · TP529: the account's L3 module, independent of the deterministic AIBot settings.
Enabledboolean
AdviceTimestring
AdviceModestring
EveryFourHoursboolean
PaidReasksboolean
Manualboolean
ExcludedSymbolsstring[]Only opt-outs are stored, so a pair added later starts included.
AsksTodayinteger (int32)
DayKeystring (date-time)
IncludedUsedboolean
LastAdviceAtstring (date-time)
FxsAIBotAdvisorChange · One setting AIAdvisor wants changed, old to new. FC.Com.Doms.FxsAIBotAdvisorChange.Refused holds the reason the code refused it.
FieldstringA pair's: EXIT.TPP, EXIT.SLP, EXIT.TSP, ENTRY.NewsFilter, AMODE.BUY, AMODE.SELL or a pair setting: NLOT, LGP, GGP, LMAX, GMAX, LMUL, GMUL. The account's (T709, Q399-A): WARM.BuySig, WARM.SellSig, WARM.BuyTrd, WARM.SellTrd, WARM.Conf, WARM.Score, and HOT.BuySig, HOT.SellSig, HOT.BuyTrd, HOT.SellTrd, HOT.Conf (HOT has no score).
Oldstring
Newstring
DirectionstringSHARPEN or LOOSEN.
Whystring
Refusedstring
FxsAIBotAdvisorPair
SYMstring
SYM6string
ConditionstringTRENDING_UP, TRENDING_DOWN, RANGING, VOLATILE or NEWS_RISK.
ConditionWhystring
Stancestring
StanceWhystring
StanceUntilstring (date-time)
NarrowingAppliedboolean
SignalSidestringThe FinGraph reading in this advice's input, retained when Ask-First is accepted later.
ConfidenceBandstring
ChangesFxsAIBotAdvisorChange[]
WatchbooleanTP523 Q556-A: the pair was on Watch: this part of the advice is shown and never applied (its stance and changes), as an account on Watch gets WATCH advice; Undo last advice leaves it alone too.
FxsAIBotEntryRules · T701 (Q8-A): when Full auto opens a side on a FinGraph reading change. T709 (Q378-A, Q385-A): the signal, trend, confidence and score minimums moved into the account's signal sets (FxsAcct.SigWarm, read through the shared SigMinsHlp.Passes); the pair keeps only the FinNews filter.
NewsFilterbooleanSkip a side that FinNews of the last 24 hours on the pair's currencies leans against.
FxsAIBotOrderLink · Value fields copied into AI audit records without depending on the mutable live account document.
AutoDecisionIdstring
OrderIdstring
Ticketinteger (int64)
Symbolstring
Sidestring
FxsAIBotPreferences · The advisor horizon and allowed exit types. The side method alone decides SL versus ladder (Q461-A).
Horizonstring
AllowedExitModesstring[]
FxsAIBotStgLimits · TP496 Q285-A: the AIBot limits a strategy carries to the accounts on it, the fields of FC.Com.Doms.FxsFullAutoSettings a member edits on the AIBot page. Never the switch (State), the grant, the breaker's state or a counter: those stay each account's. A null field is not part of the strategy and never travels; a cascade writes only the fields the strategy holds. T709: the numbers are ranges (Q387-A), a cascade sends each one's Def (Q389-A); the risk dial and its ceiling are gone (Q375-A); FC.Com.Doms.FxsAIBotStgLimits.OpenPerSide is the dial step's "most open per side" standing on its own. The daily loss is ACCSTG.DAYSL, the field the EA reads (Q396-A).
OpenPerSideDecRng
TradingHoursstring
MaximumHoldHoursDecRng
FxsAIBotStgPair
Modestring
EntryFxsAIBotEntryRules
FxsAIBotStrategy · A strategy's AIBot block. FC.Com.Doms.FxsAIBotStrategy.Preferences are the New bot wizard's policy boundaries for the model, not a trade plan. TP496 Q285-A: FC.Com.Doms.FxsAIBotStrategy.Limits and FC.Com.Doms.FxsAIBotStrategy.PairDefaults are the AIBot settings the strategy carries to its accounts and their pairs through a cascade, as its ACCSTG and SYMSTG carry the EA settings.
Kindstring
PreferencesFxsAIBotPreferences
PlaybookVersionIdstring
LimitsFxsAIBotStgLimits
PairDefaultsFxsAIBotStgPair
FxsCloseReason · Why a leg closed, as the EA reports it (`CRSN`).
FxsFullAutoSettings
DdStartBalancenumber (double)
DdPeakEquitynumber (double)
Grantedboolean
Statestring
BreakerTrippedboolean
BreakerReasonstring
BreakerTrippedAtstring (date-time)
BrokerDayKeystring (date-time)Broker-local day key used to reset the daily loss breaker across a date boundary.
TradingHoursstring
MaximumHoldHoursnumber (double)
DayFirmPctnumber (double)
DayClosePctnumber (double)
DdFirmPctnumber (double)
DdClosePctnumber (double)
DdMeasurestring
OpenPerSideinteger (int32)T709 (Q375-A): most AIBot trades open on one side at once (the risk dial's "most open per side", standing on its own). It counts on a GRID side; every other method opens only on a flat side.
UndoAdviceIdstringThe applied advice that Undo last advice reverts.
FxsOrderAction
FxsOrderKind
FxsOrderStatus
FxsOrderType
FxsPlatform
FxsRiskLev
FxsShareRole · An absent or unrecognised role has no trading permission.
FxsSide
FxsSignalStatus
FxsSlHold · T709 incident (Q459-A): a change of one side's SL that FinCopy holds back because it would close open trades at once. The pair's settings (SYMSTG) keep the new values; the EA keeps getting what it has (the Sent fields) until the member confirms the change with the Trading PIN, discards it (the side's settings go back to what the EA has), or the side holds no trade any more. A record with FC.Com.Doms.FxsSlHold.Confirmed set is the member's go-ahead for exactly these values: the next sync sends them.
SidestringBUY or SELL.
AMODEAMode
SLPnumber (double)
HRSLboolean
SentAMODEAMode
SentSLPnumber (double)
SentHRSLboolean
BystringWho wrote the change (a name, AIBot, AIAdvisor, an admin, the EA) and when FinCopy held it.
Atstring (date-time)
RefreshedAtstring (date-time)When the trades and P/L below were last worked out (null: at FC.Com.Doms.FxsSlHold.At).
TradesFxsSlHoldTrade[]The trades the change would close now, and their P/L now (the price it was checked at).
Profitnumber (double)
Pricenumber (double)
Confirmedboolean
ConfirmedBystring
ConfirmedAtstring (date-time)
FxsSlHoldTrade · One open trade a held SL change would close now.
TIDinteger (int64)
LOTnumber (double)
PRCnumber (double)The fill price and the SL price the change would give it.
SLPRCnumber (double)
PROnumber (double)Its P/L now.
SourcestringWho opened it, as FinCopy records it (Outside, Adopted, AIBotAuto, Member ...).
FxsStatus
ObservedTermState
RebalanceMode
ResPage
pageNointeger (int32)
pageSizeinteger (int32)
pageCountinteger (int32)
resCountinteger (int64)
SigMins
Scorenumber (double)
BuySigSignal
BuySig_Signal
SellSigSignal
SellSig_Signal
BuyTrdTrend
BuyTrd_Trend
SellTrdTrend
SellTrd_Trend
ConfConfidence
Conf_Confidence
SigMinsRng
ScoreDecRng
BuySigSignal
BuySig_Signal
SellSigSignal
SellSig_Signal
BuyTrdTrend
BuyTrd_Trend
SellTrdTrend
SellTrd_Trend
ConfConfidence
Conf_Confidence
Signal
TermAccountKind
TerminalConnectionState
TMode
TRDSRC
Trend