Magpy
Search
K

Actions

The corresponding result when the Bot's Trigger is activated.

🤖 DEX/AMM

Users have access to 6 types of actions.
  • OpenPosition: User can buy/sell the token from Market with SL and TP
  • ClosePosition: Close a position already held
  • SetVariable: User can set their own variable to create bots(MASD, RSI...)
  • CancelOrder: Cancel the order
  • PauseRule: Can pause set logic
  • Bot: Users use multiple bots or pause them that have been utilized in the past

Parameters that can be set within each actions:

Parameter
Explanation
OpenPosition
ClosePosition
CancelOrder
SetVariable
PauseRule
Bot
Side
Buy or Sell
Market
Tradable cryptos ex. BTC-USDCProtocol + Token pairs
Pool
Token Address Pairs for Liquidity Pools
OrderSize
Order Size for Placing Trades
OrdersCount
Number of Trades to Place Orders. The default is 1 (1-200)
StopLoss
Setting a Stop Loss Order
SL_Amount
Setting a Stop Loss Order Quantity. It can be specified as a percentage of the order size or in terms of quantity.
SL_TrigerPrice
Stop Loss Trigger Price.
SL_MaxSlippage
Permissible Slippage in Trades.
TakeProfit
Taking Profit by Closing a Position in Profitable Territory.
TP_Amount
Setting a Take Profit Order Quantity. It can be specified as a percentage of the order size or in terms of quantity.
TP_TriggerPrice
Take Profit Trigger Price.
TP_MaxSlippge
Permissible Slippage in Trades.
Amount
Size of Position to Close.
TrigerPrice
Trigger Price for Placing Trades.
Max_Slippage
Permissible Slippage in Trades.
EntirePosition
Whether to Close All Positions or Not.
VariableName
Variable Name.
Value
Defining a Variable. The same variables that can be used in Trigger can be used.
Rule Number
Action Number in the Rule Being Created, Counted from the Beginning.
Number
Specifying a Number for Time.
Unit
Days, Hours, Minutes
Bot
Specifying the Name of a Previously Constructed Bot.
Action
Specifying the Operation of the Bot. "Start Running" or "Stop Running"

🤖 Perpetual

Users have access to 6 types of actions.
  • OpenPosition: User can buy/sell the token from Market with SL and TP
  • ClosePosition: Close a position already held
  • SetVariable: User can set their own variable to create bots(MASD, RSI...)
  • CancelOrder: Cancel the order
  • PauseRule: Can pause set logic
  • Bot: Users use multiple bots or pause them that have been utilized in the past
  • Place Custom Order: User can set multiple advanced options such like "IOC", "GTT", "FOK", "Reduce Only"

Parameters that can be set within each actions:

Parameter
Explanation
OpenPosition
ClosePosition
CancelOrder
SetVariable
PauseRule
Bot
Place Custom Order
Side
Buy or Sell
Market
Tradable cryptos ex. BTC-USDCProtocol + Token pairs
Leverlage
The numbers of leverlage
OrderSize
Order Size for Placing Trades
Limit Price
A direction to purchase or sell a crypto at a specified price or better
OrdersCount
Number of Trades to Place Orders. The default is 1 (1-200)
StopLoss
Setting a Stop Loss Order
SL_Amount
Setting a Stop Loss Order Quantity. It can be specified as a percentage of the order size or in terms of quantity.
SL_TrigerPrice
Stop Loss Trigger Price.
SL_Limit Price
A direction to purchase or sell a crypto at a specified price or better
SL_MaxSlippage
Permissible Slippage in Trades.
TakeProfit
Taking Profit by Closing a Position in Profitable Territory.
TP_Amount
Setting a Take Profit Order Quantity. It can be specified as a percentage of the order size or in terms of quantity.
TP_TriggerPrice
Take Profit Trigger Price.
TP_Limit Price
A direction to purchase or sell a crypto at a specified price or better
TP_MaxSlippge
Permissible Slippage in Trades.
Amount
Size of Position to Close.
TrigerPrice
Trigger Price for Placing Trades.
Max_Slippage
Permissible Slippage in Trades.
EntirePosition
Whether to Close All Positions or Not.
VariableName
Variable Name.
Value
Defining a Variable. The same variables that can be used in Trigger can be used.
Rule Number
Action Number in the Rule Being Created, Counted from the Beginning.
Number
Specifying a Number for Time.
Unit
Days, Hours, Minutes
Bot
Specifying the Name of a Previously Constructed Bot.
Action
Specifying the Operation of the Bot. "Start Running" or "Stop Running"
Order Type
Select "Market Order" or "Limit Order"
GTT
"Good Till Time" This order will be automatically canceled if it is not executed within a certain period of time.
FOK
"Fill or Kill order" If the entire order quantity cannot be filled immediately, the order will be canceled.
IOC
"Immediate or Cancel order" It is a conditional order that allows the immediate execution of all or part of the specified order quantity at the price specified or a better price, and any unfilled portion of the order is immediately canceled.
Reduce Only
"Reduce-Only" is an option that can be added to a limit order, which is useful when you want to reduce the position size by decreasing or adjusting the contract quantity of the limit order to match the existing position size. This ensures that the position will not unintentionally increase. Reduce-Only is used to prevent a take-profit limit order from being executed as a new position in the opposite direction when the holding position has already been settled, stopped out, or liquidated.
Keep the existing order
-
Cancel and place new order
-
Cancel order if rule is no longer triggered
-
Close the entire position
-
Reduce position leverlage
-