OrbStrategy Overview

One of our primary goals with Orbitrum was to enable automated trading strategies. The basic idea is simple.

Whenever an OrbEvent happens, automatically execute an OrbAction.

Just ignore the "Orb" if it confuses you. So whenever an event happens, we execute an action.

To do so we need to define the events, the actions and a way to match both, which is the OrbStrategy.

Example

First step is to define the event:

OrbEvent: A new tradingpair is created on Uniswap V3 Ethereum Mainnet.

This is the event and it has various parameters like the DEX (Uniswap V3), like the blockchain (Ethereum Mainnet) and the event type (new_pool_created).

Step 2 is to define the actions. Actions can be re used by multiple events.

OrbAction 1: Send a notification to me on Telegram.

Pretty simple. Whenever this event happens, send me a message on telegram. Of cause other channels like Discord or Twitter are also supported.

OrbAction 2: Buy the new token for a fixed amount of 0.1 ETH and set stop loss / take profit orders.

The strategy hooks right into the OrbTrader execution engine and you can execute all kind of defi actions there like for example a swap to buy that token. Other actions for more advanced DeFi-strategies like concentrated liquidity providing, delta neutral farming, etc. will be also available.

Step 3 is to define the matching rules. So to connect an event with an action.

OrbEventhandler: When a new tradingpair is created on Uniswap V3 Ethereum Mainnet -> do OrbAction1 and OrbAction2.

So the eventhandler has basically two parts:

  • a filter to match OrbEvents like a new trading pair was created based on the different parameters of the event like the chain, the dex, etc.

  • a sorted list of OrbActions to execute in the given order when this events happens, this can be anything from notifications up to automated trades

Step 4: the last and final step is our OrbStrategy.

OrbStrategy: A group of OrbEventhandlers which describe different Events and which Actions to execute. Additionally the strategy has a set of default values like the buy_amount or the slippage.

We group all the eventhandlers in different strategies, because most trading systems are more complex than just one simple rule. Strategies can span multiple actions, bots and chains. So from simple Sniper strategies on a single DEX up to complicated multipool arbitrage strategies, everything is possible.

In the future you will be able to export strategies and also follow strategies from other traders up to a given amount. And some more interesting features are on the todo list, which we can not disclose now :)

Last updated