portfolio

Get portfolio history for a single wallet address

Changed on
get/v1/portfolio/history/user

Request

  • Base URL
    https://app.legend.trade/api/rest
  • URL
    https://app.legend.trade/api/rest/v1/portfolio/history/user
  • Auth
    HTTP bearer

Query parameters

walletAddressstring required
daysinteger
minutesinteger
metricType'accountValue' | 'pnl'
singleWalletboolean
includePositionsboolean
includePositionSymbolsboolean

Response

Successful response

Changes

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • info

      response property history/items/positions/items/entry_price list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property history/items/positions/items/leverage_type list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property history/items/positions/items/leverage_value list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property history/items/positions/items/margin_used list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property history/items/positions/items/position_value list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property history/items/positions/items/size list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property history/items/positions/items/unrealized_pnl list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      added the optional property // to the response with the status