Skip to main content
How to create a Margin Market Order
Primex Finance avatar
Written by Primex Finance
Updated over a week ago

To create a Margin Market Order, please follow the steps below.

Step 1. Open the Trading page via the header menu
Trade->Trading

Step 2. In the Trading Widget on the right side choose the Margin trade type and Market order options

NOTE: A Market order is an instant order, meaning that you are ready to buy/sell an asset at the current market price depending on the DEX(s).

Step 3. Select trading pair

In this step, you are supposed to select the asset you want to Sell and the one you want to Buy in exchange by looking for the available assets in the drop-down lists.

Selecting Sell asset

Here you can see available assets for Sell, i.e. the ones you can borrow from Credit Buckets to amplify your position. Under Traded Assets, you see USDC since the USDC Bucket is selected at the top. Under Available in other buckets, there are assets that you can borrow too, and if you select one of them, the Bucket will automatically switch to the required one.

Manual Bucket selection

Another great Primex feature is that the Bucket with the best (lowest) Borrowing Rate is selected automatically. However, you can also choose another Bucket if you click on Change.

For example, you might want to choose the USDC 4 bucket instead of the pre-selected USDC 3 because it has more available liquidity and you need it to open a very large position. In this case, you might ignore a very small difference between the borrowing rates.

Selecting Buy asset

Under Traded Assets, you will see the assets you can buy when borrowing funds to sell from the chosen Credit Bucket. Under Available in other buckets, you see the assets that can be bought when borrowing from other buckets (the Bucket will switch automatically if you click on an asset).

Long vs Short position

It's important to stress that when trading with margin on Primex you can open both Long and Short positions.

In a nutshell, Long is when you anticipate the price of the asset to go up, so you wish to Buy it at a lower price and Sell at a higher price later to make profits.

On the contrary, when opening a Short position, you expect the price of the asset to drop, so you Sell it at some point to Buy it later when it's cheaper.

Let's say we have asset A and asset B. On Primex Long A means Short B and vice versa, so you always Long the Buy asset and Short the Sell asset.

In the example below, to switch between Long and Short WBTC against USDC you can switch Sell and Buy:

Step 4. Set position size and Leverage

Position size

You can either enter the Sell or Buy amount and the other side of the trade will be calculated automatically. Here you can also see the price of the asset against the other side which you can switch by clicking on the green arrows next to it.

To maintain decent money management, it's important to understand what deposit size (margin) and borrowed assets amount you can operate. As you might have guessed, the Sell amount comprises the deposit you wish to lock as a margin from your Wallet or Account balance, and the borrowed assets from the Credit Bucket. At the same time, it depends on the leverage you are going to use. Simply put:

Position Size (Sell amount) = Deposit Size x Leverage

You can either enter the position size manually or click on MAX to use the whole Available which would use your whole balance (Wallet or Account) in the asset being sold.

Leverage and Liquidation Price

Besides your Deposit Size (initial margin) used, the selected Leverage affects the Liquidation Price at which your position will be automatically closed to prevent further losses. The bigger leverage you choose, the more risk there is, because the distance from the current market price to the price against your anticipated market movement shrinks (as the Liquidation Price itself changes).

When changing the Leverage, the order (position) size stays the same while your Deposit Size changes based on the selected Leverage.

NOTE: In the Deposit Size field, you can set an asset different from the borrowed one by selecting it in the asset drop-down. The asset you choose will be then swapped to the borrowed asset with the DEX option of your choice.

To set a Leverage simply move its value on the slider. Primex allows for custom leverage in increments of one-tenth.

Here you may also select the balance you would like to spend in this trade, Wallet, or Account.


Step 5. Choose DEX option

Under More options, you can either choose a specific DEX or one of Primex's DEX aggregation mechanisms.


Step 6. Set the Protocol fee currency

Step 7 (Optional). Set position closing conditions
(Take Profit / Stop Loss)

Usually, traders want to control the risk of their position according to their trading strategy, so they decide upfront when they are going to exit it (fix their profits and limit losses). For this purpose, Primex offers closing conditions you can preset, such as Take Profit and Stop Loss.

NOTE: You can set one or both conditions at the same time as they use different trigger prices.

Take Profit

Take Profit price is the trigger price at which the asset will be sold (for Long) or bought (for Short) to realize some profit, which you can set in %. Alternatively, you can enter a specific price manually.

Stop Loss

Stop Loss price is the trigger price at which the asset will be sold (for Long) or bought (for Short) when the market price goes against a trader's expectation, thus fixing some loss that satisfies their trading strategy. You can either set the loss in % or enter the Stop Loss price manually.

Step 8. Click on Create Market Order and confirm the transaction in your wallet

If you trade with a particular bucket or open a specific type of position for the first time, or didn't provide big enough approval earlier, you need to Approve spending assets in your wallet. If you click the checkbox 'Allow using my balance for further transactions without approval', you will not have to send the approval transaction again.

Expert Mode (Optional)

In the hidden options, there is also another menu called Expert Mode. It is similar to expert mode on DEXs so it may be familiar to you if you are handy with them. It allows you to choose a custom Slippage tolerance and Transaction Deadline before proceeding to position opening.

We recommend using it only if you are confident about what you are doing.

That's it! Your position is open. You can learn about how to close or modify it from the respective links.


Did this answer your question?