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
  • Required Parameters
  • Testing & Debugging
  • Perpetual & Spot Actions
  • Perpetual Market Actions
  • Spot Market Actions

Was this helpful?

  1. API

Actions

This section documents the type of actions available to send to your trading bots.

PreviousGetting StartedNextOpen Position

Last updated 23 days ago

Was this helpful?


Send the action's JSON code in the BODY of your POST requests.

For , add the JSON code directly in the alert message field.


Required Parameters

Every request must include these required parameters:

{
  "action": "ACTION_TYPE", 
  "bot_id": BOT_ID,
  "api_key": "API_KEY"
}
  • Replace ACTION_TYPE by the type of action you want to send

  • Replace BOT_ID by your bot's ID, which can be found in your

  • Replace API_KEY with your user API Key, which can be found in the


Testing & Debugging

The can help you generate the JSON code for each request as well as sending signals

Our API endpoints and MCP servers are also available in Postman


Perpetual & Spot Actions

Actions applying to both Perps and Spot market.


Perpetual Market Actions

Actions applying only to Perps market.

The coin parameter for Perps uses a format such as BTC


Spot Market Actions

Actions applying only to Spot market.

The coin parameter for Spot uses a format such as UBTC/USDC or pair ID such as @142

TradingView
Bot Settings
Settings page
Terminal page
Market Order
Limit Order
Scale Order
Cancel Order
Cancel All
Clear All
Stop Bot
Start Bot
Open Position
Close Position
Stop Market Order
Close All
Modify TP/SL
Cancel TP/SL
Set Leverage
Sell All