/* tslint:disable */ /* eslint-disable */ /** * MetaCopier API * Explore the power of the MetaCopier API! Our RESTful API offers scalable and secure access to accounts, projects, and more. Get started quickly with authentication, explore endpoints, and access code samples in various languages.

All dates are in ISO 8601

This API is not designed for real-time communication purposes. For instance, continuously polling account information such as open positions every second is not recommended.

Our frontend uses this API, so you can look at the requests on our frontend for examples. * * The version of the OpenAPI document: 1.2.6 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; import type { RequestArgs } from './base'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; /** * * @export * @interface AccountDTO */ export interface AccountDTO { /** * * @type {AccountInformationDTO} * @memberof AccountDTO */ 'accountInformation'?: AccountInformationDTO; /** * * @type {string} * @memberof AccountDTO */ 'alias'?: string; /** * Optional callback URL for async account creation. When provided, the API returns 202 Accepted immediately and POSTs the result (AccountDTO or error) to this URL once processing completes. Only 1 account creation per project is processed at a time; additional requests are queued. * @type {string} * @memberof AccountDTO */ 'callbackUrl'?: string; /** * When enabled, any open positions on the account that were originally opened by MetaCopier but are no longer managed, due to technical issues, will be automatically closed. However, this mechanism can occasionally result in false positives. If disabled, such unmanaged positions will remain open, and a notification will be sent to the notification center or to Telegram (if configured). In this case, manual intervention is required. We recommend keeping this option disabled to avoid accidental closures. * @type {boolean} * @memberof AccountDTO */ 'closeUnmanagedPositions'?: boolean; /** * ISO 8601 * @type {string} * @memberof AccountDTO */ 'created'?: string; /** * * @type {string} * @memberof AccountDTO */ 'ctraderClientId'?: string; /** * * @type {string} * @memberof AccountDTO */ 'ctraderClientSecret'?: string; /** * * @type {FeatureDedicatedIpDTO} * @memberof AccountDTO */ 'dedicatedIp'?: FeatureDedicatedIpDTO; /** * ISO 8601 * @type {string} * @memberof AccountDTO */ 'deleted'?: string; /** * If true, the create-account call fails when the account already exists in the project * @type {boolean} * @memberof AccountDTO */ 'failIfAccountExistsInProject'?: boolean; /** * Indicates whether this account has any active copiers. Returns true if at least one copier has active=true, false otherwise. * @type {boolean} * @memberof AccountDTO */ 'hasActiveCopiers'?: boolean; /** * Indicates whether this account has any disabled only copiers. Returns true if at least one copier has active=false, false otherwise. * @type {boolean} * @memberof AccountDTO */ 'hasDisabledCopiers'?: boolean; /** * Indicates whether this account has any monitor-only copiers. Returns true if at least one copier is in monitor only mode (monitoring without copying trades), false otherwise. * @type {boolean} * @memberof AccountDTO */ 'hasMonitorOnlyCopiers'?: boolean; /** * * @type {string} * @memberof AccountDTO */ 'id'?: string; /** * Set labels for your account. If null, this field will not add, update, or delete anything. To delete all labels, set this field to an empty list. * @type {Array} * @memberof AccountDTO */ 'labels'?: Array; /** * For Binance, Bybit, Bitget, BloFin, OKX, Tradovate and Alpaca leave it empty * @type {string} * @memberof AccountDTO */ 'loginAccountNumber'?: string; /** * For cTrader \'token|refreshToken\'. For TradeStation \'token|refreshToken\'. For Binance and Bybit \'apiKey|secretKey\'. For Bitget, BloFin and OKX \'apiKey|secretKey|passphrase\'. For Tradovate and Alpaca \'apiKey|secretKey\'. Only fill this field if you want to update the password or at account creation. When updating the account, you can leave this field empty \"\" - you don\'t have to send the password every time. * @type {string} * @memberof AccountDTO */ 'loginAccountPassword': string; /** * Enter the server address, for example, ICMarketsSC-MT5-4 for MetaTrader, or the URL such as dxtrade.instantfunding.io for DXtrade or mtr-demo-prod.match-trader.com MatchTrader. For CTrader, live.ctraderapi.com:5035 or demo.ctraderapi.com:5035. For TradeLocker, live.tradelocker.com or demo.tradelocker.com. For Binance, Bybit, Bitget, BloFin and OKX \'live\', \'testnet\' or \'demo\'. For TradeStation \'sim\' or \'live\'. For Tradovate \'demo\' or \'live\'. For Alpaca \'paper\' or \'live\'. * @type {string} * @memberof AccountDTO */ 'loginServer': string; /** * * @type {FeatureMyHomeIpDTO} * @memberof AccountDTO */ 'myHomeIp'?: FeatureMyHomeIpDTO; /** * Indicates whether the integration runs in native mode (applies only to MetaTrader 4/5 connectors). If true, the solution operates via the official MetaTrader terminal (native). If false, it connects directly to the server without using the terminal (non-native). Non-native mode can achieve lower latency for high-frequency trading (HFT) strategies, but for 99% of typical use cases native mode is sufficiently fast. If the non-native mode fails or becomes unavailable, the system will automatically fall back to native mode. For all other connectors, the integration is always native. * @type {boolean} * @memberof AccountDTO */ 'nativeMode'?: boolean; /** * Indicates whether this is a prop firm account. * @type {boolean} * @memberof AccountDTO */ 'propFirm'?: boolean; /** * * @type {RegionDTO} * @memberof AccountDTO */ 'region': RegionDTO; /** * When set to true, skips credential validation during account creation. Use with caution, the account will be created without verifying login credentials. * @type {boolean} * @memberof AccountDTO */ 'skipCredentialCheck'?: boolean; /** * * @type {AccountStatusDTO} * @memberof AccountDTO */ 'status'?: AccountStatusDTO; /** * * @type {string} * @memberof AccountDTO */ 'statusMessage'?: string; /** * When enabled, puts the account in read-only mode, preventing any new trades from being opened or existing trades from being modified or closed. Use this when you want to use the account as a read-only master. * @type {boolean} * @memberof AccountDTO */ 'tradingDisabled'?: boolean; /** * * @type {AccountTypeDTO} * @memberof AccountDTO */ 'type': AccountTypeDTO; } /** * Is synced every minute * @export * @interface AccountInformationDTO */ export interface AccountInformationDTO { /** * Indicates whether an account duplication has been detected in this project * @type {boolean} * @memberof AccountInformationDTO */ 'accountDuplicationInProjectDetected'?: boolean; /** * Account margin mode: HEDGING, NETTING, or EXCHANGE * @type {string} * @memberof AccountInformationDTO */ 'accountMode'?: AccountInformationDTOAccountModeEnum; /** * Average drawdown percentage during trading period (%) * @type {number} * @memberof AccountInformationDTO */ 'avgDrawdown'?: number; /** * * @type {number} * @memberof AccountInformationDTO */ 'balance'?: number; /** * * @type {number} * @memberof AccountInformationDTO */ 'brokeTimeOffsetToUtc'?: number; /** * * @type {ProxyDTO} * @memberof AccountInformationDTO */ 'configuredProxy'?: ProxyDTO; /** * * @type {boolean} * @memberof AccountInformationDTO */ 'connected'?: boolean; /** * Only for MT4/MT5 * @type {number} * @memberof AccountInformationDTO */ 'credit'?: number; /** * * @type {string} * @memberof AccountInformationDTO */ 'currency'?: string; /** * The drawdown percentage of the account * @type {number} * @memberof AccountInformationDTO */ 'drawdown'?: number; /** * Indicates the account environment: LIVE, DEMO, or TESTNET. Null if detection is not supported for this broker type * @type {string} * @memberof AccountInformationDTO */ 'environment'?: AccountInformationDTOEnvironmentEnum; /** * * @type {number} * @memberof AccountInformationDTO */ 'equity'?: number; /** * The fallback mode is active (This means something is not working properly, and the system switches to the fallback mode) * @type {boolean} * @memberof AccountInformationDTO */ 'fallbackMode'?: boolean; /** * * @type {number} * @memberof AccountInformationDTO */ 'freeMargin'?: number; /** * Indicates if history fetching has been deactivated for this account * @type {boolean} * @memberof AccountInformationDTO */ 'historyDeactivated'?: boolean; /** * Indicates if the account is performing excessive trading activity. When true, history fetching may be disabled to reduce broker load * @type {boolean} * @memberof AccountInformationDTO */ 'isHyperactive'?: boolean; /** * * @type {boolean} * @memberof AccountInformationDTO */ 'isInvestorPassword'?: boolean; /** * Indicates if the account is using native mode * @type {boolean} * @memberof AccountInformationDTO */ 'isNative'?: boolean; /** * Latency to the broker\'s access server * @type {number} * @memberof AccountInformationDTO */ 'latencyInMs'?: number; /** * * @type {number} * @memberof AccountInformationDTO */ 'leverage'?: number; /** * Maximum drawdown percentage - worst peak-to-trough decline (%) * @type {number} * @memberof AccountInformationDTO */ 'maxDrawdown'?: number; /** * List of missing symbol mappings for this account * @type {Array} * @memberof AccountInformationDTO */ 'missingSymbolMappings'?: Array; /** * True if there is an open position (buy or sell) * @type {boolean} * @memberof AccountInformationDTO */ 'openPositions'?: boolean; /** * Number of open positions (buy or sell) * @type {number} * @memberof AccountInformationDTO */ 'openPositionsCount'?: number; /** * * @type {Array} * @memberof AccountInformationDTO */ 'pendingApprovals'?: Array; /** * True if there is a pending order (buy limit, sell limit, etc * @type {boolean} * @memberof AccountInformationDTO */ 'pendingOrders'?: boolean; /** * Number of pending orders (buy limit, sell limit, etc) * @type {number} * @memberof AccountInformationDTO */ 'pendingOrdersCount'?: number; /** * Indicates that the open positions between the master and slave accounts are not synchronized due to failed open or close operations * @type {boolean} * @memberof AccountInformationDTO */ 'positionMismatch'?: boolean; /** * * @type {Array} * @memberof AccountInformationDTO */ 'profitTargetsStatus'?: Array; /** * * @type {number} * @memberof AccountInformationDTO */ 'profitThisMonth'?: number; /** * * @type {number} * @memberof AccountInformationDTO */ 'profitThisWeek'?: number; /** * * @type {number} * @memberof AccountInformationDTO */ 'profitToday'?: number; /** * * @type {ProxyDTO} * @memberof AccountInformationDTO */ 'proxy'?: ProxyDTO; /** * * @type {Array} * @memberof AccountInformationDTO */ 'riskLimitsStatus'?: Array; /** * * @type {string} * @memberof AccountInformationDTO */ 'status'?: string; /** * * @type {number} * @memberof AccountInformationDTO */ 'unrealizedProfit'?: number; /** * * @type {number} * @memberof AccountInformationDTO */ 'usedMargin'?: number; /** * * @type {Array} * @memberof AccountInformationDTO */ 'walletBalances'?: Array; /** * * @type {boolean} * @memberof AccountInformationDTO */ 'wrongCredentials'?: boolean; } export const AccountInformationDTOAccountModeEnum = { Netting: 'NETTING', Hedging: 'HEDGING', Exchange: 'EXCHANGE' } as const; export type AccountInformationDTOAccountModeEnum = typeof AccountInformationDTOAccountModeEnum[keyof typeof AccountInformationDTOAccountModeEnum]; export const AccountInformationDTOEnvironmentEnum = { Live: 'LIVE', Demo: 'DEMO', Testnet: 'TESTNET' } as const; export type AccountInformationDTOEnvironmentEnum = typeof AccountInformationDTOEnvironmentEnum[keyof typeof AccountInformationDTOEnvironmentEnum]; /** * Contains daily performance metrics for an account, updated at 00:00 UTC. * @export * @interface AccountPerformanceDTO */ export interface AccountPerformanceDTO { /** * Unique identifier of the account. * @type {string} * @memberof AccountPerformanceDTO */ 'accountId'?: string; /** * Account\'s balance as recorded at 00:00 UTC. * @type {number} * @memberof AccountPerformanceDTO */ 'balance'?: number; /** * Currency in which the account balance and equity are denominated. * @type {string} * @memberof AccountPerformanceDTO */ 'currency'?: string; /** * Drawdown at 00:00 UTC, indicating the peak-to-trough loss as of the recorded time. * @type {number} * @memberof AccountPerformanceDTO */ 'currentDrawdown'?: number; /** * Customer\'s email * @type {string} * @memberof AccountPerformanceDTO */ 'customerEmail'?: string; /** * Date of the performance record, reflecting the 00:00 UTC data capture time. * @type {string} * @memberof AccountPerformanceDTO */ 'date'?: string; /** * Indicates whether the account is marked as deleted. * @type {boolean} * @memberof AccountPerformanceDTO */ 'deleted'?: boolean; /** * Account\'s equity as recorded at 00:00 UTC, reflecting current unrealized profits/losses at that time. * @type {number} * @memberof AccountPerformanceDTO */ 'equity'?: number; /** * List of historical positions relevant to the account\'s performance as of the recorded date. * @type {Array} * @memberof AccountPerformanceDTO */ 'history'?: Array; /** * Monthly net profit data, where the key is the month (as an integer starting at 1 for January) and the value is the net profit earned in that month. * @type {{ [key: string]: { [key: string]: number; }; }} * @memberof AccountPerformanceDTO */ 'netProfits'?: { [key: string]: { [key: string]: number; }; }; } /** * Read only * @export * @interface AccountStatusDTO */ export interface AccountStatusDTO { /** * * @type {number} * @memberof AccountStatusDTO */ 'id': number; /** * * @type {string} * @memberof AccountStatusDTO */ 'name'?: string; } /** * Select allowed account types for the white-label solution. If not specified, all account types are allowed. * @export * @interface AccountTypeDTO */ export interface AccountTypeDTO { /** * * @type {number} * @memberof AccountTypeDTO */ 'id': number; /** * * @type {string} * @memberof AccountTypeDTO */ 'name'?: string; } /** * Access policy configuration for this API key. Controls which AccountInformationDTO fields are visible and which endpoints are accessible. * @export * @interface ApiKeyAccessPolicyDTO */ export interface ApiKeyAccessPolicyDTO { /** * List of allowed CORS (Cross-Origin Resource Sharing) domains. If specified, only requests from these origins will be allowed. Supports wildcards. Examples: \'https://example.com\', \'https://_*.example.com\', \'http://localhost:3000\'. If null or empty, all origins are allowed. * @type {Array} * @memberof ApiKeyAccessPolicyDTO */ 'allowedCorsOrigins'?: Array; /** * List of allowed IP addresses or CIDR subnets. If specified, only requests from these IPs will be allowed. Supports both IPv4 and IPv6. Examples: \'192.168.1.100\', \'10.0.0.0/24\', \'2001:db8::/32\'. If null or empty, all IPs are allowed. * @type {Array} * @memberof ApiKeyAccessPolicyDTO */ 'allowedIpAddresses'?: Array; /** * Whether the access policy is enabled. If false, all restrictions are disabled and the API key has full access. Default is true. * @type {boolean} * @memberof ApiKeyAccessPolicyDTO */ 'enabled'?: boolean; /** * Endpoint access policy mode: ALLOW_LIST (only listed endpoints are accessible) or DENY_LIST (listed endpoints are blocked). Default is ALLOW_LIST if not specified. * @type {string} * @memberof ApiKeyAccessPolicyDTO */ 'endpointPolicyMode'?: ApiKeyAccessPolicyDTOEndpointPolicyModeEnum; /** * List of REST endpoints with their HTTP methods. Supports wildcards: \'*\' for single segment, \'**\' for multiple segments, \'{variable}\' for path variables. Examples: \'/rest/api/v1/projects/_*\' matches any direct child, \'/rest/api/v1/projects/_**\' matches all descendants. Behavior depends on endpointPolicyMode: ALLOW_LIST = only these endpoints accessible, DENY_LIST = these endpoints blocked. * @type {Array} * @memberof ApiKeyAccessPolicyDTO */ 'endpoints'?: Array; /** * Field access policy mode: ALLOW_LIST (only listed fields are visible) or DENY_LIST (listed fields are hidden). Default is DENY_LIST if not specified. * @type {string} * @memberof ApiKeyAccessPolicyDTO */ 'fieldPolicyMode'?: ApiKeyAccessPolicyDTOFieldPolicyModeEnum; /** * List of DTO fields with their class name and field name. Allows filtering fields from multiple DTOs. Behavior depends on fieldPolicyMode: ALLOW_LIST = only these fields visible, DENY_LIST = these fields hidden. If null or empty and mode is ALLOW_LIST, no fields are visible. If null or empty and mode is DENY_LIST, all fields are visible. * @type {Array} * @memberof ApiKeyAccessPolicyDTO */ 'fields'?: Array; /** * List of frontend features to hide from the user interface. Frontend application should check this list and hide corresponding UI components. Examples: FINANCIAL_OVERVIEW to hide balance, equity, profit displays. * @type {Array} * @memberof ApiKeyAccessPolicyDTO */ 'hiddenFrontendFeatures'?: Array; } export const ApiKeyAccessPolicyDTOEndpointPolicyModeEnum = { AllowList: 'ALLOW_LIST', DenyList: 'DENY_LIST' } as const; export type ApiKeyAccessPolicyDTOEndpointPolicyModeEnum = typeof ApiKeyAccessPolicyDTOEndpointPolicyModeEnum[keyof typeof ApiKeyAccessPolicyDTOEndpointPolicyModeEnum]; export const ApiKeyAccessPolicyDTOFieldPolicyModeEnum = { AllowList: 'ALLOW_LIST', DenyList: 'DENY_LIST' } as const; export type ApiKeyAccessPolicyDTOFieldPolicyModeEnum = typeof ApiKeyAccessPolicyDTOFieldPolicyModeEnum[keyof typeof ApiKeyAccessPolicyDTOFieldPolicyModeEnum]; export const ApiKeyAccessPolicyDTOHiddenFrontendFeaturesEnum = { FinancialOverview: 'FINANCIAL_OVERVIEW' } as const; export type ApiKeyAccessPolicyDTOHiddenFrontendFeaturesEnum = typeof ApiKeyAccessPolicyDTOHiddenFrontendFeaturesEnum[keyof typeof ApiKeyAccessPolicyDTOHiddenFrontendFeaturesEnum]; /** * * @export * @interface ApiKeyDTO */ export interface ApiKeyDTO { /** * * @type {ApiKeyAccessPolicyDTO} * @memberof ApiKeyDTO */ 'accessPolicy'?: ApiKeyAccessPolicyDTO; /** * You have to set it during resource creation, after that, it is only read-only * @type {string} * @memberof ApiKeyDTO */ 'accountId'?: string; /** * * @type {string} * @memberof ApiKeyDTO */ 'alias'?: string; /** * * @type {number} * @memberof ApiKeyDTO */ 'id'?: number; /** * * @type {string} * @memberof ApiKeyDTO */ 'key'?: string; /** * Permission type: READ_WRITE or READ_ONLY * @type {string} * @memberof ApiKeyDTO */ 'permissionType'?: ApiKeyDTOPermissionTypeEnum; /** * You have to set it during resource creation, after that, it is only read-only * @type {string} * @memberof ApiKeyDTO */ 'projectId'?: string; } export const ApiKeyDTOPermissionTypeEnum = { ReadWrite: 'READ_WRITE', ReadOnly: 'READ_ONLY' } as const; export type ApiKeyDTOPermissionTypeEnum = typeof ApiKeyDTOPermissionTypeEnum[keyof typeof ApiKeyDTOPermissionTypeEnum]; /** * List of REST endpoints with their HTTP methods. Supports wildcards: \'*\' for single segment, \'**\' for multiple segments, \'{variable}\' for path variables. Examples: \'/rest/api/v1/projects/_*\' matches any direct child, \'/rest/api/v1/projects/_**\' matches all descendants. Behavior depends on endpointPolicyMode: ALLOW_LIST = only these endpoints accessible, DENY_LIST = these endpoints blocked. * @export * @interface ApiKeyEndpointDTO */ export interface ApiKeyEndpointDTO { /** * HTTP method * @type {string} * @memberof ApiKeyEndpointDTO */ 'method': ApiKeyEndpointDTOMethodEnum; /** * REST endpoint path pattern. Supports wildcards: \'*\' matches one path segment, \'**\' matches multiple segments, \'{variable}\' matches path variables. Examples: \'/rest/api/v1/projects/_*\', \'/rest/api/v1/projects/_**\', \'/rest/api/v1/projects/{projectId}/strategies\' * @type {string} * @memberof ApiKeyEndpointDTO */ 'path': string; } export const ApiKeyEndpointDTOMethodEnum = { Get: 'GET', Post: 'POST', Put: 'PUT', Delete: 'DELETE' } as const; export type ApiKeyEndpointDTOMethodEnum = typeof ApiKeyEndpointDTOMethodEnum[keyof typeof ApiKeyEndpointDTOMethodEnum]; /** * * @export * @interface ApprovalDTO */ export interface ApprovalDTO { /** * The account UUID * @type {string} * @memberof ApprovalDTO */ 'accountFromId': string; /** * The ticket number of the position * @type {number} * @memberof ApprovalDTO */ 'ticket': number; /** * You can override the volume (lots). If not specified, it will use the lot size specified by the copier * @type {number} * @memberof ApprovalDTO */ 'volume'?: number; } /** * Response returned when account creation is processed asynchronously via callback URL * @export * @interface AsyncAccountCreationResponseDTO */ export interface AsyncAccountCreationResponseDTO { /** * * @type {AccountDTO} * @memberof AsyncAccountCreationResponseDTO */ 'account'?: AccountDTO; /** * The callback URL where the result will be sent * @type {string} * @memberof AsyncAccountCreationResponseDTO */ 'callbackUrl'?: string; /** * Error message (only present when status is FAILED) * @type {string} * @memberof AsyncAccountCreationResponseDTO */ 'error'?: string; /** * Status message * @type {string} * @memberof AsyncAccountCreationResponseDTO */ 'message'?: string; /** * Unique request ID for tracking this async operation * @type {string} * @memberof AsyncAccountCreationResponseDTO */ 'requestId'?: string; /** * Processing status of the async request * @type {string} * @memberof AsyncAccountCreationResponseDTO */ 'status'?: AsyncAccountCreationResponseDTOStatusEnum; } export const AsyncAccountCreationResponseDTOStatusEnum = { Queued: 'QUEUED', Processing: 'PROCESSING', Completed: 'COMPLETED', Failed: 'FAILED' } as const; export type AsyncAccountCreationResponseDTOStatusEnum = typeof AsyncAccountCreationResponseDTOStatusEnum[keyof typeof AsyncAccountCreationResponseDTOStatusEnum]; /** * Audit log entry representing an API operation * @export * @interface AuditLogDTO */ export interface AuditLogDTO { /** * Account alias/name for easier identification * @type {string} * @memberof AuditLogDTO */ 'accountAlias'?: string; /** * Account ID if the operation is specific to an account * @type {string} * @memberof AuditLogDTO */ 'accountId'?: string; /** * API Key alias/name for easier identification * @type {string} * @memberof AuditLogDTO */ 'apiKeyAlias'?: string; /** * API Key ID that made the request * @type {number} * @memberof AuditLogDTO */ 'apiKeyId'?: number; /** * Duration of the operation in milliseconds * @type {number} * @memberof AuditLogDTO */ 'durationMs'?: number; /** * API endpoint that was called * @type {string} * @memberof AuditLogDTO */ 'endpoint'?: string; /** * Error message if the operation failed * @type {string} * @memberof AuditLogDTO */ 'errorMessage'?: string; /** * Unique identifier for the audit log entry * @type {string} * @memberof AuditLogDTO */ 'id'?: string; /** * Client IP address * @type {string} * @memberof AuditLogDTO */ 'ipAddress'?: string; /** * HTTP method used * @type {string} * @memberof AuditLogDTO */ 'method'?: string; /** * Project ID associated with this operation * @type {string} * @memberof AuditLogDTO */ 'projectId'?: string; /** * Project name for easier identification * @type {string} * @memberof AuditLogDTO */ 'projectName'?: string; /** * Query parameters if any * @type {string} * @memberof AuditLogDTO */ 'queryString'?: string; /** * Request body (sanitized, passwords removed) * @type {string} * @memberof AuditLogDTO */ 'requestBody'?: string; /** * Size of request body in bytes * @type {number} * @memberof AuditLogDTO */ 'requestBodySize'?: number; /** * Request headers as JSON string (sensitive headers removed) * @type {string} * @memberof AuditLogDTO */ 'requestHeaders'?: string; /** * Response body (only for error responses) * @type {string} * @memberof AuditLogDTO */ 'responseBody'?: string; /** * Size of response body in bytes * @type {number} * @memberof AuditLogDTO */ 'responseBodySize'?: number; /** * Server hostname that processed the request * @type {string} * @memberof AuditLogDTO */ 'serverHost'?: string; /** * HTTP status code of the response * @type {number} * @memberof AuditLogDTO */ 'statusCode'?: number; /** * Whether the operation was successful (2xx status) * @type {boolean} * @memberof AuditLogDTO */ 'success'?: boolean; /** * Timestamp when the operation was performed * @type {string} * @memberof AuditLogDTO */ 'timestamp'?: string; /** * User agent string from the client * @type {string} * @memberof AuditLogDTO */ 'userAgent'?: string; } /** * Information about a closed position * @export * @interface ClosedPositionInfo */ export interface ClosedPositionInfo { /** * Error message if close failed * @type {string} * @memberof ClosedPositionInfo */ 'error'?: string; /** * Broker position ID * @type {string} * @memberof ClosedPositionInfo */ 'positionId'?: string; /** * Whether the close was successful * @type {boolean} * @memberof ClosedPositionInfo */ 'success'?: boolean; /** * Symbol * @type {string} * @memberof ClosedPositionInfo */ 'symbol'?: string; } /** * Contact information for signal providers * @export * @interface ContactDTO */ export interface ContactDTO { /** * Discord username or server invite. This provides a community-oriented communication channel. * @type {string} * @memberof ContactDTO */ 'discord'?: string; /** * Email contact for inquiries and support. * @type {string} * @memberof ContactDTO */ 'email'?: string; /** * Telegram username or contact information. This provides an alternative communication channel for support and updates. * @type {string} * @memberof ContactDTO */ 'telegram'?: string; /** * Additional website or social media link for contact purposes. * @type {string} * @memberof ContactDTO */ 'website'?: string; /** * WhatsApp contact information. Include country code (e.g., +1234567890). This provides an additional channel for communication with subscribers. * @type {string} * @memberof ContactDTO */ 'whatsapp'?: string; } /** * If you add a copier to a strategy, only the properties \'active\', \'multiplier\', and the feature \'FeatureCopierFilterDTO\' are available. Copying is only allowed from an account; copying from one strategy to another strategy is not allowed. * @export * @interface CopierDTO */ export interface CopierDTO { /** * Controls whether the copier is active or disabled. When false (inactive), the copier is fully disabled/detached and will not copy any new trades and existing open positions are no longer managed. When true, the copier operates normally. * @type {boolean} * @memberof CopierDTO */ 'active'?: boolean; /** * When enabled, the magic number from the master account\'s order will be copied to the corresponding trade on the slave account. If the master\'s magic number is 0 (or absent), no magic number is stamped on the copy — the field is omitted in the outgoing order rather than sent as 0. If `customMagicNumber` is also set to a non-zero value, `customMagicNumber` takes precedence and overrides this behavior. * @type {boolean} * @memberof CopierDTO */ 'copyMagicNumber'?: boolean; /** * When enabled, the copier will also replicate any open positions on the master account to the slave account at the time of activation. * @type {boolean} * @memberof CopierDTO */ 'copyOpenPositions'?: boolean; /** * Enabling this option is not recommended. Comments on the slave account are used for internal tracking purposes, and if missing, open positions may under certain circumstances be incorrectly detected as unmanaged. When enabled, the original order comment from the master account will be copied to the corresponding order on the slave account. If disabled, the default tracking comment will be used instead. * @type {boolean} * @memberof CopierDTO */ 'copyOriginalComment'?: boolean; /** * If the copier belongs to a strategy, this setting will be ignored. * @type {boolean} * @memberof CopierDTO */ 'copyStopLoss'?: boolean; /** * If the copier belongs to a strategy, this setting will be ignored. * @type {boolean} * @memberof CopierDTO */ 'copyTakeProfit'?: boolean; /** * Custom comment to be used for trades. If specified, this comment will be used instead of the default tracking comment. * @type {string} * @memberof CopierDTO */ 'customComment'?: string; /** * Custom magic number to be stamped on every copied trade on the slave account, overriding the master\'s magic number regardless of the `copyMagicNumber` setting. Only applies to copied trades — trades opened directly on the slave (manual or by other systems) are not affected. The value 0 is treated as \'not set\' (no override is applied, and no magic number is sent on the copy); use null/omit the field for the same effect. To apply a magic number, send any positive integer. * @type {number} * @memberof CopierDTO */ 'customMagicNumber'?: number; /** * Set the master balance and equity to the specified value. A value of 0 means deactivated. If set to 1000, the lot size calculation for the slave account will use 1000 as the master balance/equity. If the copier belongs to a strategy, this setting will be ignored. * @type {number} * @memberof CopierDTO */ 'fixMasterBalanceAndEquity'?: number; /** * Set the slave balance and equity to the specified value. A value of 0 means deactivated. If set to 1000, the lot size calculation for the slave account will use 1000 as the slave balance/equity. If the copier belongs to a strategy, this setting will be ignored. * @type {number} * @memberof CopierDTO */ 'fixSlaveBalanceAndEquity'?: number; /** * Set the lot size to a specific value, only applicable when the scaleType is set to \'3\' (Fixed lot size). If the copier belongs to a strategy, this setting will be ignored. * @type {number} * @memberof CopierDTO */ 'fixedLotSize'?: number; /** * If set to true, when the calculated lot size is for example 0.005, it will be adjusted to the minimum size of the symbol. If set to false, the trade will not be executed. If the copier belongs to a strategy, this setting will be ignored. * @type {boolean} * @memberof CopierDTO */ 'forceMinTrade'?: boolean; /** * Place more trades if max lot size for a specific symbol is reached. Not available for Binance, Bybit, Bitget, BloFin, OKX, TradeStation, Tradovate and Alpaca. * @type {boolean} * @memberof CopierDTO */ 'forcePositionLotSize'?: boolean; /** * * @type {string} * @memberof CopierDTO */ 'fromAccountAlias'?: string; /** * You have to set it during resource creation, after that, it is only read-only * @type {string} * @memberof CopierDTO */ 'fromAccountId'?: string; /** * You have to set it during resource creation, after that, it is only read-only * @type {string} * @memberof CopierDTO */ 'fromStrategyId'?: string; /** * * @type {string} * @memberof CopierDTO */ 'fromStrategyName'?: string; /** * When enabled, the comment will be hidden, leaving the comment field empty. Furthermore, any positions opened manually or by other systems with an empty comment field will be closed to prevent them from remaining open in case of an error. It is recommended to enable this option only if absolutely necessary. * @type {boolean} * @memberof CopierDTO */ 'hideComment'?: boolean; /** * * @type {string} * @memberof CopierDTO */ 'id'?: string; /** * For the lot size calculation, the contract size (lot size) of the symbol will be ignored. * @type {boolean} * @memberof CopierDTO */ 'ignoreContractSize'?: boolean; /** * When enabled, the lot size calculation will ignore currency differences between the master and slave accounts—no conversion will be applied. If false, and the currencies of the master and slave accounts differ, the lot size calculation will include a conversion to account for the currency difference. * @type {boolean} * @memberof CopierDTO */ 'ignoreCurrency'?: boolean; /** * Adjust the lot size based on the Martingale multiplier. If there is a significant difference in balance/equity between the master and slave accounts, the lot size on the slave account may be rounded down. For example, if trades of 0.02 and 0.04 lots are placed on the master account (balance 4000 USD), a standard copier would open 0.01 and 0.01 lots on the slave account (balance 1000 USD - which is incorrect). However, if this option is activated, it will open 0.01 and 0.02 lots. Default is false. If the copier belongs to a strategy, this setting will be ignored. * @type {boolean} * @memberof CopierDTO */ 'martingaleStrategy'?: boolean; /** * Sets the maximum lot size for each position. If a position exceeds this size, it will be adjusted to this maximum limit. A value of 0 means deactivated. * @type {number} * @memberof CopierDTO */ 'maxLotSize'?: number; /** * Limits the maximum number of open positions the copier can maintain at any given time. If the limit is reached, new positions will be skipped until existing positions are closed. A value of 0 means the feature is deactivated. * @type {number} * @memberof CopierDTO */ 'maxOpenPositions'?: number; /** * Set the slippage (deviation) in points. A value of 0 means deactivated. For scalping strategies with a close take profit, it\'s recommended to set the value low, for example, 1-3 points (10 points = 1 pip). A common value is 20. A value of 0 means deactivated (Trade is always executed at actual price - recommended if you use martingale/hedging/grid). If the copier belongs to a strategy, this setting will be ignored. * @type {number} * @memberof CopierDTO */ 'maxSlippage'?: number; /** * When enabled, the total lot size of all open positions (related to this copier) will not exceed this value, new positions will be skipped until existing positions are closed. A value of 0 means deactivated. * @type {number} * @memberof CopierDTO */ 'maximumLot'?: number; /** * Defines the maximum allowed amplification when forceMinTrade would increase the calculated slave lot to the broker minimum. This check only applies when the slave broker\'s minimum lot size for the symbol is greater than the master broker\'s minimum lot size. If the amplification (slave min lot / calculated lot) is equal to or greater than this value, the trade is skipped. A value of 0 means deactivated. Example: master min lot 0.01, slave min lot 1.00, calculated lot 0.10 → amplification = 1.00 / 0.10 = 10.0x → skipped if threshold <= 10.0. If both brokers have the same min lot size, this check is not applied. * @type {number} * @memberof CopierDTO */ 'minVolumeSafetySkipThresholdMultiplier'?: number; /** * Indicates whether this copier is in monitor-only mode. When true, the copier monitors the source account and manages existing open positions (can close, modify them) but will not copy any new trades. When false, the copier operates in normal copying mode. * @type {boolean} * @memberof CopierDTO */ 'monitorOnly'?: boolean; /** * Set the multiplier. Default is 1.000 * @type {number} * @memberof CopierDTO */ 'multiplier'?: number; /** * If enabled, the retry mechanism activates when a broker rejects the request or fails to respond. If set to false, the request is sent only once. For Martingale strategies, it is recommended to activate this option, especially when copying between different brokers with varying market opening/closing times. For strategies with small pip profits and larger lot sizes, it is better to deactivate the retry mechanism. For HFT (High-Frequency Trading), it is also better to deactivate it. * @type {boolean} * @memberof CopierDTO */ 'openRetry'?: boolean; /** * Specifies the total duration (in minutes) during which the retry mechanism will attempt to resend a rejected or failed request. If set to 0, the system will retry indefinitely. Once this duration elapses, no further retry attempts will be made. This setting is applicable only if \'openRetry\' is set to true. * @type {number} * @memberof CopierDTO */ 'openRetryTimeoutInMinutes'?: number; /** * If enabled, the order direction is reversed. Useful for trading strategies that require inverse operations. * @type {boolean} * @memberof CopierDTO */ 'reverse'?: boolean; /** * * @type {ScaleTypeDTO} * @memberof CopierDTO */ 'scaleType'?: ScaleTypeDTO; /** * This setting allows traders to choose whether or not to replicate pending orders (orders that have not yet been executed). Skipping pending orders is highly recommended. By default, this option is blocked. If you are an expert trader, please contact us to unlock this option. If the copier belongs to a strategy, this setting will be ignored. For DXtrade is not supported. For TradeLocker, MatchTrader, Binance, Bybit, Bitget, BloFin, OKX, TradeStation, Tradovate and Alpaca, quotes are not in real-time, so small slippage settings are not recommended. * @type {boolean} * @memberof CopierDTO */ 'skipPendingOrders'?: boolean; /** * You have to set it during resource creation, after that, it is only read-only * @type {string} * @memberof CopierDTO */ 'toAccountId'?: string; /** * You have to set it during resource creation, after that, it is only read-only * @type {string} * @memberof CopierDTO */ 'toStrategyId'?: string; } /** * DTO representing a copier setting field that can be controlled for override in signal provider features * @export * @interface CopierSettingFieldDTO */ export interface CopierSettingFieldDTO { /** * Human-readable description of what this setting controls * @type {string} * @memberof CopierSettingFieldDTO */ 'description'?: string; /** * The field name from CopierDTO * @type {string} * @memberof CopierSettingFieldDTO */ 'name'?: string; } /** * Map of copier IDs to their original states before maintenance. Used to restore copiers to their exact previous state. * @export * @interface CopierStateDTO */ export interface CopierStateDTO { /** * * @type {boolean} * @memberof CopierStateDTO */ 'active'?: boolean; /** * * @type {boolean} * @memberof CopierStateDTO */ 'monitorOnly'?: boolean; } /** * You have only to set the id e.g 1 for USD, 2 for EUR, 3 for CHF. Example: {id:1} * @export * @interface CurrencyTypeDTO */ export interface CurrencyTypeDTO { /** * * @type {number} * @memberof CurrencyTypeDTO */ 'id': number; /** * * @type {string} * @memberof CurrencyTypeDTO */ 'name'?: string; } /** * * @export * @interface CustomerDTO */ export interface CustomerDTO { /** * * @type {boolean} * @memberof CustomerDTO */ 'blocked'?: boolean; /** * ISO 8601 * @type {string} * @memberof CustomerDTO */ 'created'?: string; /** * * @type {string} * @memberof CustomerDTO */ 'email'?: string; /** * * @type {number} * @memberof CustomerDTO */ 'id'?: number; /** * * @type {boolean} * @memberof CustomerDTO */ 'kyc'?: boolean; /** * * @type {PayoutDTO} * @memberof CustomerDTO */ 'payoutMethod'?: PayoutDTO; /** * Permission level for this customer in the project * @type {string} * @memberof CustomerDTO */ 'permissionType'?: CustomerDTOPermissionTypeEnum; /** * ISO 8601 * @type {string} * @memberof CustomerDTO */ 'tos'?: string; } export const CustomerDTOPermissionTypeEnum = { ReadWrite: 'READ_WRITE', ReadOnly: 'READ_ONLY' } as const; export type CustomerDTOPermissionTypeEnum = typeof CustomerDTOPermissionTypeEnum[keyof typeof CustomerDTOPermissionTypeEnum]; /** * Customer information within a project * @export * @interface CustomerSummaryDTO */ export interface CustomerSummaryDTO { /** * Number of accounts owned by this customer in this project * @type {number} * @memberof CustomerSummaryDTO */ 'accountCount'?: number; /** * Whether customer is blocked * @type {boolean} * @memberof CustomerSummaryDTO */ 'blocked'?: boolean; /** * Customer creation date * @type {string} * @memberof CustomerSummaryDTO */ 'created'?: string; /** * Customer ID * @type {number} * @memberof CustomerSummaryDTO */ 'customerId'?: number; /** * Customer email * @type {string} * @memberof CustomerSummaryDTO */ 'email'?: string; /** * Customer permission in the project * @type {string} * @memberof CustomerSummaryDTO */ 'permission'?: string; } /** * Dashboard storage for bulk operations * @export * @interface DashboardStorageDTO */ export interface DashboardStorageDTO { /** * List of dashboards * @type {Array} * @memberof DashboardStorageDTO */ 'dashboards'?: Array; /** * Timestamp when data was synced * @type {string} * @memberof DashboardStorageDTO */ 'syncedAt'?: string; } /** * Data collector record containing equity, balance, and floating PnL time-series data for an account at a specific point in time * @export * @interface DataCollectorRecordDTO */ export interface DataCollectorRecordDTO { /** * Account ID * @type {string} * @memberof DataCollectorRecordDTO */ 'accountId'?: string; /** * Account balance (closed positions only) at the time of recording. Represents the account value based on closed trades only. * @type {number} * @memberof DataCollectorRecordDTO */ 'balance'?: number; /** * Account equity (including floating PnL) at the time of recording. Represents the current account value including open positions. * @type {number} * @memberof DataCollectorRecordDTO */ 'equity'?: number; /** * Floating PnL (unrealized profit/loss from open positions) at the time of recording. Calculated as equity minus balance. * @type {number} * @memberof DataCollectorRecordDTO */ 'floatingPnL'?: number; /** * Unique record identifier * @type {string} * @memberof DataCollectorRecordDTO */ 'id'?: string; /** * Timestamp in milliseconds (Unix epoch) when this data was recorded * @type {number} * @memberof DataCollectorRecordDTO */ 'timestamp'?: number; } /** * Performance split by trade direction * @export * @interface DirectionPerformanceDTO */ export interface DirectionPerformanceDTO { /** * Net profit for buy trades * @type {number} * @memberof DirectionPerformanceDTO */ 'buyNetProfit'?: number; /** * Number of buy trades * @type {number} * @memberof DirectionPerformanceDTO */ 'buyTrades'?: number; /** * Win rate for buy trades (%) * @type {number} * @memberof DirectionPerformanceDTO */ 'buyWinRate'?: number; /** * Net profit for sell trades * @type {number} * @memberof DirectionPerformanceDTO */ 'sellNetProfit'?: number; /** * Number of sell trades * @type {number} * @memberof DirectionPerformanceDTO */ 'sellTrades'?: number; /** * Win rate for sell trades (%) * @type {number} * @memberof DirectionPerformanceDTO */ 'sellWinRate'?: number; } /** * Request to duplicate a dashboard * @export * @interface DuplicateDashboardRequestDTO */ export interface DuplicateDashboardRequestDTO { /** * Optional name for the duplicated dashboard. Defaults to \'{original name} (Copy)\' * @type {string} * @memberof DuplicateDashboardRequestDTO */ 'name'?: string; } /** * Aggregated earnings summary across all billing periods * @export * @interface EarningsSummaryDTO */ export interface EarningsSummaryDTO { /** * Number of currently active (non-deleted) follower subscriptions * @type {number} * @memberof EarningsSummaryDTO */ 'activeFollowers'?: number; /** * Percentage MetaCopier retains as platform fee (e.g. 30 means provider receives 70%) * @type {number} * @memberof EarningsSummaryDTO */ 'metaCopierFeePercent'?: number; /** * Net amount actually credited to the provider\'s project balance after MetaCopier fee deduction * @type {number} * @memberof EarningsSummaryDTO */ 'totalCreditedNet'?: number; /** * Total gross amount from all follower charges across all invoice statuses, before MetaCopier fee deduction * @type {number} * @memberof EarningsSummaryDTO */ 'totalEarnedGross'?: number; /** * Gross amount from PAID invoices only * @type {number} * @memberof EarningsSummaryDTO */ 'totalEarnedGrossPaid'?: number; /** * Gross amount from OPEN (unpaid) invoices only * @type {number} * @memberof EarningsSummaryDTO */ 'totalEarnedGrossUnpaid'?: number; /** * Gross amount from VOID (cancelled) invoices only * @type {number} * @memberof EarningsSummaryDTO */ 'totalEarnedGrossVoid'?: number; /** * Total number of unique follower accounts ever seen, including deleted ones * @type {number} * @memberof EarningsSummaryDTO */ 'totalFollowers'?: number; } /** * DTO for approval feature (copier) (PRO) * @export * @interface FeatureApprovalDTO */ export interface FeatureApprovalDTO { /** * Activate the approval. This property is always set to true. * @type {boolean} * @memberof FeatureApprovalDTO */ 'activateApproval'?: boolean; } /** * DTO for block hedging feature (copier) * @export * @interface FeatureBlockHedgingDTO */ export interface FeatureBlockHedgingDTO { /** * If true, the copier will skip opening a position when the slave account already has an open position with the same symbol but in the opposite direction (BUY vs SELL). This is useful for prop firms that prohibit hedging. * @type {boolean} * @memberof FeatureBlockHedgingDTO */ 'blockHedging'?: boolean; } /** * DTO for the break-even feature (copier/account) (PRO) * @export * @interface FeatureBreakEvenDTO */ export interface FeatureBreakEvenDTO { /** * If true and no reverseTriggerInPoints/reverseStopLossInPoints are set, the break-even logic operates in reverse using triggerInPoints/stopLossInPoints. If reverseTriggerInPoints/reverseStopLossInPoints are set, this field is ignored and both normal and reverse break-even run simultaneously. * @type {boolean} * @memberof FeatureBreakEvenDTO */ 'reverse'?: boolean; /** * Defines the distance in points from the entry price at which the take profit will be placed after the reverse break-even is triggered. * @type {number} * @memberof FeatureBreakEvenDTO */ 'reverseStopLossInPoints'?: number; /** * Specifies the number of points the trade must move against the position (in loss) to trigger the reverse break-even logic. When set together with reverseStopLossInPoints, the reverse break-even runs simultaneously with the normal break-even. A value of 0 disables the reverse trigger. * @type {number} * @memberof FeatureBreakEvenDTO */ 'reverseTriggerInPoints'?: number; /** * Defines the distance in points from the entry price at which the stop loss will be placed after the break-even logic is triggered. * @type {number} * @memberof FeatureBreakEvenDTO */ 'stopLossInPoints'?: number; /** * Defines the break-even per symbol. * @type {{ [key: string]: FeatureBreakEvenDTO; }} * @memberof FeatureBreakEvenDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureBreakEvenDTO; }; /** * Specifies the number of points required for the trade to trigger the break-even logic. Once the profit reaches this value, the stop loss will be adjusted. A value of 0 disables the trigger. * @type {number} * @memberof FeatureBreakEvenDTO */ 'triggerInPoints'?: number; } /** * DTO for copier filter feature (copier) * @export * @interface FeatureCopierFilterDTO */ export interface FeatureCopierFilterDTO { /** * Regex (case insensitive) applied to the comment field to filter. If multiple filters are specified, they are combined using an OR condition. * @type {Array} * @memberof FeatureCopierFilterDTO */ 'comment'?: Array; /** * Regex (case insensitive) applied to magic number field (MetaTrader -> magic number, DXtrade/TradeLocker/MatchTrader/Binance/Bybit/Bitget/BloFin/OKX/TradeStation/Tradovate/Alpaca -> no field and CTrader -> label) to filter. If multiple filters are specified, they are combined using an OR condition. * @type {Array} * @memberof FeatureCopierFilterDTO */ 'magicNumber'?: Array; /** * Maximum lot size on the master. If the master position lot size is greater than this value, the position will be skipped. Set to null or 0 to disable. * @type {number} * @memberof FeatureCopierFilterDTO */ 'maxLotSize'?: number; /** * Minimum lot size on the master. If the master position lot size is less than this value, the position will be skipped. Set to null or 0 to disable. * @type {number} * @memberof FeatureCopierFilterDTO */ 'minLotSize'?: number; } /** * * @export * @interface FeatureDTO */ export interface FeatureDTO { /** * You have to set it during resource creation, after that, it is only read-only * @type {string} * @memberof FeatureDTO */ 'accountId'?: string; /** * You have to set it during resource creation, after that, it is only read-only * @type {string} * @memberof FeatureDTO */ 'copierId'?: string; /** * ISO 8601 * @type {string} * @memberof FeatureDTO */ 'created'?: string; /** * You have to set it during resource creation, after that, it is only read-only. Use this to attach copier features to a Signal Follower feature. * @type {string} * @memberof FeatureDTO */ 'featureId'?: string; /** * * @type {string} * @memberof FeatureDTO */ 'id'?: string; /** * You have to set it during resource creation, after that, it is only read-only * @type {string} * @memberof FeatureDTO */ 'projectId'?: string; /** * * @type {FeatureSettingDTO} * @memberof FeatureDTO */ 'setting': FeatureSettingDTO; /** * * @type {FeatureTypeDTO} * @memberof FeatureDTO */ 'type': FeatureTypeDTO; } /** * DTO for daily profit target feature (account) * @export * @interface FeatureDailyProfitTargetDTO */ export interface FeatureDailyProfitTargetDTO { /** * Reset this target if the balance falls below the target. For example, after a withdrawal. * @type {boolean} * @memberof FeatureDailyProfitTargetDTO */ 'autoResetIfBalanceIsBelow'?: boolean; /** * Enter a daily absolute profit target in account currency. If the target is reached, all positions will be closed (unless \'pauseInsteadOfClose\' is enabled) and new ones will be blocked until the next day. Set to 0 to deactivate. For example if is set to 1300, the profit target is 1300 in the account currency. * @type {number} * @memberof FeatureDailyProfitTargetDTO */ 'dailyAbsoluteProfitTarget'?: number; /** * Enter a daily target in %. If the target is reached, all positions will be closed (unless \'pauseInsteadOfClose\' is enabled). New positions will not be copied until the next day, and any positions placed outside our system will be closed immediately (if \'pauseInsteadOfClose\' is false). Set to 0 to deactivate. * @type {number} * @memberof FeatureDailyProfitTargetDTO */ 'dailyProfitTarget'?: number; /** * Enter a daily relative profit target in account currency. If the target is reached, all positions will be closed (unless \'pauseInsteadOfClose\' is enabled) and new ones will be blocked until the next day. Set to 0 to deactivate. For example if is set to 300 and account balance is 1000, the profit target is 1300 in the account currency. * @type {number} * @memberof FeatureDailyProfitTargetDTO */ 'dailyRelativeProfitTarget'?: number; /** * If set to \'true\', when the profit target is reached, the copier will pause and stop opening new positions instead of closing all existing positions. The open positions will remain active. If set to \'false\', all positions will be closed when the target is reached. * @type {boolean} * @memberof FeatureDailyProfitTargetDTO */ 'pauseInsteadOfClose'?: boolean; /** * If set to \'false\', balance changes (deposits and withdrawals) will NOT trigger a reset of this profit target. If set to \'true\', any deposit or withdrawal will reset the profit target reference balance. This option allows you to maintain the profit target calculation even when adding or removing funds from the account. * @type {boolean} * @memberof FeatureDailyProfitTargetDTO */ 'resetOnBalanceChange'?: boolean; /** * ISO 8601. Set the reset time for the profit target. Only the time is considered, and the date is ignored. * @type {string} * @memberof FeatureDailyProfitTargetDTO */ 'resetTime'?: string; /** * If set to \'true\', the daily profit target will be calculated based on the profit of trades that were OPENED on the current day (instead of the default equity-vs-balance comparison). This is useful for prop firm consistency rules (e.g. Aqua Funded) where a single day\'s profits (by open date) may not exceed a certain percentage. * @type {boolean} * @memberof FeatureDailyProfitTargetDTO */ 'trackByOpenDate'?: boolean; } /** * DTO for the Data Collector feature (account) (PRO) * @export * @interface FeatureDataCollectorDTO */ export interface FeatureDataCollectorDTO { /** * Activate the data collector feature to record equity, profit, and balance time series data. * @type {boolean} * @memberof FeatureDataCollectorDTO */ 'activateDataCollector': boolean; /** * Collection interval in seconds. Defines how frequently the system checks and records equity, profit, and balance data. Note: Data is only saved when values have changed from the previous record to optimize storage and reduce redundancy. * @type {number} * @memberof FeatureDataCollectorDTO */ 'collectionIntervalSeconds': number; /** * If true, normalizes all values when fetching data via REST endpoint to hide real account size. Uses the first record\'s balance (or equity if balance not recorded, or floating PnL if neither recorded) as reference point and scales it to 100,000. The same scaling factor is then applied to ALL records, preserving relative performance and growth patterns while obscuring actual account values. Example: if first balance is 50,000, all values are doubled (factor 2.0), making first balance = 100,000, but subsequent balances scale proportionally. Data is always stored as-is without normalization. Use this feature when sharing performance data without exposing real capital. * @type {boolean} * @memberof FeatureDataCollectorDTO */ 'normalizeValues': boolean; /** * If true, records account balance (closed positions only). Balance represents the account value based on closed trades only. * @type {boolean} * @memberof FeatureDataCollectorDTO */ 'recordBalance': boolean; /** * If true, records account equity (including floating PnL). Equity represents the current account value including open positions. * @type {boolean} * @memberof FeatureDataCollectorDTO */ 'recordEquity': boolean; /** * If true, records floating PnL separately. This is the unrealized profit/loss from currently open positions. * @type {boolean} * @memberof FeatureDataCollectorDTO */ 'recordFloatingPnL': boolean; /** * Data retention period in days. This is a fixed system value and cannot be modified by users. * @type {number} * @memberof FeatureDataCollectorDTO */ 'retentionDays'?: number; } /** * DTO for assigning a dedicated IP feature (account) (PRO) * @export * @interface FeatureDedicatedIpDTO */ export interface FeatureDedicatedIpDTO { /** * Enter an dedicated proxy server id (see \"FeatureDedicatedIpPoolDTO\") * @type {number} * @memberof FeatureDedicatedIpDTO */ 'dedicatedProxyServerId': number; } /** * DTO for defining a pool of dedicated IPs feature (project) (PRO) * @export * @interface FeatureDedicatedIpPoolDTO */ export interface FeatureDedicatedIpPoolDTO { /** * Read-only. The system will reserve the proxy servers per region and list them in this field. * @type {{ [key: string]: Array; }} * @memberof FeatureDedicatedIpPoolDTO */ 'dedicatedProxyServerIds'?: { [key: string]: Array; }; /** * Specify the number of dedicated proxy server (IPs) per region you want. Use \"FeatureDedicatedIpDTO\" to assign an proxy server (IP) to an account. * @type {{ [key: string]: number; }} * @memberof FeatureDedicatedIpPoolDTO */ 'poolSize': { [key: string]: number; }; } /** * DTO for the Delayed Execution feature (copier) (PRO) * @export * @interface FeatureDelayedExecutionDTO */ export interface FeatureDelayedExecutionDTO { /** * Maximum delay in seconds (with millisecond resolution) before closing a trade. Maximum allowed value is 3600 seconds (60 minutes). * @type {number} * @memberof FeatureDelayedExecutionDTO */ 'maxDelayClose'?: number; /** * Maximum delay in seconds (with millisecond resolution) before opening a trade. Maximum allowed value is 3600 seconds (60 minutes). * @type {number} * @memberof FeatureDelayedExecutionDTO */ 'maxDelayOpen'?: number; /** * Minimum delay in seconds (with millisecond resolution) before closing a trade. A value of 0 means no delay. * @type {number} * @memberof FeatureDelayedExecutionDTO */ 'minDelayClose'?: number; /** * Minimum delay in seconds (with millisecond resolution) before opening a trade. A value of 0 means no delay. * @type {number} * @memberof FeatureDelayedExecutionDTO */ 'minDelayOpen'?: number; /** * Defines the delay execution per symbol. * @type {{ [key: string]: FeatureDelayedExecutionDTO; }} * @memberof FeatureDelayedExecutionDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureDelayedExecutionDTO; }; } /** * DTO for configuring the exit signal override feature (copier) * @export * @interface FeatureExitSignalOverrideDTO */ export interface FeatureExitSignalOverrideDTO { /** * Specifies the number of seconds to wait before closing the trade. This is useful if you want the slave account to hold the position until the Take Profit (TP) level is reached. A value of 0 indicates that the exit signal will be ignored indefinitely. * @type {number} * @memberof FeatureExitSignalOverrideDTO */ 'ignoreForSeconds'?: number; /** * Indicates whether the exit signal should only be ignored if both Take Profit (TP) and Stop Loss (SL) levels are set on the trade. * @type {boolean} * @memberof FeatureExitSignalOverrideDTO */ 'onlyIfTpSlAreSet': boolean; } /** * DTO for fallback setting feature (account and project). If applied to a project, the fallback behavior will be applied to all accounts within that project. * @export * @interface FeatureFallbackSettingDTO */ export interface FeatureFallbackSettingDTO { /** * A list of allowed regions to which the account can be moved if an error or issue occurs. When an account is moved, another IP address will be assigned to it. If the list is empty, all regions are allowed. * @type {Array} * @memberof FeatureFallbackSettingDTO */ 'allowedRegions'?: Array; /** * Indicates whether fallback behavior is disabled. If set to true, the account will not be moved to another region in case of errors or issues. If fallback is enabled, another IP address will be assigned to the account when it is moved. * @type {boolean} * @memberof FeatureFallbackSettingDTO */ 'noFallback'?: boolean; } /** * DTO to activate the hft mode feature (account) (PRO) * @export * @interface FeatureHftModeDTO */ export interface FeatureHftModeDTO { /** * Activate the hft mode. This property is always set to true. * @type {boolean} * @memberof FeatureHftModeDTO */ 'activateHftMode'?: boolean; } /** * DTO for investor program investor feature (account) * @export * @interface FeatureInvestorDTO */ export interface FeatureInvestorDTO { /** * Profit share percentage that goes to the traders after MetaCopier fee deduction (0-100). Example: 30.00 means 30% profit share to traders. * @type {number} * @memberof FeatureInvestorDTO */ 'profitSharePercentage'?: number; /** * Status of an investor within the investor program * @type {string} * @memberof FeatureInvestorDTO */ 'status'?: FeatureInvestorDTOStatusEnum; /** * List of trader features this investor is following. The investor can choose multiple traders. * @type {Array} * @memberof FeatureInvestorDTO */ 'traderFeatures'?: Array; } export const FeatureInvestorDTOStatusEnum = { Pending: 'PENDING', Active: 'ACTIVE', Suspended: 'SUSPENDED' } as const; export type FeatureInvestorDTOStatusEnum = typeof FeatureInvestorDTOStatusEnum[keyof typeof FeatureInvestorDTOStatusEnum]; /** * DTO for keep alive trade feature (account) (PRO) * @export * @interface FeatureKeepAliveTradeDTO */ export interface FeatureKeepAliveTradeDTO { /** * Defines the duration in seconds after which the opened trade will be closed automatically. * @type {number} * @memberof FeatureKeepAliveTradeDTO */ 'closeAfterInSeconds'?: number; /** * Cron expressions to trigger the trade (UTC time) * @type {Array} * @memberof FeatureKeepAliveTradeDTO */ 'cronExpressions': Array; /** * Define the symbol for which the trades will be opened. The opened lot size is the minimum size of the symbol. * @type {string} * @memberof FeatureKeepAliveTradeDTO */ 'symbol': string; } /** * DTO for live delay feature (copier) * @export * @interface FeatureLiveDelayDTO */ export interface FeatureLiveDelayDTO { /** * Time interval in minutes after which the skip counter resets. The timer starts from the last time an order was opened. For example, if set to 120, the skip counter will reset every 120 minutes from the last order. A value of 0 disables time-based reset (the counter will only reset via resetOnPositionClose if enabled). Maximum value is 1440 minutes (24 hours). * @type {number} * @memberof FeatureLiveDelayDTO */ 'resetIntervalMinutes'?: number; /** * If true, the skip counter resets automatically when a copied position closes. For example, if skipOrdersCount is 1, order 1 is skipped, order 2 is copied, and when order 2 closes, the counter resets so the next order will be skipped again. This can be used with resetIntervalMinutes=0 to disable time-based reset and only reset on position close. * @type {boolean} * @memberof FeatureLiveDelayDTO */ 'resetOnPositionClose'?: boolean; /** * Number of orders to skip from the master account. For example, if set to 3, the first 3 orders will be skipped and only subsequent orders will be copied. A value of 0 means the feature is deactivated (no live delay). * @type {number} * @memberof FeatureLiveDelayDTO */ 'skipOrdersCount'?: number; /** * Defines the live delay configuration per symbol. Each symbol can have its own skip count and reset interval. * @type {{ [key: string]: FeatureLiveDelayDTO; }} * @memberof FeatureLiveDelayDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureLiveDelayDTO; }; /** * If true, BUY and SELL orders are tracked separately. For example, if skipOrdersCount is 3, the first 3 BUY orders AND the first 3 SELL orders will be skipped (6 total). If false (default), direction is ignored and the first 3 orders are skipped regardless of direction. * @type {boolean} * @memberof FeatureLiveDelayDTO */ 'trackByDirection'?: boolean; } /** * DTO for defining a maintenance window (project) * @export * @interface FeatureMaintenanceWindowDTO */ export interface FeatureMaintenanceWindowDTO { /** * * @type {AccountTypeDTO} * @memberof FeatureMaintenanceWindowDTO */ 'accountType'?: AccountTypeDTO; /** * List of account IDs that were affected by this maintenance window. Used to restart/resume only these accounts when the window ends. * @type {Array} * @memberof FeatureMaintenanceWindowDTO */ 'affectedAccountIds'?: Array; /** * Map of copier IDs to their original states before maintenance. Used to restore copiers to their exact previous state. * @type {{ [key: string]: CopierStateDTO; }} * @memberof FeatureMaintenanceWindowDTO */ 'affectedCopierStates'?: { [key: string]: CopierStateDTO; }; /** * Is only applied to a specific broker, for example, \'ICMarkets.*\' (case non sensitive). For all brokers, you can enter \'.*\' or null (this is a regex) * @type {string} * @memberof FeatureMaintenanceWindowDTO */ 'broker'?: string; /** * Strategy for closing positions during maintenance window. Default is DO_NOT_CLOSE. * @type {string} * @memberof FeatureMaintenanceWindowDTO */ 'closePositionStrategy'?: FeatureMaintenanceWindowDTOClosePositionStrategyEnum; /** * Whether the maintenance window is enabled. Default is true. * @type {boolean} * @memberof FeatureMaintenanceWindowDTO */ 'enabled'?: boolean; /** * End time of the maintenance window. * @type {string} * @memberof FeatureMaintenanceWindowDTO */ 'endTime': string; /** * Tracks whether entry actions (close positions, stop accounts/pause copiers) have been executed for this maintenance window instance. * @type {boolean} * @memberof FeatureMaintenanceWindowDTO */ 'entryActionsExecuted'?: boolean; /** * Action to perform during maintenance window. Default is PAUSE_COPIERS. * @type {string} * @memberof FeatureMaintenanceWindowDTO */ 'maintenanceAction'?: FeatureMaintenanceWindowDTOMaintenanceActionEnum; /** * Set of account IDs for which positions have already been closed during this maintenance window. * @type {Set} * @memberof FeatureMaintenanceWindowDTO */ 'positionsClosedForAccounts'?: Set; /** * Start time of the maintenance window. * @type {string} * @memberof FeatureMaintenanceWindowDTO */ 'startTime': string; } export const FeatureMaintenanceWindowDTOClosePositionStrategyEnum = { DoNotClose: 'DO_NOT_CLOSE', CloseAll: 'CLOSE_ALL', CloseAllIfProfit: 'CLOSE_ALL_IF_PROFIT' } as const; export type FeatureMaintenanceWindowDTOClosePositionStrategyEnum = typeof FeatureMaintenanceWindowDTOClosePositionStrategyEnum[keyof typeof FeatureMaintenanceWindowDTOClosePositionStrategyEnum]; export const FeatureMaintenanceWindowDTOMaintenanceActionEnum = { StopAccounts: 'STOP_ACCOUNTS', PauseCopiers: 'PAUSE_COPIERS' } as const; export type FeatureMaintenanceWindowDTOMaintenanceActionEnum = typeof FeatureMaintenanceWindowDTOMaintenanceActionEnum[keyof typeof FeatureMaintenanceWindowDTOMaintenanceActionEnum]; /** * DTO for martingale strategy feature (copier) * @export * @interface FeatureMartingaleStrategyDTO */ export interface FeatureMartingaleStrategyDTO { /** * Adjust the lot size based on the Martingale multiplier. If there is a significant difference in balance/equity between the master and slave accounts, the lot size on the slave account may be rounded down. For example, if trades of 0.02 and 0.04 lots are placed on the master account (balance 4000 USD), a standard copier would open 0.01 and 0.01 lots on the slave account (balance 1000 USD - which is incorrect). However, if this option is activated, it will open 0.01 and 0.02 lots. Default is false. This can be overridden per symbol using symbolsConfiguration. * @type {boolean} * @memberof FeatureMartingaleStrategyDTO */ 'enableMartingaleStrategy'?: boolean; /** * Defines the martingale strategy setting per symbol. Each symbol can have its own enabled/disabled setting that overrides the global setting. * @type {{ [key: string]: FeatureMartingaleStrategyDTO; }} * @memberof FeatureMartingaleStrategyDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureMartingaleStrategyDTO; }; } /** * DTO for the Masaniello money management feature (copier) (PRO) * @export * @interface FeatureMasanielloDTO */ export interface FeatureMasanielloDTO { /** * Expected point movement used to convert money stakes to lot sizes. Represents the typical price movement in points (MetaTrader minimal price change) for position sizing calculations. Larger values = more conservative lot sizes (smaller positions for the same stake). * @type {number} * @memberof FeatureMasanielloDTO */ 'assumedPointRisk'?: number; /** * Reset after completing all events. * @type {boolean} * @memberof FeatureMasanielloDTO */ 'autoResetOnSeriesComplete'?: boolean; /** * * @type {boolean} * @memberof FeatureMasanielloDTO */ 'autoTuneBoundsValid'?: boolean; /** * Defines the base used for bankroll percentage: BALANCE, EQUITY, FREE_MARGIN. * @type {string} * @memberof FeatureMasanielloDTO */ 'bankrollBase': FeatureMasanielloDTOBankrollBaseEnum; /** * Percentage of account base (balance/equity/free margin) used as bankroll for one series. * @type {number} * @memberof FeatureMasanielloDTO */ 'bankrollPercentage'?: number; /** * Cooldown period in minutes before starting a new series after reset. 0 = no cooldown. * @type {number} * @memberof FeatureMasanielloDTO */ 'cooldownAfterResetMinutes'?: number; /** * If true, break-even trades do not consume an event in the series. * @type {boolean} * @memberof FeatureMasanielloDTO */ 'excludeBreakEvenTrades'?: boolean; /** * Expected loss per losing trade as R multiple. Default -1.0 means full risk is lost. For binary options use -1.0. For Forex with SL, typically -1.0. Use values like -0.5 if you expect partial losses on average. * @type {number} * @memberof FeatureMasanielloDTO */ 'expectedLossRMultiple'?: number; /** * Expected payout factor for fixed payout systems (binary, etc). Example: 0.75 means +75% of risk on win. Used when payoutModel=PAYOUT_FACTOR. * @type {number} * @memberof FeatureMasanielloDTO */ 'expectedPayoutFactor'?: number; /** * Expected average profit per win, expressed as R multiple. Example: 1.0 means +1R average win. Used when payoutModel=R_MULTIPLE. * @type {number} * @memberof FeatureMasanielloDTO */ 'expectedRMultiple'?: number; /** * Expected number of wins in one series. Must be <= totalEvents. * @type {number} * @memberof FeatureMasanielloDTO */ 'expectedWins'?: number; /** * * @type {boolean} * @memberof FeatureMasanielloDTO */ 'expectedWinsValid'?: boolean; /** * How to round the computed lot size to the lot step. * @type {string} * @memberof FeatureMasanielloDTO */ 'lotRoundingMode': FeatureMasanielloDTOLotRoundingModeEnum; /** * Lot step to round lots to, e.g. 0.01 for Forex. * @type {number} * @memberof FeatureMasanielloDTO */ 'lotStep'?: number; /** * Maximum consecutive losses allowed before forcing series reset as safety breaker. 0 = disabled. * @type {number} * @memberof FeatureMasanielloDTO */ 'maxConsecutiveLosses'?: number; /** * Maximum expectedWins when auto-tuning is enabled. Null means no cap besides totalEvents. * @type {number} * @memberof FeatureMasanielloDTO */ 'maxExpectedWins'?: number; /** * Maximum lot size allowed. * @type {number} * @memberof FeatureMasanielloDTO */ 'maximumLotSize'?: number; /** * Minimum expectedWins when auto-tuning is enabled. * @type {number} * @memberof FeatureMasanielloDTO */ 'minExpectedWins'?: number; /** * Minimum lot size allowed. * @type {number} * @memberof FeatureMasanielloDTO */ 'minimumLotSize'?: number; /** * Minimum number of historical trades required before using historical win rate. If fewer trades exist, falls back to manual expectedWins. * @type {number} * @memberof FeatureMasanielloDTO */ 'minimumTradesForHistoricalWinRate'?: number; /** * Defines how trades are classified (win/loss/breakeven). * @type {string} * @memberof FeatureMasanielloDTO */ 'outcomePolicy': FeatureMasanielloDTOOutcomePolicyEnum; /** * Defines how partial closes (multiple TPs, manual partial close) are handled for outcome classification. * @type {string} * @memberof FeatureMasanielloDTO */ 'partialWinPolicy': FeatureMasanielloDTOPartialWinPolicyEnum; /** * Defines how expected profit per win is modeled. * @type {string} * @memberof FeatureMasanielloDTO */ 'payoutModel': FeatureMasanielloDTOPayoutModelEnum; /** * Reset series if bankroll is depleted. * @type {boolean} * @memberof FeatureMasanielloDTO */ 'resetOnBankrollDepleted'?: boolean; /** * Reset series automatically when target profit is reached early. * @type {boolean} * @memberof FeatureMasanielloDTO */ 'resetOnTargetReached'?: boolean; /** * Look-back days for stats (0 = only current series). * @type {number} * @memberof FeatureMasanielloDTO */ 'statisticsLookBackDays'?: number; /** * Symbol-specific overrides for Masaniello settings. Only changed fields need to be provided. * @type {{ [key: string]: FeatureMasanielloDTO; }} * @memberof FeatureMasanielloDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureMasanielloDTO; }; /** * Target profit percentage relative to bankroll. Example: 50 means +50% of the bankroll. * @type {number} * @memberof FeatureMasanielloDTO */ 'targetProfitPercentage'?: number; /** * Total number of trades (events) in one Masaniello series. * @type {number} * @memberof FeatureMasanielloDTO */ 'totalEvents'?: number; /** * If true, system adjusts expectedWins based on historical win rate. * @type {boolean} * @memberof FeatureMasanielloDTO */ 'useHistoricalWinRate'?: boolean; /** * Smoothing factor for historical win-rate adjustment (0..1). Higher means faster adaptation. * @type {number} * @memberof FeatureMasanielloDTO */ 'winRateSmoothingFactor'?: number; /** * Defines what winThresholdPercentage is applied to. * @type {string} * @memberof FeatureMasanielloDTO */ 'winThresholdBase': FeatureMasanielloDTOWinThresholdBaseEnum; /** * Trade counts as WIN if profit >= winThresholdPercentage% of base (risk or notional), depending on winThresholdBase. * @type {number} * @memberof FeatureMasanielloDTO */ 'winThresholdPercentage'?: number; } export const FeatureMasanielloDTOBankrollBaseEnum = { Balance: 'BALANCE', Equity: 'EQUITY', FreeMargin: 'FREE_MARGIN' } as const; export type FeatureMasanielloDTOBankrollBaseEnum = typeof FeatureMasanielloDTOBankrollBaseEnum[keyof typeof FeatureMasanielloDTOBankrollBaseEnum]; export const FeatureMasanielloDTOLotRoundingModeEnum = { Down: 'DOWN', Up: 'UP', Nearest: 'NEAREST' } as const; export type FeatureMasanielloDTOLotRoundingModeEnum = typeof FeatureMasanielloDTOLotRoundingModeEnum[keyof typeof FeatureMasanielloDTOLotRoundingModeEnum]; export const FeatureMasanielloDTOOutcomePolicyEnum = { Threshold: 'THRESHOLD', Sign: 'SIGN', RBased: 'R_BASED' } as const; export type FeatureMasanielloDTOOutcomePolicyEnum = typeof FeatureMasanielloDTOOutcomePolicyEnum[keyof typeof FeatureMasanielloDTOOutcomePolicyEnum]; export const FeatureMasanielloDTOPartialWinPolicyEnum = { Ignore: 'IGNORE', CountAsWin: 'COUNT_AS_WIN', CountAsLoss: 'COUNT_AS_LOSS', Proportional: 'PROPORTIONAL' } as const; export type FeatureMasanielloDTOPartialWinPolicyEnum = typeof FeatureMasanielloDTOPartialWinPolicyEnum[keyof typeof FeatureMasanielloDTOPartialWinPolicyEnum]; export const FeatureMasanielloDTOPayoutModelEnum = { RMultiple: 'R_MULTIPLE', PayoutFactor: 'PAYOUT_FACTOR', RealizedR: 'REALIZED_R' } as const; export type FeatureMasanielloDTOPayoutModelEnum = typeof FeatureMasanielloDTOPayoutModelEnum[keyof typeof FeatureMasanielloDTOPayoutModelEnum]; export const FeatureMasanielloDTOWinThresholdBaseEnum = { Risk: 'RISK', Notional: 'NOTIONAL', Absolute: 'ABSOLUTE' } as const; export type FeatureMasanielloDTOWinThresholdBaseEnum = typeof FeatureMasanielloDTOWinThresholdBaseEnum[keyof typeof FeatureMasanielloDTOWinThresholdBaseEnum]; /** * DTO for max lot size feature (copier) * @export * @interface FeatureMaxLotSizeDTO */ export interface FeatureMaxLotSizeDTO { /** * If true, the max lot size check will compare against the master account\'s original position lot size instead of the calculated lot size. Only active when skipIfExceedsMax is true. * @type {boolean} * @memberof FeatureMaxLotSizeDTO */ 'checkMasterLotSize'?: boolean; /** * Sets the global max lot size for each position for all symbols. If a position exceeds this size, it will be adjusted to this max limit. This setting will override the copier\'s max lot size. A value of 0 means deactivated. * @type {number} * @memberof FeatureMaxLotSizeDTO */ 'maxLotSize'?: number; /** * If true, positions that exceed the max lot size will be skipped instead of being limited to the max lot size. * @type {boolean} * @memberof FeatureMaxLotSizeDTO */ 'skipIfExceedsMax'?: boolean; /** * Defines the max lot size per symbol. * @type {{ [key: string]: FeatureMaxLotSizeDTO; }} * @memberof FeatureMaxLotSizeDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureMaxLotSizeDTO; }; } /** * DTO for max open positions feature (copier/account) * @export * @interface FeatureMaxOpenPositionsDTO */ export interface FeatureMaxOpenPositionsDTO { /** * Specifies the global maximum number of open positions allowed across all symbols. If this limit is reached, no new positions will be opened until existing positions are closed. This setting will override the copier\'s multiplier. A value of 0 disables this feature, allowing unlimited open positions. * @type {number} * @memberof FeatureMaxOpenPositionsDTO */ 'maxOpenPositions'?: number; /** * Maximum number of positions allowed to be opened within the specified time window. For example, if set to 1 with a 120-second time window, only 1 position can be opened every 2 minutes. If multiple orders arrive simultaneously, only the first N orders (based on this value) will be taken, and the rest will be skipped until the time window expires. A value of 0 disables this time-based throttling. Works at both copier and account levels. * @type {number} * @memberof FeatureMaxOpenPositionsDTO */ 'maxPositionsInTimeWindow'?: number; /** * Defines the maximum number of open positions per symbol. The total number of open positions across all symbols is subject to the general maxOpenPositions limit. * @type {{ [key: string]: FeatureMaxOpenPositionsDTO; }} * @memberof FeatureMaxOpenPositionsDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureMaxOpenPositionsDTO; }; /** * Time window in seconds for the position throttling. Works together with maxPositionsInTimeWindow to limit how many positions can be opened in a given time period. For example, with maxPositionsInTimeWindow=1 and timeWindowSeconds=120, only 1 position can be opened every 2 minutes. Works at both copier and account levels. * @type {number} * @memberof FeatureMaxOpenPositionsDTO */ 'timeWindowSeconds'?: number; } /** * DTO for maximum lot feature (copier) * @export * @interface FeatureMaximumLotDTO */ export interface FeatureMaximumLotDTO { /** * When enabled, the total lot size of all open positions (related to this copier) will not exceed this value, new positions will be skipped until existing positions are closed. This setting will override the copier\'s maximum lot. A value of 0 means deactivated. * @type {number} * @memberof FeatureMaximumLotDTO */ 'maximumLot'?: number; /** * Defines the maximum lot size per symbol. * @type {{ [key: string]: FeatureMaximumLotDTO; }} * @memberof FeatureMaximumLotDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureMaximumLotDTO; }; } /** * DTO for configuring the minimum holding time feature (copier) * @export * @interface FeatureMinimumHoldingTimeDTO */ export interface FeatureMinimumHoldingTimeDTO { /** * Minimum number of seconds a copied trade must stay open before the exit signal from the master account can be executed on the slave account. Example: if this value is set to 30 and the master opens and closes a position after 2 seconds, the slave will keep the position open for the full 30 seconds. 0 means deactivated * @type {number} * @memberof FeatureMinimumHoldingTimeDTO */ 'minimumHoldSeconds'?: number; /** * Defines the minimum holding time for each symbol. * @type {{ [key: string]: FeatureMinimumHoldingTimeDTO; }} * @memberof FeatureMinimumHoldingTimeDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureMinimumHoldingTimeDTO; }; } /** * DTO for monthly profit target feature (account) * @export * @interface FeatureMonthlyProfitTargetDTO */ export interface FeatureMonthlyProfitTargetDTO { /** * Reset this target if the balance falls below the target. For example, after a withdrawal. * @type {boolean} * @memberof FeatureMonthlyProfitTargetDTO */ 'autoResetIfBalanceIsBelow'?: boolean; /** * Enter a monthly absolute profit target in account currency. If the target is reached, all positions will be closed (unless \'pauseInsteadOfClose\' is enabled) and new ones will be blocked until the next month. Set to 0 to deactivate. * @type {number} * @memberof FeatureMonthlyProfitTargetDTO */ 'monthlyAbsoluteProfitTarget'?: number; /** * Enter a monthly target in %. If the target is reached, all positions will be closed (unless \'pauseInsteadOfClose\' is enabled). New positions will not be copied until the next month, and any positions placed outside system will be closed immediately (if \'pauseInsteadOfClose\' is false). Set to 0 to deactivate. * @type {number} * @memberof FeatureMonthlyProfitTargetDTO */ 'monthlyProfitTarget'?: number; /** * Enter a monthly relative profit target in account currency. If the target is reached, all positions will be closed (unless \'pauseInsteadOfClose\' is enabled) and new ones will be blocked until the next month. Set to 0 to deactivate. * @type {number} * @memberof FeatureMonthlyProfitTargetDTO */ 'monthlyRelativeProfitTarget'?: number; /** * If set to \'true\', when the profit target is reached, the copier will pause and stop opening new positions instead of closing all existing positions. The open positions will remain active. If set to \'false\', all positions will be closed when the target is reached. * @type {boolean} * @memberof FeatureMonthlyProfitTargetDTO */ 'pauseInsteadOfClose'?: boolean; /** * If set to \'false\', balance changes (deposits and withdrawals) will NOT trigger a reset of this profit target. If set to \'true\', any deposit or withdrawal will reset the profit target reference balance. This option allows you to maintain the profit target calculation even when adding or removing funds from the account. * @type {boolean} * @memberof FeatureMonthlyProfitTargetDTO */ 'resetOnBalanceChange'?: boolean; } /** * DTO for multiplier feature (copier) * @export * @interface FeatureMultiplierDTO */ export interface FeatureMultiplierDTO { /** * Set the master balance and equity to the specified value for lot size calculation. A value of 0 means deactivated. If set to 1000, the lot size calculation will use 1000 as the master balance/equity. This allows for flexible lot size calculations per symbol within the multiplier feature. * @type {number} * @memberof FeatureMultiplierDTO */ 'fixMasterBalanceAndEquity'?: number; /** * Set the slave balance and equity to the specified value for lot size calculation. A value of 0 means deactivated. If set to 1000, the lot size calculation will use 1000 as the slave balance/equity. This allows for flexible lot size calculations per symbol within the multiplier feature. * @type {number} * @memberof FeatureMultiplierDTO */ 'fixSlaveBalanceAndEquity'?: number; /** * Set the lot size to a specific value, only applicable when the scaleType is set to \'3\' (Fixed lot size). * @type {number} * @memberof FeatureMultiplierDTO */ 'fixedLotSize'?: number; /** * Specifies the global multiplier applied to all symbols. This setting will override the copier\'s multiplier. * @type {number} * @memberof FeatureMultiplierDTO */ 'multiplier'?: number; /** * * @type {ScaleTypeDTO} * @memberof FeatureMultiplierDTO */ 'scaleType'?: ScaleTypeDTO; /** * Defines the multiplier for each symbol. * @type {{ [key: string]: FeatureMultiplierDTO; }} * @memberof FeatureMultiplierDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureMultiplierDTO; }; } /** * DTO for defining a my home ip feature (project) (PRO) * @export * @interface FeatureMyHomeIpDTO */ export interface FeatureMyHomeIpDTO { /** * Your IP address or DNS hostname. * @type {string} * @memberof FeatureMyHomeIpDTO */ 'host': string; /** * The port number for HTTP proxy. * @type {number} * @memberof FeatureMyHomeIpDTO */ 'httpPort'?: number; /** * The password for SOCKS/HTTP authentication. * @type {string} * @memberof FeatureMyHomeIpDTO */ 'password': string; /** * The port number for SOCKS proxy. * @type {number} * @memberof FeatureMyHomeIpDTO */ 'socksPort'?: number; /** * The username for SOCKS/HTTP authentication. * @type {string} * @memberof FeatureMyHomeIpDTO */ 'username': string; } /** * DTO for order type filter feature (copier) * @export * @interface FeatureOrderTypeFilterDTO */ export interface FeatureOrderTypeFilterDTO { /** * List of order types to copy. Only orders matching these types will be copied. If the list is empty or null, all order types will be copied. Available types: Buy, Sell, BuyLimit, SellLimit, BuyStop, SellStop. * @type {Array} * @memberof FeatureOrderTypeFilterDTO */ 'allowedOrderTypes'?: Array; } export const FeatureOrderTypeFilterDTOAllowedOrderTypesEnum = { Buy: 'Buy', Sell: 'Sell', BuyLimit: 'BuyLimit', SellLimit: 'SellLimit', BuyStop: 'BuyStop', SellStop: 'SellStop' } as const; export type FeatureOrderTypeFilterDTOAllowedOrderTypesEnum = typeof FeatureOrderTypeFilterDTOAllowedOrderTypesEnum[keyof typeof FeatureOrderTypeFilterDTOAllowedOrderTypesEnum]; /** * DTO for the permitted symbols feature: If both a whitelist and a blacklist are defined, the whitelist has priority over the blacklist. (copier) * @export * @interface FeaturePermittedSymbolsDTO */ export interface FeaturePermittedSymbolsDTO { /** * Blacklist regex (case insensitive). If multiple regex are specified, they are combined using an OR condition. The regex is applied to both the master symbol and the slave/mapped symbol - if either matches, the trade is blocked. * @type {Array} * @memberof FeaturePermittedSymbolsDTO */ 'blacklist'?: Array; /** * Whitelist regex (case insensitive). If multiple regex are specified, they are combined using an OR condition. The regex is applied to both the master symbol and the slave/mapped symbol - if either matches, the trade is allowed. * @type {Array} * @memberof FeaturePermittedSymbolsDTO */ 'whitelist'?: Array; } /** * DTO for progressive trade sizing feature (copier) (PRO) * @export * @interface FeatureProgressiveTradeSizingDTO */ export interface FeatureProgressiveTradeSizingDTO { /** * Number of consecutive profitable trades at the elevated level required before the trade volume resets to the base size. For example, if set to 2, you need 2 consecutive winning trades at the multiplied level before it drops back. Default is 1 (original behavior: a single win resets immediately). * @type {number} * @memberof FeatureProgressiveTradeSizingDTO */ 'cycles'?: number; /** * Defines the loss percentage threshold required to activate the feature. For instance, if set to 1%, the system will trigger the multiplier if a trade closes with a loss greater than 1% of the account balance. The default is 0%, meaning any negative trade will activate the feature. * @type {number} * @memberof FeatureProgressiveTradeSizingDTO */ 'lastLossGreaterThanInPercentage'?: number; /** * Limits the maximum number of consecutive times the trade volume can be increased after successive losses. For example, if set to 3, the trade volume will only be increased up to 3 times before being capped. * @type {number} * @memberof FeatureProgressiveTradeSizingDTO */ 'limitLevels'?: number; /** * Defines the number of days to consider when evaluating past trades. For example, if set to 5, the system will look back at trades opened by the copier over the last 5 days to determine if the most recent trade closed with a loss. * @type {number} * @memberof FeatureProgressiveTradeSizingDTO */ 'lookBackInDays'?: number; /** * Specifies the multiplier to apply when increasing trade volume after a loss. The default multiplier is 2.000, meaning the volume of the next trade will be doubled after a loss. * @type {number} * @memberof FeatureProgressiveTradeSizingDTO */ 'multiplier'?: number; } /** * DTO for risk per trade feature (copier/account) (PRO) * @export * @interface FeatureRiskPerTradeDTO */ export interface FeatureRiskPerTradeDTO { /** * Defines the risk per trade as a fixed absolute value (e.g., 50 USD). If set to 0, this mode is disabled. * @type {number} * @memberof FeatureRiskPerTradeDTO */ 'absoluteRisk'?: number; /** * If enabled, aggregates risk calculation across all open positions for the same symbol. When true and multiple positions exist for a symbol (e.g., XAUUSD), the total risk will be calculated by summing all open positions for that symbol before checking against the risk limits. When false, each position is evaluated independently. * @type {boolean} * @memberof FeatureRiskPerTradeDTO */ 'aggregateRiskPerSymbol'?: boolean; /** * Only applies when \'correctLotSizeBasedOnTheStopLoss\' is enabled. If set to true (default), the system will automatically close the position when the defined risk threshold is reached, acting as a hard risk limit supervisor. If set to false, the system will NOT auto-close the position when the risk threshold is reached, allowing the stop loss to execute naturally. Use this option when you want precise lot sizing based on SL but prefer the trade to hit the SL rather than being closed by the risk supervisor. Note: If the position has no stop loss set, the system will still auto-close regardless of this setting. * @type {boolean} * @memberof FeatureRiskPerTradeDTO */ 'autoCloseOnRiskThresholdReached'?: boolean; /** * If enabled, adjusts the lot size automatically based on the distance to the stop loss (SL). Ensures that the actual monetary risk per trade aligns with the configured percentage or absolute risk. This calculation only applies when a stop loss is defined on the master trade. Only valid for copier. * @type {boolean} * @memberof FeatureRiskPerTradeDTO */ 'correctLotSizeBasedOnTheStopLoss'?: boolean; /** * Defines the risk per trade as a percentage of the account balance. If set to 0, this mode is disabled. * @type {number} * @memberof FeatureRiskPerTradeDTO */ 'relativeRisk'?: number; /** * Defines risk per trader per symbol. Symbol configuration has priority over the general configuration. * @type {{ [key: string]: FeatureRiskPerTradeDTO; }} * @memberof FeatureRiskPerTradeDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureRiskPerTradeDTO; }; /** * Monetary value of one point (smallest price increment) per 1.0 lot, already expressed in the account currency. * @type {number} * @memberof FeatureRiskPerTradeDTO */ 'tickValue'?: number; /** * Enable automatic detection of the point-value in account currency from live trades. When true, the system overrides `tickValue` with the detected value at runtime. * @type {boolean} * @memberof FeatureRiskPerTradeDTO */ 'tickValueAutomaticAdjustement'?: boolean; } /** * @type FeatureSettingDTO * Configure setting for the specific feature * @export */ export type FeatureSettingDTO = FeatureApprovalDTO | FeatureBlockHedgingDTO | FeatureBreakEvenDTO | FeatureCopierFilterDTO | FeatureDailyProfitTargetDTO | FeatureDataCollectorDTO | FeatureDedicatedIpDTO | FeatureDedicatedIpPoolDTO | FeatureDelayedExecutionDTO | FeatureExitSignalOverrideDTO | FeatureFallbackSettingDTO | FeatureHftModeDTO | FeatureInvestorDTO | FeatureKeepAliveTradeDTO | FeatureLiveDelayDTO | FeatureMaintenanceWindowDTO | FeatureMartingaleStrategyDTO | FeatureMasanielloDTO | FeatureMaxLotSizeDTO | FeatureMaxOpenPositionsDTO | FeatureMaximumLotDTO | FeatureMinimumHoldingTimeDTO | FeatureMonthlyProfitTargetDTO | FeatureMultiplierDTO | FeatureMyHomeIpDTO | FeatureOrderTypeFilterDTO | FeaturePermittedSymbolsDTO | FeatureProgressiveTradeSizingDTO | FeatureRiskPerTradeDTO | FeatureSignalFollowerDTO | FeatureSignalProviderDTO | FeatureSkipPositionDTO | FeatureSocketDTO | FeatureTelegramAccountDTO | FeatureTelegramConnectorDTO | FeatureTelegramNotificationDTO | FeatureTpSlManagementDTO | FeatureTradeGuardrailsDTO | FeatureTraderDTO | FeatureTradingViewWebhookDTO | FeatureTradingWindowsDTO | FeatureTrailingStopDTO | FeatureWebhookDTO | FeatureWeeklyProfitTargetDTO | FeatureWhiteLabelDTO; /** * DTO for signal follower feature (account) * @export * @interface FeatureSignalFollowerDTO */ export interface FeatureSignalFollowerDTO { /** * Specifies if the copier is active. * @type {boolean} * @memberof FeatureSignalFollowerDTO */ 'active'?: boolean; /** * * @type {CopierDTO} * @memberof FeatureSignalFollowerDTO */ 'copier'?: CopierDTO; /** * Indicates whether this copier is in monitor-only mode. When true, the copier monitors the source account and manages existing open positions (can close, modify them) but will not copy any new trades. When false, the copier operates in normal copying mode. * @type {boolean} * @memberof FeatureSignalFollowerDTO */ 'monitorOnly'?: boolean; /** * Indicates that the signal provider is available to the follower. * @type {boolean} * @memberof FeatureSignalFollowerDTO */ 'signalProviderAvailable'?: boolean; /** * Unique identifier (id of FeatureSignalProviderDTO) for the associated signal provider that the follower is linked to. * @type {string} * @memberof FeatureSignalFollowerDTO */ 'signalProviderId': string; /** * Name of the signal provider. * @type {string} * @memberof FeatureSignalFollowerDTO */ 'signalProviderName'?: string; /** * Specifies whether the follower is suspended (the copier is deactivated). This setting can only be changed by the signal provider and cannot be overridden by the follower. * @type {boolean} * @memberof FeatureSignalFollowerDTO */ 'suspended'?: boolean; } /** * DTO for signal provider feature (project) * @export * @interface FeatureSignalProviderDTO */ export interface FeatureSignalProviderDTO { /** * Indicates whether the current user has access to subscribe to this signal. This is determined based on the signal\'s visibility settings (isPublic, makeVisibleInMarketplace) and the user\'s email in the allowCustomers list. * @type {boolean} * @memberof FeatureSignalProviderDTO */ 'accessAllowed'?: boolean; /** * If the signal is private, specify the email addresses of customers you wish to grant access. Only users with these listed email addresses will be able to view and subscribe to your private signals. * @type {Array} * @memberof FeatureSignalProviderDTO */ 'allowCustomers'?: Array; /** * Enable this option if you want followers to customize certain copier settings, such as risk parameters or trade sizes. Allowing overrides gives followers flexibility while using your signals. NOTE: This field can ONLY be set during resource creation and CANNOT be changed later. * @type {boolean} * @memberof FeatureSignalProviderDTO */ 'allowOverrideCopierSetting'?: boolean; /** * Enable this option to allow subscribers to resell your signal to their own customers. When enabled, your subscribers can act as intermediaries, offering your signals to others while potentially adding their own markup or fees. This creates a reseller network for your signal. NOTE: This field can ONLY be set during resource creation and CANNOT be changed later. * @type {boolean} * @memberof FeatureSignalProviderDTO */ 'allowReselling'?: boolean; /** * List of allowed broker patterns (regex supported) that followers must use to subscribe to this signal. Use regex patterns to match broker names, for example \'ICMarketsSC-Live.*\' will match all ICMarkets SC Live servers. Leave empty to allow all brokers. * @type {Array} * @memberof FeatureSignalProviderDTO */ 'allowedBrokers'?: Array; /** * Fine-grained control over which specific copier settings followers are allowed to override. Specify the field names from CopierDTO (e.g., \'multiplier\', \'maxSlippage\', \'copyStopLoss\'). If this list is null or empty, ALL copier settings can be overridden (when allowOverrideCopierSetting is true). If this list contains specific field names, ONLY those fields can be overridden by followers, and all other settings will use the signal provider\'s defaults. This provides precise control over follower customization. * @type {Array} * @memberof FeatureSignalProviderDTO */ 'allowedOverrideFields'?: Array; /** * Billing model for profit sharing fees. MONTHLY_PROFIT: Charge on all profits each month (default). HIGH_WATERMARK: Charge only on new profits above the previous peak cumulative profit. High watermark ensures followers only pay when their total performance reaches a new high, regardless of deposits/withdrawals. NOTE: This field can ONLY be set during resource creation and CANNOT be changed later. * @type {string} * @memberof FeatureSignalProviderDTO */ 'billingModel'?: FeatureSignalProviderDTOBillingModelEnum; /** * * @type {ContactDTO} * @memberof FeatureSignalProviderDTO */ 'contact'?: ContactDTO; /** * * @type {CopierDTO} * @memberof FeatureSignalProviderDTO */ 'copier': CopierDTO; /** * Enable this option to cover the MetaCopier costs for your followers. When enabled, the follower accounts\' MetaCopier subscription fees will be charged to your project instead, allowing your followers to use MetaCopier for free. This applies to all accounts that follow your signal. Note: This only covers the base MetaCopier subscription cost, not signal provider performance fees or other charges. NOTE: This field can ONLY be set during resource creation and CANNOT be changed later. * @type {boolean} * @memberof FeatureSignalProviderDTO */ 'coverFollowerCosts'?: boolean; /** * The customer ID of the signal provider owner. * @type {number} * @memberof FeatureSignalProviderDTO */ 'customerId'?: number; /** * A short summary of your trading strategy or approach. Use this field to give potential followers an idea of what to expect from your signals, including any specific methods, goals, or markets you specialize in. * @type {string} * @memberof FeatureSignalProviderDTO */ 'description'?: string; /** * A comprehensive description of how your trading strategy works, including entry/exit criteria, risk management approach, trading timeframes, market conditions, and any other important details that help followers understand your methodology. Use this field to provide in-depth information about your strategy. * @type {string} * @memberof FeatureSignalProviderDTO */ 'detailedDescription'?: string; /** * Mark this setting if you want your signal provider profile to be visible and searchable by other users. If set to private, only users with direct access will be able to view and follow your signals. NOTE: This field can ONLY be set during resource creation and CANNOT be changed later. * @type {boolean} * @memberof FeatureSignalProviderDTO */ 'isPublic'?: boolean; /** * A square logo image for the signal provider profile, encoded as a Base64 string. The image must be square and the Base64 string cannot exceed 256 KB in size. * @type {string} * @memberof FeatureSignalProviderDTO */ 'logo'?: string; /** * Enable this option to make your trading history publicly visible to potential followers. When enabled, users can view your historical trades before subscribing. This transparency can help build trust and attract more followers. * @type {boolean} * @memberof FeatureSignalProviderDTO */ 'makeHistoryPublic'?: boolean; /** * If the signal is not public, enable this option to make your signal visible in the marketplace for discovery. This allows users to find your signal through the marketplace while maintaining controlled access. * @type {boolean} * @memberof FeatureSignalProviderDTO */ 'makeVisibleInMarketplace'?: boolean; /** * Maximum number of follower accounts per follower project whose MetaCopier costs the signal provider will cover. Only applies when \'coverFollowerCosts\' is enabled. If a follower (project) connects more accounts than this limit to the same signal, only the first accounts (by follower-feature creation date) up to the cap will be covered; the remaining accounts will be billed to the follower\'s project as usual. Use 0 or null to cover all follower accounts without a per-project cap (legacy behavior). This field can be updated at any time; changes take effect immediately for the current billing period. * @type {number} * @memberof FeatureSignalProviderDTO */ 'maxCoveredAccountsPerProject'?: number; /** * The minimum account balance required for followers to use this signal, specified in the currency of the signal provider\'s account. If a follower\'s account uses a different currency, this minimum will be automatically converted to their account currency using the current exchange rate. Set this to ensure followers have adequate capital to properly follow your trading strategy and manage risk. Leave null or 0 for no minimum requirement. * @type {number} * @memberof FeatureSignalProviderDTO */ 'minimumBalance'?: number; /** * The amount charged to followers on a monthly basis for access to your signals. Set a competitive price based on the value and insights you provide, or leave it 0 if you want to offer free access. NOTE: This field can ONLY be set during resource creation and CANNOT be changed later. * @type {number} * @memberof FeatureSignalProviderDTO */ 'monthlySubscriptionFee'?: number; /** * The display name for your signal provider profile. Choose a name that reflects your trading style or focus, so followers can easily recognize and identify your signals. * @type {string} * @memberof FeatureSignalProviderDTO */ 'name': string; /** * Optional link to your trading performance profile on platforms like MyFXBook, FXBlue, or ShowMyTrades. This allows potential followers to verify your track record and trading history. * @type {string} * @memberof FeatureSignalProviderDTO */ 'profileLink'?: string; /** * An optional fee based on the profits generated by followers using your signals. This allows you to earn a percentage of your followers\' profits, providing an incentive tied directly to performance. NOTE: This field can ONLY be set during resource creation and CANNOT be changed later. * @type {number} * @memberof FeatureSignalProviderDTO */ 'profitSharingFee'?: number; /** * List of customers subscribed to this signal * @type {Array} * @memberof FeatureSignalProviderDTO */ 'subscribers'?: Array; /** * Select this option to have MetaCopier manage payments on your behalf. When enabled, MetaCopier collects payments from followers, either through a subscription fee or profit-sharing arrangement, and transfers the funds to you. Please note that Metacopier retains a 30% service fee from each transaction. * @type {boolean} * @memberof FeatureSignalProviderDTO */ 'useMetaCopierAsPaymentProvider'?: boolean; /** * Indicates whether this signal provider has been verified by MetaCopier. A verified signal provider means MetaCopier has personally reviewed the provider, analyzed the signals, and confirmed that the provider follows good trading practices. * @type {boolean} * @memberof FeatureSignalProviderDTO */ 'verified'?: boolean; } export const FeatureSignalProviderDTOBillingModelEnum = { MonthlyProfit: 'MONTHLY_PROFIT', HighWatermark: 'HIGH_WATERMARK' } as const; export type FeatureSignalProviderDTOBillingModelEnum = typeof FeatureSignalProviderDTOBillingModelEnum[keyof typeof FeatureSignalProviderDTOBillingModelEnum]; /** * DTO for skip position feature (copier) * @export * @interface FeatureSkipPositionDTO */ export interface FeatureSkipPositionDTO { /** * If set to true and the master position does not define a Stop Loss (SL), the copier will skip copying the position to the slave account. This can be used to avoid trades without predefined risk management. * @type {boolean} * @memberof FeatureSkipPositionDTO */ 'ifSlNotDefined'?: boolean; /** * If set to true and the master position does not define a Take Profit (TP), the copier will skip copying the position to the slave account. * @type {boolean} * @memberof FeatureSkipPositionDTO */ 'ifTpNotDefined'?: boolean; /** * Specifies how the copier should evaluate SL and TP conditions. If set to AND, both conditions must be met to skip the position. If set to OR, either condition is enough to skip. * @type {string} * @memberof FeatureSkipPositionDTO */ 'logicOperatorTpSl'?: FeatureSkipPositionDTOLogicOperatorTpSlEnum; /** * Defines skip position per symbol. Symbol configuration has priority over the general configuration. * @type {{ [key: string]: FeatureSkipPositionDTO; }} * @memberof FeatureSkipPositionDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureSkipPositionDTO; }; } export const FeatureSkipPositionDTOLogicOperatorTpSlEnum = { And: 'AND', Or: 'OR', And2: 'AND', Or2: 'OR' } as const; export type FeatureSkipPositionDTOLogicOperatorTpSlEnum = typeof FeatureSkipPositionDTOLogicOperatorTpSlEnum[keyof typeof FeatureSkipPositionDTOLogicOperatorTpSlEnum]; /** * DTO to activate the socket feature (account) (PRO) * @export * @interface FeatureSocketDTO */ export interface FeatureSocketDTO { /** * Activate the socket. This property is always set to true. * @type {boolean} * @memberof FeatureSocketDTO */ 'activateSocket'?: boolean; } /** * DTO for Telegram Account configuration (project) * @export * @interface FeatureTelegramAccountDTO */ export interface FeatureTelegramAccountDTO { /** * Telegram API Hash (from https://my.telegram.org) - write only, not returned in responses. Required on create, optional on update (null/empty means keep existing value). * @type {string} * @memberof FeatureTelegramAccountDTO */ 'apiHash'?: string; /** * Telegram API ID (from https://my.telegram.org) * @type {number} * @memberof FeatureTelegramAccountDTO */ 'apiId': number; /** * Error message if auth failed * @type {string} * @memberof FeatureTelegramAccountDTO */ 'authErrorMessage'?: string; /** * Current authorization status * @type {string} * @memberof FeatureTelegramAccountDTO */ 'authStatus'?: FeatureTelegramAccountDTOAuthStatusEnum; /** * Available chats from this account (read-only, synced from backend-telegram) * @type {Array} * @memberof FeatureTelegramAccountDTO */ 'availableChats'?: Array; /** * Is the Telegram client currently connected * @type {boolean} * @memberof FeatureTelegramAccountDTO */ 'connected'?: boolean; /** * Include private chats in the available chats list (default: false, only groups/channels are listed) * @type {boolean} * @memberof FeatureTelegramAccountDTO */ 'includePrivateChats'?: boolean; /** * Last sync timestamp * @type {string} * @memberof FeatureTelegramAccountDTO */ 'lastSyncAt'?: string; /** * Phone number with country code (e.g., +41790000000) * @type {string} * @memberof FeatureTelegramAccountDTO */ 'phoneNumber': string; /** * Region ID where this Telegram client should run * @type {number} * @memberof FeatureTelegramAccountDTO */ 'regionId': number; /** * Set to true to restart authentication flow (use when session expired or auth failed) * @type {boolean} * @memberof FeatureTelegramAccountDTO */ 'restartAuth'?: boolean; /** * Two-factor authentication password (if enabled) * @type {string} * @memberof FeatureTelegramAccountDTO */ 'twoFactorPassword'?: string; /** * SMS verification code (write-only, for completing auth) * @type {string} * @memberof FeatureTelegramAccountDTO */ 'verificationCode'?: string; } export const FeatureTelegramAccountDTOAuthStatusEnum = { Pending: 'PENDING', CodeRequired: 'CODE_REQUIRED', PasswordRequired: 'PASSWORD_REQUIRED', Authorized: 'AUTHORIZED', Failed: 'FAILED', SessionExpired: 'SESSION_EXPIRED', Disconnected: 'DISCONNECTED' } as const; export type FeatureTelegramAccountDTOAuthStatusEnum = typeof FeatureTelegramAccountDTOAuthStatusEnum[keyof typeof FeatureTelegramAccountDTOAuthStatusEnum]; /** * DTO for Telegram Connector configuration (account) (PRO) * @export * @interface FeatureTelegramConnectorDTO */ export interface FeatureTelegramConnectorDTO { /** * AI instructions for signal interpretation. Use this to customize how the AI interprets signals. The default prompt (JSON format, symbol mappings, SL/TP rules, open positions context) is always included. Examples: \'The signal provider uses GOLD instead of XAUUSD\', \'Ignore messages from admin\', \'SL/TP values are always in points\', \'Use only 50% of the volume specified in the signal\', \'If signal says 1 lot, use 0.1 lot instead\' * @type {string} * @memberof FeatureTelegramConnectorDTO */ 'aiInstructions'?: string; /** * AI model tier for signal interpretation. BASIC = default model, no extra charge. STANDARD = enhanced model, $5/month (billed daily). PRO = premium model, $10/month (billed daily). NOTE: Can only be set on creation. To change the tier, delete and recreate the connector. * @type {string} * @memberof FeatureTelegramConnectorDTO */ 'aiTier'?: FeatureTelegramConnectorDTOAiTierEnum; /** * Allowed actions for signals from this chat. Valid values: open, close, modify. * @type {Array} * @memberof FeatureTelegramConnectorDTO */ 'allowedActions'?: Array; /** * Telegram chat ID to subscribe to * @type {number} * @memberof FeatureTelegramConnectorDTO */ 'chatId': number; /** * Chat title (denormalized for display) * @type {string} * @memberof FeatureTelegramConnectorDTO */ 'chatTitle'?: string; /** * AI confidence threshold (0-100). The AI analyzes each message and assigns a confidence score. Only signals with confidence >= this threshold are executed. Example: If threshold is 70 and AI returns confidence 65, the signal is skipped and logged but NOT executed. Lower values = more signals executed (but more false positives). Higher values = fewer signals (but more reliable). If null, uses global default (70). * @type {number} * @memberof FeatureTelegramConnectorDTO */ 'confidenceThreshold'?: number; /** * Unique connector index (1-9) within the account. Auto-assigned on creation. Appended to position comments to identify which connector opened each position. This allows multiple connectors on the same account to manage their own positions independently. * @type {number} * @memberof FeatureTelegramConnectorDTO */ 'connectorIndex'?: number; /** * Number of recent messages to include as context for AI interpretation. Higher values give the AI more context (useful for multi-message signals) but consume more tokens. If null, uses global default (5). * @type {number} * @memberof FeatureTelegramConnectorDTO */ 'contextMessageCount'?: number; /** * Default stop loss in points if the signal doesn\'t provide a SL. Will be applied as relative distance from the fill price. * @type {number} * @memberof FeatureTelegramConnectorDTO */ 'defaultStopLossPoints'?: number; /** * Default take profit in points if the signal doesn\'t provide a TP. Will be applied as relative distance from the fill price. * @type {number} * @memberof FeatureTelegramConnectorDTO */ 'defaultTakeProfitPoints'?: number; /** * Default volume if not specified in signal (used when volumeMode=\'fixed\') * @type {number} * @memberof FeatureTelegramConnectorDTO */ 'defaultVolume'?: number; /** * Enable signal processing from this chat * @type {boolean} * @memberof FeatureTelegramConnectorDTO */ 'enabled': boolean; /** * Error message if status is ERROR * @type {string} * @memberof FeatureTelegramConnectorDTO */ 'errorMessage'?: string; /** * Force volume mode (ignore signal volume). If false (default): use volume from signal if provided, otherwise use volumeMode calculation. If true: always use volumeMode calculation, ignore any volume specified in the signal. Note: forceVolumeMode=true with volumeMode=AI will fall back to defaultVolume. * @type {boolean} * @memberof FeatureTelegramConnectorDTO */ 'forceVolumeMode'?: boolean; /** * Last message processed timestamp * @type {string} * @memberof FeatureTelegramConnectorDTO */ 'lastMessageAt'?: string; /** * Lots per 1000 balance (used when volumeMode=\'balance_scaled\'). Example: If balance is 10000 and lotsPerThousandBalance is 0.01, calculated volume will be 0.1 * @type {number} * @memberof FeatureTelegramConnectorDTO */ 'lotsPerThousandBalance'?: number; /** * Magic number for positions from this connector * @type {number} * @memberof FeatureTelegramConnectorDTO */ 'magicNumber'?: number; /** * Maximum allowed volume (safety limit). Applies to ALL volume modes. If calculated volume exceeds this, it will be capped to this value. Default is 1.0 lot. * @type {number} * @memberof FeatureTelegramConnectorDTO */ 'maxAllowedVolume'?: number; /** * Maximum message age in minutes. Messages older than this are skipped (e.g., due to network delays, Telegram outages, or server restarts). If null, uses global default (10). * @type {number} * @memberof FeatureTelegramConnectorDTO */ 'messageExpiryMinutes'?: number; /** * Risk per trade as fixed currency amount (in account currency). Used when volumeMode=\'RISK_AMOUNT\'. The lot size is calculated based on this amount, the stop loss distance, and the tick value. Requires the account-level FeatureRiskPerTrade to be enabled (for tick value configuration). A stop loss must be present on the signal or configured via defaultStopLossPoints. * @type {number} * @memberof FeatureTelegramConnectorDTO */ 'riskAmount'?: number; /** * Risk per trade as percentage of account balance (used when volumeMode=\'RISK_PERCENT\'). The lot size is calculated based on this percentage, the stop loss distance, and the tick value. Requires the account-level FeatureRiskPerTrade to be enabled (for tick value configuration). A stop loss must be present on the signal or configured via defaultStopLossPoints. * @type {number} * @memberof FeatureTelegramConnectorDTO */ 'riskPercent'?: number; /** * Connector status * @type {string} * @memberof FeatureTelegramConnectorDTO */ 'status'?: FeatureTelegramConnectorDTOStatusEnum; /** * Reference to the FeatureTelegramAccount feature ID * @type {string} * @memberof FeatureTelegramConnectorDTO */ 'telegramAccountFeatureId': string; /** * Volume calculation mode: FIXED = use defaultVolume, BALANCE_SCALED = calculate from account balance, AI = let AI determine volume based on signal (customizable via aiInstructions field), RISK_PERCENT = calculate lot size from risk percentage of account balance (requires riskPercent and stop loss), RISK_AMOUNT = calculate lot size from fixed currency amount risk (requires riskAmount and stop loss) * @type {string} * @memberof FeatureTelegramConnectorDTO */ 'volumeMode'?: FeatureTelegramConnectorDTOVolumeModeEnum; } export const FeatureTelegramConnectorDTOAiTierEnum = { Basic: 'BASIC', Standard: 'STANDARD', Pro: 'PRO' } as const; export type FeatureTelegramConnectorDTOAiTierEnum = typeof FeatureTelegramConnectorDTOAiTierEnum[keyof typeof FeatureTelegramConnectorDTOAiTierEnum]; export const FeatureTelegramConnectorDTOStatusEnum = { Pending: 'PENDING', Active: 'ACTIVE', Paused: 'PAUSED', Error: 'ERROR', Disconnected: 'DISCONNECTED' } as const; export type FeatureTelegramConnectorDTOStatusEnum = typeof FeatureTelegramConnectorDTOStatusEnum[keyof typeof FeatureTelegramConnectorDTOStatusEnum]; export const FeatureTelegramConnectorDTOVolumeModeEnum = { Fixed: 'FIXED', BalanceScaled: 'BALANCE_SCALED', RiskPercent: 'RISK_PERCENT', RiskAmount: 'RISK_AMOUNT', Ai: 'AI' } as const; export type FeatureTelegramConnectorDTOVolumeModeEnum = typeof FeatureTelegramConnectorDTOVolumeModeEnum[keyof typeof FeatureTelegramConnectorDTOVolumeModeEnum]; /** * DTO for telegram feature (project) * @export * @interface FeatureTelegramNotificationDTO */ export interface FeatureTelegramNotificationDTO { /** * List of telegram notifications * @type {Array} * @memberof FeatureTelegramNotificationDTO */ 'notifications': Array; } /** * DTO for TP/SL management feature (copier) (PRO) * @export * @interface FeatureTpSlManagementDTO */ export interface FeatureTpSlManagementDTO { /** * Additional points to add to the existing SL value. Useful for prop firms. * @type {number} * @memberof FeatureTpSlManagementDTO */ 'additionalSlPoints'?: number; /** * Additional points to add to the existing TP value. Useful for prop firms. * @type {number} * @memberof FeatureTpSlManagementDTO */ 'additionalTpPoints'?: number; /** * Indicates whether the TP/SL should be adjusted based on the distance from the master trade\'s values, maintaining the same distance on both the master and the slave trades. * @type {boolean} * @memberof FeatureTpSlManagementDTO */ 'adjustWithMasterDistance'?: boolean; /** * If true, trades will not be opened on slave accounts if no TP/SL is available (neither from master nor from configured values). Important for prop firm accounts. * @type {boolean} * @memberof FeatureTpSlManagementDTO */ 'blockTradeWithoutTpSl'?: boolean; /** * Fixed Stop Loss value in points. Set to 0 if not used. * @type {number} * @memberof FeatureTpSlManagementDTO */ 'fixedSlInPoints'?: number; /** * Fixed Take Profit value in points. Set to 0 if not used. * @type {number} * @memberof FeatureTpSlManagementDTO */ 'fixedTpInPoints'?: number; /** * If true, the TP/SL values are set once and are never modified afterward. * @type {boolean} * @memberof FeatureTpSlManagementDTO */ 'lockTpSl'?: boolean; /** * If true, the master account\'s TP/SL values have priority. The configured fixed TP/SL values are only applied as a fallback when the master has no TP/SL set. If the master later adds TP/SL, the slave accounts will be updated accordingly. * @type {boolean} * @memberof FeatureTpSlManagementDTO */ 'masterTpSlPriority'?: boolean; /** * If true, removes the Stop Loss (SL) from the copied positions. * @type {boolean} * @memberof FeatureTpSlManagementDTO */ 'removeSl'?: boolean; /** * If true, removes the Take Profit (TP) from the copied positions. * @type {boolean} * @memberof FeatureTpSlManagementDTO */ 'removeTp'?: boolean; /** * Defines TP/SL management per symbol. Symbol configuration has priority over the general configuration. * @type {{ [key: string]: FeatureTpSlManagementDTO; }} * @memberof FeatureTpSlManagementDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureTpSlManagementDTO; }; } /** * DTO for trade guardrails feature (account) (PRO) * @export * @interface FeatureTradeGuardrailsDTO */ export interface FeatureTradeGuardrailsDTO { /** * If true, the lot size threshold will be applied to the aggregated total lot size per symbol rather than to individual positions. For example, if you have 3 positions on EURUSD with 0.3 lots each (total 0.9 lots), setting this to true will check the 0.9 total against the threshold instead of checking each 0.3 lot position individually. * @type {boolean} * @memberof FeatureTradeGuardrailsDTO */ 'aggregatePerSymbol'?: boolean; /** * If true, the trade guardrails feature is enabled and will monitor and close positions that exceed the threshold. If false, the feature is disabled. * @type {boolean} * @memberof FeatureTradeGuardrailsDTO */ 'enabled'?: boolean; /** * Sets the global maximum lot size threshold for individual open positions across all symbols. By default, each position is checked individually. If an open position exceeds this lot size, it will be automatically closed. A value of 0 means deactivated. * @type {number} * @memberof FeatureTradeGuardrailsDTO */ 'maxLotSizeThreshold'?: number; /** * Sets the maximum open time for positions in seconds. If a position has been open longer than this threshold, it will be automatically closed. A value of 0 means deactivated (no time limit). * @type {number} * @memberof FeatureTradeGuardrailsDTO */ 'maxOpenTimeSeconds'?: number; /** * Defines the maximum lot size threshold per symbol. This allows for symbol-specific thresholds that override the global threshold. * @type {{ [key: string]: FeatureTradeGuardrailsDTO; }} * @memberof FeatureTradeGuardrailsDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureTradeGuardrailsDTO; }; } /** * DTO for investor program trader feature (account) * @export * @interface FeatureTraderDTO */ export interface FeatureTraderDTO { /** * Link to the trader\'s performance analytics profile on platforms like MyFXBook, FXBlue, or ShowMyTrades. This value is set by MetaCopier. * @type {string} * @memberof FeatureTraderDTO */ 'analyticsUrl'?: string; /** * A description of the trader\'s strategy or approach within the investor program. * @type {string} * @memberof FeatureTraderDTO */ 'description': string; /** * The display name for the trader within the investor program. * @type {string} * @memberof FeatureTraderDTO */ 'displayName': string; /** * Maximum drawdown percentage that the trader sets for their strategy. This information is used by MetaCopier to calculate an adequate risk level for investors. This value can only be set at feature creation and cannot be updated afterwards. * @type {number} * @memberof FeatureTraderDTO */ 'maxDrawdownPercentage': number; /** * Status of a trader within the investor program * @type {string} * @memberof FeatureTraderDTO */ 'status'?: FeatureTraderDTOStatusEnum; } export const FeatureTraderDTOStatusEnum = { Pending: 'PENDING', Active: 'ACTIVE', Suspended: 'SUSPENDED' } as const; export type FeatureTraderDTOStatusEnum = typeof FeatureTraderDTOStatusEnum[keyof typeof FeatureTraderDTOStatusEnum]; /** * DTO to enable TradingView webhook access (account) (PRO) * @export * @interface FeatureTradingViewWebhookDTO */ export interface FeatureTradingViewWebhookDTO { /** * Allow closeAll action. WARNING: Closes ALL positions! * @type {boolean} * @memberof FeatureTradingViewWebhookDTO */ 'allowCloseAll'?: boolean; /** * Allow close by symbol only without additional filters (direction/closeMode). WARNING: Can close multiple positions. * @type {boolean} * @memberof FeatureTradingViewWebhookDTO */ 'allowSymbolOnlyClose'?: boolean; /** * Allowed actions. Null or empty means all actions are allowed. * @type {Array} * @memberof FeatureTradingViewWebhookDTO */ 'allowedActions'?: Array; /** * Authentication method: SECRET (recommended) or HMAC (requires proxy) * @type {string} * @memberof FeatureTradingViewWebhookDTO */ 'authMethod': FeatureTradingViewWebhookDTOAuthMethodEnum; /** * TTL in days for stored TradingView data. * @type {number} * @memberof FeatureTradingViewWebhookDTO */ 'dataRetentionDays'?: number; /** * Enable TradingView webhook access for this account * @type {boolean} * @memberof FeatureTradingViewWebhookDTO */ 'enableWebhook': boolean; /** * * @type {boolean} * @memberof FeatureTradingViewWebhookDTO */ 'enabled'?: boolean; /** * HMAC secret (auto-generated, read-only). Used for HMAC signature verification. * @type {string} * @memberof FeatureTradingViewWebhookDTO */ 'hmacSecret'?: string; /** * IP allowlist for additional security. Empty means allow all IPs (recommended). WARNING: TradingView IPs may change without notice. * @type {Array} * @memberof FeatureTradingViewWebhookDTO */ 'ipAllowlist'?: Array; /** * Max positions to match before requiring force:true. Safety guard against accidental bulk operations. * @type {number} * @memberof FeatureTradingViewWebhookDTO */ 'maxMatchCount'?: number; /** * * @type {number} * @memberof FeatureTradingViewWebhookDTO */ 'maxMatchCountOrDefault'?: number; /** * Require timestamp field for SECRET auth (optional replay protection). * @type {boolean} * @memberof FeatureTradingViewWebhookDTO */ 'requireTimestampForSecret'?: boolean; /** * Timestamp tolerance in seconds for replay protection. Requests with timestamps older than this are rejected. * @type {number} * @memberof FeatureTradingViewWebhookDTO */ 'timestampToleranceSeconds'?: number; /** * * @type {number} * @memberof FeatureTradingViewWebhookDTO */ 'timestampToleranceSecondsOrDefault'?: number; /** * Webhook secret for SECRET auth (min 16 chars, stored hashed). Use \'Generate Secret\' button for a random secure secret. * @type {string} * @memberof FeatureTradingViewWebhookDTO */ 'webhookSecret'?: string; } export const FeatureTradingViewWebhookDTOAuthMethodEnum = { Secret: 'SECRET', Hmac: 'HMAC' } as const; export type FeatureTradingViewWebhookDTOAuthMethodEnum = typeof FeatureTradingViewWebhookDTOAuthMethodEnum[keyof typeof FeatureTradingViewWebhookDTOAuthMethodEnum]; /** * DTO for the trading windows feature (copier/account) (PRO) * @export * @interface FeatureTradingWindowsDTO */ export interface FeatureTradingWindowsDTO { /** * Indicates whether to close all open positions at the end of the trading window. * @type {boolean} * @memberof FeatureTradingWindowsDTO */ 'closePositionsAtWindowEnd'?: boolean; /** * Defines the trading windows configuration per symbol. * @type {{ [key: string]: FeatureTradingWindowsDTO; }} * @memberof FeatureTradingWindowsDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureTradingWindowsDTO; }; /** * Indicates whether trades outside the defined windows are temporarily skipped until the next trading window starts. This option is only applicable to copiers. * @type {boolean} * @memberof FeatureTradingWindowsDTO */ 'temporarilySkipUntilNextWindow'?: boolean; /** * List of trading windows defined by the user. * @type {Array} * @memberof FeatureTradingWindowsDTO */ 'tradingWindows': Array; } /** * DTO for the trailing stop feature (copier/account) (PRO) * @export * @interface FeatureTrailingStopDTO */ export interface FeatureTrailingStopDTO { /** * Defines the activation threshold as a percentage of the take profit. For example, if TP is 1000 points and this is set to 50, trailing stop activates at 500 points profit. A value of 0 means this activation method is deactivated. Requires TakeProfit to be set on the trade. If both activationThresholdPoints and activationThresholdPercentage are active (>0), the maximum (most conservative) value will be used. * @type {number} * @memberof FeatureTrailingStopDTO */ 'activationThresholdPercentage'?: number; /** * Defines the activation threshold in points. Trailing stop starts only when profit reaches this value. A value of 0 means this activation method is deactivated. If both activationThresholdPoints and activationThresholdPercentage are active (>0), the maximum (most conservative) value will be used. * @type {number} * @memberof FeatureTrailingStopDTO */ 'activationThresholdPoints'?: number; /** * Defines the initial stop loss distance in points from the entry price when the trade is opened. A value of 0 means no stop loss is applied initially. * @type {number} * @memberof FeatureTrailingStopDTO */ 'initialStopLossPoints'?: number; /** * Defines the minimum distance in points from the current price to the stop loss. Prevents the stop-loss from moving too close. * @type {number} * @memberof FeatureTrailingStopDTO */ 'minimumDistancePoints'?: number; /** * Defines the trailing stop configuration per symbol. * @type {{ [key: string]: FeatureTrailingStopDTO; }} * @memberof FeatureTrailingStopDTO */ 'symbolsConfiguration'?: { [key: string]: FeatureTrailingStopDTO; }; /** * Defines the step distance in points at which the trailing stop will move as the trade progresses. * @type {number} * @memberof FeatureTrailingStopDTO */ 'trailingStepPoints'?: number; } /** * You have only to set the id e.g 1 for Telegram. Example: {id:1} * @export * @interface FeatureTypeDTO */ export interface FeatureTypeDTO { /** * * @type {number} * @memberof FeatureTypeDTO */ 'id': number; /** * * @type {string} * @memberof FeatureTypeDTO */ 'name'?: string; /** * * @type {string} * @memberof FeatureTypeDTO */ 'planName'?: string; } /** * DTO to configure outbound webhook delivery (project/account) * @export * @interface FeatureWebhookDTO */ export interface FeatureWebhookDTO { /** * Authentication method for webhook delivery. HMAC_SHA256: Signs payload with shared secret (most secure, recommended). BEARER_TOKEN: Sends a static token in Authorization header. NONE: No authentication (not recommended). * @type {string} * @memberof FeatureWebhookDTO */ 'authMethod': FeatureWebhookDTOAuthMethodEnum; /** * Bearer token for BEARER_TOKEN auth method. Sent as \'Authorization: Bearer \' header. Required when authMethod is BEARER_TOKEN. Min 16 characters for security. * @type {string} * @memberof FeatureWebhookDTO */ 'bearerToken'?: string; /** * Custom HTTP headers to include in every webhook delivery. Useful for routing, identification, or receiver-side filtering. Max 10 headers. Header names must not override reserved headers (Content-Type, Authorization, X-MetaCopier-*). * @type {{ [key: string]: string; }} * @memberof FeatureWebhookDTO */ 'customHeaders'?: { [key: string]: string; }; /** * Optional description/label for this webhook endpoint (for dashboard display). * @type {string} * @memberof FeatureWebhookDTO */ 'description'?: string; /** * Enable or disable webhook delivery. When disabled, events are not sent but configuration is preserved. * @type {boolean} * @memberof FeatureWebhookDTO */ 'enableOutboundWebhook': boolean; /** * * @type {boolean} * @memberof FeatureWebhookDTO */ 'enabled'?: boolean; /** * The destination URL where webhook payloads will be delivered via HTTP POST. Must be HTTPS in production. * @type {string} * @memberof FeatureWebhookDTO */ 'endpointUrl': string; /** * HMAC signing secret for HMAC_SHA256 auth method. Used to compute: HMAC-SHA256(timestamp + \'.\' + body, secret). Verify on your side by recomputing and comparing signatures. Required when authMethod is HMAC_SHA256. Min 32 characters for security. * @type {string} * @memberof FeatureWebhookDTO */ 'hmacSecret'?: string; /** * Include additional account metadata (broker name, login number) in webhook payload. The accountId is always included by default. When enabled, extra identifying fields are added so receivers can distinguish accounts without a separate lookup. * @type {boolean} * @memberof FeatureWebhookDTO */ 'includeAccountMetadata'?: boolean; /** * Include full position details in webhook payload (symbol, volume, prices, profit, etc.). When false, only accountId and ticket are sent (minimal payload). Full payload is useful for analytics; minimal reduces bandwidth. * @type {boolean} * @memberof FeatureWebhookDTO */ 'includePositionDetails'?: boolean; /** * Include a timestamp in the HMAC signature for replay protection. When enabled, the X-MetaCopier-Timestamp header is included and the signature is computed as HMAC-SHA256(timestamp + \'.\' + body, secret). Receivers can reject old timestamps to prevent replay attacks. Only relevant for HMAC_SHA256 auth method. * @type {boolean} * @memberof FeatureWebhookDTO */ 'includeTimestampInSignature'?: boolean; /** * Initial retry delay in milliseconds. Each subsequent retry doubles the delay (exponential backoff). E.g., 2000ms → retries at 2s, 4s, 8s. * @type {number} * @memberof FeatureWebhookDTO */ 'initialRetryDelayMs'?: number; /** * * @type {number} * @memberof FeatureWebhookDTO */ 'initialRetryDelayMsOrDefault'?: number; /** * Maximum number of retry attempts on delivery failure (5xx or network error). Retries use exponential backoff. 0 = no retries. * @type {number} * @memberof FeatureWebhookDTO */ 'maxRetries'?: number; /** * * @type {number} * @memberof FeatureWebhookDTO */ 'maxRetriesOrDefault'?: number; /** * Maximum webhook deliveries per minute per endpoint. Protects the receiver from being overwhelmed during high-frequency trading. Events exceeding the limit are queued and delivered when the window resets. 0 = unlimited. * @type {number} * @memberof FeatureWebhookDTO */ 'rateLimitPerMinute'?: number; /** * * @type {number} * @memberof FeatureWebhookDTO */ 'rateLimitPerMinuteOrDefault'?: number; /** * Request timeout in seconds. If the receiver does not respond within this time, the delivery is considered failed and may be retried. * @type {number} * @memberof FeatureWebhookDTO */ 'requestTimeoutSeconds'?: number; /** * * @type {number} * @memberof FeatureWebhookDTO */ 'requestTimeoutSecondsOrDefault'?: number; /** * List of events that trigger webhook delivery. Null or empty means ALL events are subscribed. Available events: POSITION_OPENED, POSITION_CLOSED, HISTORY_UPDATED. * @type {Array} * @memberof FeatureWebhookDTO */ 'subscribedEvents'?: Array; } export const FeatureWebhookDTOAuthMethodEnum = { HmacSha256: 'HMAC_SHA256', BearerToken: 'BEARER_TOKEN', None: 'NONE' } as const; export type FeatureWebhookDTOAuthMethodEnum = typeof FeatureWebhookDTOAuthMethodEnum[keyof typeof FeatureWebhookDTOAuthMethodEnum]; export const FeatureWebhookDTOSubscribedEventsEnum = { PositionOpened: 'POSITION_OPENED', PositionClosed: 'POSITION_CLOSED', HistoryUpdated: 'HISTORY_UPDATED' } as const; export type FeatureWebhookDTOSubscribedEventsEnum = typeof FeatureWebhookDTOSubscribedEventsEnum[keyof typeof FeatureWebhookDTOSubscribedEventsEnum]; /** * DTO for weekly profit target feature (account) * @export * @interface FeatureWeeklyProfitTargetDTO */ export interface FeatureWeeklyProfitTargetDTO { /** * Reset this target if the balance falls below the target. For example, after a withdrawal. * @type {boolean} * @memberof FeatureWeeklyProfitTargetDTO */ 'autoResetIfBalanceIsBelow'?: boolean; /** * If set to \'true\', when the profit target is reached, the copier will pause and stop opening new positions instead of closing all existing positions. The open positions will remain active. If set to \'false\', all positions will be closed when the target is reached. * @type {boolean} * @memberof FeatureWeeklyProfitTargetDTO */ 'pauseInsteadOfClose'?: boolean; /** * If set to \'false\', balance changes (deposits and withdrawals) will NOT trigger a reset of this profit target. If set to \'true\', any deposit or withdrawal will reset the profit target reference balance. This option allows you to maintain the profit target calculation even when adding or removing funds from the account. * @type {boolean} * @memberof FeatureWeeklyProfitTargetDTO */ 'resetOnBalanceChange'?: boolean; /** * Enter a weekly absolute profit target in account currency. If the target is reached, all positions will be closed (unless \'pauseInsteadOfClose\' is enabled) and new ones will be blocked until the next week. Set to 0 to deactivate. * @type {number} * @memberof FeatureWeeklyProfitTargetDTO */ 'weeklyAbsoluteProfitTarget'?: number; /** * Enter a weekly target in %. If the target is reached, all positions will be closed (unless \'pauseInsteadOfClose\' is enabled). New positions will not be copied until the next week, and any positions placed outside system will be closed immediately (if \'pauseInsteadOfClose\' is false). Set to 0 to deactivate. * @type {number} * @memberof FeatureWeeklyProfitTargetDTO */ 'weeklyProfitTarget'?: number; /** * Enter a weekly relative profit target in account currency. If the target is reached, all positions will be closed (unless \'pauseInsteadOfClose\' is enabled) and new ones will be blocked until the next week. Set to 0 to deactivate. * @type {number} * @memberof FeatureWeeklyProfitTargetDTO */ 'weeklyRelativeProfitTarget'?: number; } /** * DTO for white-label feature (project) * @export * @interface FeatureWhiteLabelDTO */ export interface FeatureWhiteLabelDTO { /** * Price per day (USD) for an account in a dedicated project * @type {number} * @memberof FeatureWhiteLabelDTO */ 'accountPriceDedicated'?: number; /** * Minimum daily price in USD for an account in a dedicated project after volume discount * @type {number} * @memberof FeatureWhiteLabelDTO */ 'accountPriceDedicatedMin'?: number; /** * Price per day (USD) for an account in a shared project * @type {number} * @memberof FeatureWhiteLabelDTO */ 'accountPriceShared'?: number; /** * Select allowed account types for the white-label solution. If not specified, all account types are allowed. * @type {Array} * @memberof FeatureWhiteLabelDTO */ 'accountTypes'?: Array; /** * Comma-separated list of email domains (without @) allowed to register/access this white-label platform. Only enforced when restrictRegistration is true. Users with emails matching any listed domain are allowed. * @type {Array} * @memberof FeatureWhiteLabelDTO */ 'allowedEmailDomains'?: Array; /** * Select allowed regions for the white-label solution. If empty or not specified, all regions are allowed. * @type {Array} * @memberof FeatureWhiteLabelDTO */ 'allowedRegions'?: Array; /** * Comma-separated list of email addresses allowed to register/access this white-label platform. Only enforced when restrictRegistration is true. * @type {Array} * @memberof FeatureWhiteLabelDTO */ 'allowedRegistrationEmails'?: Array; /** * Hex color code (e.g. #1C1917) for the authentication page background. * @type {string} * @memberof FeatureWhiteLabelDTO */ 'authPageBackground'?: string; /** * * @type {string} * @memberof FeatureWhiteLabelDTO */ 'ctraderClientId'?: string; /** * * @type {string} * @memberof FeatureWhiteLabelDTO */ 'ctraderClientSecret'?: string; /** * Custom CSS that will be injected into the white-label frontend. Use this to customize styling beyond the built-in theme options. * @type {string} * @memberof FeatureWhiteLabelDTO */ 'customCss'?: string; /** * Custom JavaScript that will be injected into the white-label frontend. Use this to integrate third-party tools like chatbots, analytics, or tracking scripts. * @type {string} * @memberof FeatureWhiteLabelDTO */ 'customJavascript'?: string; /** * Disable the ability to add copiers. When enabled, users cannot add new copiers. * @type {boolean} * @memberof FeatureWhiteLabelDTO */ 'disableAddingCopiers'?: boolean; /** * Disable the purchase of dedicated IPs. When enabled, users cannot buy dedicated IPs. * @type {boolean} * @memberof FeatureWhiteLabelDTO */ 'disableDedicatedIpPurchase'?: boolean; /** * Disable the creation of dedicated projects. When enabled, users can only create shared projects. * @type {boolean} * @memberof FeatureWhiteLabelDTO */ 'disableDedicatedProjects'?: boolean; /** * Disable automatic invoice generation. When enabled, the white-label owner handles invoicing externally. * @type {boolean} * @memberof FeatureWhiteLabelDTO */ 'disableInvoicing'?: boolean; /** * Disable the Subscribe button on the marketplace. When enabled, users cannot subscribe to signals from the marketplace. * @type {boolean} * @memberof FeatureWhiteLabelDTO */ 'disableMarketplaceSubscription'?: boolean; /** * Enable the Telegram Signals feature for this white-label. When enabled, users can create Telegram connector accounts. * @type {boolean} * @memberof FeatureWhiteLabelDTO */ 'enableTelegramSignals'?: boolean; /** * Enable the TradingView Webhook feature for this white-label. When enabled, users can create TradingView webhook accounts. Requires DNS alias and ingress configuration - contact support to activate. * @type {boolean} * @memberof FeatureWhiteLabelDTO */ 'enableTradingViewWebhook'?: boolean; /** * Price per day (USD) for feature PRO * @type {number} * @memberof FeatureWhiteLabelDTO */ 'featurePrice'?: number; /** * Hide broker information in signal provider listings. When enabled, broker details are not displayed. * @type {boolean} * @memberof FeatureWhiteLabelDTO */ 'hideBrokerInSignalProvider'?: boolean; /** * Hide current balance in signal provider listings and detail pages. When enabled, balance and equity values are not displayed. * @type {boolean} * @memberof FeatureWhiteLabelDTO */ 'hideCurrentBalanceInSignalProvider'?: boolean; /** * Optional URL that adds a \'Home\' menu item to the navigation. When set, clicking the logo also navigates to this URL. * @type {string} * @memberof FeatureWhiteLabelDTO */ 'homeLink'?: string; /** * Select a layout for the white-label solution. * @type {string} * @memberof FeatureWhiteLabelDTO */ 'layout'?: string; /** * Publicly reachable URL (PNG, SVG, etc.) or a CDN path for the logo displayed in emails and the white-label UI. * @type {string} * @memberof FeatureWhiteLabelDTO */ 'logo': string; /** * Maximum number of accounts allowed per project. Set to 0 to use platform default. * @type {number} * @memberof FeatureWhiteLabelDTO */ 'maxAccountsPerProject'?: number; /** * Maximum number of projects a user can create. Set to 0 to use platform default. * @type {number} * @memberof FeatureWhiteLabelDTO */ 'maxProjectsPerUser'?: number; /** * Customer-facing brand or business name, shown as the sender name in emails * @type {string} * @memberof FeatureWhiteLabelDTO */ 'name': string; /** * Whether the white-label has PRO enabled * @type {boolean} * @memberof FeatureWhiteLabelDTO */ 'pro'?: boolean; /** * URL to redirect restricted users to a registration/signup page. Required when restrictRegistration is enabled. * @type {string} * @memberof FeatureWhiteLabelDTO */ 'registrationLink'?: string; /** * When true, only email addresses listed in allowedRegistrationEmails (or matching allowedEmailDomains) can access this white-label platform. * @type {boolean} * @memberof FeatureWhiteLabelDTO */ 'restrictRegistration'?: boolean; /** * Show signal score on the marketplace. When enabled, signal scores are visible to users on the white-label marketplace. * @type {boolean} * @memberof FeatureWhiteLabelDTO */ 'showScoreOnMarketplace'?: boolean; /** * Custom label to replace \'Signal Provider\' / \'Signal\' terminology in the white-label UI. For example, set to \'EA Expert\' or \'Strategy\' if the word \'Signal\' cannot be used for regulatory reasons. When null or empty, the default \'Signal\' terminology is used. * @type {string} * @memberof FeatureWhiteLabelDTO */ 'signalProviderAlias'?: string; /** * Stripe secret API key (sk_live_... or sk_test_...) used to save customers, validate addresses, and handle billing. Note: Using sk_test_ keys will automatically enable disableInvoicing. * @type {string} * @memberof FeatureWhiteLabelDTO */ 'stripeApiKey': string; /** * Sub-domain used for the white-label solution. Root domains are not allowed. * @type {string} * @memberof FeatureWhiteLabelDTO */ 'subdomain': string; /** * Optional URL that adds a \'Support\' menu item to the navigation, linking to your help desk or support page. * @type {string} * @memberof FeatureWhiteLabelDTO */ 'supportLink'?: string; /** * Select a theme for the white-label solution. * @type {string} * @memberof FeatureWhiteLabelDTO */ 'theme'?: string; } /** * Represents a field in a DTO that can be included/excluded via API key access policy * @export * @interface FieldMetadataDTO */ export interface FieldMetadataDTO { /** * Field description from @Schema annotation if available * @type {string} * @memberof FieldMetadataDTO */ 'description'?: string; /** * The DTO class name this field belongs to * @type {string} * @memberof FieldMetadataDTO */ 'dtoClassName'?: string; /** * Field name * @type {string} * @memberof FieldMetadataDTO */ 'fieldName'?: string; /** * Field Java type * @type {string} * @memberof FieldMetadataDTO */ 'fieldType'?: string; } /** * Individual charge details per follower for this month * @export * @interface FollowerChargeDetailDTO */ export interface FollowerChargeDetailDTO { /** * Billing model applied: MONTHLY_PROFIT or HIGH_WATERMARK * @type {string} * @memberof FollowerChargeDetailDTO */ 'billingModel'?: string; /** * HIGH_WATERMARK only: current cumulative profit level from subscription start * @type {number} * @memberof FollowerChargeDetailDTO */ 'currentCumulativeProfit'?: number; /** * UUID of the follower\'s trading account * @type {string} * @memberof FollowerChargeDetailDTO */ 'followerAccountId'?: string; /** * Email of the follower\'s project owner (obfuscated for public providers, full for allowed customers) * @type {string} * @memberof FollowerChargeDetailDTO */ 'followerEmail'?: string; /** * Profit generated by this follower\'s account during the billing period * @type {number} * @memberof FollowerChargeDetailDTO */ 'followerProfit'?: number; /** * Internal invoice ID (integer) * @type {number} * @memberof FollowerChargeDetailDTO */ 'invoiceId'?: number; /** * Public invoice number * @type {string} * @memberof FollowerChargeDetailDTO */ 'invoiceNumber'?: string; /** * Invoice status: PAID, OPEN, or VOID * @type {string} * @memberof FollowerChargeDetailDTO */ 'invoiceStatus'?: string; /** * Monthly subscription fee charged to this follower for the period * @type {number} * @memberof FollowerChargeDetailDTO */ 'monthlySubscriptionFee'?: number; /** * HIGH_WATERMARK only: previous cumulative profit peak before this billing period * @type {number} * @memberof FollowerChargeDetailDTO */ 'previousHighWatermark'?: number; /** * Calculated profit sharing charge: followerProfit × profitSharingPercentage / 100 * @type {number} * @memberof FollowerChargeDetailDTO */ 'profitSharingAmount'?: number; /** * Profit sharing percentage applied to this follower\'s profit * @type {number} * @memberof FollowerChargeDetailDTO */ 'profitSharingPercentage'?: number; /** * Total charge for this follower: monthlySubscriptionFee + profitSharingAmount * @type {number} * @memberof FollowerChargeDetailDTO */ 'totalAmount'?: number; } /** * * @export * @interface ForecastDTO */ export interface ForecastDTO { /** * * @type {CurrencyTypeDTO} * @memberof ForecastDTO */ 'currency'?: CurrencyTypeDTO; /** * * @type {Array} * @memberof ForecastDTO */ 'positions'?: Array; /** * * @type {number} * @memberof ForecastDTO */ 'total'?: number; } /** * Represents a frontend feature that can be hidden via API key access policy * @export * @interface FrontendFeatureDTO */ export interface FrontendFeatureDTO { /** * Feature description * @type {string} * @memberof FrontendFeatureDTO */ 'description'?: string; /** * Feature enum name * @type {string} * @memberof FrontendFeatureDTO */ 'id'?: string; /** * Feature display name * @type {string} * @memberof FrontendFeatureDTO */ 'name'?: string; } /** * Grid position and size configuration for a widget * @export * @interface GridsterItemDTO */ export interface GridsterItemDTO { /** * Number of columns * @type {number} * @memberof GridsterItemDTO */ 'cols'?: number; /** * Whether dragging is enabled * @type {boolean} * @memberof GridsterItemDTO */ 'dragEnabled'?: boolean; /** * Maximum number of columns * @type {number} * @memberof GridsterItemDTO */ 'maxItemCols'?: number; /** * Maximum number of rows * @type {number} * @memberof GridsterItemDTO */ 'maxItemRows'?: number; /** * Minimum number of columns * @type {number} * @memberof GridsterItemDTO */ 'minItemCols'?: number; /** * Minimum number of rows * @type {number} * @memberof GridsterItemDTO */ 'minItemRows'?: number; /** * Whether resizing is enabled * @type {boolean} * @memberof GridsterItemDTO */ 'resizeEnabled'?: boolean; /** * Number of rows * @type {number} * @memberof GridsterItemDTO */ 'rows'?: number; /** * Column position * @type {number} * @memberof GridsterItemDTO */ 'x'?: number; /** * Row position * @type {number} * @memberof GridsterItemDTO */ 'y'?: number; } /** * * @export * @interface InvoiceDTO */ export interface InvoiceDTO { /** * * @type {number} * @memberof InvoiceDTO */ 'amount'?: number; /** * ISO 8601 * @type {string} * @memberof InvoiceDTO */ 'created'?: string; /** * * @type {CurrencyTypeDTO} * @memberof InvoiceDTO */ 'currencyType': CurrencyTypeDTO; /** * * @type {string} * @memberof InvoiceDTO */ 'description'?: string; /** * * @type {string} * @memberof InvoiceDTO */ 'descriptionPosition'?: string; /** * * @type {number} * @memberof InvoiceDTO */ 'discount'?: number; /** * ISO 8601 * @type {string} * @memberof InvoiceDTO */ 'dueDate'?: string; /** * * @type {string} * @memberof InvoiceDTO */ 'id'?: string; /** * * @type {string} * @memberof InvoiceDTO */ 'invoiceNumber'?: string; /** * * @type {string} * @memberof InvoiceDTO */ 'invoicePaymentUrl'?: string; /** * * @type {string} * @memberof InvoiceDTO */ 'invoicePdfUrl'?: string; /** * * @type {string} * @memberof InvoiceDTO */ 'projectId'?: string; /** * * @type {string} * @memberof InvoiceDTO */ 'projectName'?: string; /** * * @type {string} * @memberof InvoiceDTO */ 'status'?: string; /** * * @type {TaxDTO} * @memberof InvoiceDTO */ 'tax'?: TaxDTO; } /** * Invoice summary information * @export * @interface InvoiceSummaryDTO */ export interface InvoiceSummaryDTO { /** * Invoice amount * @type {number} * @memberof InvoiceSummaryDTO */ 'amount'?: number; /** * Invoice creation date * @type {string} * @memberof InvoiceSummaryDTO */ 'created'?: string; /** * Invoice description * @type {string} * @memberof InvoiceSummaryDTO */ 'description'?: string; /** * Invoice discount * @type {number} * @memberof InvoiceSummaryDTO */ 'discount'?: number; /** * Invoice due date * @type {string} * @memberof InvoiceSummaryDTO */ 'dueDate'?: string; /** * Invoice ID * @type {number} * @memberof InvoiceSummaryDTO */ 'invoiceId'?: number; /** * Invoice number * @type {string} * @memberof InvoiceSummaryDTO */ 'invoiceNumber'?: string; /** * Invoice status (PAID, UNPAID, etc.) * @type {string} * @memberof InvoiceSummaryDTO */ 'status'?: string; } /** * * @export * @interface LogDTO */ export interface LogDTO { /** * * @type {string} * @memberof LogDTO */ 'accountId'?: string; /** * * @type {boolean} * @memberof LogDTO */ 'acknowledged'?: boolean; /** * * @type {string} * @memberof LogDTO */ 'customerEmail'?: string; /** * ISO 8601 * @type {string} * @memberof LogDTO */ 'date'?: string; /** * * @type {number} * @memberof LogDTO */ 'id'?: number; /** * * @type {string} * @memberof LogDTO */ 'logType'?: string; /** * * @type {string} * @memberof LogDTO */ 'projectId'?: string; /** * * @type {string} * @memberof LogDTO */ 'text'?: string; } /** * You have only to set the id e.g 1 for Telegram. Example: {id:1} * @export * @interface LogTypeDTO */ export interface LogTypeDTO { /** * * @type {number} * @memberof LogTypeDTO */ 'id': number; /** * * @type {string} * @memberof LogTypeDTO */ 'name'?: string; } /** * * @export * @interface MarketQuoteDTO */ export interface MarketQuoteDTO { /** * Ask price * @type {number} * @memberof MarketQuoteDTO */ 'ask'?: number; /** * Bid price * @type {number} * @memberof MarketQuoteDTO */ 'bid'?: number; /** * Symbol name * @type {string} * @memberof MarketQuoteDTO */ 'symbol'?: string; /** * Quote timestamp (ISO 8601) * @type {string} * @memberof MarketQuoteDTO */ 'timestamp'?: string; } /** * * @export * @interface MarketplaceDTO */ export interface MarketplaceDTO { /** * * @type {Array} * @memberof MarketplaceDTO */ 'signals'?: Array; } /** * List of missing symbol mappings for this account * @export * @interface MissingSymbolMappingDTO */ export interface MissingSymbolMappingDTO { /** * * @type {string} * @memberof MissingSymbolMappingDTO */ 'copierId'?: string; /** * * @type {string} * @memberof MissingSymbolMappingDTO */ 'fromAccount'?: string; /** * * @type {string} * @memberof MissingSymbolMappingDTO */ 'fromAccountId'?: string; /** * * @type {number} * @memberof MissingSymbolMappingDTO */ 'lastTimestampDetected'?: number; /** * * @type {string} * @memberof MissingSymbolMappingDTO */ 'symbol'?: string; } /** * Per-month earnings breakdown with individual follower charge details * @export * @interface MonthlyEarningsDTO */ export interface MonthlyEarningsDTO { /** * Costs the signal provider covers for hosting follower accounts (only when coverFollowerCosts is enabled) * @type {number} * @memberof MonthlyEarningsDTO */ 'coveredFollowerCosts'?: number; /** * Individual charge details per follower for this month * @type {Array} * @memberof MonthlyEarningsDTO */ 'followerCharges'?: Array; /** * Month number (1-12) * @type {number} * @memberof MonthlyEarningsDTO */ 'month'?: number; /** * Net amount credited to the provider\'s balance this month * @type {number} * @memberof MonthlyEarningsDTO */ 'totalCreditedNet'?: number; /** * Total gross amount from all follower charges this month * @type {number} * @memberof MonthlyEarningsDTO */ 'totalEarnedGross'?: number; /** * Gross amount from PAID invoices this month * @type {number} * @memberof MonthlyEarningsDTO */ 'totalEarnedGrossPaid'?: number; /** * Gross amount from OPEN invoices this month * @type {number} * @memberof MonthlyEarningsDTO */ 'totalEarnedGrossUnpaid'?: number; /** * Gross amount from VOID (cancelled) invoices this month * @type {number} * @memberof MonthlyEarningsDTO */ 'totalEarnedGrossVoid'?: number; /** * Year (e.g. 2026) * @type {number} * @memberof MonthlyEarningsDTO */ 'year'?: number; } /** * * @export * @interface NotificationCategoryTypeDTO */ export interface NotificationCategoryTypeDTO { /** * * @type {number} * @memberof NotificationCategoryTypeDTO */ 'id': number; /** * * @type {string} * @memberof NotificationCategoryTypeDTO */ 'name'?: string; } /** * * @export * @interface PaymentMethodDTO */ export interface PaymentMethodDTO { /** * * @type {string} * @memberof PaymentMethodDTO */ 'created'?: string; /** * * @type {string} * @memberof PaymentMethodDTO */ 'currency'?: string; /** * * @type {string} * @memberof PaymentMethodDTO */ 'expirationDate'?: string; /** * * @type {string} * @memberof PaymentMethodDTO */ 'id'?: string; /** * * @type {string} * @memberof PaymentMethodDTO */ 'identifier'?: string; /** * * @type {string} * @memberof PaymentMethodDTO */ 'number'?: string; /** * * @type {boolean} * @memberof PaymentMethodDTO */ 'status'?: boolean; /** * * @type {string} * @memberof PaymentMethodDTO */ 'statusMessage'?: string; /** * * @type {string} * @memberof PaymentMethodDTO */ 'type'?: string; } /** * * @export * @interface PayoutDTO */ export interface PayoutDTO { /** * Wise payout details * @type {Array} * @memberof PayoutDTO */ 'wiseDetails'?: Array; } /** * Performance metrics * @export * @interface PerformanceMetricsDTO */ export interface PerformanceMetricsDTO { /** * * @type {AccountTypeDTO} * @memberof PerformanceMetricsDTO */ 'accountType'?: AccountTypeDTO; /** * True if collected balance/equity history exists and advanced analytics can be shown * @type {boolean} * @memberof PerformanceMetricsDTO */ 'advancedAnalyticsAvailable'?: boolean; /** * Average commission paid per trade * @type {number} * @memberof PerformanceMetricsDTO */ 'avgCommissionPerTrade'?: number; /** * Average drawdown percentage during trading period (%) * @type {number} * @memberof PerformanceMetricsDTO */ 'avgDrawdown'?: number; /** * Average holding time for closed trades in seconds (duration) * @type {number} * @memberof PerformanceMetricsDTO */ 'avgHoldingTimeSeconds'?: number; /** * Average loss of losing trades as positive amount * @type {number} * @memberof PerformanceMetricsDTO */ 'avgLoss'?: number; /** * Average lot size per trade * @type {number} * @memberof PerformanceMetricsDTO */ 'avgLotSize'?: number; /** * Average profit per trade in account currency (amount) * @type {number} * @memberof PerformanceMetricsDTO */ 'avgNetProfitPerTrade'?: number; /** * Monthly average profit amount - key: YYYY-MM format, value: average profit per trade (amount) * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'avgProfitPerMonth'?: { [key: string]: number; }; /** * Average number of hours to recover from a drawdown back to a new equity peak * @type {number} * @memberof PerformanceMetricsDTO */ 'avgRecoveryTimeHours'?: number; /** * Average risk/reward ratio * @type {number} * @memberof PerformanceMetricsDTO */ 'avgRiskReward'?: number; /** * Average swap per trade in account currency * @type {number} * @memberof PerformanceMetricsDTO */ 'avgSwapPerTrade'?: number; /** * Average profit of winning trades * @type {number} * @memberof PerformanceMetricsDTO */ 'avgWin'?: number; /** * Daily balance-to-equity divergence ratio — key: YYYY-MM-DD, value: abs(equity - balance) / balance as percentage (%) * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'balanceEquityDivergencePerDay'?: { [key: string]: number; }; /** * * @type {PeriodPerformanceDTO} * @memberof PerformanceMetricsDTO */ 'bestDay'?: PeriodPerformanceDTO; /** * * @type {PeriodPerformanceDTO} * @memberof PerformanceMetricsDTO */ 'bestMonth'?: PeriodPerformanceDTO; /** * * @type {PeriodPerformanceDTO} * @memberof PerformanceMetricsDTO */ 'bestWeek'?: PeriodPerformanceDTO; /** * Number of breakeven trades * @type {number} * @memberof PerformanceMetricsDTO */ 'breakevenTrades'?: number; /** * Broker name or identifier * @type {string} * @memberof PerformanceMetricsDTO */ 'broker'?: string; /** * Account currency code (e.g., USD, EUR, GBP) * @type {string} * @memberof PerformanceMetricsDTO */ 'currency'?: string; /** * Current equity drawdown from the previous peak (%) * @type {number} * @memberof PerformanceMetricsDTO */ 'currentEquityDrawdown'?: number; /** * Current floating profit/loss in account currency (amount) * @type {number} * @memberof PerformanceMetricsDTO */ 'currentFloatingPnl'?: number; /** * Daily account balance - key: YYYY-MM-DD format, value: end-of-day balance UTC in account currency (amount) * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'dailyBalance'?: { [key: string]: number; }; /** * Daily balance transactions - key: YYYY-MM-DD format, value: net transaction amount (positive for deposits, negative for withdrawals) in account currency (amount) * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'dailyBalanceTransactions'?: { [key: string]: number; }; /** * Daily account equity - key: YYYY-MM-DD format, value: end-of-day equity UTC in account currency (amount) * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'dailyEquity'?: { [key: string]: number; }; /** * True if the Data Collector feature is enabled for the account * @type {boolean} * @memberof PerformanceMetricsDTO */ 'dataCollectorEnabled'?: boolean; /** * Timestamp of the most recent Data Collector sample * @type {string} * @memberof PerformanceMetricsDTO */ 'dataCollectorHistoryEndAt'?: string; /** * Timestamp of the first available Data Collector sample * @type {string} * @memberof PerformanceMetricsDTO */ 'dataCollectorHistoryStartAt'?: string; /** * Number of Data Collector samples used for advanced analytics * @type {number} * @memberof PerformanceMetricsDTO */ 'dataCollectorSamples'?: number; /** * * @type {DirectionPerformanceDTO} * @memberof PerformanceMetricsDTO */ 'directionPerformance'?: DirectionPerformanceDTO; /** * R-squared of equity curve vs. time linear regression (0-1). Higher means smoother equity growth. * @type {number} * @memberof PerformanceMetricsDTO */ 'equityCurveSmoothness'?: number; /** * Daily equity drawdown from Data Collector - key: YYYY-MM-DD format, value: drawdown from previous equity peak (%) * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'equityDrawdownPerDay'?: { [key: string]: number; }; /** * Intraday equity volatility — standard deviation of per-sample equity changes as percentage of equity (%) * @type {number} * @memberof PerformanceMetricsDTO */ 'equityVolatility'?: number; /** * Mathematical expectancy per trade in account currency (amount) * @type {number} * @memberof PerformanceMetricsDTO */ 'expectancy'?: number; /** * Timestamp of the first trade in the history window * @type {string} * @memberof PerformanceMetricsDTO */ 'firstTradeAt'?: string; /** * Daily floating PnL from Data Collector - key: YYYY-MM-DD format, value: end-of-day floating profit/loss in account currency (amount) * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'floatingPnlPerDay'?: { [key: string]: number; }; /** * Absolute sum of all losing trades * @type {number} * @memberof PerformanceMetricsDTO */ 'grossLoss'?: number; /** * Sum of all profitable trades * @type {number} * @memberof PerformanceMetricsDTO */ 'grossProfit'?: number; /** * Worst intraday peak-to-trough equity drawdown from granular Data Collector samples (%) * @type {number} * @memberof PerformanceMetricsDTO */ 'intradayMaxDrawdown'?: number; /** * Largest single losing trade in account currency (amount, negative value) * @type {number} * @memberof PerformanceMetricsDTO */ 'largestLoss'?: number; /** * Largest single winning trade in account currency (amount) * @type {number} * @memberof PerformanceMetricsDTO */ 'largestWin'?: number; /** * Timestamp of the last trade in the history window * @type {string} * @memberof PerformanceMetricsDTO */ 'lastTradeAt'?: string; /** * Longest consecutive losing trades streak (count) * @type {number} * @memberof PerformanceMetricsDTO */ 'longestLossStreak'?: number; /** * Longest consecutive winning trades streak (count) * @type {number} * @memberof PerformanceMetricsDTO */ 'longestWinStreak'?: number; /** * Number of losing trades * @type {number} * @memberof PerformanceMetricsDTO */ 'losingTrades'?: number; /** * Maximum equity drawdown observed in collected history (%) * @type {number} * @memberof PerformanceMetricsDTO */ 'maxCollectorDrawdown'?: number; /** * Maximum drawdown percentage - worst peak-to-trough decline (%) * @type {number} * @memberof PerformanceMetricsDTO */ 'maxDrawdown'?: number; /** * Maximum adverse floating loss observed in Data Collector history (amount, negative value) * @type {number} * @memberof PerformanceMetricsDTO */ 'maxFloatingLoss'?: number; /** * Maximum favorable floating profit observed in Data Collector history (amount) * @type {number} * @memberof PerformanceMetricsDTO */ 'maxFloatingProfit'?: number; /** * Maximum lot size used in a single trade * @type {number} * @memberof PerformanceMetricsDTO */ 'maxLotSize'?: number; /** * Maximum number of hours to recover from a drawdown back to a new equity peak * @type {number} * @memberof PerformanceMetricsDTO */ 'maxRecoveryTimeHours'?: number; /** * Active months from first to last trade (count) * @type {number} * @memberof PerformanceMetricsDTO */ 'monthsActive'?: number; /** * Maximum favorable floating PnL ever observed in granular Data Collector samples (amount) * @type {number} * @memberof PerformanceMetricsDTO */ 'peakFloatingPnl'?: number; /** * Monthly profit amount in account currency - key: YYYY-MM format, value: total profit (amount) * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'profitAmountPerMonth'?: { [key: string]: number; }; /** * Profit factor as ratio * @type {number} * @memberof PerformanceMetricsDTO */ 'profitFactor'?: number; /** * Net profit by hour of day (UTC) * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'profitPerHour'?: { [key: string]: number; }; /** * Net profit by weekday * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'profitPerWeekday'?: { [key: string]: number; }; /** * Monthly profit percentage - key: YYYY-MM format, value: profit percentage (%) * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'profitPercentagePerMonth'?: { [key: string]: number; }; /** * Composite signal quality score (0-100) based on multiple performance metrics * @type {number} * @memberof PerformanceMetricsDTO */ 'score'?: number; /** * * @type {ScoreBreakdownDTO} * @memberof PerformanceMetricsDTO */ 'scoreBreakdown'?: ScoreBreakdownDTO; /** * Detailed analytics per traded symbol * @type {Array} * @memberof PerformanceMetricsDTO */ 'symbolAnalytics'?: Array; /** * Percentage of time equity was below its previous peak, based on Data Collector samples (%) * @type {number} * @memberof PerformanceMetricsDTO */ 'timeInDrawdownPercent'?: number; /** * Total commissions paid across all trades in account currency (amount) * @type {number} * @memberof PerformanceMetricsDTO */ 'totalCommissions'?: number; /** * Total lot size traded across all trades (lots) * @type {number} * @memberof PerformanceMetricsDTO */ 'totalLotSize'?: number; /** * Total net profit in account currency (amount) * @type {number} * @memberof PerformanceMetricsDTO */ 'totalNetProfit'?: number; /** * Total swap across all trades in account currency * @type {number} * @memberof PerformanceMetricsDTO */ 'totalSwap'?: number; /** * Total number of closed trades in history window (count) * @type {number} * @memberof PerformanceMetricsDTO */ 'totalTrades'?: number; /** * Trade count by holding-time bucket * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'tradesByHoldingBucket'?: { [key: string]: number; }; /** * Trade count per day - key: YYYY-MM-DD format, value: number of trades (count) * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'tradesPerDay'?: { [key: string]: number; }; /** * Trade count by hour of day (UTC) * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'tradesPerHour'?: { [key: string]: number; }; /** * Trade count per symbol - key: symbol name (e.g. EURUSD, GBPUSD), value: number of trades (count) * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'tradesPerSymbol'?: { [key: string]: number; }; /** * Trade count by weekday * @type {{ [key: string]: number; }} * @memberof PerformanceMetricsDTO */ 'tradesPerWeekday'?: { [key: string]: number; }; /** * Maximum adverse floating PnL ever observed in granular Data Collector samples (amount, negative) * @type {number} * @memberof PerformanceMetricsDTO */ 'troughFloatingPnl'?: number; /** * Win rate in percentage [0..100] (%) * @type {number} * @memberof PerformanceMetricsDTO */ 'winRate'?: number; /** * Number of winning trades * @type {number} * @memberof PerformanceMetricsDTO */ 'winningTrades'?: number; /** * * @type {PeriodPerformanceDTO} * @memberof PerformanceMetricsDTO */ 'worstDay'?: PeriodPerformanceDTO; /** * * @type {PeriodPerformanceDTO} * @memberof PerformanceMetricsDTO */ 'worstMonth'?: PeriodPerformanceDTO; /** * * @type {PeriodPerformanceDTO} * @memberof PerformanceMetricsDTO */ 'worstWeek'?: PeriodPerformanceDTO; } /** * Performance summary for a named period * @export * @interface PeriodPerformanceDTO */ export interface PeriodPerformanceDTO { /** * Period label, for example 2026-04 or 2026-W14 * @type {string} * @memberof PeriodPerformanceDTO */ 'label'?: string; /** * Net profit for the period * @type {number} * @memberof PeriodPerformanceDTO */ 'netProfit'?: number; } /** * List of historical positions relevant to the account\'s performance as of the recorded date. * @export * @interface PositionDTO */ export interface PositionDTO { /** * Original time string from the broker * @type {string} * @memberof PositionDTO */ 'brokerTimeClose'?: string; /** * Original time string from the broker * @type {string} * @memberof PositionDTO */ 'brokerTimeOpen'?: string; /** * * @type {number} * @memberof PositionDTO */ 'closePrice'?: number; /** * ISO 8601 * @type {string} * @memberof PositionDTO */ 'closeTime'?: string; /** * * @type {string} * @memberof PositionDTO */ 'comment'?: string; /** * * @type {number} * @memberof PositionDTO */ 'commission'?: number; /** * * @type {string} * @memberof PositionDTO */ 'dealType'?: PositionDTODealTypeEnum; /** * * @type {string} * @memberof PositionDTO */ 'id'?: string; /** * Magic number carried by the position, as a string. Absent/null when no magic number was set on the order (a magic of 0 on the broker side is reported as absent rather than as the string \"0\"). * @type {string} * @memberof PositionDTO */ 'magicNumber'?: string; /** * * @type {number} * @memberof PositionDTO */ 'netProfit'?: number; /** * * @type {number} * @memberof PositionDTO */ 'openPrice'?: number; /** * ISO 8601 * @type {string} * @memberof PositionDTO */ 'openTime'?: string; /** * * @type {string} * @memberof PositionDTO */ 'orderType'?: PositionDTOOrderTypeEnum; /** * * @type {string} * @memberof PositionDTO */ 'placedType'?: PositionDTOPlacedTypeEnum; /** * * @type {number} * @memberof PositionDTO */ 'profit'?: number; /** * * @type {string} * @memberof PositionDTO */ 'requestId'?: string; /** * * @type {string} * @memberof PositionDTO */ 'state'?: string; /** * * @type {number} * @memberof PositionDTO */ 'stopLoss'?: number; /** * * @type {number} * @memberof PositionDTO */ 'swap'?: number; /** * * @type {string} * @memberof PositionDTO */ 'symbol'?: string; /** * * @type {number} * @memberof PositionDTO */ 'takeProfit'?: number; /** * * @type {number} * @memberof PositionDTO */ 'volume'?: number; } export const PositionDTODealTypeEnum = { DealBuy: 'DealBuy', DealSell: 'DealSell', Balance: 'Balance', Credit: 'Credit', Charge: 'Charge', Correction: 'Correction', Bonus: 'Bonus', Commission: 'Commission', DailyCommission: 'DailyCommission', MonthlyCommission: 'MonthlyCommission', DailyAgentCommission: 'DailyAgentCommission', MonthlyAgentCommission: 'MonthlyAgentCommission', InterestRate: 'InterestRate', CanceledBuy: 'CanceledBuy', CanceledSell: 'CanceledSell', Dividend: 'Dividend', FrankedDividend: 'FrankedDividend', Tax: 'Tax', AgentCommission: 'AgentCommission', SoCompensation: 'SoCompensation', SoCreditCompensation: 'SoCreditCompensation' } as const; export type PositionDTODealTypeEnum = typeof PositionDTODealTypeEnum[keyof typeof PositionDTODealTypeEnum]; export const PositionDTOOrderTypeEnum = { Buy: 'Buy', Sell: 'Sell', BuyLimit: 'BuyLimit', SellLimit: 'SellLimit', BuyStop: 'BuyStop', SellStop: 'SellStop' } as const; export type PositionDTOOrderTypeEnum = typeof PositionDTOOrderTypeEnum[keyof typeof PositionDTOOrderTypeEnum]; export const PositionDTOPlacedTypeEnum = { Manually: 'Manually', Mobile: 'Mobile', Web: 'Web', ByExpert: 'ByExpert', OnSl: 'OnSL', OnTp: 'OnTP', OnStopOut: 'OnStopOut', OnRollover: 'OnRollover', OnVmargin: 'OnVmargin', OnSplit: 'OnSplit', ByDealer: 'ByDealer', Gateway: 'Gateway', Signal: 'Signal', Settlement: 'Settlement', Transfer: 'Transfer', Sync: 'Sync', ExternalService: 'ExternalService', Migration: 'Migration' } as const; export type PositionDTOPlacedTypeEnum = typeof PositionDTOPlacedTypeEnum[keyof typeof PositionDTOPlacedTypeEnum]; /** * * @export * @interface PositionRequestDTO */ export interface PositionRequestDTO { /** * Max 31 characters (broker limit). When opening a position via /rest/api/v1/accounts/{accountId}/positions, an \'API|YOUR_REQUEST_ID|\' prefix (5-8 chars) is prepended, so the effective user comment is ~23 chars before truncation. For modify requests, the full 31 characters are available. * @type {string} * @memberof PositionRequestDTO */ 'comment'?: string; /** * At the moment, only numbers as string are supported * @type {string} * @memberof PositionRequestDTO */ 'magicNumber'?: string; /** * Used for pending orders (buy limit, stop limit, ...). For buy or sell you can enter 0. * @type {number} * @memberof PositionRequestDTO */ 'openPrice': number; /** * * @type {string} * @memberof PositionRequestDTO */ 'orderType': PositionRequestDTOOrderTypeEnum; /** * When true, stop loss and take profit values are interpreted as distance in points from the fill price. The position will be opened first, then automatically modified with the calculated absolute SL/TP prices. For cTrader accounts, the platform handles this natively. For all other account types (MT4, MT5, etc.), the SL/TP is set via a fire-and-forget modify order after the position is opened. * @type {boolean} * @memberof PositionRequestDTO */ 'relativeTpSl'?: boolean; /** * A client request ID to avoid the request being executed multiple times due to network or client errors. The IDs start at 0 and increment up to 999, then begin again at 0. * @type {number} * @memberof PositionRequestDTO */ 'requestId': number; /** * A value of 0 means no stop loss * @type {number} * @memberof PositionRequestDTO */ 'stopLoss': number; /** * * @type {string} * @memberof PositionRequestDTO */ 'symbol': string; /** * A value of 0 means no take profit * @type {number} * @memberof PositionRequestDTO */ 'takeProfit': number; /** * In lots. The volume will be automatically adjusted according to the symbol data. * @type {number} * @memberof PositionRequestDTO */ 'volume': number; } export const PositionRequestDTOOrderTypeEnum = { Buy: 'Buy', Sell: 'Sell', BuyLimit: 'BuyLimit', SellLimit: 'SellLimit', BuyStop: 'BuyStop', SellStop: 'SellStop' } as const; export type PositionRequestDTOOrderTypeEnum = typeof PositionRequestDTOOrderTypeEnum[keyof typeof PositionRequestDTOOrderTypeEnum]; /** * * @export * @interface ProfitTargetStatusDTO */ export interface ProfitTargetStatusDTO { /** * * @type {string} * @memberof ProfitTargetStatusDTO */ 'balanceLastUpdate'?: string; /** * * @type {string} * @memberof ProfitTargetStatusDTO */ 'profitTargetFeatureId'?: string; /** * * @type {boolean} * @memberof ProfitTargetStatusDTO */ 'profitTargetIsHit'?: boolean; /** * * @type {number} * @memberof ProfitTargetStatusDTO */ 'referenceBalance'?: number; } /** * * @export * @interface ProjectDTO */ export interface ProjectDTO { /** * * @type {number} * @memberof ProjectDTO */ 'balance'?: number; /** * * @type {string} * @memberof ProjectDTO */ 'billingCity': string; /** * * @type {string} * @memberof ProjectDTO */ 'billingCompanyName': string; /** * * @type {string} * @memberof ProjectDTO */ 'billingCountry': string; /** * * @type {string} * @memberof ProjectDTO */ 'billingCountryIsoAlpha2': string; /** * * @type {string} * @memberof ProjectDTO */ 'billingIdentification': string; /** * * @type {string} * @memberof ProjectDTO */ 'billingName': string; /** * * @type {string} * @memberof ProjectDTO */ 'billingPostcode': string; /** * * @type {string} * @memberof ProjectDTO */ 'billingStreet': string; /** * * @type {boolean} * @memberof ProjectDTO */ 'blocked'?: boolean; /** * * @type {CurrencyTypeDTO} * @memberof ProjectDTO */ 'currencyType': CurrencyTypeDTO; /** * You have to set it during resource creation, after that, it is only read-only. See pricing on our webpage for more information * @type {boolean} * @memberof ProjectDTO */ 'dedicated': boolean; /** * * @type {string} * @memberof ProjectDTO */ 'id'?: string; /** * * @type {string} * @memberof ProjectDTO */ 'name': string; /** * * @type {CustomerDTO} * @memberof ProjectDTO */ 'owner'?: CustomerDTO; /** * * @type {PaymentMethodDTO} * @memberof ProjectDTO */ 'paymentMethod'?: PaymentMethodDTO; } /** * Read-only. The system will reserve the proxy servers per region and list them in this field. * @export * @interface ProxyDTO */ export interface ProxyDTO { /** * * @type {number} * @memberof ProxyDTO */ 'id'?: number; /** * * @type {string} * @memberof ProxyDTO */ 'ipAddress'?: string; /** * * @type {ProxyRegionDTO} * @memberof ProxyDTO */ 'region'?: ProxyRegionDTO; /** * * @type {Array} * @memberof ProxyDTO */ 'usedByAccounts'?: Array; } /** * * @export * @interface ProxyRegionDTO */ export interface ProxyRegionDTO { /** * * @type {number} * @memberof ProxyRegionDTO */ 'id': number; /** * * @type {string} * @memberof ProxyRegionDTO */ 'name'?: string; } /** * Recent activity entry * @export * @interface RecentActivityDTO */ export interface RecentActivityDTO { /** * Owner email * @type {string} * @memberof RecentActivityDTO */ 'ownerEmail'?: string; /** * Project ID * @type {string} * @memberof RecentActivityDTO */ 'projectId'?: string; /** * Project name * @type {string} * @memberof RecentActivityDTO */ 'projectName'?: string; /** * Activity timestamp * @type {string} * @memberof RecentActivityDTO */ 'timestamp'?: string; } /** * Recent invoice entry * @export * @interface RecentInvoiceDTO */ export interface RecentInvoiceDTO { /** * Amount * @type {number} * @memberof RecentInvoiceDTO */ 'amount'?: number; /** * Creation date * @type {string} * @memberof RecentInvoiceDTO */ 'created'?: string; /** * Invoice ID * @type {number} * @memberof RecentInvoiceDTO */ 'invoiceId'?: number; /** * Invoice number * @type {string} * @memberof RecentInvoiceDTO */ 'invoiceNumber'?: string; /** * Project name * @type {string} * @memberof RecentInvoiceDTO */ 'projectName'?: string; /** * Status * @type {string} * @memberof RecentInvoiceDTO */ 'status'?: string; } /** * Select allowed regions for the white-label solution. If empty or not specified, all regions are allowed. * @export * @interface RegionDTO */ export interface RegionDTO { /** * * @type {number} * @memberof RegionDTO */ 'id': number; /** * * @type {string} * @memberof RegionDTO */ 'name'?: string; } /** * Request to reorder dashboards * @export * @interface ReorderDashboardsRequestDTO */ export interface ReorderDashboardsRequestDTO { /** * Ordered list of dashboard IDs * @type {Array} * @memberof ReorderDashboardsRequestDTO */ 'dashboardIds': Array; } /** * DTO representing requested performance metrics for a list of accounts. * @export * @interface ReportPerformanceDTO */ export interface ReportPerformanceDTO { /** * List of performance metrics for each account, as defined in AccountPerformanceDTO. * @type {Array} * @memberof ReportPerformanceDTO */ 'accounts'?: Array; } /** * Parameters required for generating a performance report over a specified time period for one or more resources. * @export * @interface ReportPerformanceParametersDTO */ export interface ReportPerformanceParametersDTO { /** * List of unique identifiers for the resources (e.g., account IDs, project IDs, or feature IDs) for which the performance report is requested. * @type {Array} * @memberof ReportPerformanceParametersDTO */ 'id': Array; /** * Type of resource identified by the IDs, indicating whether the report pertains to accounts, projects, or specific features. * @type {string} * @memberof ReportPerformanceParametersDTO */ 'idType': ReportPerformanceParametersDTOIdTypeEnum; /** * Start date for the reporting period. * @type {string} * @memberof ReportPerformanceParametersDTO */ 'start': string; /** * End date for the reporting period. * @type {string} * @memberof ReportPerformanceParametersDTO */ 'stop': string; } export const ReportPerformanceParametersDTOIdTypeEnum = { Account: 'ACCOUNT', Project: 'PROJECT', Feature: 'FEATURE' } as const; export type ReportPerformanceParametersDTOIdTypeEnum = typeof ReportPerformanceParametersDTOIdTypeEnum[keyof typeof ReportPerformanceParametersDTOIdTypeEnum]; /** * * @export * @interface RequestSymbolMappingsDTO */ export interface RequestSymbolMappingsDTO { /** * * @type {string} * @memberof RequestSymbolMappingsDTO */ 'loginServer'?: string; /** * * @type {Array} * @memberof RequestSymbolMappingsDTO */ 'symbols': Array; } /** * Represents a REST endpoint that can be allowed/blocked via API key access policy * @export * @interface RestEndpointMetadataDTO */ export interface RestEndpointMetadataDTO { /** * HTTP method * @type {string} * @memberof RestEndpointMetadataDTO */ 'method'?: string; /** * Endpoint path pattern * @type {string} * @memberof RestEndpointMetadataDTO */ 'path'?: string; /** * Operation summary/description if available * @type {string} * @memberof RestEndpointMetadataDTO */ 'summary'?: string; } /** * * @export * @interface RiskLimitDTO */ export interface RiskLimitDTO { /** * Enter an absolute risk limit in account currency. Set to 0 to deactivate. * @type {number} * @memberof RiskLimitDTO */ 'absoluteRiskLimit'?: number; /** * You have to set it during resource creation, after that, it is only read-only * @type {string} * @memberof RiskLimitDTO */ 'accountId'?: string; /** * * @type {boolean} * @memberof RiskLimitDTO */ 'active'?: boolean; /** * If set to \'true\', all positions will be closed immediately when the primary risk limit is reached. If set to \'false\', new trades will not be opened when the primary limit is reached, but the fallback limits become active as a secondary safety measure. * @type {boolean} * @memberof RiskLimitDTO */ 'closeAllOpenPositions'?: boolean; /** * You have to set it during resource creation, after that, it is only read-only * @type {string} * @memberof RiskLimitDTO */ 'copierId'?: string; /** * Fallback absolute risk limit in account currency. Only applies when closeAllOpenPositions is false. When this limit is reached, all positions will be closed. Set to 0 to deactivate. * @type {number} * @memberof RiskLimitDTO */ 'fallbackAbsoluteRiskLimit'?: number; /** * Fallback relative risk limit in account currency. Only applies when closeAllOpenPositions is false. When this limit is reached, all positions will be closed. Set to 0 to deactivate. * @type {number} * @memberof RiskLimitDTO */ 'fallbackRelativeRiskLimit'?: number; /** * Fallback risk limit (percentage). Only applies when closeAllOpenPositions is false. When this limit is reached, all positions will be closed. Set to 0 to deactivate. * @type {number} * @memberof RiskLimitDTO */ 'fallbackRiskLimit'?: number; /** * If set to 5, it means that if the limit is reached and stays over the limit for 5 seconds, the risk limit will be activated; otherwise, the limit will remain deactivated * @type {number} * @memberof RiskLimitDTO */ 'fulfillSeconds'?: number; /** * * @type {string} * @memberof RiskLimitDTO */ 'id'?: string; /** * Enter an relative risk limit in account currency. Set to 0 to deactivate. * @type {number} * @memberof RiskLimitDTO */ 'relativeRiskLimit'?: number; /** * ISO 8601. Set the reset time for calculation (see riskType). Only used for 1-3 risk type. Only the time is considered, and the date is ignored. * @type {string} * @memberof RiskLimitDTO */ 'resetTime'?: string; /** * 0.215 for 21.5% (set to 0 to deactivate) * @type {number} * @memberof RiskLimitDTO */ 'riskLimit': number; /** * * @type {RiskTypeDTO} * @memberof RiskLimitDTO */ 'riskType': RiskTypeDTO; } /** * * @export * @interface RiskLimitStatusDTO */ export interface RiskLimitStatusDTO { /** * * @type {string} * @memberof RiskLimitStatusDTO */ 'balanceLastUpdate'?: string; /** * * @type {boolean} * @memberof RiskLimitStatusDTO */ 'limitIsHit'?: boolean; /** * * @type {number} * @memberof RiskLimitStatusDTO */ 'referenceBalance'?: number; /** * * @type {string} * @memberof RiskLimitStatusDTO */ 'riskLimitId'?: string; } /** * You have to set it during resource creation, after that, it is only read-only. You have only to set the id, e.g. 4 for actual drawdown. 1: Daily, 2: Weekly, 3: Monthly, 4: Actual, 5: Equity-equity daily, 6: Equity-equity weekly, 7: Equity-equity monthly, 8: Smart reference daily, 9: Smart reference weekly, 10: Smart reference monthly. When you set a daily risk limit of 0.5 (50%), it means that if the ratio of the balance at a specific timepoint (see resetTime) to equity reaches 50%, the copy trading will be paused, and if specified, all trades will be closed (see closeAllOpenPositions). The limit reference type depends on the selected risk type: • Balance-based limits use the balance as reference. • Equity-based limits use the equity as reference. • Smart limits use the greater of balance and equity as reference. Example: {id: 1} * @export * @interface RiskTypeDTO */ export interface RiskTypeDTO { /** * * @type {number} * @memberof RiskTypeDTO */ 'id': number; /** * * @type {string} * @memberof RiskTypeDTO */ 'name'?: string; } /** * You have only to set the id e.g 1 for scale by balance. 1: Balance 2: Equity 3: Fixed lot size 4: No scaling. Example: {id:1} * @export * @interface ScaleTypeDTO */ export interface ScaleTypeDTO { /** * * @type {number} * @memberof ScaleTypeDTO */ 'id': number; /** * * @type {string} * @memberof ScaleTypeDTO */ 'name'?: string; } /** * Detailed breakdown of signal score calculation showing contribution of each component * @export * @interface ScoreBreakdownDTO */ export interface ScoreBreakdownDTO { /** * Account balance score (0-7 points, Live only) * @type {number} * @memberof ScoreBreakdownDTO */ 'accountBalanceScore'?: number; /** * Account type score (0-8 points) * @type {number} * @memberof ScoreBreakdownDTO */ 'accountTypeScore'?: number; /** * Consistency score (0-6 points) * @type {number} * @memberof ScoreBreakdownDTO */ 'consistencyScore'?: number; /** * Portfolio diversification score (0-8 points) * @type {number} * @memberof ScoreBreakdownDTO */ 'diversificationScore'?: number; /** * Expectancy score (0-5 points) * @type {number} * @memberof ScoreBreakdownDTO */ 'expectancyScore'?: number; /** * Whether this is a live account * @type {boolean} * @memberof ScoreBreakdownDTO */ 'isLiveAccount'?: boolean; /** * Martingale penalty (0 to -6 points) * @type {number} * @memberof ScoreBreakdownDTO */ 'martingalePenalty'?: number; /** * Max drawdown score (0-12 points) * @type {number} * @memberof ScoreBreakdownDTO */ 'maxDrawdownScore'?: number; /** * Months active score (0-2 points) * @type {number} * @memberof ScoreBreakdownDTO */ 'monthsActiveScore'?: number; /** * Overtrading penalty (0 to -5 points) * @type {number} * @memberof ScoreBreakdownDTO */ 'overtradingPenalty'?: number; /** * Profit factor score (0-12 points) * @type {number} * @memberof ScoreBreakdownDTO */ 'profitFactorScore'?: number; /** * Recovery factor score (0-10 points) * @type {number} * @memberof ScoreBreakdownDTO */ 'recoveryFactorScore'?: number; /** * Risk/reward ratio score (0-7 points) * @type {number} * @memberof ScoreBreakdownDTO */ 'riskRewardScore'?: number; /** * Total trades score (0-4 points) * @type {number} * @memberof ScoreBreakdownDTO */ 'totalTradesScore'?: number; /** * Number of unique asset classes traded * @type {number} * @memberof ScoreBreakdownDTO */ 'uniqueAssetClasses'?: number; /** * Number of unique instruments traded * @type {number} * @memberof ScoreBreakdownDTO */ 'uniqueInstruments'?: number; /** * Win rate score (0-8 points) * @type {number} * @memberof ScoreBreakdownDTO */ 'winRateScore'?: number; } /** * Signal provider earnings breakdown * @export * @interface SignalProviderEarningsDTO */ export interface SignalProviderEarningsDTO { /** * Billing model: MONTHLY_PROFIT or HIGH_WATERMARK * @type {string} * @memberof SignalProviderEarningsDTO */ 'billingModel'?: string; /** * Currency of all monetary amounts * @type {string} * @memberof SignalProviderEarningsDTO */ 'currency'?: string; /** * Per-month earnings breakdown with individual follower charge details * @type {Array} * @memberof SignalProviderEarningsDTO */ 'monthlyBreakdown'?: Array; /** * Configured monthly subscription fee charged to each follower * @type {number} * @memberof SignalProviderEarningsDTO */ 'monthlySubscriptionFee'?: number; /** * Configured profit sharing percentage charged to each follower * @type {number} * @memberof SignalProviderEarningsDTO */ 'profitSharingFee'?: number; /** * UUID of the signal provider feature * @type {string} * @memberof SignalProviderEarningsDTO */ 'signalProviderId'?: string; /** * Display name of the signal provider * @type {string} * @memberof SignalProviderEarningsDTO */ 'signalProviderName'?: string; /** * * @type {EarningsSummaryDTO} * @memberof SignalProviderEarningsDTO */ 'summary'?: EarningsSummaryDTO; } /** * * @export * @interface StrategyDTO */ export interface StrategyDTO { /** * * @type {boolean} * @memberof StrategyDTO */ 'active': boolean; /** * * @type {string} * @memberof StrategyDTO */ 'id'?: string; /** * You can define a positive number as key. This key will be saved in the \"magic number\" field for each trade * @type {number} * @memberof StrategyDTO */ 'key': number; /** * * @type {string} * @memberof StrategyDTO */ 'name': string; /** * * @type {string} * @memberof StrategyDTO */ 'projectId': string; } /** * Analytics for a single traded symbol * @export * @interface SymbolAnalyticsDTO */ export interface SymbolAnalyticsDTO { /** * Average profit per trade for the symbol * @type {number} * @memberof SymbolAnalyticsDTO */ 'avgProfitPerTrade'?: number; /** * Net profit for the symbol * @type {number} * @memberof SymbolAnalyticsDTO */ 'netProfit'?: number; /** * Symbol name * @type {string} * @memberof SymbolAnalyticsDTO */ 'symbol'?: string; /** * Trade count for the symbol * @type {number} * @memberof SymbolAnalyticsDTO */ 'trades'?: number; /** * Win rate for the symbol (%) * @type {number} * @memberof SymbolAnalyticsDTO */ 'winRate'?: number; } /** * * @export * @interface SymbolDTO */ export interface SymbolDTO { /** * * @type {string} * @memberof SymbolDTO */ 'baseCurrency'?: string; /** * * @type {number} * @memberof SymbolDTO */ 'digits'?: number; /** * * @type {boolean} * @memberof SymbolDTO */ 'disabled'?: boolean; /** * * @type {number} * @memberof SymbolDTO */ 'lotSize'?: number; /** * * @type {number} * @memberof SymbolDTO */ 'maximalVolume'?: number; /** * * @type {number} * @memberof SymbolDTO */ 'minimalVolume'?: number; /** * * @type {string} * @memberof SymbolDTO */ 'name'?: string; /** * * @type {number} * @memberof SymbolDTO */ 'points'?: number; /** * * @type {string} * @memberof SymbolDTO */ 'quoteCurrency'?: string; /** * * @type {number} * @memberof SymbolDTO */ 'stepVolume'?: number; /** * * @type {string} * @memberof SymbolDTO */ 'tradeType'?: SymbolDTOTradeTypeEnum; } export const SymbolDTOTradeTypeEnum = { Request: 'REQUEST', Instant: 'INSTANT', Market: 'MARKET', Echange: 'ECHANGE' } as const; export type SymbolDTOTradeTypeEnum = typeof SymbolDTOTradeTypeEnum[keyof typeof SymbolDTOTradeTypeEnum]; /** * * @export * @interface SymbolMappingDTO */ export interface SymbolMappingDTO { /** * This symbol mapping is only applied if the trade comes from a specific broker, for example, \'ICMarkets.*\'. For all brokers, you can enter \'.*\' (this is a regex) * @type {string} * @memberof SymbolMappingDTO */ 'brokerFrom': string; /** * This symbol mapping is only applied if the trade is copied to a specific broker, for example, \'ICMarkets.*\'. For all brokers, you can enter \'.*\' (this is a regex) * @type {string} * @memberof SymbolMappingDTO */ 'brokerTo': string; /** * This is read-only. The system attempts to automatically map symbols, but if there are multiple findings, they will be listed here. (This member is used only for the endpoint symbolMappings/current) * @type {Array} * @memberof SymbolMappingDTO */ 'brokerToSuggestion'?: Array; /** * Enter a symbol e.g. GBPUSD (is not a regex) * @type {string} * @memberof SymbolMappingDTO */ 'from': string; /** * * @type {number} * @memberof SymbolMappingDTO */ 'id'?: number; /** * The priority is ascending, which means that 0 has a higher priority than 1. Priority is always positive * @type {number} * @memberof SymbolMappingDTO */ 'priority': number; /** * * @type {string} * @memberof SymbolMappingDTO */ 'projectId'?: string; /** * Enter a symbol e.g. GBPEUR (is not a regex) * @type {string} * @memberof SymbolMappingDTO */ 'to': string; } /** * * @export * @interface TaxBreakdownDTO */ export interface TaxBreakdownDTO { /** * * @type {number} * @memberof TaxBreakdownDTO */ 'amount'?: number; /** * * @type {boolean} * @memberof TaxBreakdownDTO */ 'inclusive'?: boolean; /** * * @type {TaxRateDetailsDTO} * @memberof TaxBreakdownDTO */ 'taxRateDetails'?: TaxRateDetailsDTO; /** * * @type {string} * @memberof TaxBreakdownDTO */ 'taxabilityReason'?: string; /** * * @type {number} * @memberof TaxBreakdownDTO */ 'taxableAmount'?: number; /** * * @type {string} * @memberof TaxBreakdownDTO */ 'vatNumber'?: string; } /** * * @export * @interface TaxDTO */ export interface TaxDTO { /** * * @type {Array} * @memberof TaxDTO */ 'breakdown'?: Array; } /** * * @export * @interface TaxRateDetailsDTO */ export interface TaxRateDetailsDTO { /** * * @type {string} * @memberof TaxRateDetailsDTO */ 'country'?: string; /** * * @type {number} * @memberof TaxRateDetailsDTO */ 'flatAmount'?: number; /** * * @type {string} * @memberof TaxRateDetailsDTO */ 'percentageDecimal'?: string; /** * * @type {string} * @memberof TaxRateDetailsDTO */ 'rateType'?: string; /** * * @type {string} * @memberof TaxRateDetailsDTO */ 'state'?: string; /** * * @type {string} * @memberof TaxRateDetailsDTO */ 'taxType'?: string; } /** * Telegram chat information * @export * @interface TelegramChatDTO */ export interface TelegramChatDTO { /** * Telegram chat ID * @type {number} * @memberof TelegramChatDTO */ 'chatId'?: number; /** * Chat type (private, group, supergroup, channel) * @type {string} * @memberof TelegramChatDTO */ 'chatType'?: string; /** * Number of members (for groups/channels) * @type {number} * @memberof TelegramChatDTO */ 'memberCount'?: number; /** * Chat title/name * @type {string} * @memberof TelegramChatDTO */ 'title'?: string; /** * Username if available (without @) * @type {string} * @memberof TelegramChatDTO */ 'username'?: string; } /** * List of telegram notifications * @export * @interface TelegramNotificationDTO */ export interface TelegramNotificationDTO { /** * Only the account IDs listed here will receive notifications * @type {Array} * @memberof TelegramNotificationDTO */ 'accountIds'?: Array; /** * * @type {{ [key: string]: string; }} * @memberof TelegramNotificationDTO */ 'aliasMapping'?: { [key: string]: string; }; /** * * @type {LogTypeDTO} * @memberof TelegramNotificationDTO */ 'logLevel': LogTypeDTO; /** * Use alias instead of UUID for identification * @type {boolean} * @memberof TelegramNotificationDTO */ 'useAlias'?: boolean; /** * Enter the Telegram username (e.g. @john98734) * @type {string} * @memberof TelegramNotificationDTO */ 'username': string; } /** * Response from TradingView webhook endpoint * @export * @interface TradingViewWebhookResponseDTO */ export interface TradingViewWebhookResponseDTO { /** * Number of processing attempts (for queued requests) * @type {number} * @memberof TradingViewWebhookResponseDTO */ 'attemptCount'?: number; /** * Whether this is a cached response from idempotency * @type {boolean} * @memberof TradingViewWebhookResponseDTO */ 'cached'?: boolean; /** * List of closed positions (for close operations) * @type {Array} * @memberof TradingViewWebhookResponseDTO */ 'closedPositions'?: Array; /** * Error code for failed requests * @type {string} * @memberof TradingViewWebhookResponseDTO */ 'code'?: string; /** * Additional data returned with the response * @type {{ [key: string]: object; }} * @memberof TradingViewWebhookResponseDTO */ 'data'?: { [key: string]: object; }; /** * Hint for resolving errors * @type {string} * @memberof TradingViewWebhookResponseDTO */ 'hint'?: string; /** * Number of positions matched (for close/modify operations) * @type {number} * @memberof TradingViewWebhookResponseDTO */ 'matchCount'?: number; /** * Human-readable message describing the result * @type {string} * @memberof TradingViewWebhookResponseDTO */ 'message'?: string; /** * Original request ID if this is a cached response * @type {string} * @memberof TradingViewWebhookResponseDTO */ 'originalRequestId'?: string; /** * Unique request ID for tracking and debugging * @type {string} * @memberof TradingViewWebhookResponseDTO */ 'requestId'?: string; /** * Processing status (for queued requests) * @type {string} * @memberof TradingViewWebhookResponseDTO */ 'status'?: string; /** * Whether the request was successful * @type {boolean} * @memberof TradingViewWebhookResponseDTO */ 'success'?: boolean; /** * Response timestamp * @type {string} * @memberof TradingViewWebhookResponseDTO */ 'timestamp'?: string; } /** * DTO for defining a single trading window (copier/account) (PRO) * @export * @interface TradingWindowDTO */ export interface TradingWindowDTO { /** * Specific days when this trading window is active, represented as integers (e.g., 1 for Monday, 7 for Sunday). * @type {Array} * @memberof TradingWindowDTO */ 'activeDays'?: Array; /** * End time of the trading window. Note: The date component is ignored. * @type {string} * @memberof TradingWindowDTO */ 'endTime': string; /** * Start time of the trading window. Note: The date component is ignored. * @type {string} * @memberof TradingWindowDTO */ 'startTime': string; } /** * * @export * @interface TransactionDTO */ export interface TransactionDTO { /** * * @type {number} * @memberof TransactionDTO */ 'amount': number; /** * * @type {CurrencyTypeDTO} * @memberof TransactionDTO */ 'currencyType': CurrencyTypeDTO; /** * ISO 8601 * @type {string} * @memberof TransactionDTO */ 'date'?: string; /** * * @type {number} * @memberof TransactionDTO */ 'id'?: number; /** * * @type {string} * @memberof TransactionDTO */ 'projectId': string; /** * * @type {string} * @memberof TransactionDTO */ 'reference': string; /** * * @type {string} * @memberof TransactionDTO */ 'remark': string; } /** * Project dashboard configuration * @export * @interface UserDashboardConfigDTO */ export interface UserDashboardConfigDTO { /** * Creation timestamp * @type {string} * @memberof UserDashboardConfigDTO */ 'createdAt'?: string; /** * Optional description * @type {string} * @memberof UserDashboardConfigDTO */ 'description'?: string; /** * Unique identifier for the dashboard * @type {string} * @memberof UserDashboardConfigDTO */ 'id'?: string; /** * Whether this is the default dashboard * @type {boolean} * @memberof UserDashboardConfigDTO */ 'isDefault'?: boolean; /** * Last modification timestamp * @type {string} * @memberof UserDashboardConfigDTO */ 'modifiedAt'?: string; /** * Dashboard name * @type {string} * @memberof UserDashboardConfigDTO */ 'name': string; /** * Project ID this dashboard belongs to * @type {string} * @memberof UserDashboardConfigDTO */ 'projectId'?: string; /** * Display order in dashboard list * @type {number} * @memberof UserDashboardConfigDTO */ 'sortOrder'?: number; /** * List of widgets in this dashboard * @type {Array} * @memberof UserDashboardConfigDTO */ 'widgets'?: Array; } /** * * @export * @interface WalletDTO */ export interface WalletDTO { /** * * @type {string} * @memberof WalletDTO */ 'asset'?: string; /** * * @type {number} * @memberof WalletDTO */ 'balance'?: number; } /** * Comprehensive dashboard for WhiteLabel owners showing all linked projects, customers, accounts and invoices * @export * @interface WhiteLabelDashboardDTO */ export interface WhiteLabelDashboardDTO { /** * Currency used for all financial calculations * @type {string} * @memberof WhiteLabelDashboardDTO */ 'currency'?: string; /** * Detailed list of all projects linked to this WhiteLabel * @type {Array} * @memberof WhiteLabelDashboardDTO */ 'projects'?: Array; /** * Recent invoices (last 10) * @type {Array} * @memberof WhiteLabelDashboardDTO */ 'recentInvoices'?: Array; /** * Recently created projects (last 10) * @type {Array} * @memberof WhiteLabelDashboardDTO */ 'recentProjects'?: Array; /** * Total number of accounts across all projects * @type {number} * @memberof WhiteLabelDashboardDTO */ 'totalAccounts'?: number; /** * Total number of active accounts * @type {number} * @memberof WhiteLabelDashboardDTO */ 'totalActiveAccounts'?: number; /** * Total number of unique customers across all projects * @type {number} * @memberof WhiteLabelDashboardDTO */ 'totalCustomers'?: number; /** * Total number of invoices across all projects * @type {number} * @memberof WhiteLabelDashboardDTO */ 'totalInvoices'?: number; /** * Total outstanding amount from unpaid invoices * @type {number} * @memberof WhiteLabelDashboardDTO */ 'totalOutstanding'?: number; /** * Total number of paid invoices * @type {number} * @memberof WhiteLabelDashboardDTO */ 'totalPaidInvoices'?: number; /** * Total number of projects linked to this WhiteLabel * @type {number} * @memberof WhiteLabelDashboardDTO */ 'totalProjects'?: number; /** * Total revenue from all paid invoices in the WhiteLabel currency * @type {number} * @memberof WhiteLabelDashboardDTO */ 'totalRevenue'?: number; /** * Total number of unpaid invoices * @type {number} * @memberof WhiteLabelDashboardDTO */ 'totalUnpaidInvoices'?: number; } /** * Detailed information about a project linked to the WhiteLabel * @export * @interface WhiteLabelProjectSummaryDTO */ export interface WhiteLabelProjectSummaryDTO { /** * Number of accounts in this project * @type {number} * @memberof WhiteLabelProjectSummaryDTO */ 'accountCount'?: number; /** * Number of active accounts * @type {number} * @memberof WhiteLabelProjectSummaryDTO */ 'activeAccountCount'?: number; /** * Current project balance * @type {number} * @memberof WhiteLabelProjectSummaryDTO */ 'balance'?: number; /** * Whether the project is blocked * @type {boolean} * @memberof WhiteLabelProjectSummaryDTO */ 'blocked'?: boolean; /** * Project creation date * @type {string} * @memberof WhiteLabelProjectSummaryDTO */ 'created'?: string; /** * Number of customers in this project * @type {number} * @memberof WhiteLabelProjectSummaryDTO */ 'customerCount'?: number; /** * List of customers in this project * @type {Array} * @memberof WhiteLabelProjectSummaryDTO */ 'customers'?: Array; /** * Whether this is a dedicated project * @type {boolean} * @memberof WhiteLabelProjectSummaryDTO */ 'dedicated'?: boolean; /** * Number of invoices for this project * @type {number} * @memberof WhiteLabelProjectSummaryDTO */ 'invoiceCount'?: number; /** * List of invoices for this project * @type {Array} * @memberof WhiteLabelProjectSummaryDTO */ 'invoices'?: Array; /** * Outstanding amount for this project * @type {number} * @memberof WhiteLabelProjectSummaryDTO */ 'outstandingAmount'?: number; /** * Project owner email * @type {string} * @memberof WhiteLabelProjectSummaryDTO */ 'ownerEmail'?: string; /** * Project unique identifier * @type {string} * @memberof WhiteLabelProjectSummaryDTO */ 'projectId'?: string; /** * Project name * @type {string} * @memberof WhiteLabelProjectSummaryDTO */ 'projectName'?: string; /** * Total revenue from this project * @type {number} * @memberof WhiteLabelProjectSummaryDTO */ 'totalRevenue'?: number; } /** * Widget configuration within a dashboard * @export * @interface WidgetConfigDTO */ export interface WidgetConfigDTO { /** * Widget-specific configuration (flexible JSON) * @type {object} * @memberof WidgetConfigDTO */ 'config'?: object; /** * * @type {GridsterItemDTO} * @memberof WidgetConfigDTO */ 'gridsterItem': GridsterItemDTO; /** * Unique identifier for the widget * @type {string} * @memberof WidgetConfigDTO */ 'id'?: string; /** * Widget title * @type {string} * @memberof WidgetConfigDTO */ 'title'?: string; /** * Widget type * @type {string} * @memberof WidgetConfigDTO */ 'type': WidgetConfigDTOTypeEnum; } export const WidgetConfigDTOTypeEnum = { AccountStatus: 'ACCOUNT_STATUS', RealTimePnl: 'REAL_TIME_PNL', Account: 'ACCOUNT', Terminal: 'TERMINAL', OpenInvoices: 'OPEN_INVOICES', ProjectBalance: 'PROJECT_BALANCE', FinancialOverview: 'FINANCIAL_OVERVIEW', Logs: 'LOGS', AuditLogs: 'AUDIT_LOGS', Notes: 'NOTES', Divider: 'DIVIDER', Clock: 'CLOCK', Weather: 'WEATHER' } as const; export type WidgetConfigDTOTypeEnum = typeof WidgetConfigDTOTypeEnum[keyof typeof WidgetConfigDTOTypeEnum]; /** * Wise payout details * @export * @interface WisePayoutDetailsDTO */ export interface WisePayoutDetailsDTO { /** * Wise email address * @type {string} * @memberof WisePayoutDetailsDTO */ 'email': string; } /** * AccountAPIApi - axios parameter creator * @export */ export const AccountAPIApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Activate all copiers across all accounts * @param {*} [options] Override http request option. * @throws {RequiredError} */ activateAllCopiers: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/accounts/activateAllCopiers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Activate all copiers of all slave accounts * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ activateSlavesCopier: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('activateSlavesCopier', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/activateSlavesCopier` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a new account. If a callbackUrl is provided in the request body, the account creation is processed asynchronously: the API returns 202 Accepted immediately with a requestId, and POSTs the result to the callback URL once done. Only one account creation per project is processed at a time; additional async requests are queued and processed sequentially. * @summary Create an account * @param {AccountDTO} accountDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAccount: async (accountDTO: AccountDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountDTO' is not null or undefined assertParamExists('createAccount', 'accountDTO', accountDTO) const localVarPath = `/rest/api/v1/accounts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(accountDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Create an approval * @param {string} accountId * @param {ApprovalDTO} approvalDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAccountApproval: async (accountId: string, approvalDTO: ApprovalDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('createAccountApproval', 'accountId', accountId) // verify required parameter 'approvalDTO' is not null or undefined assertParamExists('createAccountApproval', 'approvalDTO', approvalDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/approvals` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(approvalDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Create an account feature * @param {string} accountId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAccountFeature: async (accountId: string, featureDTO: FeatureDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('createAccountFeature', 'accountId', accountId) // verify required parameter 'featureDTO' is not null or undefined assertParamExists('createAccountFeature', 'featureDTO', featureDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/features` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(featureDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Create an account copier * @param {string} accountId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCopier: async (accountId: string, copierDTO: CopierDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('createCopier', 'accountId', accountId) // verify required parameter 'copierDTO' is not null or undefined assertParamExists('createCopier', 'copierDTO', copierDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/copiers` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(copierDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Create a copier feature * @param {string} accountId * @param {string} copierId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCopierFeature: async (accountId: string, copierId: string, featureDTO: FeatureDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('createCopierFeature', 'accountId', accountId) // verify required parameter 'copierId' is not null or undefined assertParamExists('createCopierFeature', 'copierId', copierId) // verify required parameter 'featureDTO' is not null or undefined assertParamExists('createCopierFeature', 'featureDTO', featureDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/copiers/{copierId}/features` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(featureDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Create an account risk limit * @param {string} accountId * @param {RiskLimitDTO} riskLimitDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRiskLimit: async (accountId: string, riskLimitDTO: RiskLimitDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('createRiskLimit', 'accountId', accountId) // verify required parameter 'riskLimitDTO' is not null or undefined assertParamExists('createRiskLimit', 'riskLimitDTO', riskLimitDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/riskLimits` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(riskLimitDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Create a copier feature attached to a Signal Follower feature * @summary Create a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSignalFollowerFeature: async (accountId: string, signalFollowerId: string, featureDTO: FeatureDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('createSignalFollowerFeature', 'accountId', accountId) // verify required parameter 'signalFollowerId' is not null or undefined assertParamExists('createSignalFollowerFeature', 'signalFollowerId', signalFollowerId) // verify required parameter 'featureDTO' is not null or undefined assertParamExists('createSignalFollowerFeature', 'featureDTO', featureDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/signalFollowers/{signalFollowerId}/features` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"signalFollowerId"}}`, encodeURIComponent(String(signalFollowerId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(featureDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Deactivate all copiers across all accounts * @param {*} [options] Override http request option. * @throws {RequiredError} */ deactivateAllCopiers: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/accounts/deactivateAllCopiers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Deactivate all copiers of all slave accounts * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deactivateSlavesCopier: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('deactivateSlavesCopier', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/deactivateSlavesCopier` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete an account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAccount: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('deleteAccount', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete an account feature * @param {string} accountId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAccountFeature: async (accountId: string, featureId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('deleteAccountFeature', 'accountId', accountId) // verify required parameter 'featureId' is not null or undefined assertParamExists('deleteAccountFeature', 'featureId', featureId) const localVarPath = `/rest/api/v1/accounts/{accountId}/features/{featureId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete an account copier * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteCopier: async (accountId: string, copierId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('deleteCopier', 'accountId', accountId) // verify required parameter 'copierId' is not null or undefined assertParamExists('deleteCopier', 'copierId', copierId) const localVarPath = `/rest/api/v1/accounts/{accountId}/copiers/{copierId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete a copier feature * @param {string} accountId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteCopierFeature: async (accountId: string, copierId: string, featureId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('deleteCopierFeature', 'accountId', accountId) // verify required parameter 'copierId' is not null or undefined assertParamExists('deleteCopierFeature', 'copierId', copierId) // verify required parameter 'featureId' is not null or undefined assertParamExists('deleteCopierFeature', 'featureId', featureId) const localVarPath = `/rest/api/v1/accounts/{accountId}/copiers/{copierId}/features/{featureId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteRiskLimit: async (accountId: string, riskLimitId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('deleteRiskLimit', 'accountId', accountId) // verify required parameter 'riskLimitId' is not null or undefined assertParamExists('deleteRiskLimit', 'riskLimitId', riskLimitId) const localVarPath = `/rest/api/v1/accounts/{accountId}/riskLimits/{riskLimitId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"riskLimitId"}}`, encodeURIComponent(String(riskLimitId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Delete a copier feature attached to a Signal Follower feature * @summary Delete a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSignalFollowerFeature: async (accountId: string, signalFollowerId: string, featureId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('deleteSignalFollowerFeature', 'accountId', accountId) // verify required parameter 'signalFollowerId' is not null or undefined assertParamExists('deleteSignalFollowerFeature', 'signalFollowerId', signalFollowerId) // verify required parameter 'featureId' is not null or undefined assertParamExists('deleteSignalFollowerFeature', 'featureId', featureId) const localVarPath = `/rest/api/v1/accounts/{accountId}/signalFollowers/{signalFollowerId}/features/{featureId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"signalFollowerId"}}`, encodeURIComponent(String(signalFollowerId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get an account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccount: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccount', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get all API keys for an account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountApiKeys: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountApiKeys', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/apiKeys` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves audit logs for all API modifications made to a specific account. * @summary Get audit logs for a specific account * @param {string} accountId * @param {number} [limit] Maximum number of logs to return * @param {number} [offset] Number of logs to skip for pagination * @param {string} [startDate] Start date filter (ISO-8601 format) * @param {string} [endDate] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountAuditLogs: async (accountId: string, limit?: number, offset?: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountAuditLogs', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/auditLogs` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (startDate !== undefined) { localVarQueryParameter['startDate'] = startDate; } if (endDate !== undefined) { localVarQueryParameter['endDate'] = endDate; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get account copier current symbol mappings * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountCopierCurrentSymbolMappings: async (accountId: string, copierId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountCopierCurrentSymbolMappings', 'accountId', accountId) // verify required parameter 'copierId' is not null or undefined assertParamExists('getAccountCopierCurrentSymbolMappings', 'copierId', copierId) const localVarPath = `/rest/api/v1/accounts/{accountId}/copiers/{copierId}/symbolMappings/current` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves equity, balance, and floating PnL time-series data collected for advanced analytics, drawdown monitoring, and equity curve construction. * @summary Get data collector records for a specific account * @param {string} accountId * @param {number} [limit] Maximum number of records to return (default: 10000, use -1 for all records) * @param {string} [startTime] Start date filter (ISO-8601 format) * @param {string} [endTime] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountDataCollectorRecords: async (accountId: string, limit?: number, startTime?: string, endTime?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountDataCollectorRecords', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/dataCollector` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (startTime !== undefined) { localVarQueryParameter['startTime'] = startTime; } if (endTime !== undefined) { localVarQueryParameter['endTime'] = endTime; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get an account feature * @param {string} accountId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountFeature: async (accountId: string, featureId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountFeature', 'accountId', accountId) // verify required parameter 'featureId' is not null or undefined assertParamExists('getAccountFeature', 'featureId', featureId) const localVarPath = `/rest/api/v1/accounts/{accountId}/features/{featureId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get all account features * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountFeatures: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountFeatures', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/features` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get account logs * @param {string} accountId * @param {number} [limit] Get the last logs: e.g. 100 means the last 100 logs * @param {number} [offset] You can set an offset. Offset 100 means 101-200 * @param {string} [start] ISO 8601 * @param {string} [stop] ISO 8601 * @param {number} [logTypeId] Filter logs by log level type ID. If you choose 3 = Info, then all logs with a lower level are returned. The levels are: 1 = Error, 2 = Warning, 3 = Info. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountLogs: async (accountId: string, limit?: number, offset?: number, start?: string, stop?: string, logTypeId?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountLogs', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/logs` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (start !== undefined) { localVarQueryParameter['start'] = start; } if (stop !== undefined) { localVarQueryParameter['stop'] = stop; } if (logTypeId !== undefined) { localVarQueryParameter['logTypeId'] = logTypeId; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get an account performance metrics * @param {string} accountId * @param {string} [startDate] Start date filter (ISO-8601 format, e.g. 2024-01-01T00:00:00Z) * @param {string} [endDate] End date filter (ISO-8601 format, e.g. 2024-12-31T23:59:59Z) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountPerformanceMetrics: async (accountId: string, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountPerformanceMetrics', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/performanceMetrics` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (startDate !== undefined) { localVarQueryParameter['startDate'] = startDate; } if (endDate !== undefined) { localVarQueryParameter['endDate'] = endDate; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get account symbol mappings for given symbols * @param {string} accountId * @param {RequestSymbolMappingsDTO} requestSymbolMappingsDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountSymbolMappings: async (accountId: string, requestSymbolMappingsDTO: RequestSymbolMappingsDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getAccountSymbolMappings', 'accountId', accountId) // verify required parameter 'requestSymbolMappingsDTO' is not null or undefined assertParamExists('getAccountSymbolMappings', 'requestSymbolMappingsDTO', requestSymbolMappingsDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/symbolMappings` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestSymbolMappingsDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get all accounts * @param {number} [accountTypeId] Filter by account type ID (1=MT5, 2=MT4, 3=DXtrade, 4=cTrader, 5=TradeLocker, 6=MatchTrader, 7=Binance, 8=Bybit, 9=Bitget, 10=BloFin, 11=OKX, 12=TradeStation, 13=Tradovate, 14=Alpaca, 15=Gate.io, 16=Bitunix, 17=Hyperliquid) * @param {string} [loginServer] Filter by login server (case-insensitive partial match anywhere in the server name, e.g., ICMarketsSC-MT5-4, dxtrade.instantfunding.io, live.ctraderapi.com:5035) * @param {string} [loginAccountNumber] Filter by login account number (case-insensitive partial match anywhere in the account number) * @param {string} [alias] Filter by account alias (case-insensitive partial match anywhere in the alias) * @param {number} [regionId] Filter by region ID (1=New York, 2=London, 3=Singapore, 4=Berlin) * @param {number} [accountStatusId] Filter by account status ID (1=New, 2=Active, 3=Stopped, 4=Deleted) * @param {number} [limit] Maximum number of accounts to return * @param {number} [offset] Number of accounts to skip for pagination * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccounts: async (accountTypeId?: number, loginServer?: string, loginAccountNumber?: string, alias?: string, regionId?: number, accountStatusId?: number, limit?: number, offset?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/accounts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (accountTypeId !== undefined) { localVarQueryParameter['accountTypeId'] = accountTypeId; } if (loginServer !== undefined) { localVarQueryParameter['loginServer'] = loginServer; } if (loginAccountNumber !== undefined) { localVarQueryParameter['loginAccountNumber'] = loginAccountNumber; } if (alias !== undefined) { localVarQueryParameter['alias'] = alias; } if (regionId !== undefined) { localVarQueryParameter['regionId'] = regionId; } if (accountStatusId !== undefined) { localVarQueryParameter['accountStatusId'] = accountStatusId; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns all tracked asynchronous account creation requests and their current statuses. Statuses are retained for 1 hour after completion. * @summary Get all async account creation requests * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllAsyncAccountCreationStatuses: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/accounts/async`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the current status of an asynchronous account creation request. Status values: QUEUED (waiting to be processed), PROCESSING (currently being created), COMPLETED (success, includes the account), FAILED (includes error message). Statuses are retained for 1 hour after completion. * @summary Get async account creation status * @param {string} requestId The requestId returned by the async POST /accounts call * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAsyncAccountCreationStatus: async (requestId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'requestId' is not null or undefined assertParamExists('getAsyncAccountCreationStatus', 'requestId', requestId) const localVarPath = `/rest/api/v1/accounts/async/{requestId}` .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get account copier * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCopier: async (accountId: string, copierId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getCopier', 'accountId', accountId) // verify required parameter 'copierId' is not null or undefined assertParamExists('getCopier', 'copierId', copierId) const localVarPath = `/rest/api/v1/accounts/{accountId}/copiers/{copierId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get a copier feature * @param {string} accountId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCopierFeature: async (accountId: string, copierId: string, featureId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getCopierFeature', 'accountId', accountId) // verify required parameter 'copierId' is not null or undefined assertParamExists('getCopierFeature', 'copierId', copierId) // verify required parameter 'featureId' is not null or undefined assertParamExists('getCopierFeature', 'featureId', featureId) const localVarPath = `/rest/api/v1/accounts/{accountId}/copiers/{copierId}/features/{featureId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get all copier features * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCopierFeatures: async (accountId: string, copierId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getCopierFeatures', 'accountId', accountId) // verify required parameter 'copierId' is not null or undefined assertParamExists('getCopierFeatures', 'copierId', copierId) const localVarPath = `/rest/api/v1/accounts/{accountId}/copiers/{copierId}/features` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get account copiers * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCopiers: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getCopiers', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/copiers` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRiskLimit: async (accountId: string, riskLimitId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getRiskLimit', 'accountId', accountId) // verify required parameter 'riskLimitId' is not null or undefined assertParamExists('getRiskLimit', 'riskLimitId', riskLimitId) const localVarPath = `/rest/api/v1/accounts/{accountId}/riskLimits/{riskLimitId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"riskLimitId"}}`, encodeURIComponent(String(riskLimitId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get account risk limits * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRiskLimits: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getRiskLimits', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/riskLimits` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get a copier feature attached to a Signal Follower feature * @summary Get a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerFeature: async (accountId: string, signalFollowerId: string, featureId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getSignalFollowerFeature', 'accountId', accountId) // verify required parameter 'signalFollowerId' is not null or undefined assertParamExists('getSignalFollowerFeature', 'signalFollowerId', signalFollowerId) // verify required parameter 'featureId' is not null or undefined assertParamExists('getSignalFollowerFeature', 'featureId', featureId) const localVarPath = `/rest/api/v1/accounts/{accountId}/signalFollowers/{signalFollowerId}/features/{featureId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"signalFollowerId"}}`, encodeURIComponent(String(signalFollowerId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get all copier features attached to a Signal Follower feature * @summary Get all Signal Follower features * @param {string} accountId * @param {string} signalFollowerId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerFeatures: async (accountId: string, signalFollowerId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getSignalFollowerFeatures', 'accountId', accountId) // verify required parameter 'signalFollowerId' is not null or undefined assertParamExists('getSignalFollowerFeatures', 'signalFollowerId', signalFollowerId) const localVarPath = `/rest/api/v1/accounts/{accountId}/signalFollowers/{signalFollowerId}/features` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"signalFollowerId"}}`, encodeURIComponent(String(signalFollowerId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get all slave accounts that are copying from this master account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSlaveAccounts: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getSlaveAccounts', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/slaves` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Set all copiers across all accounts to monitor-only mode * @param {*} [options] Override http request option. * @throws {RequiredError} */ monitorOnlyAllCopiers: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/accounts/monitorOnlyAllCopiers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Set all copiers of all slave accounts to monitor-only mode * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ monitorOnlySlavesCopier: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('monitorOnlySlavesCopier', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/monitorOnlySlavesCopier` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Resets the Masaniello money management series. If symbol is provided, only that symbol\'s series is reset. Otherwise, all symbol series are reset. * @summary Reset Masaniello series * @param {string} accountId * @param {string} masanielloFeatureId * @param {string} [symbol] Optional symbol to reset. If not provided, all symbols are reset. * @param {*} [options] Override http request option. * @throws {RequiredError} */ resetMasaniello: async (accountId: string, masanielloFeatureId: string, symbol?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('resetMasaniello', 'accountId', accountId) // verify required parameter 'masanielloFeatureId' is not null or undefined assertParamExists('resetMasaniello', 'masanielloFeatureId', masanielloFeatureId) const localVarPath = `/rest/api/v1/accounts/{accountId}/masaniello/{masanielloFeatureId}/reset` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"masanielloFeatureId"}}`, encodeURIComponent(String(masanielloFeatureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (symbol !== undefined) { localVarQueryParameter['symbol'] = symbol; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * If the profit target (e.g., daily) is hit, no trades will be copied for the remainder of the day. To resume trading on the same day, you can utilize this operation to unlock the profit target * @summary Reset an account profit target * @param {string} accountId * @param {string} profitTargetFeatureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ resetProfitTarget: async (accountId: string, profitTargetFeatureId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('resetProfitTarget', 'accountId', accountId) // verify required parameter 'profitTargetFeatureId' is not null or undefined assertParamExists('resetProfitTarget', 'profitTargetFeatureId', profitTargetFeatureId) const localVarPath = `/rest/api/v1/accounts/{accountId}/profitTargets/{profitTargetFeatureId}/reset` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"profitTargetFeatureId"}}`, encodeURIComponent(String(profitTargetFeatureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * If the risk limit (e.g., daily) is hit, no trades will be copied for the remainder of the day. To resume trading on the same day, you can utilize this operation to unlock the risk limit * @summary Reset an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {*} [options] Override http request option. * @throws {RequiredError} */ resetRiskLimit: async (accountId: string, riskLimitId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('resetRiskLimit', 'accountId', accountId) // verify required parameter 'riskLimitId' is not null or undefined assertParamExists('resetRiskLimit', 'riskLimitId', riskLimitId) const localVarPath = `/rest/api/v1/accounts/{accountId}/riskLimits/{riskLimitId}/reset` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"riskLimitId"}}`, encodeURIComponent(String(riskLimitId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Resynchronize with the master account. If a position was closed on the slave account but remains open on the master, this operation will reopen the position on the slave to match the master\'s state. * @summary Resynchronize copier with master * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ resyncCopier: async (accountId: string, copierId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('resyncCopier', 'accountId', accountId) // verify required parameter 'copierId' is not null or undefined assertParamExists('resyncCopier', 'copierId', copierId) const localVarPath = `/rest/api/v1/accounts/{accountId}/copiers/{copierId}/resync` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Start an account (connect) * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ startAccount: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('startAccount', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/actions/start` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Stop an account (disconnect) * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ stopAccount: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('stopAccount', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/actions/stop` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update an account * @param {string} accountId * @param {AccountDTO} accountDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAccount: async (accountId: string, accountDTO: AccountDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('updateAccount', 'accountId', accountId) // verify required parameter 'accountDTO' is not null or undefined assertParamExists('updateAccount', 'accountDTO', accountDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(accountDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update an account feature * @param {string} accountId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAccountFeature: async (accountId: string, featureId: string, featureDTO: FeatureDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('updateAccountFeature', 'accountId', accountId) // verify required parameter 'featureId' is not null or undefined assertParamExists('updateAccountFeature', 'featureId', featureId) // verify required parameter 'featureDTO' is not null or undefined assertParamExists('updateAccountFeature', 'featureDTO', featureDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/features/{featureId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(featureDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update an account copier * @param {string} accountId * @param {string} copierId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCopier: async (accountId: string, copierId: string, copierDTO: CopierDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('updateCopier', 'accountId', accountId) // verify required parameter 'copierId' is not null or undefined assertParamExists('updateCopier', 'copierId', copierId) // verify required parameter 'copierDTO' is not null or undefined assertParamExists('updateCopier', 'copierDTO', copierDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/copiers/{copierId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(copierDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update a copier feature * @param {string} accountId * @param {string} copierId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCopierFeature: async (accountId: string, copierId: string, featureId: string, featureDTO: FeatureDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('updateCopierFeature', 'accountId', accountId) // verify required parameter 'copierId' is not null or undefined assertParamExists('updateCopierFeature', 'copierId', copierId) // verify required parameter 'featureId' is not null or undefined assertParamExists('updateCopierFeature', 'featureId', featureId) // verify required parameter 'featureDTO' is not null or undefined assertParamExists('updateCopierFeature', 'featureDTO', featureDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/copiers/{copierId}/features/{featureId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(featureDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {RiskLimitDTO} riskLimitDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateRiskLimit: async (accountId: string, riskLimitId: string, riskLimitDTO: RiskLimitDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('updateRiskLimit', 'accountId', accountId) // verify required parameter 'riskLimitId' is not null or undefined assertParamExists('updateRiskLimit', 'riskLimitId', riskLimitId) // verify required parameter 'riskLimitDTO' is not null or undefined assertParamExists('updateRiskLimit', 'riskLimitDTO', riskLimitDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/riskLimits/{riskLimitId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"riskLimitId"}}`, encodeURIComponent(String(riskLimitId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(riskLimitDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update a copier feature attached to a Signal Follower feature * @summary Update a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSignalFollowerFeature: async (accountId: string, signalFollowerId: string, featureId: string, featureDTO: FeatureDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('updateSignalFollowerFeature', 'accountId', accountId) // verify required parameter 'signalFollowerId' is not null or undefined assertParamExists('updateSignalFollowerFeature', 'signalFollowerId', signalFollowerId) // verify required parameter 'featureId' is not null or undefined assertParamExists('updateSignalFollowerFeature', 'featureId', featureId) // verify required parameter 'featureDTO' is not null or undefined assertParamExists('updateSignalFollowerFeature', 'featureDTO', featureDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/signalFollowers/{signalFollowerId}/features/{featureId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"signalFollowerId"}}`, encodeURIComponent(String(signalFollowerId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(featureDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * AccountAPIApi - functional programming interface * @export */ export const AccountAPIApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = AccountAPIApiAxiosParamCreator(configuration) return { /** * * @summary Activate all copiers across all accounts * @param {*} [options] Override http request option. * @throws {RequiredError} */ async activateAllCopiers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.activateAllCopiers(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.activateAllCopiers']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Activate all copiers of all slave accounts * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async activateSlavesCopier(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.activateSlavesCopier(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.activateSlavesCopier']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Creates a new account. If a callbackUrl is provided in the request body, the account creation is processed asynchronously: the API returns 202 Accepted immediately with a requestId, and POSTs the result to the callback URL once done. Only one account creation per project is processed at a time; additional async requests are queued and processed sequentially. * @summary Create an account * @param {AccountDTO} accountDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createAccount(accountDTO: AccountDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAccount(accountDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.createAccount']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create an approval * @param {string} accountId * @param {ApprovalDTO} approvalDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createAccountApproval(accountId: string, approvalDTO: ApprovalDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAccountApproval(accountId, approvalDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.createAccountApproval']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create an account feature * @param {string} accountId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createAccountFeature(accountId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAccountFeature(accountId, featureDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.createAccountFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create an account copier * @param {string} accountId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createCopier(accountId: string, copierDTO: CopierDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createCopier(accountId, copierDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.createCopier']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create a copier feature * @param {string} accountId * @param {string} copierId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createCopierFeature(accountId: string, copierId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createCopierFeature(accountId, copierId, featureDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.createCopierFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create an account risk limit * @param {string} accountId * @param {RiskLimitDTO} riskLimitDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createRiskLimit(accountId: string, riskLimitDTO: RiskLimitDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createRiskLimit(accountId, riskLimitDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.createRiskLimit']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Create a copier feature attached to a Signal Follower feature * @summary Create a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createSignalFollowerFeature(accountId: string, signalFollowerId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSignalFollowerFeature(accountId, signalFollowerId, featureDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.createSignalFollowerFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Deactivate all copiers across all accounts * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deactivateAllCopiers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deactivateAllCopiers(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.deactivateAllCopiers']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Deactivate all copiers of all slave accounts * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deactivateSlavesCopier(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deactivateSlavesCopier(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.deactivateSlavesCopier']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete an account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteAccount(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccount(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.deleteAccount']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete an account feature * @param {string} accountId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteAccountFeature(accountId: string, featureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccountFeature(accountId, featureId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.deleteAccountFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete an account copier * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteCopier(accountId: string, copierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCopier(accountId, copierId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.deleteCopier']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete a copier feature * @param {string} accountId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteCopierFeature(accountId: string, copierId: string, featureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCopierFeature(accountId, copierId, featureId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.deleteCopierFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteRiskLimit(accountId: string, riskLimitId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRiskLimit(accountId, riskLimitId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.deleteRiskLimit']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete a copier feature attached to a Signal Follower feature * @summary Delete a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteSignalFollowerFeature(accountId: string, signalFollowerId: string, featureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSignalFollowerFeature(accountId, signalFollowerId, featureId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.deleteSignalFollowerFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get an account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAccount(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccount(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getAccount']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get all API keys for an account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAccountApiKeys(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountApiKeys(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getAccountApiKeys']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves audit logs for all API modifications made to a specific account. * @summary Get audit logs for a specific account * @param {string} accountId * @param {number} [limit] Maximum number of logs to return * @param {number} [offset] Number of logs to skip for pagination * @param {string} [startDate] Start date filter (ISO-8601 format) * @param {string} [endDate] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAccountAuditLogs(accountId: string, limit?: number, offset?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountAuditLogs(accountId, limit, offset, startDate, endDate, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getAccountAuditLogs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get account copier current symbol mappings * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAccountCopierCurrentSymbolMappings(accountId: string, copierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountCopierCurrentSymbolMappings(accountId, copierId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getAccountCopierCurrentSymbolMappings']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves equity, balance, and floating PnL time-series data collected for advanced analytics, drawdown monitoring, and equity curve construction. * @summary Get data collector records for a specific account * @param {string} accountId * @param {number} [limit] Maximum number of records to return (default: 10000, use -1 for all records) * @param {string} [startTime] Start date filter (ISO-8601 format) * @param {string} [endTime] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAccountDataCollectorRecords(accountId: string, limit?: number, startTime?: string, endTime?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountDataCollectorRecords(accountId, limit, startTime, endTime, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getAccountDataCollectorRecords']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get an account feature * @param {string} accountId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAccountFeature(accountId: string, featureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountFeature(accountId, featureId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getAccountFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get all account features * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAccountFeatures(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountFeatures(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getAccountFeatures']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get account logs * @param {string} accountId * @param {number} [limit] Get the last logs: e.g. 100 means the last 100 logs * @param {number} [offset] You can set an offset. Offset 100 means 101-200 * @param {string} [start] ISO 8601 * @param {string} [stop] ISO 8601 * @param {number} [logTypeId] Filter logs by log level type ID. If you choose 3 = Info, then all logs with a lower level are returned. The levels are: 1 = Error, 2 = Warning, 3 = Info. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAccountLogs(accountId: string, limit?: number, offset?: number, start?: string, stop?: string, logTypeId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountLogs(accountId, limit, offset, start, stop, logTypeId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getAccountLogs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get an account performance metrics * @param {string} accountId * @param {string} [startDate] Start date filter (ISO-8601 format, e.g. 2024-01-01T00:00:00Z) * @param {string} [endDate] End date filter (ISO-8601 format, e.g. 2024-12-31T23:59:59Z) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAccountPerformanceMetrics(accountId: string, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPerformanceMetrics(accountId, startDate, endDate, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getAccountPerformanceMetrics']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get account symbol mappings for given symbols * @param {string} accountId * @param {RequestSymbolMappingsDTO} requestSymbolMappingsDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAccountSymbolMappings(accountId: string, requestSymbolMappingsDTO: RequestSymbolMappingsDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountSymbolMappings(accountId, requestSymbolMappingsDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getAccountSymbolMappings']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get all accounts * @param {number} [accountTypeId] Filter by account type ID (1=MT5, 2=MT4, 3=DXtrade, 4=cTrader, 5=TradeLocker, 6=MatchTrader, 7=Binance, 8=Bybit, 9=Bitget, 10=BloFin, 11=OKX, 12=TradeStation, 13=Tradovate, 14=Alpaca, 15=Gate.io, 16=Bitunix, 17=Hyperliquid) * @param {string} [loginServer] Filter by login server (case-insensitive partial match anywhere in the server name, e.g., ICMarketsSC-MT5-4, dxtrade.instantfunding.io, live.ctraderapi.com:5035) * @param {string} [loginAccountNumber] Filter by login account number (case-insensitive partial match anywhere in the account number) * @param {string} [alias] Filter by account alias (case-insensitive partial match anywhere in the alias) * @param {number} [regionId] Filter by region ID (1=New York, 2=London, 3=Singapore, 4=Berlin) * @param {number} [accountStatusId] Filter by account status ID (1=New, 2=Active, 3=Stopped, 4=Deleted) * @param {number} [limit] Maximum number of accounts to return * @param {number} [offset] Number of accounts to skip for pagination * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAccounts(accountTypeId?: number, loginServer?: string, loginAccountNumber?: string, alias?: string, regionId?: number, accountStatusId?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccounts(accountTypeId, loginServer, loginAccountNumber, alias, regionId, accountStatusId, limit, offset, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getAccounts']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns all tracked asynchronous account creation requests and their current statuses. Statuses are retained for 1 hour after completion. * @summary Get all async account creation requests * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAllAsyncAccountCreationStatuses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAsyncAccountCreationStatuses(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getAllAsyncAccountCreationStatuses']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns the current status of an asynchronous account creation request. Status values: QUEUED (waiting to be processed), PROCESSING (currently being created), COMPLETED (success, includes the account), FAILED (includes error message). Statuses are retained for 1 hour after completion. * @summary Get async account creation status * @param {string} requestId The requestId returned by the async POST /accounts call * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAsyncAccountCreationStatus(requestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAsyncAccountCreationStatus(requestId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getAsyncAccountCreationStatus']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get account copier * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCopier(accountId: string, copierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCopier(accountId, copierId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getCopier']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get a copier feature * @param {string} accountId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCopierFeature(accountId: string, copierId: string, featureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCopierFeature(accountId, copierId, featureId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getCopierFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get all copier features * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCopierFeatures(accountId: string, copierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCopierFeatures(accountId, copierId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getCopierFeatures']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get account copiers * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCopiers(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCopiers(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getCopiers']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getRiskLimit(accountId: string, riskLimitId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRiskLimit(accountId, riskLimitId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getRiskLimit']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get account risk limits * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getRiskLimits(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRiskLimits(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getRiskLimits']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a copier feature attached to a Signal Follower feature * @summary Get a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSignalFollowerFeature(accountId: string, signalFollowerId: string, featureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSignalFollowerFeature(accountId, signalFollowerId, featureId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getSignalFollowerFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get all copier features attached to a Signal Follower feature * @summary Get all Signal Follower features * @param {string} accountId * @param {string} signalFollowerId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSignalFollowerFeatures(accountId: string, signalFollowerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSignalFollowerFeatures(accountId, signalFollowerId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getSignalFollowerFeatures']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get all slave accounts that are copying from this master account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSlaveAccounts(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSlaveAccounts(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.getSlaveAccounts']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Set all copiers across all accounts to monitor-only mode * @param {*} [options] Override http request option. * @throws {RequiredError} */ async monitorOnlyAllCopiers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.monitorOnlyAllCopiers(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.monitorOnlyAllCopiers']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Set all copiers of all slave accounts to monitor-only mode * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async monitorOnlySlavesCopier(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.monitorOnlySlavesCopier(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.monitorOnlySlavesCopier']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Resets the Masaniello money management series. If symbol is provided, only that symbol\'s series is reset. Otherwise, all symbol series are reset. * @summary Reset Masaniello series * @param {string} accountId * @param {string} masanielloFeatureId * @param {string} [symbol] Optional symbol to reset. If not provided, all symbols are reset. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async resetMasaniello(accountId: string, masanielloFeatureId: string, symbol?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.resetMasaniello(accountId, masanielloFeatureId, symbol, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.resetMasaniello']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * If the profit target (e.g., daily) is hit, no trades will be copied for the remainder of the day. To resume trading on the same day, you can utilize this operation to unlock the profit target * @summary Reset an account profit target * @param {string} accountId * @param {string} profitTargetFeatureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async resetProfitTarget(accountId: string, profitTargetFeatureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.resetProfitTarget(accountId, profitTargetFeatureId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.resetProfitTarget']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * If the risk limit (e.g., daily) is hit, no trades will be copied for the remainder of the day. To resume trading on the same day, you can utilize this operation to unlock the risk limit * @summary Reset an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async resetRiskLimit(accountId: string, riskLimitId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.resetRiskLimit(accountId, riskLimitId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.resetRiskLimit']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Resynchronize with the master account. If a position was closed on the slave account but remains open on the master, this operation will reopen the position on the slave to match the master\'s state. * @summary Resynchronize copier with master * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async resyncCopier(accountId: string, copierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.resyncCopier(accountId, copierId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.resyncCopier']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Start an account (connect) * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async startAccount(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.startAccount(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.startAccount']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Stop an account (disconnect) * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async stopAccount(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.stopAccount(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.stopAccount']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update an account * @param {string} accountId * @param {AccountDTO} accountDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateAccount(accountId: string, accountDTO: AccountDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateAccount(accountId, accountDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.updateAccount']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update an account feature * @param {string} accountId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateAccountFeature(accountId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateAccountFeature(accountId, featureId, featureDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.updateAccountFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update an account copier * @param {string} accountId * @param {string} copierId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateCopier(accountId: string, copierId: string, copierDTO: CopierDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateCopier(accountId, copierId, copierDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.updateCopier']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update a copier feature * @param {string} accountId * @param {string} copierId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateCopierFeature(accountId: string, copierId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateCopierFeature(accountId, copierId, featureId, featureDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.updateCopierFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {RiskLimitDTO} riskLimitDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateRiskLimit(accountId: string, riskLimitId: string, riskLimitDTO: RiskLimitDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateRiskLimit(accountId, riskLimitId, riskLimitDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.updateRiskLimit']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a copier feature attached to a Signal Follower feature * @summary Update a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateSignalFollowerFeature(accountId: string, signalFollowerId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateSignalFollowerFeature(accountId, signalFollowerId, featureId, featureDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['AccountAPIApi.updateSignalFollowerFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * AccountAPIApi - factory interface * @export */ export const AccountAPIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = AccountAPIApiFp(configuration) return { /** * * @summary Activate all copiers across all accounts * @param {*} [options] Override http request option. * @throws {RequiredError} */ activateAllCopiers(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.activateAllCopiers(options).then((request) => request(axios, basePath)); }, /** * * @summary Activate all copiers of all slave accounts * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ activateSlavesCopier(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.activateSlavesCopier(accountId, options).then((request) => request(axios, basePath)); }, /** * Creates a new account. If a callbackUrl is provided in the request body, the account creation is processed asynchronously: the API returns 202 Accepted immediately with a requestId, and POSTs the result to the callback URL once done. Only one account creation per project is processed at a time; additional async requests are queued and processed sequentially. * @summary Create an account * @param {AccountDTO} accountDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAccount(accountDTO: AccountDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createAccount(accountDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Create an approval * @param {string} accountId * @param {ApprovalDTO} approvalDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAccountApproval(accountId: string, approvalDTO: ApprovalDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createAccountApproval(accountId, approvalDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Create an account feature * @param {string} accountId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAccountFeature(accountId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createAccountFeature(accountId, featureDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Create an account copier * @param {string} accountId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCopier(accountId: string, copierDTO: CopierDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createCopier(accountId, copierDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Create a copier feature * @param {string} accountId * @param {string} copierId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCopierFeature(accountId: string, copierId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createCopierFeature(accountId, copierId, featureDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Create an account risk limit * @param {string} accountId * @param {RiskLimitDTO} riskLimitDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRiskLimit(accountId: string, riskLimitDTO: RiskLimitDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createRiskLimit(accountId, riskLimitDTO, options).then((request) => request(axios, basePath)); }, /** * Create a copier feature attached to a Signal Follower feature * @summary Create a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSignalFollowerFeature(accountId: string, signalFollowerId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createSignalFollowerFeature(accountId, signalFollowerId, featureDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Deactivate all copiers across all accounts * @param {*} [options] Override http request option. * @throws {RequiredError} */ deactivateAllCopiers(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deactivateAllCopiers(options).then((request) => request(axios, basePath)); }, /** * * @summary Deactivate all copiers of all slave accounts * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deactivateSlavesCopier(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deactivateSlavesCopier(accountId, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete an account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAccount(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteAccount(accountId, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete an account feature * @param {string} accountId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAccountFeature(accountId: string, featureId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteAccountFeature(accountId, featureId, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete an account copier * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteCopier(accountId: string, copierId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteCopier(accountId, copierId, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete a copier feature * @param {string} accountId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteCopierFeature(accountId: string, copierId: string, featureId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteCopierFeature(accountId, copierId, featureId, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteRiskLimit(accountId: string, riskLimitId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteRiskLimit(accountId, riskLimitId, options).then((request) => request(axios, basePath)); }, /** * Delete a copier feature attached to a Signal Follower feature * @summary Delete a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSignalFollowerFeature(accountId: string, signalFollowerId: string, featureId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteSignalFollowerFeature(accountId, signalFollowerId, featureId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get an account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccount(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccount(accountId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get all API keys for an account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountApiKeys(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAccountApiKeys(accountId, options).then((request) => request(axios, basePath)); }, /** * Retrieves audit logs for all API modifications made to a specific account. * @summary Get audit logs for a specific account * @param {string} accountId * @param {number} [limit] Maximum number of logs to return * @param {number} [offset] Number of logs to skip for pagination * @param {string} [startDate] Start date filter (ISO-8601 format) * @param {string} [endDate] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountAuditLogs(accountId: string, limit?: number, offset?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAccountAuditLogs(accountId, limit, offset, startDate, endDate, options).then((request) => request(axios, basePath)); }, /** * * @summary Get account copier current symbol mappings * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountCopierCurrentSymbolMappings(accountId: string, copierId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAccountCopierCurrentSymbolMappings(accountId, copierId, options).then((request) => request(axios, basePath)); }, /** * Retrieves equity, balance, and floating PnL time-series data collected for advanced analytics, drawdown monitoring, and equity curve construction. * @summary Get data collector records for a specific account * @param {string} accountId * @param {number} [limit] Maximum number of records to return (default: 10000, use -1 for all records) * @param {string} [startTime] Start date filter (ISO-8601 format) * @param {string} [endTime] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountDataCollectorRecords(accountId: string, limit?: number, startTime?: string, endTime?: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAccountDataCollectorRecords(accountId, limit, startTime, endTime, options).then((request) => request(axios, basePath)); }, /** * * @summary Get an account feature * @param {string} accountId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountFeature(accountId: string, featureId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccountFeature(accountId, featureId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get all account features * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountFeatures(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAccountFeatures(accountId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get account logs * @param {string} accountId * @param {number} [limit] Get the last logs: e.g. 100 means the last 100 logs * @param {number} [offset] You can set an offset. Offset 100 means 101-200 * @param {string} [start] ISO 8601 * @param {string} [stop] ISO 8601 * @param {number} [logTypeId] Filter logs by log level type ID. If you choose 3 = Info, then all logs with a lower level are returned. The levels are: 1 = Error, 2 = Warning, 3 = Info. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountLogs(accountId: string, limit?: number, offset?: number, start?: string, stop?: string, logTypeId?: number, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAccountLogs(accountId, limit, offset, start, stop, logTypeId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get an account performance metrics * @param {string} accountId * @param {string} [startDate] Start date filter (ISO-8601 format, e.g. 2024-01-01T00:00:00Z) * @param {string} [endDate] End date filter (ISO-8601 format, e.g. 2024-12-31T23:59:59Z) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountPerformanceMetrics(accountId: string, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAccountPerformanceMetrics(accountId, startDate, endDate, options).then((request) => request(axios, basePath)); }, /** * * @summary Get account symbol mappings for given symbols * @param {string} accountId * @param {RequestSymbolMappingsDTO} requestSymbolMappingsDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountSymbolMappings(accountId: string, requestSymbolMappingsDTO: RequestSymbolMappingsDTO, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAccountSymbolMappings(accountId, requestSymbolMappingsDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Get all accounts * @param {number} [accountTypeId] Filter by account type ID (1=MT5, 2=MT4, 3=DXtrade, 4=cTrader, 5=TradeLocker, 6=MatchTrader, 7=Binance, 8=Bybit, 9=Bitget, 10=BloFin, 11=OKX, 12=TradeStation, 13=Tradovate, 14=Alpaca, 15=Gate.io, 16=Bitunix, 17=Hyperliquid) * @param {string} [loginServer] Filter by login server (case-insensitive partial match anywhere in the server name, e.g., ICMarketsSC-MT5-4, dxtrade.instantfunding.io, live.ctraderapi.com:5035) * @param {string} [loginAccountNumber] Filter by login account number (case-insensitive partial match anywhere in the account number) * @param {string} [alias] Filter by account alias (case-insensitive partial match anywhere in the alias) * @param {number} [regionId] Filter by region ID (1=New York, 2=London, 3=Singapore, 4=Berlin) * @param {number} [accountStatusId] Filter by account status ID (1=New, 2=Active, 3=Stopped, 4=Deleted) * @param {number} [limit] Maximum number of accounts to return * @param {number} [offset] Number of accounts to skip for pagination * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccounts(accountTypeId?: number, loginServer?: string, loginAccountNumber?: string, alias?: string, regionId?: number, accountStatusId?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAccounts(accountTypeId, loginServer, loginAccountNumber, alias, regionId, accountStatusId, limit, offset, options).then((request) => request(axios, basePath)); }, /** * Returns all tracked asynchronous account creation requests and their current statuses. Statuses are retained for 1 hour after completion. * @summary Get all async account creation requests * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllAsyncAccountCreationStatuses(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAllAsyncAccountCreationStatuses(options).then((request) => request(axios, basePath)); }, /** * Returns the current status of an asynchronous account creation request. Status values: QUEUED (waiting to be processed), PROCESSING (currently being created), COMPLETED (success, includes the account), FAILED (includes error message). Statuses are retained for 1 hour after completion. * @summary Get async account creation status * @param {string} requestId The requestId returned by the async POST /accounts call * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAsyncAccountCreationStatus(requestId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAsyncAccountCreationStatus(requestId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get account copier * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCopier(accountId: string, copierId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCopier(accountId, copierId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get a copier feature * @param {string} accountId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCopierFeature(accountId: string, copierId: string, featureId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCopierFeature(accountId, copierId, featureId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get all copier features * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCopierFeatures(accountId: string, copierId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getCopierFeatures(accountId, copierId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get account copiers * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCopiers(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getCopiers(accountId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRiskLimit(accountId: string, riskLimitId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRiskLimit(accountId, riskLimitId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get account risk limits * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRiskLimits(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getRiskLimits(accountId, options).then((request) => request(axios, basePath)); }, /** * Get a copier feature attached to a Signal Follower feature * @summary Get a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerFeature(accountId: string, signalFollowerId: string, featureId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSignalFollowerFeature(accountId, signalFollowerId, featureId, options).then((request) => request(axios, basePath)); }, /** * Get all copier features attached to a Signal Follower feature * @summary Get all Signal Follower features * @param {string} accountId * @param {string} signalFollowerId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerFeatures(accountId: string, signalFollowerId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getSignalFollowerFeatures(accountId, signalFollowerId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get all slave accounts that are copying from this master account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSlaveAccounts(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getSlaveAccounts(accountId, options).then((request) => request(axios, basePath)); }, /** * * @summary Set all copiers across all accounts to monitor-only mode * @param {*} [options] Override http request option. * @throws {RequiredError} */ monitorOnlyAllCopiers(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.monitorOnlyAllCopiers(options).then((request) => request(axios, basePath)); }, /** * * @summary Set all copiers of all slave accounts to monitor-only mode * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ monitorOnlySlavesCopier(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.monitorOnlySlavesCopier(accountId, options).then((request) => request(axios, basePath)); }, /** * Resets the Masaniello money management series. If symbol is provided, only that symbol\'s series is reset. Otherwise, all symbol series are reset. * @summary Reset Masaniello series * @param {string} accountId * @param {string} masanielloFeatureId * @param {string} [symbol] Optional symbol to reset. If not provided, all symbols are reset. * @param {*} [options] Override http request option. * @throws {RequiredError} */ resetMasaniello(accountId: string, masanielloFeatureId: string, symbol?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.resetMasaniello(accountId, masanielloFeatureId, symbol, options).then((request) => request(axios, basePath)); }, /** * If the profit target (e.g., daily) is hit, no trades will be copied for the remainder of the day. To resume trading on the same day, you can utilize this operation to unlock the profit target * @summary Reset an account profit target * @param {string} accountId * @param {string} profitTargetFeatureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ resetProfitTarget(accountId: string, profitTargetFeatureId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.resetProfitTarget(accountId, profitTargetFeatureId, options).then((request) => request(axios, basePath)); }, /** * If the risk limit (e.g., daily) is hit, no trades will be copied for the remainder of the day. To resume trading on the same day, you can utilize this operation to unlock the risk limit * @summary Reset an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {*} [options] Override http request option. * @throws {RequiredError} */ resetRiskLimit(accountId: string, riskLimitId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.resetRiskLimit(accountId, riskLimitId, options).then((request) => request(axios, basePath)); }, /** * Resynchronize with the master account. If a position was closed on the slave account but remains open on the master, this operation will reopen the position on the slave to match the master\'s state. * @summary Resynchronize copier with master * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ resyncCopier(accountId: string, copierId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.resyncCopier(accountId, copierId, options).then((request) => request(axios, basePath)); }, /** * * @summary Start an account (connect) * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ startAccount(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.startAccount(accountId, options).then((request) => request(axios, basePath)); }, /** * * @summary Stop an account (disconnect) * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ stopAccount(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.stopAccount(accountId, options).then((request) => request(axios, basePath)); }, /** * * @summary Update an account * @param {string} accountId * @param {AccountDTO} accountDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAccount(accountId: string, accountDTO: AccountDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateAccount(accountId, accountDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Update an account feature * @param {string} accountId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAccountFeature(accountId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateAccountFeature(accountId, featureId, featureDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Update an account copier * @param {string} accountId * @param {string} copierId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCopier(accountId: string, copierId: string, copierDTO: CopierDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateCopier(accountId, copierId, copierDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Update a copier feature * @param {string} accountId * @param {string} copierId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCopierFeature(accountId: string, copierId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateCopierFeature(accountId, copierId, featureId, featureDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Update an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {RiskLimitDTO} riskLimitDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateRiskLimit(accountId: string, riskLimitId: string, riskLimitDTO: RiskLimitDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateRiskLimit(accountId, riskLimitId, riskLimitDTO, options).then((request) => request(axios, basePath)); }, /** * Update a copier feature attached to a Signal Follower feature * @summary Update a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSignalFollowerFeature(accountId: string, signalFollowerId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateSignalFollowerFeature(accountId, signalFollowerId, featureId, featureDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * AccountAPIApi - object-oriented interface * @export * @class AccountAPIApi * @extends {BaseAPI} */ export class AccountAPIApi extends BaseAPI { /** * * @summary Activate all copiers across all accounts * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public activateAllCopiers(options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).activateAllCopiers(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Activate all copiers of all slave accounts * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public activateSlavesCopier(accountId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).activateSlavesCopier(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * Creates a new account. If a callbackUrl is provided in the request body, the account creation is processed asynchronously: the API returns 202 Accepted immediately with a requestId, and POSTs the result to the callback URL once done. Only one account creation per project is processed at a time; additional async requests are queued and processed sequentially. * @summary Create an account * @param {AccountDTO} accountDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public createAccount(accountDTO: AccountDTO, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).createAccount(accountDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create an approval * @param {string} accountId * @param {ApprovalDTO} approvalDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public createAccountApproval(accountId: string, approvalDTO: ApprovalDTO, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).createAccountApproval(accountId, approvalDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create an account feature * @param {string} accountId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public createAccountFeature(accountId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).createAccountFeature(accountId, featureDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create an account copier * @param {string} accountId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public createCopier(accountId: string, copierDTO: CopierDTO, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).createCopier(accountId, copierDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create a copier feature * @param {string} accountId * @param {string} copierId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public createCopierFeature(accountId: string, copierId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).createCopierFeature(accountId, copierId, featureDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create an account risk limit * @param {string} accountId * @param {RiskLimitDTO} riskLimitDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public createRiskLimit(accountId: string, riskLimitDTO: RiskLimitDTO, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).createRiskLimit(accountId, riskLimitDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Create a copier feature attached to a Signal Follower feature * @summary Create a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public createSignalFollowerFeature(accountId: string, signalFollowerId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).createSignalFollowerFeature(accountId, signalFollowerId, featureDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Deactivate all copiers across all accounts * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public deactivateAllCopiers(options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).deactivateAllCopiers(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Deactivate all copiers of all slave accounts * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public deactivateSlavesCopier(accountId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).deactivateSlavesCopier(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete an account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public deleteAccount(accountId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).deleteAccount(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete an account feature * @param {string} accountId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public deleteAccountFeature(accountId: string, featureId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).deleteAccountFeature(accountId, featureId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete an account copier * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public deleteCopier(accountId: string, copierId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).deleteCopier(accountId, copierId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete a copier feature * @param {string} accountId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public deleteCopierFeature(accountId: string, copierId: string, featureId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).deleteCopierFeature(accountId, copierId, featureId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public deleteRiskLimit(accountId: string, riskLimitId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).deleteRiskLimit(accountId, riskLimitId, options).then((request) => request(this.axios, this.basePath)); } /** * Delete a copier feature attached to a Signal Follower feature * @summary Delete a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public deleteSignalFollowerFeature(accountId: string, signalFollowerId: string, featureId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).deleteSignalFollowerFeature(accountId, signalFollowerId, featureId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get an account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getAccount(accountId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getAccount(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get all API keys for an account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getAccountApiKeys(accountId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getAccountApiKeys(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves audit logs for all API modifications made to a specific account. * @summary Get audit logs for a specific account * @param {string} accountId * @param {number} [limit] Maximum number of logs to return * @param {number} [offset] Number of logs to skip for pagination * @param {string} [startDate] Start date filter (ISO-8601 format) * @param {string} [endDate] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getAccountAuditLogs(accountId: string, limit?: number, offset?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getAccountAuditLogs(accountId, limit, offset, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get account copier current symbol mappings * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getAccountCopierCurrentSymbolMappings(accountId: string, copierId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getAccountCopierCurrentSymbolMappings(accountId, copierId, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves equity, balance, and floating PnL time-series data collected for advanced analytics, drawdown monitoring, and equity curve construction. * @summary Get data collector records for a specific account * @param {string} accountId * @param {number} [limit] Maximum number of records to return (default: 10000, use -1 for all records) * @param {string} [startTime] Start date filter (ISO-8601 format) * @param {string} [endTime] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getAccountDataCollectorRecords(accountId: string, limit?: number, startTime?: string, endTime?: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getAccountDataCollectorRecords(accountId, limit, startTime, endTime, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get an account feature * @param {string} accountId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getAccountFeature(accountId: string, featureId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getAccountFeature(accountId, featureId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get all account features * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getAccountFeatures(accountId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getAccountFeatures(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get account logs * @param {string} accountId * @param {number} [limit] Get the last logs: e.g. 100 means the last 100 logs * @param {number} [offset] You can set an offset. Offset 100 means 101-200 * @param {string} [start] ISO 8601 * @param {string} [stop] ISO 8601 * @param {number} [logTypeId] Filter logs by log level type ID. If you choose 3 = Info, then all logs with a lower level are returned. The levels are: 1 = Error, 2 = Warning, 3 = Info. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getAccountLogs(accountId: string, limit?: number, offset?: number, start?: string, stop?: string, logTypeId?: number, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getAccountLogs(accountId, limit, offset, start, stop, logTypeId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get an account performance metrics * @param {string} accountId * @param {string} [startDate] Start date filter (ISO-8601 format, e.g. 2024-01-01T00:00:00Z) * @param {string} [endDate] End date filter (ISO-8601 format, e.g. 2024-12-31T23:59:59Z) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getAccountPerformanceMetrics(accountId: string, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getAccountPerformanceMetrics(accountId, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get account symbol mappings for given symbols * @param {string} accountId * @param {RequestSymbolMappingsDTO} requestSymbolMappingsDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getAccountSymbolMappings(accountId: string, requestSymbolMappingsDTO: RequestSymbolMappingsDTO, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getAccountSymbolMappings(accountId, requestSymbolMappingsDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get all accounts * @param {number} [accountTypeId] Filter by account type ID (1=MT5, 2=MT4, 3=DXtrade, 4=cTrader, 5=TradeLocker, 6=MatchTrader, 7=Binance, 8=Bybit, 9=Bitget, 10=BloFin, 11=OKX, 12=TradeStation, 13=Tradovate, 14=Alpaca, 15=Gate.io, 16=Bitunix, 17=Hyperliquid) * @param {string} [loginServer] Filter by login server (case-insensitive partial match anywhere in the server name, e.g., ICMarketsSC-MT5-4, dxtrade.instantfunding.io, live.ctraderapi.com:5035) * @param {string} [loginAccountNumber] Filter by login account number (case-insensitive partial match anywhere in the account number) * @param {string} [alias] Filter by account alias (case-insensitive partial match anywhere in the alias) * @param {number} [regionId] Filter by region ID (1=New York, 2=London, 3=Singapore, 4=Berlin) * @param {number} [accountStatusId] Filter by account status ID (1=New, 2=Active, 3=Stopped, 4=Deleted) * @param {number} [limit] Maximum number of accounts to return * @param {number} [offset] Number of accounts to skip for pagination * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getAccounts(accountTypeId?: number, loginServer?: string, loginAccountNumber?: string, alias?: string, regionId?: number, accountStatusId?: number, limit?: number, offset?: number, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getAccounts(accountTypeId, loginServer, loginAccountNumber, alias, regionId, accountStatusId, limit, offset, options).then((request) => request(this.axios, this.basePath)); } /** * Returns all tracked asynchronous account creation requests and their current statuses. Statuses are retained for 1 hour after completion. * @summary Get all async account creation requests * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getAllAsyncAccountCreationStatuses(options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getAllAsyncAccountCreationStatuses(options).then((request) => request(this.axios, this.basePath)); } /** * Returns the current status of an asynchronous account creation request. Status values: QUEUED (waiting to be processed), PROCESSING (currently being created), COMPLETED (success, includes the account), FAILED (includes error message). Statuses are retained for 1 hour after completion. * @summary Get async account creation status * @param {string} requestId The requestId returned by the async POST /accounts call * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getAsyncAccountCreationStatus(requestId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getAsyncAccountCreationStatus(requestId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get account copier * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getCopier(accountId: string, copierId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getCopier(accountId, copierId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get a copier feature * @param {string} accountId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getCopierFeature(accountId: string, copierId: string, featureId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getCopierFeature(accountId, copierId, featureId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get all copier features * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getCopierFeatures(accountId: string, copierId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getCopierFeatures(accountId, copierId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get account copiers * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getCopiers(accountId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getCopiers(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getRiskLimit(accountId: string, riskLimitId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getRiskLimit(accountId, riskLimitId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get account risk limits * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getRiskLimits(accountId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getRiskLimits(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * Get a copier feature attached to a Signal Follower feature * @summary Get a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getSignalFollowerFeature(accountId: string, signalFollowerId: string, featureId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getSignalFollowerFeature(accountId, signalFollowerId, featureId, options).then((request) => request(this.axios, this.basePath)); } /** * Get all copier features attached to a Signal Follower feature * @summary Get all Signal Follower features * @param {string} accountId * @param {string} signalFollowerId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getSignalFollowerFeatures(accountId: string, signalFollowerId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getSignalFollowerFeatures(accountId, signalFollowerId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get all slave accounts that are copying from this master account * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public getSlaveAccounts(accountId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).getSlaveAccounts(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Set all copiers across all accounts to monitor-only mode * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public monitorOnlyAllCopiers(options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).monitorOnlyAllCopiers(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Set all copiers of all slave accounts to monitor-only mode * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public monitorOnlySlavesCopier(accountId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).monitorOnlySlavesCopier(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * Resets the Masaniello money management series. If symbol is provided, only that symbol\'s series is reset. Otherwise, all symbol series are reset. * @summary Reset Masaniello series * @param {string} accountId * @param {string} masanielloFeatureId * @param {string} [symbol] Optional symbol to reset. If not provided, all symbols are reset. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public resetMasaniello(accountId: string, masanielloFeatureId: string, symbol?: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).resetMasaniello(accountId, masanielloFeatureId, symbol, options).then((request) => request(this.axios, this.basePath)); } /** * If the profit target (e.g., daily) is hit, no trades will be copied for the remainder of the day. To resume trading on the same day, you can utilize this operation to unlock the profit target * @summary Reset an account profit target * @param {string} accountId * @param {string} profitTargetFeatureId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public resetProfitTarget(accountId: string, profitTargetFeatureId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).resetProfitTarget(accountId, profitTargetFeatureId, options).then((request) => request(this.axios, this.basePath)); } /** * If the risk limit (e.g., daily) is hit, no trades will be copied for the remainder of the day. To resume trading on the same day, you can utilize this operation to unlock the risk limit * @summary Reset an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public resetRiskLimit(accountId: string, riskLimitId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).resetRiskLimit(accountId, riskLimitId, options).then((request) => request(this.axios, this.basePath)); } /** * Resynchronize with the master account. If a position was closed on the slave account but remains open on the master, this operation will reopen the position on the slave to match the master\'s state. * @summary Resynchronize copier with master * @param {string} accountId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public resyncCopier(accountId: string, copierId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).resyncCopier(accountId, copierId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Start an account (connect) * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public startAccount(accountId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).startAccount(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Stop an account (disconnect) * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public stopAccount(accountId: string, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).stopAccount(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update an account * @param {string} accountId * @param {AccountDTO} accountDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public updateAccount(accountId: string, accountDTO: AccountDTO, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).updateAccount(accountId, accountDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update an account feature * @param {string} accountId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public updateAccountFeature(accountId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).updateAccountFeature(accountId, featureId, featureDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update an account copier * @param {string} accountId * @param {string} copierId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public updateCopier(accountId: string, copierId: string, copierDTO: CopierDTO, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).updateCopier(accountId, copierId, copierDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update a copier feature * @param {string} accountId * @param {string} copierId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public updateCopierFeature(accountId: string, copierId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).updateCopierFeature(accountId, copierId, featureId, featureDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update an account risk limit * @param {string} accountId * @param {string} riskLimitId * @param {RiskLimitDTO} riskLimitDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public updateRiskLimit(accountId: string, riskLimitId: string, riskLimitDTO: RiskLimitDTO, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).updateRiskLimit(accountId, riskLimitId, riskLimitDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Update a copier feature attached to a Signal Follower feature * @summary Update a Signal Follower feature * @param {string} accountId * @param {string} signalFollowerId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountAPIApi */ public updateSignalFollowerFeature(accountId: string, signalFollowerId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig) { return AccountAPIApiFp(this.configuration).updateSignalFollowerFeature(accountId, signalFollowerId, featureId, featureDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * BrokerAPIApi - axios parameter creator * @export */ export const BrokerAPIApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Returns a list of all available broker names for the specified broker type (mt4 or mt5). * @summary Get all brokers * @param {string} brokerType The broker type. Allowed values: mt4, mt5 * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllBrokers: async (brokerType: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'brokerType' is not null or undefined assertParamExists('getAllBrokers', 'brokerType', brokerType) const localVarPath = `/rest/api/v1/brokers/{brokerType}/all` .replace(`{${"brokerType"}}`, encodeURIComponent(String(brokerType))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * BrokerAPIApi - functional programming interface * @export */ export const BrokerAPIApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = BrokerAPIApiAxiosParamCreator(configuration) return { /** * Returns a list of all available broker names for the specified broker type (mt4 or mt5). * @summary Get all brokers * @param {string} brokerType The broker type. Allowed values: mt4, mt5 * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAllBrokers(brokerType: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAllBrokers(brokerType, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['BrokerAPIApi.getAllBrokers']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * BrokerAPIApi - factory interface * @export */ export const BrokerAPIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = BrokerAPIApiFp(configuration) return { /** * Returns a list of all available broker names for the specified broker type (mt4 or mt5). * @summary Get all brokers * @param {string} brokerType The broker type. Allowed values: mt4, mt5 * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllBrokers(brokerType: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAllBrokers(brokerType, options).then((request) => request(axios, basePath)); }, }; }; /** * BrokerAPIApi - object-oriented interface * @export * @class BrokerAPIApi * @extends {BaseAPI} */ export class BrokerAPIApi extends BaseAPI { /** * Returns a list of all available broker names for the specified broker type (mt4 or mt5). * @summary Get all brokers * @param {string} brokerType The broker type. Allowed values: mt4, mt5 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BrokerAPIApi */ public getAllBrokers(brokerType: string, options?: RawAxiosRequestConfig) { return BrokerAPIApiFp(this.configuration).getAllBrokers(brokerType, options).then((request) => request(this.axios, this.basePath)); } } /** * DashboardAPIApi - axios parameter creator * @export */ export const DashboardAPIApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Bulk save dashboards * @param {string} projectId * @param {DashboardStorageDTO} dashboardStorageDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ bulkSaveDashboards: async (projectId: string, dashboardStorageDTO: DashboardStorageDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('bulkSaveDashboards', 'projectId', projectId) // verify required parameter 'dashboardStorageDTO' is not null or undefined assertParamExists('bulkSaveDashboards', 'dashboardStorageDTO', dashboardStorageDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/dashboards/bulk` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(dashboardStorageDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Create a dashboard * @param {string} projectId * @param {UserDashboardConfigDTO} userDashboardConfigDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createDashboard: async (projectId: string, userDashboardConfigDTO: UserDashboardConfigDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('createDashboard', 'projectId', projectId) // verify required parameter 'userDashboardConfigDTO' is not null or undefined assertParamExists('createDashboard', 'userDashboardConfigDTO', userDashboardConfigDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/dashboards` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(userDashboardConfigDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete a dashboard * @param {string} projectId * @param {string} dashboardId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteDashboard: async (projectId: string, dashboardId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('deleteDashboard', 'projectId', projectId) // verify required parameter 'dashboardId' is not null or undefined assertParamExists('deleteDashboard', 'dashboardId', dashboardId) const localVarPath = `/rest/api/v1/projects/{projectId}/dashboards/{dashboardId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"dashboardId"}}`, encodeURIComponent(String(dashboardId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Duplicate a dashboard * @param {string} projectId * @param {string} dashboardId * @param {DuplicateDashboardRequestDTO} [duplicateDashboardRequestDTO] * @param {*} [options] Override http request option. * @throws {RequiredError} */ duplicateDashboard: async (projectId: string, dashboardId: string, duplicateDashboardRequestDTO?: DuplicateDashboardRequestDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('duplicateDashboard', 'projectId', projectId) // verify required parameter 'dashboardId' is not null or undefined assertParamExists('duplicateDashboard', 'dashboardId', dashboardId) const localVarPath = `/rest/api/v1/projects/{projectId}/dashboards/{dashboardId}/duplicate` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"dashboardId"}}`, encodeURIComponent(String(dashboardId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(duplicateDashboardRequestDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get all dashboards * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllDashboards: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getAllDashboards', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/dashboards` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get a dashboard * @param {string} projectId * @param {string} dashboardId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDashboard: async (projectId: string, dashboardId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getDashboard', 'projectId', projectId) // verify required parameter 'dashboardId' is not null or undefined assertParamExists('getDashboard', 'dashboardId', dashboardId) const localVarPath = `/rest/api/v1/projects/{projectId}/dashboards/{dashboardId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"dashboardId"}}`, encodeURIComponent(String(dashboardId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Partially update a dashboard * @param {string} projectId * @param {string} dashboardId * @param {UserDashboardConfigDTO} userDashboardConfigDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ patchDashboard: async (projectId: string, dashboardId: string, userDashboardConfigDTO: UserDashboardConfigDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('patchDashboard', 'projectId', projectId) // verify required parameter 'dashboardId' is not null or undefined assertParamExists('patchDashboard', 'dashboardId', dashboardId) // verify required parameter 'userDashboardConfigDTO' is not null or undefined assertParamExists('patchDashboard', 'userDashboardConfigDTO', userDashboardConfigDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/dashboards/{dashboardId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"dashboardId"}}`, encodeURIComponent(String(dashboardId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(userDashboardConfigDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Reorder dashboards * @param {string} projectId * @param {ReorderDashboardsRequestDTO} reorderDashboardsRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ reorderDashboards: async (projectId: string, reorderDashboardsRequestDTO: ReorderDashboardsRequestDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('reorderDashboards', 'projectId', projectId) // verify required parameter 'reorderDashboardsRequestDTO' is not null or undefined assertParamExists('reorderDashboards', 'reorderDashboardsRequestDTO', reorderDashboardsRequestDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/dashboards/reorder` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(reorderDashboardsRequestDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update a dashboard * @param {string} projectId * @param {string} dashboardId * @param {UserDashboardConfigDTO} userDashboardConfigDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateDashboard: async (projectId: string, dashboardId: string, userDashboardConfigDTO: UserDashboardConfigDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('updateDashboard', 'projectId', projectId) // verify required parameter 'dashboardId' is not null or undefined assertParamExists('updateDashboard', 'dashboardId', dashboardId) // verify required parameter 'userDashboardConfigDTO' is not null or undefined assertParamExists('updateDashboard', 'userDashboardConfigDTO', userDashboardConfigDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/dashboards/{dashboardId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"dashboardId"}}`, encodeURIComponent(String(dashboardId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(userDashboardConfigDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * DashboardAPIApi - functional programming interface * @export */ export const DashboardAPIApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = DashboardAPIApiAxiosParamCreator(configuration) return { /** * * @summary Bulk save dashboards * @param {string} projectId * @param {DashboardStorageDTO} dashboardStorageDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async bulkSaveDashboards(projectId: string, dashboardStorageDTO: DashboardStorageDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.bulkSaveDashboards(projectId, dashboardStorageDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DashboardAPIApi.bulkSaveDashboards']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create a dashboard * @param {string} projectId * @param {UserDashboardConfigDTO} userDashboardConfigDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createDashboard(projectId: string, userDashboardConfigDTO: UserDashboardConfigDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createDashboard(projectId, userDashboardConfigDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DashboardAPIApi.createDashboard']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete a dashboard * @param {string} projectId * @param {string} dashboardId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteDashboard(projectId: string, dashboardId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDashboard(projectId, dashboardId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DashboardAPIApi.deleteDashboard']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Duplicate a dashboard * @param {string} projectId * @param {string} dashboardId * @param {DuplicateDashboardRequestDTO} [duplicateDashboardRequestDTO] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async duplicateDashboard(projectId: string, dashboardId: string, duplicateDashboardRequestDTO?: DuplicateDashboardRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.duplicateDashboard(projectId, dashboardId, duplicateDashboardRequestDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DashboardAPIApi.duplicateDashboard']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get all dashboards * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAllDashboards(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAllDashboards(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DashboardAPIApi.getAllDashboards']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get a dashboard * @param {string} projectId * @param {string} dashboardId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDashboard(projectId: string, dashboardId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDashboard(projectId, dashboardId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DashboardAPIApi.getDashboard']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Partially update a dashboard * @param {string} projectId * @param {string} dashboardId * @param {UserDashboardConfigDTO} userDashboardConfigDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async patchDashboard(projectId: string, dashboardId: string, userDashboardConfigDTO: UserDashboardConfigDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchDashboard(projectId, dashboardId, userDashboardConfigDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DashboardAPIApi.patchDashboard']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Reorder dashboards * @param {string} projectId * @param {ReorderDashboardsRequestDTO} reorderDashboardsRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async reorderDashboards(projectId: string, reorderDashboardsRequestDTO: ReorderDashboardsRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.reorderDashboards(projectId, reorderDashboardsRequestDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DashboardAPIApi.reorderDashboards']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update a dashboard * @param {string} projectId * @param {string} dashboardId * @param {UserDashboardConfigDTO} userDashboardConfigDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateDashboard(projectId: string, dashboardId: string, userDashboardConfigDTO: UserDashboardConfigDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateDashboard(projectId, dashboardId, userDashboardConfigDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DashboardAPIApi.updateDashboard']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * DashboardAPIApi - factory interface * @export */ export const DashboardAPIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = DashboardAPIApiFp(configuration) return { /** * * @summary Bulk save dashboards * @param {string} projectId * @param {DashboardStorageDTO} dashboardStorageDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ bulkSaveDashboards(projectId: string, dashboardStorageDTO: DashboardStorageDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.bulkSaveDashboards(projectId, dashboardStorageDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Create a dashboard * @param {string} projectId * @param {UserDashboardConfigDTO} userDashboardConfigDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createDashboard(projectId: string, userDashboardConfigDTO: UserDashboardConfigDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createDashboard(projectId, userDashboardConfigDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete a dashboard * @param {string} projectId * @param {string} dashboardId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteDashboard(projectId: string, dashboardId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteDashboard(projectId, dashboardId, options).then((request) => request(axios, basePath)); }, /** * * @summary Duplicate a dashboard * @param {string} projectId * @param {string} dashboardId * @param {DuplicateDashboardRequestDTO} [duplicateDashboardRequestDTO] * @param {*} [options] Override http request option. * @throws {RequiredError} */ duplicateDashboard(projectId: string, dashboardId: string, duplicateDashboardRequestDTO?: DuplicateDashboardRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.duplicateDashboard(projectId, dashboardId, duplicateDashboardRequestDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Get all dashboards * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllDashboards(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAllDashboards(projectId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get a dashboard * @param {string} projectId * @param {string} dashboardId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDashboard(projectId: string, dashboardId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDashboard(projectId, dashboardId, options).then((request) => request(axios, basePath)); }, /** * * @summary Partially update a dashboard * @param {string} projectId * @param {string} dashboardId * @param {UserDashboardConfigDTO} userDashboardConfigDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ patchDashboard(projectId: string, dashboardId: string, userDashboardConfigDTO: UserDashboardConfigDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchDashboard(projectId, dashboardId, userDashboardConfigDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Reorder dashboards * @param {string} projectId * @param {ReorderDashboardsRequestDTO} reorderDashboardsRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ reorderDashboards(projectId: string, reorderDashboardsRequestDTO: ReorderDashboardsRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.reorderDashboards(projectId, reorderDashboardsRequestDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Update a dashboard * @param {string} projectId * @param {string} dashboardId * @param {UserDashboardConfigDTO} userDashboardConfigDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateDashboard(projectId: string, dashboardId: string, userDashboardConfigDTO: UserDashboardConfigDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateDashboard(projectId, dashboardId, userDashboardConfigDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * DashboardAPIApi - object-oriented interface * @export * @class DashboardAPIApi * @extends {BaseAPI} */ export class DashboardAPIApi extends BaseAPI { /** * * @summary Bulk save dashboards * @param {string} projectId * @param {DashboardStorageDTO} dashboardStorageDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DashboardAPIApi */ public bulkSaveDashboards(projectId: string, dashboardStorageDTO: DashboardStorageDTO, options?: RawAxiosRequestConfig) { return DashboardAPIApiFp(this.configuration).bulkSaveDashboards(projectId, dashboardStorageDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create a dashboard * @param {string} projectId * @param {UserDashboardConfigDTO} userDashboardConfigDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DashboardAPIApi */ public createDashboard(projectId: string, userDashboardConfigDTO: UserDashboardConfigDTO, options?: RawAxiosRequestConfig) { return DashboardAPIApiFp(this.configuration).createDashboard(projectId, userDashboardConfigDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete a dashboard * @param {string} projectId * @param {string} dashboardId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DashboardAPIApi */ public deleteDashboard(projectId: string, dashboardId: string, options?: RawAxiosRequestConfig) { return DashboardAPIApiFp(this.configuration).deleteDashboard(projectId, dashboardId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Duplicate a dashboard * @param {string} projectId * @param {string} dashboardId * @param {DuplicateDashboardRequestDTO} [duplicateDashboardRequestDTO] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DashboardAPIApi */ public duplicateDashboard(projectId: string, dashboardId: string, duplicateDashboardRequestDTO?: DuplicateDashboardRequestDTO, options?: RawAxiosRequestConfig) { return DashboardAPIApiFp(this.configuration).duplicateDashboard(projectId, dashboardId, duplicateDashboardRequestDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get all dashboards * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DashboardAPIApi */ public getAllDashboards(projectId: string, options?: RawAxiosRequestConfig) { return DashboardAPIApiFp(this.configuration).getAllDashboards(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get a dashboard * @param {string} projectId * @param {string} dashboardId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DashboardAPIApi */ public getDashboard(projectId: string, dashboardId: string, options?: RawAxiosRequestConfig) { return DashboardAPIApiFp(this.configuration).getDashboard(projectId, dashboardId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Partially update a dashboard * @param {string} projectId * @param {string} dashboardId * @param {UserDashboardConfigDTO} userDashboardConfigDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DashboardAPIApi */ public patchDashboard(projectId: string, dashboardId: string, userDashboardConfigDTO: UserDashboardConfigDTO, options?: RawAxiosRequestConfig) { return DashboardAPIApiFp(this.configuration).patchDashboard(projectId, dashboardId, userDashboardConfigDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Reorder dashboards * @param {string} projectId * @param {ReorderDashboardsRequestDTO} reorderDashboardsRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DashboardAPIApi */ public reorderDashboards(projectId: string, reorderDashboardsRequestDTO: ReorderDashboardsRequestDTO, options?: RawAxiosRequestConfig) { return DashboardAPIApiFp(this.configuration).reorderDashboards(projectId, reorderDashboardsRequestDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update a dashboard * @param {string} projectId * @param {string} dashboardId * @param {UserDashboardConfigDTO} userDashboardConfigDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DashboardAPIApi */ public updateDashboard(projectId: string, dashboardId: string, userDashboardConfigDTO: UserDashboardConfigDTO, options?: RawAxiosRequestConfig) { return DashboardAPIApiFp(this.configuration).updateDashboard(projectId, dashboardId, userDashboardConfigDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * InvestorProgramAPIApi - axios parameter creator * @export */ export const InvestorProgramAPIApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Returns a list of all traders with ACTIVE status * @summary Get all approved traders in the investor program * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllTraders: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/investorProgram/traders`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns detailed information about a specific approved trader * @summary Get a specific approved trader by ID * @param {string} traderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTrader: async (traderId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'traderId' is not null or undefined assertParamExists('getTrader', 'traderId', traderId) const localVarPath = `/rest/api/v1/investorProgram/traders/{traderId}` .replace(`{${"traderId"}}`, encodeURIComponent(String(traderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns historical trading positions for an approved trader so investors can see their trading history. The history is not updated in real-time. There may be a delay of up to 3 minutes. * @summary Get trader historical positions * @param {string} traderId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTraderHistoryPositions: async (traderId: string, start: string, stop: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'traderId' is not null or undefined assertParamExists('getTraderHistoryPositions', 'traderId', traderId) // verify required parameter 'start' is not null or undefined assertParamExists('getTraderHistoryPositions', 'start', start) // verify required parameter 'stop' is not null or undefined assertParamExists('getTraderHistoryPositions', 'stop', stop) const localVarPath = `/rest/api/v1/investorProgram/traders/{traderId}/history/positions` .replace(`{${"traderId"}}`, encodeURIComponent(String(traderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (start !== undefined) { localVarQueryParameter['start'] = start; } if (stop !== undefined) { localVarQueryParameter['stop'] = stop; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns performance analytics for an approved trader\'s account * @summary Get trader performance metrics * @param {string} traderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTraderPerformanceMetrics: async (traderId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'traderId' is not null or undefined assertParamExists('getTraderPerformanceMetrics', 'traderId', traderId) const localVarPath = `/rest/api/v1/investorProgram/traders/{traderId}/performanceMetrics` .replace(`{${"traderId"}}`, encodeURIComponent(String(traderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * InvestorProgramAPIApi - functional programming interface * @export */ export const InvestorProgramAPIApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = InvestorProgramAPIApiAxiosParamCreator(configuration) return { /** * Returns a list of all traders with ACTIVE status * @summary Get all approved traders in the investor program * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAllTraders(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTraders(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['InvestorProgramAPIApi.getAllTraders']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns detailed information about a specific approved trader * @summary Get a specific approved trader by ID * @param {string} traderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTrader(traderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTrader(traderId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['InvestorProgramAPIApi.getTrader']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns historical trading positions for an approved trader so investors can see their trading history. The history is not updated in real-time. There may be a delay of up to 3 minutes. * @summary Get trader historical positions * @param {string} traderId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTraderHistoryPositions(traderId: string, start: string, stop: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTraderHistoryPositions(traderId, start, stop, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['InvestorProgramAPIApi.getTraderHistoryPositions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns performance analytics for an approved trader\'s account * @summary Get trader performance metrics * @param {string} traderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTraderPerformanceMetrics(traderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTraderPerformanceMetrics(traderId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['InvestorProgramAPIApi.getTraderPerformanceMetrics']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * InvestorProgramAPIApi - factory interface * @export */ export const InvestorProgramAPIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = InvestorProgramAPIApiFp(configuration) return { /** * Returns a list of all traders with ACTIVE status * @summary Get all approved traders in the investor program * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllTraders(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAllTraders(options).then((request) => request(axios, basePath)); }, /** * Returns detailed information about a specific approved trader * @summary Get a specific approved trader by ID * @param {string} traderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTrader(traderId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTrader(traderId, options).then((request) => request(axios, basePath)); }, /** * Returns historical trading positions for an approved trader so investors can see their trading history. The history is not updated in real-time. There may be a delay of up to 3 minutes. * @summary Get trader historical positions * @param {string} traderId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTraderHistoryPositions(traderId: string, start: string, stop: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getTraderHistoryPositions(traderId, start, stop, options).then((request) => request(axios, basePath)); }, /** * Returns performance analytics for an approved trader\'s account * @summary Get trader performance metrics * @param {string} traderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTraderPerformanceMetrics(traderId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTraderPerformanceMetrics(traderId, options).then((request) => request(axios, basePath)); }, }; }; /** * InvestorProgramAPIApi - object-oriented interface * @export * @class InvestorProgramAPIApi * @extends {BaseAPI} */ export class InvestorProgramAPIApi extends BaseAPI { /** * Returns a list of all traders with ACTIVE status * @summary Get all approved traders in the investor program * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InvestorProgramAPIApi */ public getAllTraders(options?: RawAxiosRequestConfig) { return InvestorProgramAPIApiFp(this.configuration).getAllTraders(options).then((request) => request(this.axios, this.basePath)); } /** * Returns detailed information about a specific approved trader * @summary Get a specific approved trader by ID * @param {string} traderId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InvestorProgramAPIApi */ public getTrader(traderId: string, options?: RawAxiosRequestConfig) { return InvestorProgramAPIApiFp(this.configuration).getTrader(traderId, options).then((request) => request(this.axios, this.basePath)); } /** * Returns historical trading positions for an approved trader so investors can see their trading history. The history is not updated in real-time. There may be a delay of up to 3 minutes. * @summary Get trader historical positions * @param {string} traderId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InvestorProgramAPIApi */ public getTraderHistoryPositions(traderId: string, start: string, stop: string, options?: RawAxiosRequestConfig) { return InvestorProgramAPIApiFp(this.configuration).getTraderHistoryPositions(traderId, start, stop, options).then((request) => request(this.axios, this.basePath)); } /** * Returns performance analytics for an approved trader\'s account * @summary Get trader performance metrics * @param {string} traderId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InvestorProgramAPIApi */ public getTraderPerformanceMetrics(traderId: string, options?: RawAxiosRequestConfig) { return InvestorProgramAPIApiFp(this.configuration).getTraderPerformanceMetrics(traderId, options).then((request) => request(this.axios, this.basePath)); } } /** * KeyManagementAPIApi - axios parameter creator * @export */ export const KeyManagementAPIApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Returns a list of all REST endpoints with their HTTP methods that can be controlled via API key access policy. Endpoints annotated with @Hidden are excluded. * @summary Get available REST endpoints * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAvailableEndpoints: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getAvailableEndpoints', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/apiKeys/availableEndpoints` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns a list of all visible fields in AccountDTO, AccountInformationDTO and CopierDTO that can be controlled via API key access policy. Fields annotated with @Hidden or @Schema(hidden=true) are excluded. * @summary Get available DTO fields for access policy * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAvailableFields: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getAvailableFields', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/apiKeys/availableFields` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns a list of all frontend features that can be hidden via API key access policy. * @summary Get available frontend features * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAvailableFrontendFeatures: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getAvailableFrontendFeatures', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/apiKeys/availableFrontendFeatures` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * KeyManagementAPIApi - functional programming interface * @export */ export const KeyManagementAPIApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = KeyManagementAPIApiAxiosParamCreator(configuration) return { /** * Returns a list of all REST endpoints with their HTTP methods that can be controlled via API key access policy. Endpoints annotated with @Hidden are excluded. * @summary Get available REST endpoints * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAvailableEndpoints(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAvailableEndpoints(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KeyManagementAPIApi.getAvailableEndpoints']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns a list of all visible fields in AccountDTO, AccountInformationDTO and CopierDTO that can be controlled via API key access policy. Fields annotated with @Hidden or @Schema(hidden=true) are excluded. * @summary Get available DTO fields for access policy * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAvailableFields(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAvailableFields(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KeyManagementAPIApi.getAvailableFields']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns a list of all frontend features that can be hidden via API key access policy. * @summary Get available frontend features * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAvailableFrontendFeatures(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAvailableFrontendFeatures(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KeyManagementAPIApi.getAvailableFrontendFeatures']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * KeyManagementAPIApi - factory interface * @export */ export const KeyManagementAPIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = KeyManagementAPIApiFp(configuration) return { /** * Returns a list of all REST endpoints with their HTTP methods that can be controlled via API key access policy. Endpoints annotated with @Hidden are excluded. * @summary Get available REST endpoints * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAvailableEndpoints(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAvailableEndpoints(projectId, options).then((request) => request(axios, basePath)); }, /** * Returns a list of all visible fields in AccountDTO, AccountInformationDTO and CopierDTO that can be controlled via API key access policy. Fields annotated with @Hidden or @Schema(hidden=true) are excluded. * @summary Get available DTO fields for access policy * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAvailableFields(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAvailableFields(projectId, options).then((request) => request(axios, basePath)); }, /** * Returns a list of all frontend features that can be hidden via API key access policy. * @summary Get available frontend features * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAvailableFrontendFeatures(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAvailableFrontendFeatures(projectId, options).then((request) => request(axios, basePath)); }, }; }; /** * KeyManagementAPIApi - object-oriented interface * @export * @class KeyManagementAPIApi * @extends {BaseAPI} */ export class KeyManagementAPIApi extends BaseAPI { /** * Returns a list of all REST endpoints with their HTTP methods that can be controlled via API key access policy. Endpoints annotated with @Hidden are excluded. * @summary Get available REST endpoints * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KeyManagementAPIApi */ public getAvailableEndpoints(projectId: string, options?: RawAxiosRequestConfig) { return KeyManagementAPIApiFp(this.configuration).getAvailableEndpoints(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * Returns a list of all visible fields in AccountDTO, AccountInformationDTO and CopierDTO that can be controlled via API key access policy. Fields annotated with @Hidden or @Schema(hidden=true) are excluded. * @summary Get available DTO fields for access policy * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KeyManagementAPIApi */ public getAvailableFields(projectId: string, options?: RawAxiosRequestConfig) { return KeyManagementAPIApiFp(this.configuration).getAvailableFields(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * Returns a list of all frontend features that can be hidden via API key access policy. * @summary Get available frontend features * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KeyManagementAPIApi */ public getAvailableFrontendFeatures(projectId: string, options?: RawAxiosRequestConfig) { return KeyManagementAPIApiFp(this.configuration).getAvailableFrontendFeatures(projectId, options).then((request) => request(this.axios, this.basePath)); } } /** * MarketplaceAPIApi - axios parameter creator * @export */ export const MarketplaceAPIApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Get marketplace data * @param {string} [xUserEmail] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMarketplace: async (xUserEmail?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/marketplace`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (xUserEmail != null) { localVarHeaderParameter['X-User-Email'] = String(xUserEmail); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * MarketplaceAPIApi - functional programming interface * @export */ export const MarketplaceAPIApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = MarketplaceAPIApiAxiosParamCreator(configuration) return { /** * * @summary Get marketplace data * @param {string} [xUserEmail] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getMarketplace(xUserEmail?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getMarketplace(xUserEmail, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['MarketplaceAPIApi.getMarketplace']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * MarketplaceAPIApi - factory interface * @export */ export const MarketplaceAPIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = MarketplaceAPIApiFp(configuration) return { /** * * @summary Get marketplace data * @param {string} [xUserEmail] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMarketplace(xUserEmail?: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getMarketplace(xUserEmail, options).then((request) => request(axios, basePath)); }, }; }; /** * MarketplaceAPIApi - object-oriented interface * @export * @class MarketplaceAPIApi * @extends {BaseAPI} */ export class MarketplaceAPIApi extends BaseAPI { /** * * @summary Get marketplace data * @param {string} [xUserEmail] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof MarketplaceAPIApi */ public getMarketplace(xUserEmail?: string, options?: RawAxiosRequestConfig) { return MarketplaceAPIApiFp(this.configuration).getMarketplace(xUserEmail, options).then((request) => request(this.axios, this.basePath)); } } /** * ProjectAPIApi - axios parameter creator * @export */ export const ProjectAPIApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Acknowledge all logs * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ acknowledgeAllLogs: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('acknowledgeAllLogs', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/logs/acknowledgeAll` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Acknowledge a log * @param {string} projectId * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ acknowledgeLog: async (projectId: string, id: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('acknowledgeLog', 'projectId', projectId) // verify required parameter 'id' is not null or undefined assertParamExists('acknowledgeLog', 'id', id) const localVarPath = `/rest/api/v1/projects/{projectId}/logs/{id}/acknowledge` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} projectId * @param {Array} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ acknowledgeLogsBulk: async (projectId: string, requestBody: Array, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('acknowledgeLogsBulk', 'projectId', projectId) // verify required parameter 'requestBody' is not null or undefined assertParamExists('acknowledgeLogsBulk', 'requestBody', requestBody) const localVarPath = `/rest/api/v1/projects/{projectId}/logs/acknowledge/bulk` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Close all open positions in all accounts * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ closeAllPositionsInAllAccounts: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('closeAllPositionsInAllAccounts', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/closeAllPositions` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Create a project feature * @param {string} projectId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProjectFeature: async (projectId: string, featureDTO: FeatureDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('createProjectFeature', 'projectId', projectId) // verify required parameter 'featureDTO' is not null or undefined assertParamExists('createProjectFeature', 'featureDTO', featureDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/features` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(featureDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Create a strategy * @param {string} projectId * @param {StrategyDTO} strategyDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProjectStrategy: async (projectId: string, strategyDTO: StrategyDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('createProjectStrategy', 'projectId', projectId) // verify required parameter 'strategyDTO' is not null or undefined assertParamExists('createProjectStrategy', 'strategyDTO', strategyDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(strategyDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Create a strategy copier * @param {string} projectId * @param {string} strategyId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProjectStrategyCopier: async (projectId: string, strategyId: string, copierDTO: CopierDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('createProjectStrategyCopier', 'projectId', projectId) // verify required parameter 'strategyId' is not null or undefined assertParamExists('createProjectStrategyCopier', 'strategyId', strategyId) // verify required parameter 'copierDTO' is not null or undefined assertParamExists('createProjectStrategyCopier', 'copierDTO', copierDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies/{strategyId}/copiers` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(copierDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Create a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProjectStrategyCopierFeature: async (projectId: string, strategyId: string, copierId: string, featureDTO: FeatureDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('createProjectStrategyCopierFeature', 'projectId', projectId) // verify required parameter 'strategyId' is not null or undefined assertParamExists('createProjectStrategyCopierFeature', 'strategyId', strategyId) // verify required parameter 'copierId' is not null or undefined assertParamExists('createProjectStrategyCopierFeature', 'copierId', copierId) // verify required parameter 'featureDTO' is not null or undefined assertParamExists('createProjectStrategyCopierFeature', 'featureDTO', featureDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies/{strategyId}/copiers/{copierId}/features` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(featureDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Create a symbol mapping * @param {string} projectId * @param {SymbolMappingDTO} symbolMappingDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProjectSymbolMapping: async (projectId: string, symbolMappingDTO: SymbolMappingDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('createProjectSymbolMapping', 'projectId', projectId) // verify required parameter 'symbolMappingDTO' is not null or undefined assertParamExists('createProjectSymbolMapping', 'symbolMappingDTO', symbolMappingDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/symbolMappings` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(symbolMappingDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete a project feature * @param {string} projectId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteProjectFeature: async (projectId: string, featureId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('deleteProjectFeature', 'projectId', projectId) // verify required parameter 'featureId' is not null or undefined assertParamExists('deleteProjectFeature', 'featureId', featureId) const localVarPath = `/rest/api/v1/projects/{projectId}/features/{featureId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete a strategy * @param {string} projectId * @param {string} strategyId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteProjectStrategy: async (projectId: string, strategyId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('deleteProjectStrategy', 'projectId', projectId) // verify required parameter 'strategyId' is not null or undefined assertParamExists('deleteProjectStrategy', 'strategyId', strategyId) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies/{strategyId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete a strategy copier * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteProjectStrategyCopier: async (projectId: string, strategyId: string, copierId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('deleteProjectStrategyCopier', 'projectId', projectId) // verify required parameter 'strategyId' is not null or undefined assertParamExists('deleteProjectStrategyCopier', 'strategyId', strategyId) // verify required parameter 'copierId' is not null or undefined assertParamExists('deleteProjectStrategyCopier', 'copierId', copierId) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies/{strategyId}/copiers/{copierId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteProjectStrategyCopierFeature: async (projectId: string, strategyId: string, copierId: string, featureId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('deleteProjectStrategyCopierFeature', 'projectId', projectId) // verify required parameter 'strategyId' is not null or undefined assertParamExists('deleteProjectStrategyCopierFeature', 'strategyId', strategyId) // verify required parameter 'copierId' is not null or undefined assertParamExists('deleteProjectStrategyCopierFeature', 'copierId', copierId) // verify required parameter 'featureId' is not null or undefined assertParamExists('deleteProjectStrategyCopierFeature', 'featureId', featureId) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies/{strategyId}/copiers/{copierId}/features/{featureId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete a symbol mapping * @param {string} projectId * @param {number} symbolMappingId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteProjectSymbolMapping: async (projectId: string, symbolMappingId: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('deleteProjectSymbolMapping', 'projectId', projectId) // verify required parameter 'symbolMappingId' is not null or undefined assertParamExists('deleteProjectSymbolMapping', 'symbolMappingId', symbolMappingId) const localVarPath = `/rest/api/v1/projects/{projectId}/symbolMappings/{symbolMappingId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"symbolMappingId"}}`, encodeURIComponent(String(symbolMappingId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get available labels (for account) * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAvailableLabels: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getAvailableLabels', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/labels` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Retrieve forecast cost for a specific project * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getForecastCost: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getForecastCost', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/costs/forecast` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get invoice calculation details * @param {string} projectId * @param {string} invoiceNumber * @param {*} [options] Override http request option. * @throws {RequiredError} */ getInvoiceDetails: async (projectId: string, invoiceNumber: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getInvoiceDetails', 'projectId', projectId) // verify required parameter 'invoiceNumber' is not null or undefined assertParamExists('getInvoiceDetails', 'invoiceNumber', invoiceNumber) const localVarPath = `/rest/api/v1/projects/{projectId}/invoices/{invoiceNumber}/details` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"invoiceNumber"}}`, encodeURIComponent(String(invoiceNumber))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get all invoices * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getInvoices: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getInvoices', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/invoices` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get a project * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProject: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProject', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves audit logs for all API modifications made to the project. Only includes POST, PUT, and DELETE operations. * @summary Get audit logs for a project * @param {string} projectId * @param {number} [limit] Maximum number of logs to return * @param {number} [offset] Number of logs to skip for pagination * @param {string} [startDate] Start date filter (ISO-8601 format) * @param {string} [endDate] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectAuditLogs: async (projectId: string, limit?: number, offset?: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectAuditLogs', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/auditLogs` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (startDate !== undefined) { localVarQueryParameter['startDate'] = startDate; } if (endDate !== undefined) { localVarQueryParameter['endDate'] = endDate; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get available signals * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectAvailableSignalsToFollow: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectAvailableSignalsToFollow', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/signals` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get a project feature * @param {string} projectId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectFeature: async (projectId: string, featureId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectFeature', 'projectId', projectId) // verify required parameter 'featureId' is not null or undefined assertParamExists('getProjectFeature', 'featureId', featureId) const localVarPath = `/rest/api/v1/projects/{projectId}/features/{featureId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get all project features * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectFeatures: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectFeatures', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/features` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get project logs * @param {string} projectId * @param {number} [limit] Get the last logs: e.g. 100 means the last 100 logs * @param {number} [offset] You can set an offset. Offset 100 means 101-200 * @param {number} [logTypeId] Filter logs by log level type ID. If you choose 3 = Info, then all logs with a lower level are returned. The levels are: 1 = Error, 2 = Warning, 3 = Info. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectLogs: async (projectId: string, limit?: number, offset?: number, logTypeId?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectLogs', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/logs` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (logTypeId !== undefined) { localVarQueryParameter['logTypeId'] = logTypeId; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get all strategies * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectStrategies: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectStrategies', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get a strategy * @param {string} projectId * @param {string} strategyId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectStrategy: async (projectId: string, strategyId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectStrategy', 'projectId', projectId) // verify required parameter 'strategyId' is not null or undefined assertParamExists('getProjectStrategy', 'strategyId', strategyId) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies/{strategyId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get strategy copier * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectStrategyCopier: async (projectId: string, strategyId: string, copierId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectStrategyCopier', 'projectId', projectId) // verify required parameter 'strategyId' is not null or undefined assertParamExists('getProjectStrategyCopier', 'strategyId', strategyId) // verify required parameter 'copierId' is not null or undefined assertParamExists('getProjectStrategyCopier', 'copierId', copierId) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies/{strategyId}/copiers/{copierId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectStrategyCopierFeature: async (projectId: string, strategyId: string, copierId: string, featureId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectStrategyCopierFeature', 'projectId', projectId) // verify required parameter 'strategyId' is not null or undefined assertParamExists('getProjectStrategyCopierFeature', 'strategyId', strategyId) // verify required parameter 'copierId' is not null or undefined assertParamExists('getProjectStrategyCopierFeature', 'copierId', copierId) // verify required parameter 'featureId' is not null or undefined assertParamExists('getProjectStrategyCopierFeature', 'featureId', featureId) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies/{strategyId}/copiers/{copierId}/features/{featureId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get all strategy copier features * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectStrategyCopierFeatures: async (projectId: string, strategyId: string, copierId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectStrategyCopierFeatures', 'projectId', projectId) // verify required parameter 'strategyId' is not null or undefined assertParamExists('getProjectStrategyCopierFeatures', 'strategyId', strategyId) // verify required parameter 'copierId' is not null or undefined assertParamExists('getProjectStrategyCopierFeatures', 'copierId', copierId) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies/{strategyId}/copiers/{copierId}/features` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get strategy copiers * @param {string} projectId * @param {string} strategyId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectStrategyCopiers: async (projectId: string, strategyId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectStrategyCopiers', 'projectId', projectId) // verify required parameter 'strategyId' is not null or undefined assertParamExists('getProjectStrategyCopiers', 'strategyId', strategyId) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies/{strategyId}/copiers` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get a symbol mapping * @param {string} projectId * @param {number} symbolMappingId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectSymbolMapping: async (projectId: string, symbolMappingId: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectSymbolMapping', 'projectId', projectId) // verify required parameter 'symbolMappingId' is not null or undefined assertParamExists('getProjectSymbolMapping', 'symbolMappingId', symbolMappingId) const localVarPath = `/rest/api/v1/projects/{projectId}/symbolMappings/{symbolMappingId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"symbolMappingId"}}`, encodeURIComponent(String(symbolMappingId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get symbol mappings * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectSymbolMappings: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectSymbolMappings', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/symbolMappings` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns a list of all trader features with ACTIVE status from all accounts in the specified project * @summary Get all approved traders configured in the project * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectTraders: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectTraders', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/traders` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get project transactions * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectTransactions: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectTransactions', 'projectId', projectId) const localVarPath = `/rest/api/v1/projects/{projectId}/transactions` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get WhiteLabel dashboard * @param {string} projectId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWhiteLabelDashboard: async (projectId: string, featureId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getWhiteLabelDashboard', 'projectId', projectId) // verify required parameter 'featureId' is not null or undefined assertParamExists('getWhiteLabelDashboard', 'featureId', featureId) const localVarPath = `/rest/api/v1/projects/{projectId}/features/{featureId}/whitelabel/dashboard` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Resynchronize with the master account. If a position was closed on the slave account but remains open on the master, this operation will reopen the position on the slave to match the master\'s state. * @summary Resync copier with master * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ resyncStrategyCopier: async (projectId: string, strategyId: string, copierId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('resyncStrategyCopier', 'projectId', projectId) // verify required parameter 'strategyId' is not null or undefined assertParamExists('resyncStrategyCopier', 'strategyId', strategyId) // verify required parameter 'copierId' is not null or undefined assertParamExists('resyncStrategyCopier', 'copierId', copierId) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies/{strategyId}/copiers/{copierId}/resync` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update a project * @param {string} projectId * @param {ProjectDTO} projectDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProject: async (projectId: string, projectDTO: ProjectDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('updateProject', 'projectId', projectId) // verify required parameter 'projectDTO' is not null or undefined assertParamExists('updateProject', 'projectDTO', projectDTO) const localVarPath = `/rest/api/v1/projects/{projectId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(projectDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update a project feature * @param {string} projectId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProjectFeature: async (projectId: string, featureId: string, featureDTO: FeatureDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('updateProjectFeature', 'projectId', projectId) // verify required parameter 'featureId' is not null or undefined assertParamExists('updateProjectFeature', 'featureId', featureId) // verify required parameter 'featureDTO' is not null or undefined assertParamExists('updateProjectFeature', 'featureDTO', featureDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/features/{featureId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(featureDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update a strategy * @param {string} projectId * @param {string} strategyId * @param {StrategyDTO} strategyDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProjectStrategy: async (projectId: string, strategyId: string, strategyDTO: StrategyDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('updateProjectStrategy', 'projectId', projectId) // verify required parameter 'strategyId' is not null or undefined assertParamExists('updateProjectStrategy', 'strategyId', strategyId) // verify required parameter 'strategyDTO' is not null or undefined assertParamExists('updateProjectStrategy', 'strategyDTO', strategyDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies/{strategyId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(strategyDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update a strategy copier * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProjectStrategyCopier: async (projectId: string, strategyId: string, copierId: string, copierDTO: CopierDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('updateProjectStrategyCopier', 'projectId', projectId) // verify required parameter 'strategyId' is not null or undefined assertParamExists('updateProjectStrategyCopier', 'strategyId', strategyId) // verify required parameter 'copierId' is not null or undefined assertParamExists('updateProjectStrategyCopier', 'copierId', copierId) // verify required parameter 'copierDTO' is not null or undefined assertParamExists('updateProjectStrategyCopier', 'copierDTO', copierDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies/{strategyId}/copiers/{copierId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(copierDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProjectStrategyCopierFeature: async (projectId: string, strategyId: string, copierId: string, featureId: string, featureDTO: FeatureDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('updateProjectStrategyCopierFeature', 'projectId', projectId) // verify required parameter 'strategyId' is not null or undefined assertParamExists('updateProjectStrategyCopierFeature', 'strategyId', strategyId) // verify required parameter 'copierId' is not null or undefined assertParamExists('updateProjectStrategyCopierFeature', 'copierId', copierId) // verify required parameter 'featureId' is not null or undefined assertParamExists('updateProjectStrategyCopierFeature', 'featureId', featureId) // verify required parameter 'featureDTO' is not null or undefined assertParamExists('updateProjectStrategyCopierFeature', 'featureDTO', featureDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/strategies/{strategyId}/copiers/{copierId}/features/{featureId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId))) .replace(`{${"copierId"}}`, encodeURIComponent(String(copierId))) .replace(`{${"featureId"}}`, encodeURIComponent(String(featureId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(featureDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update a symbol mapping * @param {string} projectId * @param {number} symbolMappingId * @param {SymbolMappingDTO} symbolMappingDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProjectSymbolMapping: async (projectId: string, symbolMappingId: number, symbolMappingDTO: SymbolMappingDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('updateProjectSymbolMapping', 'projectId', projectId) // verify required parameter 'symbolMappingId' is not null or undefined assertParamExists('updateProjectSymbolMapping', 'symbolMappingId', symbolMappingId) // verify required parameter 'symbolMappingDTO' is not null or undefined assertParamExists('updateProjectSymbolMapping', 'symbolMappingDTO', symbolMappingDTO) const localVarPath = `/rest/api/v1/projects/{projectId}/symbolMappings/{symbolMappingId}` .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId))) .replace(`{${"symbolMappingId"}}`, encodeURIComponent(String(symbolMappingId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(symbolMappingDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * ProjectAPIApi - functional programming interface * @export */ export const ProjectAPIApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ProjectAPIApiAxiosParamCreator(configuration) return { /** * * @summary Acknowledge all logs * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async acknowledgeAllLogs(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.acknowledgeAllLogs(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.acknowledgeAllLogs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Acknowledge a log * @param {string} projectId * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async acknowledgeLog(projectId: string, id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.acknowledgeLog(projectId, id, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.acknowledgeLog']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @param {string} projectId * @param {Array} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ async acknowledgeLogsBulk(projectId: string, requestBody: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.acknowledgeLogsBulk(projectId, requestBody, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.acknowledgeLogsBulk']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Close all open positions in all accounts * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async closeAllPositionsInAllAccounts(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.closeAllPositionsInAllAccounts(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.closeAllPositionsInAllAccounts']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create a project feature * @param {string} projectId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createProjectFeature(projectId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createProjectFeature(projectId, featureDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.createProjectFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create a strategy * @param {string} projectId * @param {StrategyDTO} strategyDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createProjectStrategy(projectId: string, strategyDTO: StrategyDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createProjectStrategy(projectId, strategyDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.createProjectStrategy']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create a strategy copier * @param {string} projectId * @param {string} strategyId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createProjectStrategyCopier(projectId: string, strategyId: string, copierDTO: CopierDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createProjectStrategyCopier(projectId, strategyId, copierDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.createProjectStrategyCopier']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createProjectStrategyCopierFeature(projectId: string, strategyId: string, copierId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createProjectStrategyCopierFeature(projectId, strategyId, copierId, featureDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.createProjectStrategyCopierFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create a symbol mapping * @param {string} projectId * @param {SymbolMappingDTO} symbolMappingDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createProjectSymbolMapping(projectId: string, symbolMappingDTO: SymbolMappingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createProjectSymbolMapping(projectId, symbolMappingDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.createProjectSymbolMapping']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete a project feature * @param {string} projectId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteProjectFeature(projectId: string, featureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProjectFeature(projectId, featureId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.deleteProjectFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete a strategy * @param {string} projectId * @param {string} strategyId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteProjectStrategy(projectId: string, strategyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProjectStrategy(projectId, strategyId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.deleteProjectStrategy']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete a strategy copier * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteProjectStrategyCopier(projectId: string, strategyId: string, copierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProjectStrategyCopier(projectId, strategyId, copierId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.deleteProjectStrategyCopier']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteProjectStrategyCopierFeature(projectId: string, strategyId: string, copierId: string, featureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProjectStrategyCopierFeature(projectId, strategyId, copierId, featureId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.deleteProjectStrategyCopierFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete a symbol mapping * @param {string} projectId * @param {number} symbolMappingId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteProjectSymbolMapping(projectId: string, symbolMappingId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProjectSymbolMapping(projectId, symbolMappingId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.deleteProjectSymbolMapping']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get available labels (for account) * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAvailableLabels(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAvailableLabels(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getAvailableLabels']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Retrieve forecast cost for a specific project * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getForecastCost(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getForecastCost(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getForecastCost']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get invoice calculation details * @param {string} projectId * @param {string} invoiceNumber * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getInvoiceDetails(projectId: string, invoiceNumber: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoiceDetails(projectId, invoiceNumber, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getInvoiceDetails']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get all invoices * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getInvoices(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoices(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getInvoices']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get a project * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProject(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProject(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProject']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves audit logs for all API modifications made to the project. Only includes POST, PUT, and DELETE operations. * @summary Get audit logs for a project * @param {string} projectId * @param {number} [limit] Maximum number of logs to return * @param {number} [offset] Number of logs to skip for pagination * @param {string} [startDate] Start date filter (ISO-8601 format) * @param {string} [endDate] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectAuditLogs(projectId: string, limit?: number, offset?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectAuditLogs(projectId, limit, offset, startDate, endDate, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectAuditLogs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get available signals * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectAvailableSignalsToFollow(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectAvailableSignalsToFollow(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectAvailableSignalsToFollow']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get a project feature * @param {string} projectId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectFeature(projectId: string, featureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectFeature(projectId, featureId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get all project features * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectFeatures(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectFeatures(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectFeatures']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get project logs * @param {string} projectId * @param {number} [limit] Get the last logs: e.g. 100 means the last 100 logs * @param {number} [offset] You can set an offset. Offset 100 means 101-200 * @param {number} [logTypeId] Filter logs by log level type ID. If you choose 3 = Info, then all logs with a lower level are returned. The levels are: 1 = Error, 2 = Warning, 3 = Info. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectLogs(projectId: string, limit?: number, offset?: number, logTypeId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectLogs(projectId, limit, offset, logTypeId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectLogs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get all strategies * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectStrategies(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectStrategies(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectStrategies']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get a strategy * @param {string} projectId * @param {string} strategyId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectStrategy(projectId: string, strategyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectStrategy(projectId, strategyId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectStrategy']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get strategy copier * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectStrategyCopier(projectId: string, strategyId: string, copierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectStrategyCopier(projectId, strategyId, copierId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectStrategyCopier']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectStrategyCopierFeature(projectId: string, strategyId: string, copierId: string, featureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectStrategyCopierFeature(projectId, strategyId, copierId, featureId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectStrategyCopierFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get all strategy copier features * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectStrategyCopierFeatures(projectId: string, strategyId: string, copierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectStrategyCopierFeatures(projectId, strategyId, copierId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectStrategyCopierFeatures']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get strategy copiers * @param {string} projectId * @param {string} strategyId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectStrategyCopiers(projectId: string, strategyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectStrategyCopiers(projectId, strategyId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectStrategyCopiers']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get a symbol mapping * @param {string} projectId * @param {number} symbolMappingId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectSymbolMapping(projectId: string, symbolMappingId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectSymbolMapping(projectId, symbolMappingId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectSymbolMapping']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get symbol mappings * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectSymbolMappings(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectSymbolMappings(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectSymbolMappings']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns a list of all trader features with ACTIVE status from all accounts in the specified project * @summary Get all approved traders configured in the project * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectTraders(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectTraders(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectTraders']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get project transactions * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProjectTransactions(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectTransactions(projectId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getProjectTransactions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get WhiteLabel dashboard * @param {string} projectId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getWhiteLabelDashboard(projectId: string, featureId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWhiteLabelDashboard(projectId, featureId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.getWhiteLabelDashboard']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Resynchronize with the master account. If a position was closed on the slave account but remains open on the master, this operation will reopen the position on the slave to match the master\'s state. * @summary Resync copier with master * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async resyncStrategyCopier(projectId: string, strategyId: string, copierId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.resyncStrategyCopier(projectId, strategyId, copierId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.resyncStrategyCopier']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update a project * @param {string} projectId * @param {ProjectDTO} projectDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateProject(projectId: string, projectDTO: ProjectDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateProject(projectId, projectDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.updateProject']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update a project feature * @param {string} projectId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateProjectFeature(projectId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateProjectFeature(projectId, featureId, featureDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.updateProjectFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update a strategy * @param {string} projectId * @param {string} strategyId * @param {StrategyDTO} strategyDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateProjectStrategy(projectId: string, strategyId: string, strategyDTO: StrategyDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateProjectStrategy(projectId, strategyId, strategyDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.updateProjectStrategy']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update a strategy copier * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateProjectStrategyCopier(projectId: string, strategyId: string, copierId: string, copierDTO: CopierDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateProjectStrategyCopier(projectId, strategyId, copierId, copierDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.updateProjectStrategyCopier']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateProjectStrategyCopierFeature(projectId: string, strategyId: string, copierId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateProjectStrategyCopierFeature(projectId, strategyId, copierId, featureId, featureDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.updateProjectStrategyCopierFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update a symbol mapping * @param {string} projectId * @param {number} symbolMappingId * @param {SymbolMappingDTO} symbolMappingDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateProjectSymbolMapping(projectId: string, symbolMappingId: number, symbolMappingDTO: SymbolMappingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateProjectSymbolMapping(projectId, symbolMappingId, symbolMappingDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ProjectAPIApi.updateProjectSymbolMapping']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * ProjectAPIApi - factory interface * @export */ export const ProjectAPIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ProjectAPIApiFp(configuration) return { /** * * @summary Acknowledge all logs * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ acknowledgeAllLogs(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.acknowledgeAllLogs(projectId, options).then((request) => request(axios, basePath)); }, /** * * @summary Acknowledge a log * @param {string} projectId * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ acknowledgeLog(projectId: string, id: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.acknowledgeLog(projectId, id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} projectId * @param {Array} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ acknowledgeLogsBulk(projectId: string, requestBody: Array, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.acknowledgeLogsBulk(projectId, requestBody, options).then((request) => request(axios, basePath)); }, /** * * @summary Close all open positions in all accounts * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ closeAllPositionsInAllAccounts(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.closeAllPositionsInAllAccounts(projectId, options).then((request) => request(axios, basePath)); }, /** * * @summary Create a project feature * @param {string} projectId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProjectFeature(projectId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createProjectFeature(projectId, featureDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Create a strategy * @param {string} projectId * @param {StrategyDTO} strategyDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProjectStrategy(projectId: string, strategyDTO: StrategyDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createProjectStrategy(projectId, strategyDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Create a strategy copier * @param {string} projectId * @param {string} strategyId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProjectStrategyCopier(projectId: string, strategyId: string, copierDTO: CopierDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createProjectStrategyCopier(projectId, strategyId, copierDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Create a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProjectStrategyCopierFeature(projectId: string, strategyId: string, copierId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createProjectStrategyCopierFeature(projectId, strategyId, copierId, featureDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Create a symbol mapping * @param {string} projectId * @param {SymbolMappingDTO} symbolMappingDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createProjectSymbolMapping(projectId: string, symbolMappingDTO: SymbolMappingDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createProjectSymbolMapping(projectId, symbolMappingDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete a project feature * @param {string} projectId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteProjectFeature(projectId: string, featureId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteProjectFeature(projectId, featureId, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete a strategy * @param {string} projectId * @param {string} strategyId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteProjectStrategy(projectId: string, strategyId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteProjectStrategy(projectId, strategyId, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete a strategy copier * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteProjectStrategyCopier(projectId: string, strategyId: string, copierId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteProjectStrategyCopier(projectId, strategyId, copierId, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteProjectStrategyCopierFeature(projectId: string, strategyId: string, copierId: string, featureId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteProjectStrategyCopierFeature(projectId, strategyId, copierId, featureId, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete a symbol mapping * @param {string} projectId * @param {number} symbolMappingId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteProjectSymbolMapping(projectId: string, symbolMappingId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteProjectSymbolMapping(projectId, symbolMappingId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get available labels (for account) * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAvailableLabels(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAvailableLabels(projectId, options).then((request) => request(axios, basePath)); }, /** * * @summary Retrieve forecast cost for a specific project * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getForecastCost(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getForecastCost(projectId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get invoice calculation details * @param {string} projectId * @param {string} invoiceNumber * @param {*} [options] Override http request option. * @throws {RequiredError} */ getInvoiceDetails(projectId: string, invoiceNumber: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getInvoiceDetails(projectId, invoiceNumber, options).then((request) => request(axios, basePath)); }, /** * * @summary Get all invoices * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getInvoices(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getInvoices(projectId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get a project * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProject(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProject(projectId, options).then((request) => request(axios, basePath)); }, /** * Retrieves audit logs for all API modifications made to the project. Only includes POST, PUT, and DELETE operations. * @summary Get audit logs for a project * @param {string} projectId * @param {number} [limit] Maximum number of logs to return * @param {number} [offset] Number of logs to skip for pagination * @param {string} [startDate] Start date filter (ISO-8601 format) * @param {string} [endDate] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectAuditLogs(projectId: string, limit?: number, offset?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getProjectAuditLogs(projectId, limit, offset, startDate, endDate, options).then((request) => request(axios, basePath)); }, /** * * @summary Get available signals * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectAvailableSignalsToFollow(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getProjectAvailableSignalsToFollow(projectId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get a project feature * @param {string} projectId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectFeature(projectId: string, featureId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProjectFeature(projectId, featureId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get all project features * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectFeatures(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getProjectFeatures(projectId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get project logs * @param {string} projectId * @param {number} [limit] Get the last logs: e.g. 100 means the last 100 logs * @param {number} [offset] You can set an offset. Offset 100 means 101-200 * @param {number} [logTypeId] Filter logs by log level type ID. If you choose 3 = Info, then all logs with a lower level are returned. The levels are: 1 = Error, 2 = Warning, 3 = Info. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectLogs(projectId: string, limit?: number, offset?: number, logTypeId?: number, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getProjectLogs(projectId, limit, offset, logTypeId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get all strategies * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectStrategies(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getProjectStrategies(projectId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get a strategy * @param {string} projectId * @param {string} strategyId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectStrategy(projectId: string, strategyId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProjectStrategy(projectId, strategyId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get strategy copier * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectStrategyCopier(projectId: string, strategyId: string, copierId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProjectStrategyCopier(projectId, strategyId, copierId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectStrategyCopierFeature(projectId: string, strategyId: string, copierId: string, featureId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProjectStrategyCopierFeature(projectId, strategyId, copierId, featureId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get all strategy copier features * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectStrategyCopierFeatures(projectId: string, strategyId: string, copierId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getProjectStrategyCopierFeatures(projectId, strategyId, copierId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get strategy copiers * @param {string} projectId * @param {string} strategyId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectStrategyCopiers(projectId: string, strategyId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getProjectStrategyCopiers(projectId, strategyId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get a symbol mapping * @param {string} projectId * @param {number} symbolMappingId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectSymbolMapping(projectId: string, symbolMappingId: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProjectSymbolMapping(projectId, symbolMappingId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get symbol mappings * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectSymbolMappings(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getProjectSymbolMappings(projectId, options).then((request) => request(axios, basePath)); }, /** * Returns a list of all trader features with ACTIVE status from all accounts in the specified project * @summary Get all approved traders configured in the project * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectTraders(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getProjectTraders(projectId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get project transactions * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProjectTransactions(projectId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getProjectTransactions(projectId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get WhiteLabel dashboard * @param {string} projectId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWhiteLabelDashboard(projectId: string, featureId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getWhiteLabelDashboard(projectId, featureId, options).then((request) => request(axios, basePath)); }, /** * Resynchronize with the master account. If a position was closed on the slave account but remains open on the master, this operation will reopen the position on the slave to match the master\'s state. * @summary Resync copier with master * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} */ resyncStrategyCopier(projectId: string, strategyId: string, copierId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.resyncStrategyCopier(projectId, strategyId, copierId, options).then((request) => request(axios, basePath)); }, /** * * @summary Update a project * @param {string} projectId * @param {ProjectDTO} projectDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProject(projectId: string, projectDTO: ProjectDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateProject(projectId, projectDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Update a project feature * @param {string} projectId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProjectFeature(projectId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateProjectFeature(projectId, featureId, featureDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Update a strategy * @param {string} projectId * @param {string} strategyId * @param {StrategyDTO} strategyDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProjectStrategy(projectId: string, strategyId: string, strategyDTO: StrategyDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateProjectStrategy(projectId, strategyId, strategyDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Update a strategy copier * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProjectStrategyCopier(projectId: string, strategyId: string, copierId: string, copierDTO: CopierDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateProjectStrategyCopier(projectId, strategyId, copierId, copierDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Update a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProjectStrategyCopierFeature(projectId: string, strategyId: string, copierId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateProjectStrategyCopierFeature(projectId, strategyId, copierId, featureId, featureDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Update a symbol mapping * @param {string} projectId * @param {number} symbolMappingId * @param {SymbolMappingDTO} symbolMappingDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateProjectSymbolMapping(projectId: string, symbolMappingId: number, symbolMappingDTO: SymbolMappingDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateProjectSymbolMapping(projectId, symbolMappingId, symbolMappingDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * ProjectAPIApi - object-oriented interface * @export * @class ProjectAPIApi * @extends {BaseAPI} */ export class ProjectAPIApi extends BaseAPI { /** * * @summary Acknowledge all logs * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public acknowledgeAllLogs(projectId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).acknowledgeAllLogs(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Acknowledge a log * @param {string} projectId * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public acknowledgeLog(projectId: string, id: number, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).acknowledgeLog(projectId, id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} projectId * @param {Array} requestBody * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public acknowledgeLogsBulk(projectId: string, requestBody: Array, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).acknowledgeLogsBulk(projectId, requestBody, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Close all open positions in all accounts * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public closeAllPositionsInAllAccounts(projectId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).closeAllPositionsInAllAccounts(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create a project feature * @param {string} projectId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public createProjectFeature(projectId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).createProjectFeature(projectId, featureDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create a strategy * @param {string} projectId * @param {StrategyDTO} strategyDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public createProjectStrategy(projectId: string, strategyDTO: StrategyDTO, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).createProjectStrategy(projectId, strategyDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create a strategy copier * @param {string} projectId * @param {string} strategyId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public createProjectStrategyCopier(projectId: string, strategyId: string, copierDTO: CopierDTO, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).createProjectStrategyCopier(projectId, strategyId, copierDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public createProjectStrategyCopierFeature(projectId: string, strategyId: string, copierId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).createProjectStrategyCopierFeature(projectId, strategyId, copierId, featureDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create a symbol mapping * @param {string} projectId * @param {SymbolMappingDTO} symbolMappingDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public createProjectSymbolMapping(projectId: string, symbolMappingDTO: SymbolMappingDTO, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).createProjectSymbolMapping(projectId, symbolMappingDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete a project feature * @param {string} projectId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public deleteProjectFeature(projectId: string, featureId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).deleteProjectFeature(projectId, featureId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete a strategy * @param {string} projectId * @param {string} strategyId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public deleteProjectStrategy(projectId: string, strategyId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).deleteProjectStrategy(projectId, strategyId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete a strategy copier * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public deleteProjectStrategyCopier(projectId: string, strategyId: string, copierId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).deleteProjectStrategyCopier(projectId, strategyId, copierId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public deleteProjectStrategyCopierFeature(projectId: string, strategyId: string, copierId: string, featureId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).deleteProjectStrategyCopierFeature(projectId, strategyId, copierId, featureId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete a symbol mapping * @param {string} projectId * @param {number} symbolMappingId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public deleteProjectSymbolMapping(projectId: string, symbolMappingId: number, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).deleteProjectSymbolMapping(projectId, symbolMappingId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get available labels (for account) * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getAvailableLabels(projectId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getAvailableLabels(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Retrieve forecast cost for a specific project * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getForecastCost(projectId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getForecastCost(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get invoice calculation details * @param {string} projectId * @param {string} invoiceNumber * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getInvoiceDetails(projectId: string, invoiceNumber: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getInvoiceDetails(projectId, invoiceNumber, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get all invoices * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getInvoices(projectId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getInvoices(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get a project * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProject(projectId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProject(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves audit logs for all API modifications made to the project. Only includes POST, PUT, and DELETE operations. * @summary Get audit logs for a project * @param {string} projectId * @param {number} [limit] Maximum number of logs to return * @param {number} [offset] Number of logs to skip for pagination * @param {string} [startDate] Start date filter (ISO-8601 format) * @param {string} [endDate] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectAuditLogs(projectId: string, limit?: number, offset?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectAuditLogs(projectId, limit, offset, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get available signals * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectAvailableSignalsToFollow(projectId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectAvailableSignalsToFollow(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get a project feature * @param {string} projectId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectFeature(projectId: string, featureId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectFeature(projectId, featureId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get all project features * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectFeatures(projectId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectFeatures(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get project logs * @param {string} projectId * @param {number} [limit] Get the last logs: e.g. 100 means the last 100 logs * @param {number} [offset] You can set an offset. Offset 100 means 101-200 * @param {number} [logTypeId] Filter logs by log level type ID. If you choose 3 = Info, then all logs with a lower level are returned. The levels are: 1 = Error, 2 = Warning, 3 = Info. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectLogs(projectId: string, limit?: number, offset?: number, logTypeId?: number, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectLogs(projectId, limit, offset, logTypeId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get all strategies * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectStrategies(projectId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectStrategies(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get a strategy * @param {string} projectId * @param {string} strategyId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectStrategy(projectId: string, strategyId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectStrategy(projectId, strategyId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get strategy copier * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectStrategyCopier(projectId: string, strategyId: string, copierId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectStrategyCopier(projectId, strategyId, copierId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectStrategyCopierFeature(projectId: string, strategyId: string, copierId: string, featureId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectStrategyCopierFeature(projectId, strategyId, copierId, featureId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get all strategy copier features * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectStrategyCopierFeatures(projectId: string, strategyId: string, copierId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectStrategyCopierFeatures(projectId, strategyId, copierId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get strategy copiers * @param {string} projectId * @param {string} strategyId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectStrategyCopiers(projectId: string, strategyId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectStrategyCopiers(projectId, strategyId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get a symbol mapping * @param {string} projectId * @param {number} symbolMappingId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectSymbolMapping(projectId: string, symbolMappingId: number, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectSymbolMapping(projectId, symbolMappingId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get symbol mappings * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectSymbolMappings(projectId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectSymbolMappings(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * Returns a list of all trader features with ACTIVE status from all accounts in the specified project * @summary Get all approved traders configured in the project * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectTraders(projectId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectTraders(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get project transactions * @param {string} projectId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getProjectTransactions(projectId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getProjectTransactions(projectId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get WhiteLabel dashboard * @param {string} projectId * @param {string} featureId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public getWhiteLabelDashboard(projectId: string, featureId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).getWhiteLabelDashboard(projectId, featureId, options).then((request) => request(this.axios, this.basePath)); } /** * Resynchronize with the master account. If a position was closed on the slave account but remains open on the master, this operation will reopen the position on the slave to match the master\'s state. * @summary Resync copier with master * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public resyncStrategyCopier(projectId: string, strategyId: string, copierId: string, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).resyncStrategyCopier(projectId, strategyId, copierId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update a project * @param {string} projectId * @param {ProjectDTO} projectDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public updateProject(projectId: string, projectDTO: ProjectDTO, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).updateProject(projectId, projectDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update a project feature * @param {string} projectId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public updateProjectFeature(projectId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).updateProjectFeature(projectId, featureId, featureDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update a strategy * @param {string} projectId * @param {string} strategyId * @param {StrategyDTO} strategyDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public updateProjectStrategy(projectId: string, strategyId: string, strategyDTO: StrategyDTO, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).updateProjectStrategy(projectId, strategyId, strategyDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update a strategy copier * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {CopierDTO} copierDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public updateProjectStrategyCopier(projectId: string, strategyId: string, copierId: string, copierDTO: CopierDTO, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).updateProjectStrategyCopier(projectId, strategyId, copierId, copierDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update a strategy copier feature * @param {string} projectId * @param {string} strategyId * @param {string} copierId * @param {string} featureId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public updateProjectStrategyCopierFeature(projectId: string, strategyId: string, copierId: string, featureId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).updateProjectStrategyCopierFeature(projectId, strategyId, copierId, featureId, featureDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update a symbol mapping * @param {string} projectId * @param {number} symbolMappingId * @param {SymbolMappingDTO} symbolMappingDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ProjectAPIApi */ public updateProjectSymbolMapping(projectId: string, symbolMappingId: number, symbolMappingDTO: SymbolMappingDTO, options?: RawAxiosRequestConfig) { return ProjectAPIApiFp(this.configuration).updateProjectSymbolMapping(projectId, symbolMappingId, symbolMappingDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * ReportAPIApi - axios parameter creator * @export */ export const ReportAPIApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Create a performance report * @param {ReportPerformanceParametersDTO} reportPerformanceParametersDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createReportPerformance: async (reportPerformanceParametersDTO: ReportPerformanceParametersDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'reportPerformanceParametersDTO' is not null or undefined assertParamExists('createReportPerformance', 'reportPerformanceParametersDTO', reportPerformanceParametersDTO) const localVarPath = `/rest/api/v1/reports/performance`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(reportPerformanceParametersDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * ReportAPIApi - functional programming interface * @export */ export const ReportAPIApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ReportAPIApiAxiosParamCreator(configuration) return { /** * * @summary Create a performance report * @param {ReportPerformanceParametersDTO} reportPerformanceParametersDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createReportPerformance(reportPerformanceParametersDTO: ReportPerformanceParametersDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createReportPerformance(reportPerformanceParametersDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ReportAPIApi.createReportPerformance']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * ReportAPIApi - factory interface * @export */ export const ReportAPIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ReportAPIApiFp(configuration) return { /** * * @summary Create a performance report * @param {ReportPerformanceParametersDTO} reportPerformanceParametersDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ createReportPerformance(reportPerformanceParametersDTO: ReportPerformanceParametersDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createReportPerformance(reportPerformanceParametersDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * ReportAPIApi - object-oriented interface * @export * @class ReportAPIApi * @extends {BaseAPI} */ export class ReportAPIApi extends BaseAPI { /** * * @summary Create a performance report * @param {ReportPerformanceParametersDTO} reportPerformanceParametersDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ReportAPIApi */ public createReportPerformance(reportPerformanceParametersDTO: ReportPerformanceParametersDTO, options?: RawAxiosRequestConfig) { return ReportAPIApiFp(this.configuration).createReportPerformance(reportPerformanceParametersDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * SignalAPIApi - axios parameter creator * @export */ export const SignalAPIApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Close all open positions in all accounts (followers) * @param {string} signalProviderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ closeAllPositionsInAllFollowerAccounts: async (signalProviderId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('closeAllPositionsInAllFollowerAccounts', 'signalProviderId', signalProviderId) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/closeAllPositions` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Close all signal follower account positions * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ closeSignalFollowerAllPositions: async (signalProviderId: string, accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('closeSignalFollowerAllPositions', 'signalProviderId', signalProviderId) // verify required parameter 'accountId' is not null or undefined assertParamExists('closeSignalFollowerAllPositions', 'accountId', accountId) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/actions/closeAllPositions` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Close an signal follower account position * @param {string} signalProviderId * @param {string} accountId * @param {string} positionId * @param {*} [options] Override http request option. * @throws {RequiredError} */ closeSignalFollowerPosition: async (signalProviderId: string, accountId: string, positionId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('closeSignalFollowerPosition', 'signalProviderId', signalProviderId) // verify required parameter 'accountId' is not null or undefined assertParamExists('closeSignalFollowerPosition', 'accountId', accountId) // verify required parameter 'positionId' is not null or undefined assertParamExists('closeSignalFollowerPosition', 'positionId', positionId) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/positions/{positionId}` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"positionId"}}`, encodeURIComponent(String(positionId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get follower feature * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFollowerFeature: async (signalProviderId: string, accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('getFollowerFeature', 'signalProviderId', signalProviderId) // verify required parameter 'accountId' is not null or undefined assertParamExists('getFollowerFeature', 'accountId', accountId) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/followerFeature` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves audit logs for all API modifications made to a specific signal follower account. * @summary Get signal follower account audit logs * @param {string} signalProviderId * @param {string} accountId * @param {number} [limit] Maximum number of logs to return * @param {number} [offset] Number of logs to skip for pagination * @param {string} [startDate] Start date filter (ISO-8601 format) * @param {string} [endDate] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerAccountAuditLogs: async (signalProviderId: string, accountId: string, limit?: number, offset?: number, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('getSignalFollowerAccountAuditLogs', 'signalProviderId', signalProviderId) // verify required parameter 'accountId' is not null or undefined assertParamExists('getSignalFollowerAccountAuditLogs', 'accountId', accountId) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/auditLogs` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (startDate !== undefined) { localVarQueryParameter['startDate'] = startDate; } if (endDate !== undefined) { localVarQueryParameter['endDate'] = endDate; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * The history is not updated in real-time. There may be a delay of up to 3 minutes * @summary Get signal follower account history positions * @param {string} signalProviderId * @param {string} accountId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerAccountHistoryPositions: async (signalProviderId: string, accountId: string, start: string, stop: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('getSignalFollowerAccountHistoryPositions', 'signalProviderId', signalProviderId) // verify required parameter 'accountId' is not null or undefined assertParamExists('getSignalFollowerAccountHistoryPositions', 'accountId', accountId) // verify required parameter 'start' is not null or undefined assertParamExists('getSignalFollowerAccountHistoryPositions', 'start', start) // verify required parameter 'stop' is not null or undefined assertParamExists('getSignalFollowerAccountHistoryPositions', 'stop', stop) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/history/positions` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (start !== undefined) { localVarQueryParameter['start'] = start; } if (stop !== undefined) { localVarQueryParameter['stop'] = stop; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get signal follower account logs * @param {string} signalProviderId * @param {string} accountId * @param {number} [limit] Get the last logs: e.g. 100 means the last 100 logs * @param {number} [offset] You can set an offset. Offset 100 means 101-200 * @param {string} [start] ISO 8601 * @param {string} [stop] ISO 8601 * @param {number} [logTypeId] Filter logs by log level type ID. If you choose 3 = Info, then all logs with a lower level are returned. The levels are: 1 = Error, 2 = Warning, 3 = Info. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerAccountLogs: async (signalProviderId: string, accountId: string, limit?: number, offset?: number, start?: string, stop?: string, logTypeId?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('getSignalFollowerAccountLogs', 'signalProviderId', signalProviderId) // verify required parameter 'accountId' is not null or undefined assertParamExists('getSignalFollowerAccountLogs', 'accountId', accountId) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/logs` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (start !== undefined) { localVarQueryParameter['start'] = start; } if (stop !== undefined) { localVarQueryParameter['stop'] = stop; } if (logTypeId !== undefined) { localVarQueryParameter['logTypeId'] = logTypeId; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get signal follower account performance metrics * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerAccountPerformanceMetrics: async (signalProviderId: string, accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('getSignalFollowerAccountPerformanceMetrics', 'signalProviderId', signalProviderId) // verify required parameter 'accountId' is not null or undefined assertParamExists('getSignalFollowerAccountPerformanceMetrics', 'accountId', accountId) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/performanceMetrics` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get signal follower account positions * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerAccountPositions: async (signalProviderId: string, accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('getSignalFollowerAccountPositions', 'signalProviderId', signalProviderId) // verify required parameter 'accountId' is not null or undefined assertParamExists('getSignalFollowerAccountPositions', 'accountId', accountId) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/positions` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get all signal follower accounts * @param {string} signalProviderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerAccounts: async (signalProviderId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('getSignalFollowerAccounts', 'signalProviderId', signalProviderId) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/accounts` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns earnings breakdown for a signal provider including gross/net amounts, per-follower charge details, and monthly breakdown. Includes PAID, OPEN, and VOID invoices. If month and year are not provided, returns all-time earnings. * @summary Get signal provider earnings breakdown * @param {string} signalProviderId * @param {number} [month] Month (1-12). If omitted, returns all months. * @param {number} [year] Year (e.g. 2026). If omitted, returns all years. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalProviderEarnings: async (signalProviderId: string, month?: number, year?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('getSignalProviderEarnings', 'signalProviderId', signalProviderId) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/earnings` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (month !== undefined) { localVarQueryParameter['month'] = month; } if (year !== undefined) { localVarQueryParameter['year'] = year; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get signal provider historical positions * @param {string} signalProviderId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalProviderHistoryPositions: async (signalProviderId: string, start: string, stop: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('getSignalProviderHistoryPositions', 'signalProviderId', signalProviderId) // verify required parameter 'start' is not null or undefined assertParamExists('getSignalProviderHistoryPositions', 'start', start) // verify required parameter 'stop' is not null or undefined assertParamExists('getSignalProviderHistoryPositions', 'stop', stop) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/history/positions` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (start !== undefined) { localVarQueryParameter['start'] = start; } if (stop !== undefined) { localVarQueryParameter['stop'] = stop; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get signal follower account symbols * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalSymbols: async (signalProviderId: string, accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('getSignalSymbols', 'signalProviderId', signalProviderId) // verify required parameter 'accountId' is not null or undefined assertParamExists('getSignalSymbols', 'accountId', accountId) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/symbols` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deletes the signal follower feature. This is only possible if there are no open positions on the signal provider\'s source account. * @summary Remove a follower from the signal provider * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeFollower: async (signalProviderId: string, accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('removeFollower', 'signalProviderId', signalProviderId) // verify required parameter 'accountId' is not null or undefined assertParamExists('removeFollower', 'accountId', accountId) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/followerFeature` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update follower feature * @param {string} signalProviderId * @param {string} accountId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFollowerFeature: async (signalProviderId: string, accountId: string, featureDTO: FeatureDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'signalProviderId' is not null or undefined assertParamExists('updateFollowerFeature', 'signalProviderId', signalProviderId) // verify required parameter 'accountId' is not null or undefined assertParamExists('updateFollowerFeature', 'accountId', accountId) // verify required parameter 'featureDTO' is not null or undefined assertParamExists('updateFollowerFeature', 'featureDTO', featureDTO) const localVarPath = `/rest/api/v1/signals/{signalProviderId}/accounts/{accountId}/followerFeature` .replace(`{${"signalProviderId"}}`, encodeURIComponent(String(signalProviderId))) .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(featureDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * SignalAPIApi - functional programming interface * @export */ export const SignalAPIApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = SignalAPIApiAxiosParamCreator(configuration) return { /** * * @summary Close all open positions in all accounts (followers) * @param {string} signalProviderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async closeAllPositionsInAllFollowerAccounts(signalProviderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.closeAllPositionsInAllFollowerAccounts(signalProviderId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.closeAllPositionsInAllFollowerAccounts']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Close all signal follower account positions * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async closeSignalFollowerAllPositions(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.closeSignalFollowerAllPositions(signalProviderId, accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.closeSignalFollowerAllPositions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Close an signal follower account position * @param {string} signalProviderId * @param {string} accountId * @param {string} positionId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async closeSignalFollowerPosition(signalProviderId: string, accountId: string, positionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.closeSignalFollowerPosition(signalProviderId, accountId, positionId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.closeSignalFollowerPosition']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get follower feature * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getFollowerFeature(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getFollowerFeature(signalProviderId, accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.getFollowerFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieves audit logs for all API modifications made to a specific signal follower account. * @summary Get signal follower account audit logs * @param {string} signalProviderId * @param {string} accountId * @param {number} [limit] Maximum number of logs to return * @param {number} [offset] Number of logs to skip for pagination * @param {string} [startDate] Start date filter (ISO-8601 format) * @param {string} [endDate] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSignalFollowerAccountAuditLogs(signalProviderId: string, accountId: string, limit?: number, offset?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSignalFollowerAccountAuditLogs(signalProviderId, accountId, limit, offset, startDate, endDate, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.getSignalFollowerAccountAuditLogs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * The history is not updated in real-time. There may be a delay of up to 3 minutes * @summary Get signal follower account history positions * @param {string} signalProviderId * @param {string} accountId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSignalFollowerAccountHistoryPositions(signalProviderId: string, accountId: string, start: string, stop: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSignalFollowerAccountHistoryPositions(signalProviderId, accountId, start, stop, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.getSignalFollowerAccountHistoryPositions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get signal follower account logs * @param {string} signalProviderId * @param {string} accountId * @param {number} [limit] Get the last logs: e.g. 100 means the last 100 logs * @param {number} [offset] You can set an offset. Offset 100 means 101-200 * @param {string} [start] ISO 8601 * @param {string} [stop] ISO 8601 * @param {number} [logTypeId] Filter logs by log level type ID. If you choose 3 = Info, then all logs with a lower level are returned. The levels are: 1 = Error, 2 = Warning, 3 = Info. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSignalFollowerAccountLogs(signalProviderId: string, accountId: string, limit?: number, offset?: number, start?: string, stop?: string, logTypeId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSignalFollowerAccountLogs(signalProviderId, accountId, limit, offset, start, stop, logTypeId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.getSignalFollowerAccountLogs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get signal follower account performance metrics * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSignalFollowerAccountPerformanceMetrics(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSignalFollowerAccountPerformanceMetrics(signalProviderId, accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.getSignalFollowerAccountPerformanceMetrics']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get signal follower account positions * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSignalFollowerAccountPositions(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSignalFollowerAccountPositions(signalProviderId, accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.getSignalFollowerAccountPositions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get all signal follower accounts * @param {string} signalProviderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSignalFollowerAccounts(signalProviderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSignalFollowerAccounts(signalProviderId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.getSignalFollowerAccounts']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns earnings breakdown for a signal provider including gross/net amounts, per-follower charge details, and monthly breakdown. Includes PAID, OPEN, and VOID invoices. If month and year are not provided, returns all-time earnings. * @summary Get signal provider earnings breakdown * @param {string} signalProviderId * @param {number} [month] Month (1-12). If omitted, returns all months. * @param {number} [year] Year (e.g. 2026). If omitted, returns all years. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSignalProviderEarnings(signalProviderId: string, month?: number, year?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSignalProviderEarnings(signalProviderId, month, year, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.getSignalProviderEarnings']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get signal provider historical positions * @param {string} signalProviderId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSignalProviderHistoryPositions(signalProviderId: string, start: string, stop: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSignalProviderHistoryPositions(signalProviderId, start, stop, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.getSignalProviderHistoryPositions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get signal follower account symbols * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSignalSymbols(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSignalSymbols(signalProviderId, accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.getSignalSymbols']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Deletes the signal follower feature. This is only possible if there are no open positions on the signal provider\'s source account. * @summary Remove a follower from the signal provider * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async removeFollower(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.removeFollower(signalProviderId, accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.removeFollower']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update follower feature * @param {string} signalProviderId * @param {string} accountId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateFollowerFeature(signalProviderId: string, accountId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateFollowerFeature(signalProviderId, accountId, featureDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SignalAPIApi.updateFollowerFeature']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * SignalAPIApi - factory interface * @export */ export const SignalAPIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = SignalAPIApiFp(configuration) return { /** * * @summary Close all open positions in all accounts (followers) * @param {string} signalProviderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ closeAllPositionsInAllFollowerAccounts(signalProviderId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.closeAllPositionsInAllFollowerAccounts(signalProviderId, options).then((request) => request(axios, basePath)); }, /** * * @summary Close all signal follower account positions * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ closeSignalFollowerAllPositions(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.closeSignalFollowerAllPositions(signalProviderId, accountId, options).then((request) => request(axios, basePath)); }, /** * * @summary Close an signal follower account position * @param {string} signalProviderId * @param {string} accountId * @param {string} positionId * @param {*} [options] Override http request option. * @throws {RequiredError} */ closeSignalFollowerPosition(signalProviderId: string, accountId: string, positionId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.closeSignalFollowerPosition(signalProviderId, accountId, positionId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get follower feature * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFollowerFeature(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getFollowerFeature(signalProviderId, accountId, options).then((request) => request(axios, basePath)); }, /** * Retrieves audit logs for all API modifications made to a specific signal follower account. * @summary Get signal follower account audit logs * @param {string} signalProviderId * @param {string} accountId * @param {number} [limit] Maximum number of logs to return * @param {number} [offset] Number of logs to skip for pagination * @param {string} [startDate] Start date filter (ISO-8601 format) * @param {string} [endDate] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerAccountAuditLogs(signalProviderId: string, accountId: string, limit?: number, offset?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getSignalFollowerAccountAuditLogs(signalProviderId, accountId, limit, offset, startDate, endDate, options).then((request) => request(axios, basePath)); }, /** * The history is not updated in real-time. There may be a delay of up to 3 minutes * @summary Get signal follower account history positions * @param {string} signalProviderId * @param {string} accountId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerAccountHistoryPositions(signalProviderId: string, accountId: string, start: string, stop: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getSignalFollowerAccountHistoryPositions(signalProviderId, accountId, start, stop, options).then((request) => request(axios, basePath)); }, /** * * @summary Get signal follower account logs * @param {string} signalProviderId * @param {string} accountId * @param {number} [limit] Get the last logs: e.g. 100 means the last 100 logs * @param {number} [offset] You can set an offset. Offset 100 means 101-200 * @param {string} [start] ISO 8601 * @param {string} [stop] ISO 8601 * @param {number} [logTypeId] Filter logs by log level type ID. If you choose 3 = Info, then all logs with a lower level are returned. The levels are: 1 = Error, 2 = Warning, 3 = Info. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerAccountLogs(signalProviderId: string, accountId: string, limit?: number, offset?: number, start?: string, stop?: string, logTypeId?: number, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getSignalFollowerAccountLogs(signalProviderId, accountId, limit, offset, start, stop, logTypeId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get signal follower account performance metrics * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerAccountPerformanceMetrics(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSignalFollowerAccountPerformanceMetrics(signalProviderId, accountId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get signal follower account positions * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerAccountPositions(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getSignalFollowerAccountPositions(signalProviderId, accountId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get all signal follower accounts * @param {string} signalProviderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalFollowerAccounts(signalProviderId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getSignalFollowerAccounts(signalProviderId, options).then((request) => request(axios, basePath)); }, /** * Returns earnings breakdown for a signal provider including gross/net amounts, per-follower charge details, and monthly breakdown. Includes PAID, OPEN, and VOID invoices. If month and year are not provided, returns all-time earnings. * @summary Get signal provider earnings breakdown * @param {string} signalProviderId * @param {number} [month] Month (1-12). If omitted, returns all months. * @param {number} [year] Year (e.g. 2026). If omitted, returns all years. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalProviderEarnings(signalProviderId: string, month?: number, year?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSignalProviderEarnings(signalProviderId, month, year, options).then((request) => request(axios, basePath)); }, /** * * @summary Get signal provider historical positions * @param {string} signalProviderId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalProviderHistoryPositions(signalProviderId: string, start: string, stop: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getSignalProviderHistoryPositions(signalProviderId, start, stop, options).then((request) => request(axios, basePath)); }, /** * * @summary Get signal follower account symbols * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSignalSymbols(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getSignalSymbols(signalProviderId, accountId, options).then((request) => request(axios, basePath)); }, /** * Deletes the signal follower feature. This is only possible if there are no open positions on the signal provider\'s source account. * @summary Remove a follower from the signal provider * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeFollower(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.removeFollower(signalProviderId, accountId, options).then((request) => request(axios, basePath)); }, /** * * @summary Update follower feature * @param {string} signalProviderId * @param {string} accountId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFollowerFeature(signalProviderId: string, accountId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateFollowerFeature(signalProviderId, accountId, featureDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * SignalAPIApi - object-oriented interface * @export * @class SignalAPIApi * @extends {BaseAPI} */ export class SignalAPIApi extends BaseAPI { /** * * @summary Close all open positions in all accounts (followers) * @param {string} signalProviderId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public closeAllPositionsInAllFollowerAccounts(signalProviderId: string, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).closeAllPositionsInAllFollowerAccounts(signalProviderId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Close all signal follower account positions * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public closeSignalFollowerAllPositions(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).closeSignalFollowerAllPositions(signalProviderId, accountId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Close an signal follower account position * @param {string} signalProviderId * @param {string} accountId * @param {string} positionId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public closeSignalFollowerPosition(signalProviderId: string, accountId: string, positionId: string, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).closeSignalFollowerPosition(signalProviderId, accountId, positionId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get follower feature * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public getFollowerFeature(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).getFollowerFeature(signalProviderId, accountId, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieves audit logs for all API modifications made to a specific signal follower account. * @summary Get signal follower account audit logs * @param {string} signalProviderId * @param {string} accountId * @param {number} [limit] Maximum number of logs to return * @param {number} [offset] Number of logs to skip for pagination * @param {string} [startDate] Start date filter (ISO-8601 format) * @param {string} [endDate] End date filter (ISO-8601 format) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public getSignalFollowerAccountAuditLogs(signalProviderId: string, accountId: string, limit?: number, offset?: number, startDate?: string, endDate?: string, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).getSignalFollowerAccountAuditLogs(signalProviderId, accountId, limit, offset, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); } /** * The history is not updated in real-time. There may be a delay of up to 3 minutes * @summary Get signal follower account history positions * @param {string} signalProviderId * @param {string} accountId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public getSignalFollowerAccountHistoryPositions(signalProviderId: string, accountId: string, start: string, stop: string, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).getSignalFollowerAccountHistoryPositions(signalProviderId, accountId, start, stop, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get signal follower account logs * @param {string} signalProviderId * @param {string} accountId * @param {number} [limit] Get the last logs: e.g. 100 means the last 100 logs * @param {number} [offset] You can set an offset. Offset 100 means 101-200 * @param {string} [start] ISO 8601 * @param {string} [stop] ISO 8601 * @param {number} [logTypeId] Filter logs by log level type ID. If you choose 3 = Info, then all logs with a lower level are returned. The levels are: 1 = Error, 2 = Warning, 3 = Info. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public getSignalFollowerAccountLogs(signalProviderId: string, accountId: string, limit?: number, offset?: number, start?: string, stop?: string, logTypeId?: number, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).getSignalFollowerAccountLogs(signalProviderId, accountId, limit, offset, start, stop, logTypeId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get signal follower account performance metrics * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public getSignalFollowerAccountPerformanceMetrics(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).getSignalFollowerAccountPerformanceMetrics(signalProviderId, accountId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get signal follower account positions * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public getSignalFollowerAccountPositions(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).getSignalFollowerAccountPositions(signalProviderId, accountId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get all signal follower accounts * @param {string} signalProviderId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public getSignalFollowerAccounts(signalProviderId: string, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).getSignalFollowerAccounts(signalProviderId, options).then((request) => request(this.axios, this.basePath)); } /** * Returns earnings breakdown for a signal provider including gross/net amounts, per-follower charge details, and monthly breakdown. Includes PAID, OPEN, and VOID invoices. If month and year are not provided, returns all-time earnings. * @summary Get signal provider earnings breakdown * @param {string} signalProviderId * @param {number} [month] Month (1-12). If omitted, returns all months. * @param {number} [year] Year (e.g. 2026). If omitted, returns all years. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public getSignalProviderEarnings(signalProviderId: string, month?: number, year?: number, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).getSignalProviderEarnings(signalProviderId, month, year, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get signal provider historical positions * @param {string} signalProviderId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public getSignalProviderHistoryPositions(signalProviderId: string, start: string, stop: string, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).getSignalProviderHistoryPositions(signalProviderId, start, stop, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get signal follower account symbols * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public getSignalSymbols(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).getSignalSymbols(signalProviderId, accountId, options).then((request) => request(this.axios, this.basePath)); } /** * Deletes the signal follower feature. This is only possible if there are no open positions on the signal provider\'s source account. * @summary Remove a follower from the signal provider * @param {string} signalProviderId * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public removeFollower(signalProviderId: string, accountId: string, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).removeFollower(signalProviderId, accountId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update follower feature * @param {string} signalProviderId * @param {string} accountId * @param {FeatureDTO} featureDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SignalAPIApi */ public updateFollowerFeature(signalProviderId: string, accountId: string, featureDTO: FeatureDTO, options?: RawAxiosRequestConfig) { return SignalAPIApiFp(this.configuration).updateFollowerFeature(signalProviderId, accountId, featureDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * TradingAPIApi - axios parameter creator * @export */ export const TradingAPIApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Close all account positions * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ closeAllPositions: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('closeAllPositions', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/actions/closeAllPositions` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Close an account position * @param {string} accountId * @param {string} positionId * @param {*} [options] Override http request option. * @throws {RequiredError} */ closePosition: async (accountId: string, positionId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('closePosition', 'accountId', accountId) // verify required parameter 'positionId' is not null or undefined assertParamExists('closePosition', 'positionId', positionId) const localVarPath = `/rest/api/v1/accounts/{accountId}/positions/{positionId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"positionId"}}`, encodeURIComponent(String(positionId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * The history is not updated in real-time. There may be a delay of up to 3 minutes * @summary Get account history positions * @param {string} accountId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} */ getHistoryPositions: async (accountId: string, start: string, stop: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getHistoryPositions', 'accountId', accountId) // verify required parameter 'start' is not null or undefined assertParamExists('getHistoryPositions', 'start', start) // verify required parameter 'stop' is not null or undefined assertParamExists('getHistoryPositions', 'stop', stop) const localVarPath = `/rest/api/v1/accounts/{accountId}/history/positions` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (start !== undefined) { localVarQueryParameter['start'] = start; } if (stop !== undefined) { localVarQueryParameter['stop'] = stop; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get account information * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getInformation: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getInformation', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/information` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get account positions * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPositions: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getPositions', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/positions` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Fetches the current bid price, ask price, and timestamp for a specific trading symbol. Note: Not all platforms support real-time quote fetching. If there is no response or an error is returned, it means the platform does not support this feature. * @summary Get market quote for a symbol * @param {string} accountId * @param {string} symbol Symbol name (e.g., EURUSD, GBPJPY) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getQuote: async (accountId: string, symbol: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getQuote', 'accountId', accountId) // verify required parameter 'symbol' is not null or undefined assertParamExists('getQuote', 'symbol', symbol) const localVarPath = `/rest/api/v1/accounts/{accountId}/quote/{symbol}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"symbol"}}`, encodeURIComponent(String(symbol))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get a specific account symbol * @param {string} accountId * @param {string} symbol Symbol name (e.g., EURUSD, GBPJPY) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSymbol: async (accountId: string, symbol: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getSymbol', 'accountId', accountId) // verify required parameter 'symbol' is not null or undefined assertParamExists('getSymbol', 'symbol', symbol) const localVarPath = `/rest/api/v1/accounts/{accountId}/symbols/{symbol}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"symbol"}}`, encodeURIComponent(String(symbol))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get account symbols * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSymbols: async (accountId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getSymbols', 'accountId', accountId) const localVarPath = `/rest/api/v1/accounts/{accountId}/symbols` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * For partial close you can use this endpoint. Only volume, open price, take profit, and stop loss can be modified. * @summary Modify an account position * @param {string} accountId * @param {string} positionId * @param {PositionRequestDTO} positionRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ modifyPosition: async (accountId: string, positionId: string, positionRequestDTO: PositionRequestDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('modifyPosition', 'accountId', accountId) // verify required parameter 'positionId' is not null or undefined assertParamExists('modifyPosition', 'positionId', positionId) // verify required parameter 'positionRequestDTO' is not null or undefined assertParamExists('modifyPosition', 'positionRequestDTO', positionRequestDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/positions/{positionId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"positionId"}}`, encodeURIComponent(String(positionId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(positionRequestDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Open an account position * @param {string} accountId * @param {PositionRequestDTO} positionRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ openPosition: async (accountId: string, positionRequestDTO: PositionRequestDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('openPosition', 'accountId', accountId) // verify required parameter 'positionRequestDTO' is not null or undefined assertParamExists('openPosition', 'positionRequestDTO', positionRequestDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/positions` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(positionRequestDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Places an order and returns immediately. The endpoint does not wait for the trade to be executed and therefore does not confirm whether the execution was successful or not. To open positions, use the /positions endpoint. * @summary Send an account order * @param {string} accountId * @param {PositionRequestDTO} positionRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendOrder: async (accountId: string, positionRequestDTO: PositionRequestDTO, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('sendOrder', 'accountId', accountId) // verify required parameter 'positionRequestDTO' is not null or undefined assertParamExists('sendOrder', 'positionRequestDTO', positionRequestDTO) const localVarPath = `/rest/api/v1/accounts/{accountId}/orders` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(positionRequestDTO, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * TradingAPIApi - functional programming interface * @export */ export const TradingAPIApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = TradingAPIApiAxiosParamCreator(configuration) return { /** * * @summary Close all account positions * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async closeAllPositions(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.closeAllPositions(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingAPIApi.closeAllPositions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Close an account position * @param {string} accountId * @param {string} positionId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async closePosition(accountId: string, positionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.closePosition(accountId, positionId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingAPIApi.closePosition']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * The history is not updated in real-time. There may be a delay of up to 3 minutes * @summary Get account history positions * @param {string} accountId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getHistoryPositions(accountId: string, start: string, stop: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getHistoryPositions(accountId, start, stop, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingAPIApi.getHistoryPositions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get account information * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getInformation(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getInformation(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingAPIApi.getInformation']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get account positions * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPositions(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPositions(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingAPIApi.getPositions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Fetches the current bid price, ask price, and timestamp for a specific trading symbol. Note: Not all platforms support real-time quote fetching. If there is no response or an error is returned, it means the platform does not support this feature. * @summary Get market quote for a symbol * @param {string} accountId * @param {string} symbol Symbol name (e.g., EURUSD, GBPJPY) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getQuote(accountId: string, symbol: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getQuote(accountId, symbol, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingAPIApi.getQuote']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get a specific account symbol * @param {string} accountId * @param {string} symbol Symbol name (e.g., EURUSD, GBPJPY) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSymbol(accountId: string, symbol: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSymbol(accountId, symbol, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingAPIApi.getSymbol']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get account symbols * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSymbols(accountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSymbols(accountId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingAPIApi.getSymbols']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * For partial close you can use this endpoint. Only volume, open price, take profit, and stop loss can be modified. * @summary Modify an account position * @param {string} accountId * @param {string} positionId * @param {PositionRequestDTO} positionRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async modifyPosition(accountId: string, positionId: string, positionRequestDTO: PositionRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.modifyPosition(accountId, positionId, positionRequestDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingAPIApi.modifyPosition']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Open an account position * @param {string} accountId * @param {PositionRequestDTO} positionRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async openPosition(accountId: string, positionRequestDTO: PositionRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.openPosition(accountId, positionRequestDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingAPIApi.openPosition']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Places an order and returns immediately. The endpoint does not wait for the trade to be executed and therefore does not confirm whether the execution was successful or not. To open positions, use the /positions endpoint. * @summary Send an account order * @param {string} accountId * @param {PositionRequestDTO} positionRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ async sendOrder(accountId: string, positionRequestDTO: PositionRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.sendOrder(accountId, positionRequestDTO, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingAPIApi.sendOrder']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * TradingAPIApi - factory interface * @export */ export const TradingAPIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = TradingAPIApiFp(configuration) return { /** * * @summary Close all account positions * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ closeAllPositions(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.closeAllPositions(accountId, options).then((request) => request(axios, basePath)); }, /** * * @summary Close an account position * @param {string} accountId * @param {string} positionId * @param {*} [options] Override http request option. * @throws {RequiredError} */ closePosition(accountId: string, positionId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.closePosition(accountId, positionId, options).then((request) => request(axios, basePath)); }, /** * The history is not updated in real-time. There may be a delay of up to 3 minutes * @summary Get account history positions * @param {string} accountId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} */ getHistoryPositions(accountId: string, start: string, stop: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getHistoryPositions(accountId, start, stop, options).then((request) => request(axios, basePath)); }, /** * * @summary Get account information * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getInformation(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getInformation(accountId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get account positions * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPositions(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getPositions(accountId, options).then((request) => request(axios, basePath)); }, /** * Fetches the current bid price, ask price, and timestamp for a specific trading symbol. Note: Not all platforms support real-time quote fetching. If there is no response or an error is returned, it means the platform does not support this feature. * @summary Get market quote for a symbol * @param {string} accountId * @param {string} symbol Symbol name (e.g., EURUSD, GBPJPY) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getQuote(accountId: string, symbol: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getQuote(accountId, symbol, options).then((request) => request(axios, basePath)); }, /** * * @summary Get a specific account symbol * @param {string} accountId * @param {string} symbol Symbol name (e.g., EURUSD, GBPJPY) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSymbol(accountId: string, symbol: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSymbol(accountId, symbol, options).then((request) => request(axios, basePath)); }, /** * * @summary Get account symbols * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSymbols(accountId: string, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getSymbols(accountId, options).then((request) => request(axios, basePath)); }, /** * For partial close you can use this endpoint. Only volume, open price, take profit, and stop loss can be modified. * @summary Modify an account position * @param {string} accountId * @param {string} positionId * @param {PositionRequestDTO} positionRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ modifyPosition(accountId: string, positionId: string, positionRequestDTO: PositionRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.modifyPosition(accountId, positionId, positionRequestDTO, options).then((request) => request(axios, basePath)); }, /** * * @summary Open an account position * @param {string} accountId * @param {PositionRequestDTO} positionRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ openPosition(accountId: string, positionRequestDTO: PositionRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.openPosition(accountId, positionRequestDTO, options).then((request) => request(axios, basePath)); }, /** * Places an order and returns immediately. The endpoint does not wait for the trade to be executed and therefore does not confirm whether the execution was successful or not. To open positions, use the /positions endpoint. * @summary Send an account order * @param {string} accountId * @param {PositionRequestDTO} positionRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} */ sendOrder(accountId: string, positionRequestDTO: PositionRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.sendOrder(accountId, positionRequestDTO, options).then((request) => request(axios, basePath)); }, }; }; /** * TradingAPIApi - object-oriented interface * @export * @class TradingAPIApi * @extends {BaseAPI} */ export class TradingAPIApi extends BaseAPI { /** * * @summary Close all account positions * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingAPIApi */ public closeAllPositions(accountId: string, options?: RawAxiosRequestConfig) { return TradingAPIApiFp(this.configuration).closeAllPositions(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Close an account position * @param {string} accountId * @param {string} positionId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingAPIApi */ public closePosition(accountId: string, positionId: string, options?: RawAxiosRequestConfig) { return TradingAPIApiFp(this.configuration).closePosition(accountId, positionId, options).then((request) => request(this.axios, this.basePath)); } /** * The history is not updated in real-time. There may be a delay of up to 3 minutes * @summary Get account history positions * @param {string} accountId * @param {string} start ISO 8601 * @param {string} stop ISO 8601 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingAPIApi */ public getHistoryPositions(accountId: string, start: string, stop: string, options?: RawAxiosRequestConfig) { return TradingAPIApiFp(this.configuration).getHistoryPositions(accountId, start, stop, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get account information * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingAPIApi */ public getInformation(accountId: string, options?: RawAxiosRequestConfig) { return TradingAPIApiFp(this.configuration).getInformation(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get account positions * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingAPIApi */ public getPositions(accountId: string, options?: RawAxiosRequestConfig) { return TradingAPIApiFp(this.configuration).getPositions(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * Fetches the current bid price, ask price, and timestamp for a specific trading symbol. Note: Not all platforms support real-time quote fetching. If there is no response or an error is returned, it means the platform does not support this feature. * @summary Get market quote for a symbol * @param {string} accountId * @param {string} symbol Symbol name (e.g., EURUSD, GBPJPY) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingAPIApi */ public getQuote(accountId: string, symbol: string, options?: RawAxiosRequestConfig) { return TradingAPIApiFp(this.configuration).getQuote(accountId, symbol, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get a specific account symbol * @param {string} accountId * @param {string} symbol Symbol name (e.g., EURUSD, GBPJPY) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingAPIApi */ public getSymbol(accountId: string, symbol: string, options?: RawAxiosRequestConfig) { return TradingAPIApiFp(this.configuration).getSymbol(accountId, symbol, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get account symbols * @param {string} accountId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingAPIApi */ public getSymbols(accountId: string, options?: RawAxiosRequestConfig) { return TradingAPIApiFp(this.configuration).getSymbols(accountId, options).then((request) => request(this.axios, this.basePath)); } /** * For partial close you can use this endpoint. Only volume, open price, take profit, and stop loss can be modified. * @summary Modify an account position * @param {string} accountId * @param {string} positionId * @param {PositionRequestDTO} positionRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingAPIApi */ public modifyPosition(accountId: string, positionId: string, positionRequestDTO: PositionRequestDTO, options?: RawAxiosRequestConfig) { return TradingAPIApiFp(this.configuration).modifyPosition(accountId, positionId, positionRequestDTO, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Open an account position * @param {string} accountId * @param {PositionRequestDTO} positionRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingAPIApi */ public openPosition(accountId: string, positionRequestDTO: PositionRequestDTO, options?: RawAxiosRequestConfig) { return TradingAPIApiFp(this.configuration).openPosition(accountId, positionRequestDTO, options).then((request) => request(this.axios, this.basePath)); } /** * Places an order and returns immediately. The endpoint does not wait for the trade to be executed and therefore does not confirm whether the execution was successful or not. To open positions, use the /positions endpoint. * @summary Send an account order * @param {string} accountId * @param {PositionRequestDTO} positionRequestDTO * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingAPIApi */ public sendOrder(accountId: string, positionRequestDTO: PositionRequestDTO, options?: RawAxiosRequestConfig) { return TradingAPIApiFp(this.configuration).sendOrder(accountId, positionRequestDTO, options).then((request) => request(this.axios, this.basePath)); } } /** * TradingViewWebhookAPIApi - axios parameter creator * @export */ export const TradingViewWebhookAPIApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Delete specific stored data by ID. * @summary Delete stored data * @param {string} accountId * @param {string} dataId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteStoredData: async (accountId: string, dataId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('deleteStoredData', 'accountId', accountId) // verify required parameter 'dataId' is not null or undefined assertParamExists('deleteStoredData', 'dataId', dataId) const localVarPath = `/rest/api/v1/webhooks/tradingview/accounts/{accountId}/data/{dataId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"dataId"}}`, encodeURIComponent(String(dataId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Check the processing status of a queued webhook request. * @summary Get webhook request status * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRequestStatus: async (requestId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'requestId' is not null or undefined assertParamExists('getRequestStatus', 'requestId', requestId) const localVarPath = `/rest/api/v1/webhooks/tradingview/requests/{requestId}/status` .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieve data stored via the \'store\' webhook action. * @summary List stored TradingView data * @param {string} accountId * @param {number} [limit] * @param {number} [skip] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getStoredData: async (accountId: string, limit?: number, skip?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getStoredData', 'accountId', accountId) const localVarPath = `/rest/api/v1/webhooks/tradingview/accounts/{accountId}/data` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (skip !== undefined) { localVarQueryParameter['skip'] = skip; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieve specific stored data by ID. * @summary Get specific stored data * @param {string} accountId * @param {string} dataId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getStoredDataById: async (accountId: string, dataId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('getStoredDataById', 'accountId', accountId) // verify required parameter 'dataId' is not null or undefined assertParamExists('getStoredDataById', 'dataId', dataId) const localVarPath = `/rest/api/v1/webhooks/tradingview/accounts/{accountId}/data/{dataId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))) .replace(`{${"dataId"}}`, encodeURIComponent(String(dataId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Receives webhook alerts from TradingView and queues them for asynchronous processing. Returns 202 Accepted with a requestId that can be used to check status. * @summary Handle TradingView webhook * @param {string} accountId * @param {string} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ handleWebhook: async (accountId: string, body: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'accountId' is not null or undefined assertParamExists('handleWebhook', 'accountId', accountId) // verify required parameter 'body' is not null or undefined assertParamExists('handleWebhook', 'body', body) const localVarPath = `/rest/api/v1/webhooks/tradingview/accounts/{accountId}` .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * TradingViewWebhookAPIApi - functional programming interface * @export */ export const TradingViewWebhookAPIApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = TradingViewWebhookAPIApiAxiosParamCreator(configuration) return { /** * Delete specific stored data by ID. * @summary Delete stored data * @param {string} accountId * @param {string} dataId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteStoredData(accountId: string, dataId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteStoredData(accountId, dataId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingViewWebhookAPIApi.deleteStoredData']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Check the processing status of a queued webhook request. * @summary Get webhook request status * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getRequestStatus(requestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRequestStatus(requestId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingViewWebhookAPIApi.getRequestStatus']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieve data stored via the \'store\' webhook action. * @summary List stored TradingView data * @param {string} accountId * @param {number} [limit] * @param {number} [skip] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getStoredData(accountId: string, limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getStoredData(accountId, limit, skip, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingViewWebhookAPIApi.getStoredData']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Retrieve specific stored data by ID. * @summary Get specific stored data * @param {string} accountId * @param {string} dataId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getStoredDataById(accountId: string, dataId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getStoredDataById(accountId, dataId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingViewWebhookAPIApi.getStoredDataById']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Receives webhook alerts from TradingView and queues them for asynchronous processing. Returns 202 Accepted with a requestId that can be used to check status. * @summary Handle TradingView webhook * @param {string} accountId * @param {string} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ async handleWebhook(accountId: string, body: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.handleWebhook(accountId, body, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TradingViewWebhookAPIApi.handleWebhook']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * TradingViewWebhookAPIApi - factory interface * @export */ export const TradingViewWebhookAPIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = TradingViewWebhookAPIApiFp(configuration) return { /** * Delete specific stored data by ID. * @summary Delete stored data * @param {string} accountId * @param {string} dataId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteStoredData(accountId: string, dataId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteStoredData(accountId, dataId, options).then((request) => request(axios, basePath)); }, /** * Check the processing status of a queued webhook request. * @summary Get webhook request status * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRequestStatus(requestId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRequestStatus(requestId, options).then((request) => request(axios, basePath)); }, /** * Retrieve data stored via the \'store\' webhook action. * @summary List stored TradingView data * @param {string} accountId * @param {number} [limit] * @param {number} [skip] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getStoredData(accountId: string, limit?: number, skip?: number, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getStoredData(accountId, limit, skip, options).then((request) => request(axios, basePath)); }, /** * Retrieve specific stored data by ID. * @summary Get specific stored data * @param {string} accountId * @param {string} dataId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getStoredDataById(accountId: string, dataId: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getStoredDataById(accountId, dataId, options).then((request) => request(axios, basePath)); }, /** * Receives webhook alerts from TradingView and queues them for asynchronous processing. Returns 202 Accepted with a requestId that can be used to check status. * @summary Handle TradingView webhook * @param {string} accountId * @param {string} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ handleWebhook(accountId: string, body: string, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.handleWebhook(accountId, body, options).then((request) => request(axios, basePath)); }, }; }; /** * TradingViewWebhookAPIApi - object-oriented interface * @export * @class TradingViewWebhookAPIApi * @extends {BaseAPI} */ export class TradingViewWebhookAPIApi extends BaseAPI { /** * Delete specific stored data by ID. * @summary Delete stored data * @param {string} accountId * @param {string} dataId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingViewWebhookAPIApi */ public deleteStoredData(accountId: string, dataId: string, options?: RawAxiosRequestConfig) { return TradingViewWebhookAPIApiFp(this.configuration).deleteStoredData(accountId, dataId, options).then((request) => request(this.axios, this.basePath)); } /** * Check the processing status of a queued webhook request. * @summary Get webhook request status * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingViewWebhookAPIApi */ public getRequestStatus(requestId: string, options?: RawAxiosRequestConfig) { return TradingViewWebhookAPIApiFp(this.configuration).getRequestStatus(requestId, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieve data stored via the \'store\' webhook action. * @summary List stored TradingView data * @param {string} accountId * @param {number} [limit] * @param {number} [skip] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingViewWebhookAPIApi */ public getStoredData(accountId: string, limit?: number, skip?: number, options?: RawAxiosRequestConfig) { return TradingViewWebhookAPIApiFp(this.configuration).getStoredData(accountId, limit, skip, options).then((request) => request(this.axios, this.basePath)); } /** * Retrieve specific stored data by ID. * @summary Get specific stored data * @param {string} accountId * @param {string} dataId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingViewWebhookAPIApi */ public getStoredDataById(accountId: string, dataId: string, options?: RawAxiosRequestConfig) { return TradingViewWebhookAPIApiFp(this.configuration).getStoredDataById(accountId, dataId, options).then((request) => request(this.axios, this.basePath)); } /** * Receives webhook alerts from TradingView and queues them for asynchronous processing. Returns 202 Accepted with a requestId that can be used to check status. * @summary Handle TradingView webhook * @param {string} accountId * @param {string} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradingViewWebhookAPIApi */ public handleWebhook(accountId: string, body: string, options?: RawAxiosRequestConfig) { return TradingViewWebhookAPIApiFp(this.configuration).handleWebhook(accountId, body, options).then((request) => request(this.axios, this.basePath)); } } /** * TypeAPIApi - axios parameter creator * @export */ export const TypeAPIApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Get account type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountTypes: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/types/accountTypes`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get available copier setting fields * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAvailableCopierSettingFields: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/types/copierSettings/availableFields`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get currency type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCurrencyTypes: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/types/currencyTypes`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get feature type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFeatureTypes: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/types/featureTypes`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get log type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLogTypes: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/types/logTypes`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get notification category type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getNotificationCategoryTypes: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/types/notificationCategoryTypes`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get proxy region enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProxyRegions: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/types/proxyRegions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get region enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRegions: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/types/regions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get risk type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRiskTypes: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/types/riskTypes`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get scale type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getScaleTypes: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/rest/api/v1/types/scaleTypes`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * TypeAPIApi - functional programming interface * @export */ export const TypeAPIApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = TypeAPIApiAxiosParamCreator(configuration) return { /** * * @summary Get account type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAccountTypes(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountTypes(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TypeAPIApi.getAccountTypes']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get available copier setting fields * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAvailableCopierSettingFields(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAvailableCopierSettingFields(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TypeAPIApi.getAvailableCopierSettingFields']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get currency type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCurrencyTypes(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrencyTypes(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TypeAPIApi.getCurrencyTypes']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get feature type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getFeatureTypes(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatureTypes(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TypeAPIApi.getFeatureTypes']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get log type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getLogTypes(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLogTypes(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TypeAPIApi.getLogTypes']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get notification category type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getNotificationCategoryTypes(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getNotificationCategoryTypes(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TypeAPIApi.getNotificationCategoryTypes']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get proxy region enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getProxyRegions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProxyRegions(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TypeAPIApi.getProxyRegions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get region enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getRegions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRegions(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TypeAPIApi.getRegions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get risk type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getRiskTypes(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRiskTypes(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TypeAPIApi.getRiskTypes']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get scale type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getScaleTypes(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getScaleTypes(options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TypeAPIApi.getScaleTypes']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * TypeAPIApi - factory interface * @export */ export const TypeAPIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = TypeAPIApiFp(configuration) return { /** * * @summary Get account type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAccountTypes(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAccountTypes(options).then((request) => request(axios, basePath)); }, /** * * @summary Get available copier setting fields * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAvailableCopierSettingFields(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getAvailableCopierSettingFields(options).then((request) => request(axios, basePath)); }, /** * * @summary Get currency type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCurrencyTypes(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getCurrencyTypes(options).then((request) => request(axios, basePath)); }, /** * * @summary Get feature type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFeatureTypes(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getFeatureTypes(options).then((request) => request(axios, basePath)); }, /** * * @summary Get log type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLogTypes(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getLogTypes(options).then((request) => request(axios, basePath)); }, /** * * @summary Get notification category type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getNotificationCategoryTypes(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getNotificationCategoryTypes(options).then((request) => request(axios, basePath)); }, /** * * @summary Get proxy region enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getProxyRegions(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getProxyRegions(options).then((request) => request(axios, basePath)); }, /** * * @summary Get region enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRegions(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getRegions(options).then((request) => request(axios, basePath)); }, /** * * @summary Get risk type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRiskTypes(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getRiskTypes(options).then((request) => request(axios, basePath)); }, /** * * @summary Get scale type enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ getScaleTypes(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getScaleTypes(options).then((request) => request(axios, basePath)); }, }; }; /** * TypeAPIApi - object-oriented interface * @export * @class TypeAPIApi * @extends {BaseAPI} */ export class TypeAPIApi extends BaseAPI { /** * * @summary Get account type enum * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TypeAPIApi */ public getAccountTypes(options?: RawAxiosRequestConfig) { return TypeAPIApiFp(this.configuration).getAccountTypes(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get available copier setting fields * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TypeAPIApi */ public getAvailableCopierSettingFields(options?: RawAxiosRequestConfig) { return TypeAPIApiFp(this.configuration).getAvailableCopierSettingFields(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get currency type enum * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TypeAPIApi */ public getCurrencyTypes(options?: RawAxiosRequestConfig) { return TypeAPIApiFp(this.configuration).getCurrencyTypes(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get feature type enum * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TypeAPIApi */ public getFeatureTypes(options?: RawAxiosRequestConfig) { return TypeAPIApiFp(this.configuration).getFeatureTypes(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get log type enum * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TypeAPIApi */ public getLogTypes(options?: RawAxiosRequestConfig) { return TypeAPIApiFp(this.configuration).getLogTypes(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get notification category type enum * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TypeAPIApi */ public getNotificationCategoryTypes(options?: RawAxiosRequestConfig) { return TypeAPIApiFp(this.configuration).getNotificationCategoryTypes(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get proxy region enum * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TypeAPIApi */ public getProxyRegions(options?: RawAxiosRequestConfig) { return TypeAPIApiFp(this.configuration).getProxyRegions(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get region enum * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TypeAPIApi */ public getRegions(options?: RawAxiosRequestConfig) { return TypeAPIApiFp(this.configuration).getRegions(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get risk type enum * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TypeAPIApi */ public getRiskTypes(options?: RawAxiosRequestConfig) { return TypeAPIApiFp(this.configuration).getRiskTypes(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get scale type enum * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TypeAPIApi */ public getScaleTypes(options?: RawAxiosRequestConfig) { return TypeAPIApiFp(this.configuration).getScaleTypes(options).then((request) => request(this.axios, this.basePath)); } }