eToro · Example Payload

Getcost Request

Social TradingCopy TradingInvestingMarket DataPortfolio ManagementFintechTradingStocksCryptocurrencyETFs

Getcost Request is an example object payload from eToro, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

pathmethodtypeexample

Example Payload

getCost-request.json Raw ↑
{
  "path": "/api/v2/trading/info/costs",
  "method": "post",
  "type": "request",
  "example": {
    "open": {
      "summary": "Cost for opening a position",
      "value": {
        "action": "open",
        "transaction": "buy",
        "instrumentId": 101,
        "settlementType": "cfd",
        "orderType": "mkt",
        "leverage": 2,
        "amount": 1000.0,
        "orderCurrency": "usd"
      }
    },
    "close": {
      "summary": "Cost for closing one or more positions",
      "value": {
        "action": "close",
        "transaction": "sell",
        "positionIds": [
          13902598,
          13902599
        ]
      }
    }
  }
}