Katoshi Docs
  • Welcome
  • APP
    • Bots
      • Bot Creation
      • Bot Activation
      • Bot Settings
    • Strategies
      • Strategy Creation
      • Strategy Overview
      • Strategy Settings
      • Strategy Monetization
    • Portfolio
    • Terminal
    • Pricing
    • Alerts
    • Settings
  • API
    • Getting Started
    • Actions
      • Open Position
      • Close Position
      • Market Order
      • Limit Order
      • Stop Market Order
      • Scale Order
      • Modify TP/SL
      • Cancel TP/SL
      • Cancel Order
      • Close All
      • Cancel All
      • Clear All
      • Sell All
      • Set Leverage
      • Start Bot
      • Stop Bot
  • MCP
    • Introduction
    • Quickstart
    • Tools
    • Katoshi Agent Bot
  • Integrations
    • TradingView
Powered by GitBook
On this page
  • Example Request
  • coin*
  • sl_pct
  • tp_pct
  • sl
  • tp
  • delay

Was this helpful?

  1. API
  2. Actions

Modify TP/SL

This section documents the modify_tpsl action

This action is used to set or update your position's Main TP and SL.


Example Request

This example modifies the current open BTC position using a new stop-loss of 0%, and a new take-profit of 5%.

{
  "action": "modify_order",
  "coin": "BTC",
  "tp_pct": 0.05,
  "sl_pct": 0,
  "bot_id": BOT_ID,
  "api_key": "API_KEY"
}

coin*

This required parameter indicates which coin to use for the action.

"coin": "BTC"

sl_pct

This parameter specifies the % from entry to modify your stop-loss.

  • A value of 0.01 is equal to a 1% stop-loss

"sl_pct": 0.01

tp_pct

This parameter specifies the % from entry to modify your take-profit.

  • A value of 0.01 is equal to a 1% take-profit

"tp_pct": 0.01

sl

This parameter specifies a direct price to modify your stop-loss.

"sl": 62500

tp

This parameter specifies a direct price to modify your take-profit.

"tp": 72500

delay

This parameter specifies a number of seconds to wait before triggering the action

  • A value of 5 is equal to a 5 seconds delay

  • Max. allowed delay is 10 seconds

"delay": 5
PreviousScale OrderNextCancel TP/SL

Last updated 1 month ago

Was this helpful?