Magpy
Search
⌃K

Actions

🤖 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"