Magpy
  • 🌪️Overview
  • 🐦Magpy
    • 👋Introduction
    • 💁What does Magpy solve
    • 🛣️Roadmap
  • 🤖PRODUCT
    • Account Abstraction
    • 🦜 MagpyBots 🦜
    • Protocol + Token pairs
    • Triggers
    • Actions
  • 🌶️GUIDES
    • 🔐Login
    • ⚙️Account Setting
    • 🏗️Building Trading Bot
    • 👨‍💻Bot Logs
    • 🌎Possibilities of Trigger-Actions
    • 🧠Working of our Bots
  • 🔗LINKS
    • Brand Resources
    • Website
    • Application
    • Telegram
    • Twitter
Powered by GitBook
On this page
  1. GUIDES

Building Trading Bot

How can you build your bot on Magpy?

PreviousAccount SettingNextBot Logs

Last updated 2 years ago

Step 1: Define your Trigger and Action

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.

Step 2: Define your Actions further

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!

Step 3: Approve and Let's goooooo

🌶️
🏗️
🚀