> ## Content Index
> Fetch the complete content index at: https://blog.kryll.io/llms.txt
> Use this file to discover other available public pages before exploring further.

# Long Block
- URL: https://blog.kryll.io/long-block/
- Published: 2022-01-06T17:03:00.000Z
- Updated: 2026-09-21T18:22:28.000Z
- Author: Kryll.io
- Tags: en, #Import 2026-11-03 15:02

![](https://blog.kryll.io/content/images/2026/09/long.png)

**Long Block** —This block is the **order** block allowing to take a long (buying) position in the derivative markets. This block has the same options as the Buy block for the [Spot](https://blog.kryll.io/buy-block/) version of Kryll.

## Block configuration

In the block **parameters** you can configure the type of order and the amount you want to allocate to this position.

![](https://blog.kryll.io/content/images/2026/09/Frame-1000001883.png)

![](https://blog.kryll.io/content/images/2026/09/1-47.png)

First of all, you will be able to define the **amount of funds** you want to allocate to the Longposition. This quantity can be expressed as a percentage of the strategy's **remaining capital** or as a percentage of the strategy's **starting capital**.

### Examples

Let's suppose that your strategy has $300 free from the initial $500\. It will take a long (buying) position of $150 if you configure the block in mode 50% of the remaining capital (50% of $300 remaining).

![](https://blog.kryll.io/content/images/2026/09/Frame-1000001884.png)

Similarly, still assuming that your strategy has $300 free from the initial $500\. It will take a buying position of $250 if you configure the block in mode 50% of the starting capital (50% of the initial $500).

![](https://blog.kryll.io/content/images/2026/09/Frame-1000001885.png)

**Note**: in 'Starting Capital' mode, if the strategy does not have enough funds to take the requested position, it will take one with the maximum margin available from the remaining capital. For example, if we ask our strategy to take a LONG with 90% of the starting capital while it only has $300 left out of the $500 we initially allocated to it, the strategy will only use the remaining $300 instead of the requested $450 (90% of $500).

![](https://blog.kryll.io/content/images/2026/09/2-47.png)

In the **Basic Settings** you can also select the type of orders to be sent to the exchange:

- **Market orders**, which allow you to take a position "no matter the cost".
- **Limit orders,** which allow you to take a position at a fixed price.

**Limit orders** have more than 3 modes:

- The **"Block price"** mode: mode that allows you to take a position at the price of the asset at the moment the block is triggered  
*For example: "Takes a long position on BTC at the current price*
- The **"Custom Price"** mode: mode that allows you to take a position at a pre-determined price.  
*For example: "Take a long position on BTC at $17,000".*
- The "**Deviation**" mode: mode that allows you to take a position at a price deviated by X% from the current price.  
*For example: "Take a long position on BTC at current price +0.5%".*

![](https://blog.kryll.io/content/images/2026/09/Frame-1000001886.png)

![](https://blog.kryll.io/content/images/2026/09/Frame-1000001887.png)

![](https://blog.kryll.io/content/images/2026/09/3-44.png)

The **"Advanced Settings"** tab allows you to set the lifetime of your order. An order can be valid until its completion or it can have a validity period.

- Valid **"until completed"** means that the block will wait indefinitely for the order to be completed before moving on.
- Valid **"until expiry"** means that the order will have an expiration date. This means that if the order is not fully completed by the end of its validity period, it will be aborted and the strategy will continue.  
  
**Note :* it is possible to tell your strategy to change its behavior in case of expiration, for example to execute a particular action, to repeat the purchase, to take another path etc... To do this, select a failover block by clicking on the small viewfinder and selecting the desired block.*

## Visualizer

You can press the "**F**" key to display the paths of the links in case of expired orders (failover).

![](https://blog.kryll.io/content/images/2026/09/Frame-1000001888.png)

---

Join us on our [Telegram](https://t.me/kryll%5Fio?ref=blog.kryll.io) and [Discord](https://discord.gg/PDcHd8K?ref=blog.kryll.io) groups as well as our other social networks to share your opinion and your feedback on the Kryll.io platform.

[![Kryll.io](https://blog.kryll.io/content/images/2023/04/editor-en.png "Create your trading bot with Kryll.io")](https://bit.ly/3gUwqK4?ref=blog.kryll.io) 

**Happy Trading,**

**Website**: [https://kryll.io](https://kryll.io/?ref=blog.kryll.io)  
**Twitter**: [@Kryll\_io](https://twitter.com/kryll%5Fio?ref=blog.kryll.io)  
**Telegram EN**: [https://t.me/kryll\_io](https://t.me/kryll%5Fio?ref=blog.kryll.io)  
**Telegram FR**: [https://t.me/kryll\_fr](https://t.me/kryll%5Ffr?ref=blog.kryll.io)  
**Telegram ES**: [https://t.me/kryll\_e](https://t.me/kryll%5Fes?ref=blog.kryll.io)s  
**Discord**: [https://discord.gg/PDcHd8K](https://discord.gg/PDcHd8K?ref=blog.kryll.io)  
**Reddit**: [https://reddit.com/r/Kryll\_io](https://www.reddit.com/r/Kryll%5Fio/?ref=blog.kryll.io)  
**Facebook**: <https://www.facebook.com/kryll.io>  
**Support**: support@kryll.io