Paper trading

Move stop-loss / take-profit

Change the stop or target on an OPEN position without closing it. Both are side-checked against the entry price. Pass null to clear one.

post/api/bot/v1/sltp

Request

  • Base URL: https://marginpad.io
  • URL: https://marginpad.io/api/bot/v1/sltp
  • Auth: API key in header X-API-Key

Request body

idstring required
slnumber nullable

null clears the stop.

tpnumber nullable
trail_pctnumber nullable

Trailing stop distance in percent (0.05-50), ratcheted server-side from the best price seen. null switches it off.

Response

ok

Changes

No recorded changes to this operation across all 1 revision of this API.