Building Trading Bot
How can you build your bot on Magpy?
Last updated
How can you build your bot on Magpy?
Last updated
A user has to define their Trigger(The clause upon meeting which, a certain set of rules, called Actions would be executed) and their Actions(The resulting reaction of a Trigger).
In the example shown below, the Trigger is price(“BTC-PERP”) > 35000
which means that our Bot would perform any executables only if the price of Perpetual BTC on the selected/default exchange crosses $35,000.
The corresponding Action is, the user would like to Open a Long/Buy Position with leverage of 2x on dYdX on the asset pair BTC-Perp-USD
The user also has options to set conditions like Take Profit and Stop Loss.
The user has the option to further define their actions. They can choose to pause their Triggers or create additional rules which further align with the user's end goal of bot creation.
All you have to do is Approve your Trigger-Action and let your Bot do the rest of the work for you! Sit back and enjoy!