copy-trading

Record a copy trade and auto-post to the feed

Changed on
post/v1/copy-trades

Request

  • Base URL
    https://app.legend.trade/api/rest
  • URL
    https://app.legend.trade/api/rest/v1/copy-trades
  • Auth
    HTTP bearer

Request body

targetUserIdstring uuid required
targetPositionIdstring uuid
symbolstring required
side'LONG' | 'SHORT' required
amountnumber required
marginnumber required
leverageinteger required
entryPricenumber required

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

      added the new optional request property