portfolio

Get point-in-time live stats for a wallet address

Changed on
get/v1/portfolio/wallet/{address}/stats

Request

  • Base URL
    https://app.legend.trade/api/rest
  • URL
    https://app.legend.trade/api/rest/v1/portfolio/wallet/{address}/stats
  • Auth
    HTTP bearer

Path parameters

addressstring required

Response

Successful response

current_valuenumber required
total_marginnumber required
positions_valuenumber required

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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