copy-trading

Update or stop a copy profile

Changed on
patch/v1/copy-trading/profiles/{profileId}

Request

  • Base URL
    https://app.legend.trade/api/rest
  • URL
    https://app.legend.trade/api/rest/v1/copy-trading/profiles/{profileId}
  • Auth
    HTTP bearer

Path parameters

profileIdstring uuid required

Request body

stopboolean
takeProfitPercentnumber nullable

ROI percent. TP dollar target = basis PnL + ROI / 100 × basis allocation. If the basis is null, use allocated amount and 0.

stopLossPercentnumber nullable

Positive magnitude of ROI loss at which to stop copying.

includeStoppingStatusboolean

Response

Successful response

idstring required
user_idstring required
target_idstring required
sub_wallet_addressstring nullable required
allocated_amountnumber required
status'active' | 'stopping' | 'stopped' required
direction'mirror' | 'inverse' required
pnl_share_ratenumber required
take_profit_percentnumber nullable required
stop_loss_percentnumber nullable required
exit_basis_allocatednumber nullable required
exit_basis_pnlnumber nullable required
needs_rebalanceboolean required
force_close_requestedboolean required
created_atstring required
updated_atstring required
stopped_atstring nullable required
copier_equity_baselinenumber nullable required
copier_baseline_updated_atstring nullable 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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status