positions

Get a shareable position by id

Changed on
get/v1/positions/{positionId}

Request

  • Base URL
    https://app.legend.trade/api/rest
  • URL
    https://app.legend.trade/api/rest/v1/positions/{positionId}
  • Auth
    none declared

Path parameters

positionIdstring uuid required

Response

Successful response

idstring required
isOpenboolean required
symbolstring required
side'LONG' | 'SHORT' required
sizenumber required
entryPricenumber required
closedPricenumber nullable required
walletAddressstring required
leverageValueinteger required
unrealizedPnlnumber required
realizedPnlnumber required
openedAtstring required
closedAtstring nullable required
totalFeesnumber required
totalFundingnumber 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

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

    • info

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

    • info

      response property copyTarget/anyOf[AvatarUser]/clan/anyOf[subschema #1]/banner_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property copyTarget/anyOf[AvatarUser]/clan/anyOf[subschema #1]/chat_room_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property copyTarget/anyOf[AvatarUser]/clan/anyOf[subschema #1]/description list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property copyTarget/anyOf[AvatarUser]/clan/anyOf[subschema #1]/image_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property copyTarget/anyOf[AvatarUser]/clan_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

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

    • info

      response property user/activeCopyProfile/anyOf[ActiveCopyProfile]/subWalletAddress list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property user/bio list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property user/clan/anyOf[subschema #1]/banner_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property user/clan/anyOf[subschema #1]/chat_room_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property user/clan/anyOf[subschema #1]/description list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property user/clan/anyOf[subschema #1]/image_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property user/clan_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property user/last_online list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property user/referral_code list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property user/referral_code_alt list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property user/x_username 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