Get what-if trading cost breakdown
Returns the markup, market spread, transaction fee, overnight fee, over-weekend fee, and SDRT that would apply if the supplied order were executed now against the demo account. For action: open, exactly one of symbol or instrumentId must be provided and leverage must be at least 1. For action: close, positionIds must be non-empty.
Authorizations
eToro OAuth2. Each operation lists the scopes that grant access as separate security requirements (OpenAPI OR semantics): the caller's token only needs ONE of them — you do NOT need all of them. The same scopes back the x-api-key/x-user-key credential pair.
Headers
A unique request identifier.
"85280d96-2400-41e8-8d03-2a3bc755872f"
API key for authentication.
"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"
User-specific authentication key.
"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"
Body
Request payload for creating an order to open or close a position.
The order action type. Possible values: open, close.
open, close "open"
The transaction direction. Possible values: buy, sell, sellShort, buyToCover.
buy, sell, sellShort, buyToCover "buy"
The asset ticker symbol. For open orders provide exactly one of symbol or instrumentId - providing both is rejected.
"AAPL"
The eToro instrument identifier. For open orders provide exactly one of symbol or instrumentId - providing both is rejected.
101
The settlement type. Possible values: cfd, real, realFutures, marginTrade. Required for open orders.
cfd, real, realFutures, marginTrade "cfd"
The order execution type. Possible values: mkt (market), mit (market if touched).
mkt, mit "mkt"
The trigger rate for mit orders. Required for mit orders.
The leverage multiplier to apply. Required for open orders.
2
The monetary amount to invest in the order currency. Mutually exclusive with units and contracts.
1000
The currency for the order amount. Typically usd.
"usd"
The number of units to trade. Mutually exclusive with amount and contracts.
The number of contracts to trade. Mutually exclusive with amount and units.
The stop-loss rate at which the position will automatically close.
1.2
The take-profit rate at which the position will automatically close.
1.5
The stop-loss type. Possible values: fixed, trailing.
fixed, trailing "fixed"
Additional margin to allocate to the position.
List of position IDs to close. Required for close orders.
Response
Cost breakdown resolved successfully.
Cost breakdown for a hypothetical open or close order.