# Adding and Opening Positions

### Market Orders

1. First, approve the selected margin + potential premiums on the long/short/swap section. **You will need to approve more than your margin(for the premium deposit when a position is added)**&#x20;
2. Enter the desired margin and leverage, and click execute. A modal will pop up that simulates and summarizes your newly added position.&#x20;

<figure><img src="https://20107516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhzaQpygyckQc1GpfmDWt%2Fuploads%2FXMSeDyb9APy9LW87Tlyh%2FScreen%20Shot%202024-01-04%20at%2010.22.40%20PM.png?alt=media&#x26;token=7bbbe0e4-d00d-4853-a95a-18fd678764a1" alt=""><figcaption></figcaption></figure>

The required payment shown is your margin + initial premium deposit.&#x20;

You can increase your initial premium deposit using the settings(using the settings icon) if you want your position to last longer. Otherwise, you can always choose to replenish your deposit in the [position manager](managing-positions).&#x20;

Once click confirm position, a new position will be opened for you or a position will be added to your existing position(same pair, same direction).&#x20;

### Force close&#x20;

Your position will be force closed when your initial premium deposit depletes. You need to increase your deposit [using the position manager](managing-positions) if you want to keep your position open.&#x20;

### Max Leverage

<figure><img src="https://20107516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhzaQpygyckQc1GpfmDWt%2Fuploads%2FefQEtTqP4Y6L9mA1WDDq%2FScreen%20Shot%202024-01-04%20at%2011.33.44%20PM.png?alt=media&#x26;token=c3df6bc2-15fb-4185-8c6c-80516a4ea766" alt=""><figcaption></figcaption></figure>

The leverage slider will show what is the maximum leverage available for your margin, given current liquidity conditions. You will not be able to take a position that exceeds this leverage **unless you lower your margin.**&#x20;



### Limit Orders

Proceed to the limit section, enter the desired price at which your position will be added, enter your desired margin and leverage, and place an order.&#x20;

&#x20;

<figure><img src="https://20107516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhzaQpygyckQc1GpfmDWt%2Fuploads%2FJJGgCK357NoORWwmFrDV%2FScreen%20Shot%202024-01-04%20at%2010.28.55%20PM.png?alt=media&#x26;token=bf57e6ed-213a-4104-9f59-e790e000a0b2" alt=""><figcaption></figcaption></figure>

The order will be at default valid for 100 minutes, but you can modify this in the settings. Note that while you can make your order valid indefinitely, there is a chance that the order might not be filled if it is too old(due to different borrowed liquidity profiles).&#x20;

Similarly to market orders, you will need to deposit a certain amount of premiums for your position will be filled. Your position will borrow from the AMM at the instant the order is filled, so your deposit will remain untouched and will start being used only after it is filled.&#x20;

<figure><img src="https://20107516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhzaQpygyckQc1GpfmDWt%2Fuploads%2FIJDIzKonLZIdvsS92IUq%2FScreen%20Shot%202024-01-04%20at%2010.50.27%20PM.png?alt=media&#x26;token=84f6e98d-1754-4c7c-abea-b1f9173dad04" alt=""><figcaption><p>order tab</p></figcaption></figure>

You can check your order status on the order tab, which will exist until it is filled. When you cancel your order, you will get your premium deposit back.&#x20;

