Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

eToro Trading - Demo API

The Trading - Demo API from eToro — 18 operation(s) for trading - demo.

eToro Trading - Demo API is one of 29 APIs that eToro publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Trading - Demo. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 18 operations across 18 paths, and defines 30 schemas. It is described by OpenAPI 3.0.1, at version v1.158.0.

Requests are made against the base URL https://public-api.etoro.com/api/v1.

18 operations 18 paths 30 schemas 4 DELETE6 GET8 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
v1.158.0
Base URL
https://public-api.etoro.com/api/v1
Resource Areas
1

Paths & Operations 18

Across 18 paths, the API surfaces 18 operations — 4 DELETE, 6 GET, 8 POST. Each is listed below with its method, path, parameters, and response codes.

Trading - Demo 18
POST
/api/v1/trading/execution/demo/limit-orders
Places a Market-if-touched order (similar to Limit order) to open a position when a threshold price is reached.
openLimitOrderDemo 3 params body → 200
DELETE
/api/v1/trading/execution/demo/limit-orders/{orderId}
Cancels a Market-if-touched order that has not yet been executed.
cancelLimitOrderDemo 4 params → 200
POST
/api/v1/trading/execution/demo/market-open-orders/by-amount
Create a market order to open a position by specifying the amount of cash you would like to use in the trade.
openMarketPositionByAmountDemo 3 params body → 200
POST
/api/v1/trading/execution/demo/market-open-orders/by-units
Places a Market Order to open a position by specifying the number of units you would like to trade.
openMarketPositionByUnitsDemo 3 params body → 200
DELETE
/api/v1/trading/execution/demo/market-open-orders/{orderId}
Cancels a market order for open before it is executed.
cancelOpenMarketOrderDemo 4 params → 200
GET
/api/v1/trading/info/demo/orders/{orderId}
Get Order Information and Position Details for Demo Account
getDemoOrderForOpenInfo 4 params → 200400404500
POST
/api/v1/trading/info/demo/eligibility
Check trading permissions, limits, and available leverage for one or more instruments
getInstrumentEligibilityDemo 3 params body → 200400401500
POST
/api/v1/trading/execution/demo/market-close-orders/positions/{positionId}
Creates a market order to close a position or partially close it by specifying the number of units to deduct.
closePositionByMarketRateDemo 4 params body → 200
DELETE
/api/v1/trading/execution/demo/market-close-orders/{orderId}
Cancels a pending market order for close for the specified order ID.
cancelCloseOrderDemo 4 params → 200
GET
/api/v1/trading/info/demo/aggregate-portfolio
Get demo account aggregated portfolio snapshot — account totals, positions aggregated by instrument, and copy trading
getAggregatedPortfolioDemo 6 params → 200400404
GET
/api/v1/trading/info/demo/pnl
Get Demo Account PnL and Portfolio Details
getDemoAccountPnl 3 params → 200
GET
/api/v1/trading/info/demo/portfolio
Retrieve comprehensive portfolio information including positions, orders, and account status
getPortfolioDemo 3 params → 200
GET
/api/v1/trading/info/trade/demo/history
List trading history
listTradingHistory 6 params → 200
POST
/api/v2/trading/execution/demo/orders
Create an order
createDemoOrder 3 params body → 200400401404500
DELETE
/api/v2/trading/execution/demo/orders/{orderId}
Cancels an order before it is executed
cancelDemoOrder 4 params → 200400401404500
POST
/api/v2/trading/info/demo/costs
Get a what-if cost breakdown for opening or closing a position
getCostDemo 3 params body → 200400401404500
POST
/api/v2/trading/info/demo/eligibility
Check trading permissions, limits, and available leverage for one or more instruments
getInstrumentEligibilityDemo 3 params body → 200400401500
GET
/api/v2/trading/info/demo/orders:lookup
Get Order Information and Position Details for Demo Account
lookupDemoOrder 5 params → 200400401404500

Schemas 30

The contract defines 30 schemas that model the data the API accepts and returns. The most detailed are Position (36 properties), GetOrderInfoResponse (26 properties), Mirror (26 properties), OrderForOpen (23 properties). Each schema is shown below with its type and property counts.

AggregatedPortfolioAccountTotals
object
Account-level balance and equity totals.
6 properties
OrderForOpen
object
23 properties
InstrumentEligibility
object
Full trading configuration for a single instrument, including position limits, trading permissions, order configuration, margin settings, and available leverag…
20 properties
Mirror
object
26 properties
GetOrderInfoStatus
object
Status information for the order.
4 properties
CostBreakdown
object
Individual cost component (markup, fees, SDRT) in the requested order currency.
3 properties
OrderForOpenInfoResponse
object
Comprehensive order information response containing order details and all positions opened from this order.
14 properties 6 required
LeverageConfiguration
object
Leverage configuration for a specific settlement type and trade direction combination.
14 properties
GetOrderInfoResponse
object
Detailed information about a specific order retrieved via the orders lookup endpoint.
26 properties
OrderForOpenPositionInfo
object
Detailed information about a position that was opened from an order. This object contains all the essential details needed to identify and track the position.
8 properties 7 required
InstrumentEligibilityResponse
object
Response containing trading configuration for all requested instruments.
4 properties
OrderForCloseMultiple
object
10 properties
AggregatedPortfolioInstrumentAggregate
object
Aggregated data across all positions for a single instrument.
22 properties
PortfolioResponseWithPnl
object
Comprehensive portfolio information including positions, orders, and account status
1 property
AggregatedPortfolioResponse
object
Complete snapshot of the authenticated user's investment portfolio, organized by asset.
6 properties
Position
object
36 properties
AggregatedPortfolioMirrorAggregate
object
Aggregated data for a single copy-trading relationship.
9 properties
GetOrderInfoOpeningData
object
Execution data recorded when the position was opened.
12 properties
GetCostResponse
object
Cost breakdown for a hypothetical open or close order.
4 properties
OrderForClose
object
10 properties
GetOrderInfoAsset
object
Asset information associated with the order.
6 properties
UnifiedOrderRequest
object
Request payload for creating an order to open or close a position.
17 properties 2 required
UnifiedOrderResponse
object
Response payload after successfully submitting an order.
3 properties
ProblemDetails
object
5 properties
Order
object
16 properties
GetOrderInfoPositionExecution
object
Details of a position execution resulting from the order.
13 properties
InstrumentEligibilityRequest
object
Request payload for checking instrument eligibility. At least one of instrumentIds or symbols must be provided; combined length must not exceed 100 instruments.
3 properties
PortfolioResponse
object
Comprehensive portfolio information including positions, orders, and account status
1 property
ClientPortfolio
object
13 properties
AggregatedPortfolioMirrorTotals
object
Aggregated totals for a copy-trading mirror.
7 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

etoro-trading-demo-api-openapi.yml Raw ↑

Other APIs eToro publishes across the network.

eToro Trading API
eToro Market Data API
eToro Portfolio and Account API
eToro Social and Discovery API
eToro Watchlists API
eToro Price Alerts API
eToro Agent Portfolios API
eToro Agent Portfolios API
eToro Asset Explorer API
eToro Attachments API
eToro Balances API
eToro Cash Accounts API