portfolio

Get aggregate portfolio history across all of a user’s wallets

Changed on
get/v1/portfolio/history/by-user

Request

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

Query parameters

userIdstring uuid required
network'hyperliquid_mainnet' | 'hyperliquid_testnet'
daysinteger
minutesinteger
metricType'accountValue' | 'pnl'
includePositionsboolean
includePositionSymbolsboolean
includeAutocopyTradersboolean

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

    • 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 autocopy_traders/items/avatar_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property autocopy_traders/items/display_name list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property autocopy_traders/items/username list-of-types was narrowed by removing types null from media type application/json of response 200

    • 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 new optional query request parameter includeAutocopyTraders

    • info

      added the optional property to the response with the status

    • info

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