Pular para o conteúdo principal
GET
/
user
/
portfolio
Get Portfolio
curl --request GET \
  --url https://data-api.voxfi.com.br/v1/user/portfolio \
  --header 'x-api-key: <x-api-key>'
{
  "contracts": [
    {
      "event_description": "<string>",
      "event_id": "<string>",
      "event_slug": "<string>",
      "markets": [
        {
          "contracts_no": 123,
          "contracts_yes": 123,
          "market_description": "<string>",
          "market_id": "<string>",
          "market_price_no": 123,
          "market_price_yes": 123,
          "market_value_no": 123,
          "market_value_yes": 123,
          "settled": true,
          "total_cost_no": 123,
          "total_cost_yes": 123,
          "unrealized_pnl_no": 123,
          "unrealized_pnl_yes": 123
        }
      ]
    }
  ],
  "total_cost": 123,
  "total_market_value": 123,
  "total_realized_pnl": 123,
  "total_unrealized_pnl": 123
}

Cabeçalhos

x-api-key
string
obrigatório

API Key

Parâmetros de consulta

eventId
string

Event ID

Resposta

OK

contracts
object[]
total_cost
integer
total_market_value
integer
total_realized_pnl
integer
total_unrealized_pnl
integer