# Trouble creating stop -loss order

**URL:** https://gov.1inch.network/t/trouble-creating-stop-loss-order/298
**Category:** 3.0 Developer Portal
**Created:** [September 19, 2021, 7:44pm UTC](https://gov.1inch.network/t/trouble-creating-stop-loss-order/298 "2021-09-19T19:44:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![evris](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@evris](https://gov.1inch.network/u/evris)
#### Post date: [September 19, 2021, 7:44pm UTC](https://gov.1inch.network/t/trouble-creating-stop-loss-order/298/1 "2021-09-19T19:44:34Z")

</div>

Hello,  
I am trying to create a stop loss order using limit orders protocol utils library for nodejs. I found that you can use the LimitOrderPredicateBuilder class from [here](https://docs.1inch.io/limit-order-protocol-utils/limit-order/predicate) to compare a value to the result of a smarts contract’s method call. But 1inch’s [oracle](https://github.com/1inch/offchain-oracle) that provides the exchange pair’s price stated that it should not be used on-chain. Am I missing something? Thank you.
