9min
Tutorial: Order Trigger Bot
Order Trigger Bots (Trigger Bots) are responsible for marking orders that satisfy the trigger condition, including:
- Trigger Market Orders - Stop Market and Take Profit
- Trigger Limit Orders - Stop Limit and Take Profit Limit
Trigger Bots receive a small compensation for each successfully marked order.
See ๏ปฟ๏ปฟ๏ปฟ๏ปฟKeepers & Decentralised Orderbook for a technical explanation of how the decentralised orderbook (DLOB) and matching incentives work.
Trigger Bots are similar to Matching Bots in that they:
- also maintain a local copy of the Decentralised Limit Orderbook (DLOB);
- do not require the operator to manage collateral; and
- receive a small reward for performing their duties.
The reference implementation of a Trigger Bot is available here.
Follow the instructions at ๏ปฟ๏ปฟKeeper Bots to set the required environment variables and make sure a ClearingHouseUser is initialised.
Start the Trigger Bot:
Shell
|
๏ปฟ
๏ปฟ
The DLOB implementation includes a method for getting orders ready to be triggered:
TypeScript
|
๏ปฟ
TypeScript
|


Updated 20 Oct 2022
Did this page help you?
Yes
No