GET
/
v1
/
portfolios
/
{portfolio_id}
/
margin_conversions
curl --request GET \
  --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/margin_conversions
{
  "conversions": [
    {
      "conversion_details": [
        {
          "symbol": "BTC",
          "tf_balance": "20000",
          "notional_tf_balance": "4000",
          "converted_balance": "1000",
          "notional_converted_balance": "1000",
          "interest_rate": "0.1",
          "conversion_rate": "0.1"
        }
      ],
      "short_collateral": {
        "old_balance": "1000",
        "new_balance": "1000",
        "loan_interest_rate": "0.1",
        "collateral_interest_rate": "0.1"
      },
      "conversion_datetime": "2023-05-01T12:00:00.000Z",
      "portfolio_id": "<string>"
    }
  ]
}

Path Parameters

portfolio_id
string
required

The unique ID of the portfolio

Query Parameters

start_date
string

The start date of the range to query for in RFC3339 format

end_date
string

The end date of the range to query for in RFC3339 format

Response

200
application/json

A successful response.

The response is of type object.