Orders & positions
Order & Position Filtering
Filtering of Orders and Positions
It is always recommended to use testnet/sandbox first!
Filtering of Orders
# cancel all orders that have a custom id STARTING with ANY of the listed ids cancel=order id=SOME_ID,ANOTHER_ID
Checks & Conditionals: click here for more useful syntax snippets!
Filter Support for Orders
| Exchange | fp= | tp=1 | sl=1 | so=1 | ts=1 | t=limit | t=market | t=open | t=close | r=0/1 | iso= | id= | price⁴ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Binance | – | – | – | – | – | ||||||||
| Binance Futures | – | – | |||||||||||
| Bitfinex | ³ | ³ | – | – | – | – | – | ¹ | |||||
| Bybit | ³ | ³ | ³ | ³ | ³ | – | |||||||
| Coinbase Advanced | – | – | – | – | – | – | ¹ | ||||||
| Deribit | ³ | ³ | – | – | – | – | – | – | |||||
| Gemini | – | – | – | – | – | – | – | – | – | – | |||
| Kraken | – | – | – | – | – | – | – | – | – | – | ¹ | ||
| Kraken Futures | – | – | – | – | ¹ | ||||||||
| KuCoin | – | – | – | – | – | ||||||||
| KuCoin Futures | ³ | ³ | ³ | – | ³ | – | |||||||
| OANDA | – | – | – | – | – | – | |||||||
| OKX | – | – | |||||||||||
| Phemex | – | – | – | ||||||||||
| Poloniex | – | – | – | – | – | – | – | – | – | – | ¹ | ||
| SimpleFX | – | – | – | – | – | – | – | – | – | – |
¹ ID cache for all orders² ID cache for stops³ Equal (all stop orders)⁴ via gt=/gte=/lt=/lte= (absolute or relative)
Filter Support for Positions
| Exchange | s=* | fp= | l= | pm= | size%² | pnl%³ | price⁴ |
|---|---|---|---|---|---|---|---|
| Binance Futures | |||||||
| Bitfinex | – | – | – | ||||
| Bybit | – | ||||||
| Deribit | – | – | |||||
| Kraken | – | ||||||
| Kraken Futures | – | – | |||||
| KuCoin Futures | – | – | – | ||||
| OANDA | – | – | ¹ | ¹ | |||
| OKX | – | ||||||
| Phemex | – | ||||||
| Poloniex | – | – | – | – | – | – | – |
| SimpleFX | – | – | ¹ | ¹ |
¹ not for all markets² via minsize=/maxsize= (absolute or relative)³ via minpl=/maxpl= (absolute or relative)⁴ via gt=/gte=/lt=/lte= (absolute or relative)
Attention: Always double check that you are using the right syntax/alert!