# Add Trigger to Swap function

**URL:** <https://gov.gmx.io/t/add-trigger-to-swap-function/447>\
**Category:** Proposals\
**Created:** [July 18, 2022, 6:14pm UTC](https://gov.gmx.io/t/add-trigger-to-swap-function/447 "2022-07-18T18:14:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![goodfaith](https://sea2.discourse-cdn.com/flex020/user_avatar/gov.gmx.io/goodfaith/32/135_2.png) [@goodfaith](https://gov.gmx.io/u/goodfaith)\
**Post date:** [July 18, 2022, 6:14pm UTC](https://gov.gmx.io/t/add-trigger-to-swap-function/447/1 "2022-07-18T18:14:47Z")

</div>

I propose to add a trigger to the swap functionality. This would allow spot traders to set a threshold to move in or out of different assets based on whatever margin they are comfortable trading at.

---

<div class="post-metadata">

**Author:** ![xdev\_10](https://sea2.discourse-cdn.com/flex020/user_avatar/gov.gmx.io/xdev_10/32/196_2.png) [@xdev\_10](https://gov.gmx.io/u/xdev_10)\
**Post date:** [July 19, 2022, 7:14am UTC](https://gov.gmx.io/t/add-trigger-to-swap-function/447/2 "2022-07-19T07:14:33Z")

</div>

I think that makes sense, will add it to our task list, thank you for the suggestion

---

<div class="post-metadata">

**Author:** ![0x2B14b5](https://sea2.discourse-cdn.com/flex020/user_avatar/gov.gmx.io/0x2b14b5/32/112_2.png) [@0x2B14b5](https://gov.gmx.io/u/0x2B14b5)\
**Post date:** [July 26, 2022, 8:56am UTC](https://gov.gmx.io/t/add-trigger-to-swap-function/447/3 "2022-07-26T08:56:06Z")

</div>

How is a trigger different than a limit order? Sorry, if I’m missing something.

---

<div class="post-metadata">

**Author:** ![xdev\_10](https://sea2.discourse-cdn.com/flex020/user_avatar/gov.gmx.io/xdev_10/32/196_2.png) [@xdev\_10](https://gov.gmx.io/u/xdev_10)\
**Post date:** [July 29, 2022, 4:01am UTC](https://gov.gmx.io/t/add-trigger-to-swap-function/447/4 "2022-07-29T04:01:43Z")

</div>

a limit would be e.g. if the ETH is $2000, and a limit order to swap 1 ETH for 2100 USDC, so it would be executed when the price of ETH increases, a trigger would be to swap 1 ETH for 1950 USDC if the price of ETH reaches $1950, if it were a limit it would be filled immediately but if it is a trigger it would be filled only if the price reaches that value

---

<div class="post-metadata">

**Author:** ![0x2B14b5](https://sea2.discourse-cdn.com/flex020/user_avatar/gov.gmx.io/0x2b14b5/32/112_2.png) [@0x2B14b5](https://gov.gmx.io/u/0x2B14b5)\
**Post date:** [July 31, 2022, 3:01pm UTC](https://gov.gmx.io/t/add-trigger-to-swap-function/447/5 "2022-07-31T15:01:00Z")

</div>

Thank you for the clarification!
