Step-by-step guide to opening and closing trades on the Gains interface.
This guide shows how to open and close trades through the gains.trade interface.To open and close trades on Gains you will need:
A Web3 wallet, such as MetaMask, connected to Gains, or an instant wallet created when you log in.
The network’s gas token in that wallet to pay for transaction fees (e.g. ETH on Arbitrum/Base, POL on Polygon). An instant wallet (Arbitrum only) does not need it.
A supported collateral in that wallet. See Trade Collaterals for availability per chain.
The screenshots on this page follow one example trade: a long on ETH/USD at 25x, from a wallet holding 2,500 USDC. The figures are examples. They show the Modern trade panel, the default for a new browser; the settings (the cog in the top right corner) switch to the Classic one under Trade Panel.
Interface overview
These are the main areas of the trading interface used in this guide.
The trading page on gains.trade.
Favorite pairs: the pairs you starred, with their price. Click one to trade it.
The selected pair: click its name to change pair. Next to it, the price and the market’s figures: oracle price, open interest per side, skew, and the hourly holding fee for longs and shorts.
Chart, followed by the Funding (or Borrowing) and Details tabs. Details shows the pair’s trading hours, leverage range and upcoming news.
Virtual order book (VOB): the liquidity available at each price level, and the recent trades.
Trading panel: where you set up and send an order. Your account’s figures are at the bottom.
Positions, Orders and History: your open positions, your pending limit and stop orders, and your past trades.
Your wallet and the network: the address button opens your account menu, the chain icon next to it the network menu.
Opening a trade
1
Connect
Go to gains.trade and click Login in the top right corner. Choose Instant wallet to log in with Google, an email address or a wallet, with gas covered (and no wallet confirmation on each action when you log in with Google or an email address), or Your wallet to connect MetaMask, Rabby or another wallet yourself. See Gasless trading for the difference.
2
Pick the pair
Click the pair name above the chart. Search for a pair, or browse by category. Click the star next to a pair to add it to your favorites bar.
The pair selector, searching for eth.
3
Set up the trade
In the trading panel, from top to bottom:
Long or Short: the direction.
Leverage: the bar under the direction opens a window where you set it, up to the pair’s maximum. Leverage increases your exposure to price movement.
Order type:
Market: opens immediately at the market price plus spread.
Limit: opens long below the current price or short above the current price once the price you enter is reached.
Stop: opens long above the current price or short below the current price once the price you enter is reached.
Collateral: the token icon next to your balance, on the same row. Your collateral is the maximum amount you risk if liquidated.
Position size: the size of the trade, in the pair’s token or in your collateral (the menu inside the box switches between the two). The slider sets it as a share of your balance. Your collateral is the position size divided by the leverage. The position size must exceed the minimum position size, which can vary by market and network.
Stop Loss / Take Profit: optional levels that help manage risk, set as a price or as a share of your collateral. If no stop loss is set, the trade can be liquidated when it reaches the liquidation threshold.
Max Slippage, in the summary under the trade button: cancels a market order if the price moves too far before the order opens. See How Orders Execute.
The summary also shows the estimated execution price, the liquidation price, your collateral on this pair in this direction before and after the order, the price impact and the opening fee.
25x leverage, set in the leverage window.
A 10,000 USDC long at 25x: 400 USDC of collateral, a stop loss at -50% and a take profit at +50% of it.
4
Approve the collateral, the first time
The first time you trade with a collateral, the trade button reads Approve and the summary USDC not approved (or the collateral you picked). Click Approve and confirm in your wallet: this lets the trading contract use that collateral. You do it once per collateral.
5
Send the order
Click the trade button, which shows the order type and direction: in this example, Market Long. A window sums up the order: check it and click Confirm. Ticking Do not show trade confirmations skips this window from then on.
The order summary before it is sent.
Then confirm in your wallet. With one-click trading, or an instant wallet created with Google or an email address, your wallet does not ask.The order executes a moment later, when the oracle network returns the price (see How Orders Execute). Your trade then appears under Positions.
Following and editing a position
Each open position has a row under Positions: its size and leverage, its collateral, the open price, the current price above the liquidation price, the stop loss above the take profit, the holding fees accrued so far, and the unrealized PnL. On the chart, dashed lines mark its liquidation price (blue), its stop loss (red), its take profit (green) and its open price, with the PnL.
The example trade under Positions.
The same position on the chart.
To change the stop loss or take profit, click them in the row, set the new levels, and click Update. The same window holds the position’s Max Slippage, which also applies when its stop loss or take profit executes (see Max Closing Slippage).
Click the size, the collateral or the stop loss and take profit in the row (a pen in the column heading marks them), or use the menu at the end of the row: Edit Collateral adds or removes collateral, Edit Position Size increases or decreases the position, Edit SL/TP is the window above, and Share PnL makes an image of the trade.
Click Close on the position’s row. The close window opens, set to close 100% of the position. To close part of it, pick a percentage or type an amount instead.The window shows the net PnL, fees included, and what you receive. Open Details for the estimated execution price and the price impact.
Closing the whole position.
2
Confirm
Click Close Trade and confirm in your wallet. Once the close executes, what you receive is sent to your wallet, and the trade moves to History.
The example trade in History, opened then closed.
If you turned off trade confirmations (Do not show trade confirmations in the order window, or Show Trade Confirmation in the settings, which is the same setting), orders go straight to your wallet and Close closes the whole position at once, without the window. The close window still opens when the close would cost more than usual, for example inside the protection close factor window.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Gains Trade","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/gains/FCyVOdVfN-_VqQ5X/logo/gains.png?fit=max\u0026auto=format\u0026n=FCyVOdVfN-_VqQ5X\u0026q=85\u0026s=576fad34f2d6042b81905e874db68f39","dark":"https://mintcdn.com/gains/FCyVOdVfN-_VqQ5X/logo/gains.png?fit=max\u0026auto=format\u0026n=FCyVOdVfN-_VqQ5X\u0026q=85\u0026s=576fad34f2d6042b81905e874db68f39"},"favicon":"https://mintcdn.com/gains/IoupFIThDEsTzJuI/favicon.png?fit=max\u0026auto=format\u0026n=IoupFIThDEsTzJuI\u0026q=85\u0026s=03b08ffe521c388d78506bdb3a3ed215","navbar":{"primary":{"type":"button","label":"Start Trading","href":"https://gains.trade/trading"}},"footer":{"socials":{"x":"https://x.com/gains_trade","github":"https://github.com/GainsNetwork","telegram":"https://t.me/GainsNetwork","discord":"https://discord.gg/CZzb5XQpYQ"}},"seo":{"metatags":{"og:image":"/images/og-image.png","twitter:image":"/images/og-image.png","twitter:card":"summary_large_image"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gains","hasAudioNarration":false,"actualSubdomain":"gains","customDomains":["docs.gains.trade"],"gitSource":{"type":"github","owner":"gainsnetwork-org","repo":"gains-misc-monorepo","deployBranch":"main","contentDirectory":"docs/mintlify-docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afafb276b660d83a8fd7810","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"Developers","count":243},{"language":"default","tag":"Technical Reference","count":114},{"language":"default","tag":"Contracts","count":111},{"language":"default","tag":"API Reference","count":74},{"language":"default","tag":"Interfaces","count":50},{"language":"default","tag":"Libraries","count":40},{"language":"default","tag":"Trading API","count":37},{"language":"default","tag":"Reference","count":28},{"language":"default","tag":"Traders","count":27},{"language":"default","tag":"Trading Interface","count":20}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@media (max-width: 1023px){#navbar>div.absolute{background-color:rgb(var(--background-light))!important;-webkit-backdrop-filter:blur(8px)!important;backdrop-filter:blur(8px)!important;transition:none!important}.dark #navbar>div.absolute,html.dark #navbar>div.absolute{background-color:rgb(var(--background-dark))!important}}"}],"page":{"pagePath":"gtrade-leveraged-trading/opening-closing-trades","slug":"/gtrade-leveraged-trading/opening-closing-trades","pageMetadata":{"title":"Opening / Closing trades","description":"Step-by-step guide to opening and closing trades on the Gains interface.","href":"/gtrade-leveraged-trading/opening-closing-trades"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Step-by-step guide to opening and closing trades on the Gains interface.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Columns,Frame,Heading,Note,OptimizedImage,Step,Steps}=_components;if(!Columns)_missingMdxReference(`Columns`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`This guide shows how to open and close trades through the `,_jsx(_components.a,{href:`https://gains.trade/trading`,children:`gains.trade`}),` interface.`]}),`\n`,_jsx(_components.p,{children:`To open and close trades on Gains you will need:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`A Web3 wallet, such as `,_jsx(_components.a,{href:`https://metamask.io/`,children:`MetaMask`}),`, connected to Gains, or an `,_jsx(_components.a,{href:`/gtrade-leveraged-trading/gasless-trading`,children:`instant wallet`}),` created when you log in.`]}),`\n`,_jsx(_components.li,{children:`The network’s gas token in that wallet to pay for transaction fees (e.g. ETH on Arbitrum/Base, POL on Polygon). An instant wallet (Arbitrum only) does not need it.`}),`\n`,_jsxs(_components.li,{children:[`A supported collateral in that wallet. See `,_jsx(_components.a,{href:`/gtrade-leveraged-trading/trade-collaterals`,children:`Trade Collaterals`}),` for availability per chain.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The screenshots on this page follow one example trade: a long on ETH/USD at 25x, from a wallet holding 2,500 USDC. The figures are examples. They show the `,_jsx(_components.strong,{children:`Modern`}),` trade panel, the default for a new browser; the settings (the cog in the top right corner) switch to the Classic one under `,_jsx(_components.strong,{children:`Trade Panel`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`interface-overview`,children:`Interface overview`}),`\n`,_jsx(_components.p,{children:`These are the main areas of the trading interface used in this guide.`}),`\n`,_jsx(Frame,{caption:`The trading page on gains.trade.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/interface-overview.png?fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=839e172ab9b289223b5322b07f7aa2a2`,alt:`The gains.trade trading page with seven numbered areas: 1 the favorite pairs bar, 2 the selected pair and its market figures, 3 the chart, 4 the virtual order book, 5 the trading panel, 6 the Positions, Orders and History tabs, 7 the wallet and network buttons.`,\"data-og-width\":`2880`,width:`2880`,\"data-og-height\":`1800`,height:`1800`,\"data-path\":`images/opening-closing-trades/interface-overview.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/interface-overview.png?w=280\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=4a2cbf929cf28119c73e0a14bdfa41bd 280w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/interface-overview.png?w=560\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=606d1e0b7b23bb00450a8233841a2050 560w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/interface-overview.png?w=840\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=7083bea4df2a6706876ca4ab6c214ebc 840w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/interface-overview.png?w=1100\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=2d6d8292069e8de8fdac3a58d4af2b24 1100w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/interface-overview.png?w=1650\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=bf441c5af5a41f01090209af44954156 1650w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/interface-overview.png?w=2500\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=bae01a039cba68fecbd603adacd8fd40 2500w`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Favorite pairs`}),`: the pairs you starred, with their price. Click one to trade it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The selected pair`}),`: click its name to change pair. Next to it, the price and the market’s figures: oracle price, open interest per side, skew, and the hourly holding fee for longs and shorts.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Chart`}),`, followed by the `,_jsx(_components.strong,{children:`Funding`}),` (or `,_jsx(_components.strong,{children:`Borrowing`}),`) and `,_jsx(_components.strong,{children:`Details`}),` tabs. Details shows the pair’s trading hours, leverage range and upcoming news.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Virtual order book`}),` (VOB): the liquidity available at each price level, and the recent trades.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Trading panel`}),`: where you set up and send an order. Your account’s figures are at the bottom.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Positions`}),`, `,_jsx(_components.strong,{children:`Orders`}),` and `,_jsx(_components.strong,{children:`History`}),`: your open positions, your pending limit and stop orders, and your past trades.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Your wallet and the network`}),`: the address button opens your account menu, the chain icon next to it the network menu.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`opening-a-trade`,children:`Opening a trade`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Connect`,children:[_jsxs(_components.p,{children:[`Go to `,_jsx(_components.a,{href:`https://gains.trade/trading`,children:`gains.trade`}),` and click `,_jsx(_components.strong,{children:`Login`}),` in the top right corner. Choose `,_jsx(_components.strong,{children:`Instant wallet`}),` to log in with Google, an email address or a wallet, with gas covered (and no wallet confirmation on each action when you log in with Google or an email address), or `,_jsx(_components.strong,{children:`Your wallet`}),` to connect MetaMask, Rabby or another wallet yourself. See `,_jsx(_components.a,{href:`/gtrade-leveraged-trading/gasless-trading`,children:`Gasless trading`}),` for the difference.`]}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/gasless-trading/login.png?fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=ec1a5fff956a27af5c8999fac492fd85`,width:`424`,alt:`The Login to Gains window with two options: Instant wallet, tagged Fastest, and Your wallet.`,\"data-og-width\":`848`,\"data-og-height\":`628`,\"data-path\":`images/gasless-trading/login.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/gasless-trading/login.png?w=280\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=188500fff567fcf1917f06a5b10e7250 280w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/gasless-trading/login.png?w=560\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=a6d19b582d8dc07064baa47ae1a9b631 560w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/gasless-trading/login.png?w=840\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=9a53ae673f0b8986daa92bc486e1f172 840w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/gasless-trading/login.png?w=1100\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=646c48608fff22a936c3057abeaad2f2 1100w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/gasless-trading/login.png?w=1650\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=b230d0b55ac6c6fe1b2d5fe5d6d4d557 1650w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/gasless-trading/login.png?w=2500\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=f8319c25b105a080608dd1627886c67b 2500w`})})]}),_jsxs(Step,{title:`Pick the pair`,children:[_jsx(_components.p,{children:`Click the pair name above the chart. Search for a pair, or browse by category. Click the star next to a pair to add it to your favorites bar.`}),_jsx(Frame,{caption:`The pair selector, searching for eth.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/pair-selector.png?fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=8b61cc3f2b53214329ffa87d44c1f8d2`,alt:`The pair selector open under ETH/USD with eth typed in the search field, listing ETH/USD, ETHFI/USD, ETHDEGEN/USD and other matching pairs with their price, 24h change, volume, open interest and holding fees.`,\"data-og-width\":`2004`,width:`2004`,\"data-og-height\":`1112`,height:`1112`,\"data-path\":`images/opening-closing-trades/pair-selector.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/pair-selector.png?w=280\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=debe869d47d7101183b02cab8bffbbc3 280w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/pair-selector.png?w=560\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=4e25304ffac3e17a966a63f5d38f1bac 560w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/pair-selector.png?w=840\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=6c241c1d2d876be03ed5bddb7dfbb48e 840w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/pair-selector.png?w=1100\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=23931354c95b11350bc74e916dfe2883 1100w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/pair-selector.png?w=1650\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=70e8b7a46b209a683a5a21ac13537538 1650w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/pair-selector.png?w=2500\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=9d383a89fe86ba3e9e175774d55b648d 2500w`})})]}),_jsxs(Step,{title:`Set up the trade`,children:[_jsx(_components.p,{children:`In the trading panel, from top to bottom:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Long`}),` or `,_jsx(_components.strong,{children:`Short`}),`: the direction.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Leverage`}),`: the bar under the direction opens a window where you set it, up to the pair’s maximum. Leverage increases your exposure to price movement.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Order type`}),`:`,`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Market`}),`: opens immediately at the market price plus spread.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Limit`}),`: opens long below the current price or short above the current price once the price you enter is reached.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Stop`}),`: opens long above the current price or short below the current price once the price you enter is reached.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Collateral`}),`: the token icon next to your balance, on the same row. Your collateral is the maximum amount you risk if liquidated.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Position size`}),`: the size of the trade, in the pair’s token or in your collateral (the menu inside the box switches between the two). The slider sets it as a share of your balance. Your collateral is the position size divided by the leverage. The position size must exceed the minimum position size, which can vary by market and network.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Stop Loss / Take Profit`}),`: optional levels that help manage risk, set as a price or as a share of your collateral. If no stop loss is set, the trade can be liquidated when it reaches the `,_jsx(_components.a,{href:`/gtrade-leveraged-trading/fees-and-spread#liquidation-thresholds`,children:`liquidation threshold`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Max Slippage`}),`, in the summary under the trade button: cancels a market order if the price moves too far before the order opens. See `,_jsx(_components.a,{href:`/gtrade-leveraged-trading/how-orders-execute#market-orders`,children:`How Orders Execute`}),`.`]}),`\n`]}),_jsxs(_components.p,{children:[`The summary also shows the estimated execution price, the liquidation price, your collateral on this pair in this direction before and after the order, the `,_jsx(_components.a,{href:`/gtrade-leveraged-trading/fees-and-spread#price-impact`,children:`price impact`}),` and the opening fee.`]}),_jsxs(Columns,{cols:2,children:[_jsx(Frame,{caption:`25x leverage, set in the leverage window.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/leverage.png?fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=a71ab8ef844a03c2c0b671a441a6517e`,alt:`The Adjust Leverage window for ETH, with a slider from 1.1x to 500x and the value 25 typed in, and a Confirm button.`,\"data-og-width\":`880`,width:`880`,\"data-og-height\":`700`,height:`700`,\"data-path\":`images/opening-closing-trades/leverage.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/leverage.png?w=280\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=35263879b4e54d596cc4a46caad18a7d 280w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/leverage.png?w=560\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=30755baec8bfa2645c156fbdc6d4ddba 560w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/leverage.png?w=840\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=c14bef2f43c27d5c8aab65bfd33fcc99 840w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/leverage.png?w=1100\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=3486a2a1faec9deb3564121001b28302 1100w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/leverage.png?w=1650\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=e58e33e201cc2cfed05e5e8b9739cb50 1650w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/leverage.png?w=2500\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=8a8cee7820300b734e25e991660eed13 2500w`})}),_jsx(Frame,{caption:`A 10,000 USDC long at 25x: 400 USDC of collateral, a stop loss at -50% and a take profit at +50% of it.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/trade-panel.png?fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=462c30fb44257c34477b72faefa5f26b`,alt:`The trading panel: Long, 25x, Market, a balance of 2,500 USDC, a position size of 10000 USDC, a stop loss at -50% (-200 USDC) and a take profit at 50% (+200 USDC), the Market Long button, then the summary: estimated execution price, liquidation price, position size in ETH, collateral 0 to 400 USDC, max slippage 1%, price impact and fees of 3.5 USDC.`,\"data-og-width\":`666`,width:`666`,\"data-og-height\":`1744`,height:`1744`,\"data-path\":`images/opening-closing-trades/trade-panel.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/trade-panel.png?w=280\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=d2fa2ee0dc3a25ba27fde7207516d0d3 280w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/trade-panel.png?w=560\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=d29b17fe54ddb1657c7821ab22f1c147 560w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/trade-panel.png?w=840\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=03604daabcbc02f4bd5f2e6bdf16cdb1 840w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/trade-panel.png?w=1100\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=7bb0979dd0fe3ded98089bf67fcd081f 1100w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/trade-panel.png?w=1650\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=924a18b4f633ee5ebecca31a51fd164a 1650w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/trade-panel.png?w=2500\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=7f6f6861eb48b81db26f164bfefe86d3 2500w`})})]})]}),_jsxs(Step,{title:`Approve the collateral, the first time`,children:[_jsxs(_components.p,{children:[`The first time you trade with a collateral, the trade button reads `,_jsx(_components.strong,{children:`Approve`}),` and the summary `,_jsx(_components.strong,{children:`USDC not approved`}),` (or the collateral you picked). Click `,_jsx(_components.strong,{children:`Approve`}),` and confirm in your wallet: this lets the trading contract use that collateral. You do it once per collateral.`]}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/approve.png?fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=c3bac2f3e302e3cb10a21b063b336da1`,width:`333`,alt:`The Approve button of the trading panel, above the summary reading ETH/USD, USDC not approved.`,\"data-og-width\":`666`,\"data-og-height\":`194`,\"data-path\":`images/opening-closing-trades/approve.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/approve.png?w=280\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=53f55ce553f579ada4ac8741cd32840b 280w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/approve.png?w=560\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=08fe05aaceb328797182f0987f029a99 560w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/approve.png?w=840\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=76ed8666c02fcb1e9bb24b53ef52f959 840w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/approve.png?w=1100\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=1e226b3866d27b225945459220c202c9 1100w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/approve.png?w=1650\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=fc9e6859d540d4bf0f112b57aa221cf1 1650w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/approve.png?w=2500\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=2122fcaffebb6254f41eeae8fe23894b 2500w`})})]}),_jsxs(Step,{title:`Send the order`,children:[_jsxs(_components.p,{children:[`Click the trade button, which shows the order type and direction: in this example, `,_jsx(_components.strong,{children:`Market Long`}),`. A window sums up the order: check it and click `,_jsx(_components.strong,{children:`Confirm`}),`. Ticking `,_jsx(_components.strong,{children:`Do not show trade confirmations`}),` skips this window from then on.`]}),_jsx(Frame,{caption:`The order summary before it is sent.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/confirm.png?fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=fd443f0d5022b00013b8436d8d9f3e78`,width:`400`,alt:`The order confirmation window for an ETH/USD long: collateral 400 USDC, leverage 25x, position size 10,000 USDC (4.126 ETH), estimated open price, max slippage 1%, price impact, liquidation price, stop loss, take profit and fees of 3.5 USDC, a Do not show trade confirmations switch and a Confirm button.`,\"data-og-width\":`800`,\"data-og-height\":`1016`,\"data-path\":`images/opening-closing-trades/confirm.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/confirm.png?w=280\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=0abf1e14c100812f063844154083439f 280w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/confirm.png?w=560\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=59040793b429bace10dddc9f261ab845 560w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/confirm.png?w=840\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=4695617f05011af24a3ce7abd5ef0542 840w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/confirm.png?w=1100\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=ba8cf1a32c8f123126796520a2dbf4f6 1100w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/confirm.png?w=1650\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=adb73749006a3cf487fff5bf60d00d01 1650w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/confirm.png?w=2500\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=6755a69d00f33f2927b8db7513de8b1a 2500w`})}),_jsxs(_components.p,{children:[`Then confirm in your wallet. With `,_jsx(_components.a,{href:`/gtrade-leveraged-trading/one-click-trading-1ct`,children:`one-click trading`}),`, or an instant wallet created with Google or an email address, your wallet does not ask.`]}),_jsxs(_components.p,{children:[`The order executes a moment later, when the oracle network returns the price (see `,_jsx(_components.a,{href:`/gtrade-leveraged-trading/how-orders-execute`,children:`How Orders Execute`}),`). Your trade then appears under `,_jsx(_components.strong,{children:`Positions`}),`.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`following-and-editing-a-position`,children:`Following and editing a position`}),`\n`,_jsxs(_components.p,{children:[`Each open position has a row under `,_jsx(_components.strong,{children:`Positions`}),`: its size and leverage, its collateral, the open price, the current price above the liquidation price, the stop loss above the take profit, the holding fees accrued so far, and the unrealized PnL. On the chart, dashed lines mark its liquidation price (blue), its stop loss (red), its take profit (green) and its open price, with the PnL.`]}),`\n`,_jsx(Frame,{caption:`The example trade under Positions.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/position-row.png?fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=720de34f3378f5a8ccb0d780c5fcf0a6`,alt:`The Positions tab with one row: ETH/USD 25x long, 10,000 USDC (4.13 ETH), 400 USDC of collateral, the open price, the current and liquidation prices, the stop loss and take profit, the holding fees and the unrealized PnL, then a share icon, a Close button and a menu.`,\"data-og-width\":`2222`,width:`2222`,\"data-og-height\":`290`,height:`290`,\"data-path\":`images/opening-closing-trades/position-row.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/position-row.png?w=280\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=aa5e78cc1afeb11aa88987afcf8e7322 280w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/position-row.png?w=560\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=0042d1e0a0a228f0f85114766ae09524 560w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/position-row.png?w=840\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=01bd654ce700df7e9027dffde4cd6565 840w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/position-row.png?w=1100\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=f63bed2258380effd837734e7f655146 1100w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/position-row.png?w=1650\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=46505d4a851c2e74e3d9fe830ffd3d23 1650w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/position-row.png?w=2500\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=ee03f1fb671ba5bd692fdb6612a9f32d 2500w`})}),`\n`,_jsx(Frame,{caption:`The same position on the chart.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/chart-lines.png?fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=c951cdf91d9179e93cd9a392123d1342`,alt:`The ETH/USD chart with four dashed lines: TP LONG at the take profit, the open price with the PnL label, SL LONG at the stop loss, and LIQ LONG at the liquidation price.`,\"data-og-width\":`1582`,width:`1582`,\"data-og-height\":`906`,height:`906`,\"data-path\":`images/opening-closing-trades/chart-lines.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/chart-lines.png?w=280\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=659735211a94d8741324c8ab8c806484 280w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/chart-lines.png?w=560\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=aabc63cda54c877443f2249da5794e77 560w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/chart-lines.png?w=840\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=f0311fb39cad843d490a1a3ef4f20c9a 840w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/chart-lines.png?w=1100\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=a6776609084defdd819ad895ba7f60aa 1100w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/chart-lines.png?w=1650\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=bc4df9bea3a2984a6c19cd26e86bf812 1650w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/chart-lines.png?w=2500\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=fe21e14955a283b40e7c9b97f0204189 2500w`})}),`\n`,_jsxs(_components.p,{children:[`To change the stop loss or take profit, click them in the row, set the new levels, and click `,_jsx(_components.strong,{children:`Update`}),`. The same window holds the position’s `,_jsx(_components.strong,{children:`Max Slippage`}),`, which also applies when its stop loss or take profit executes (see `,_jsx(_components.a,{href:`/gtrade-leveraged-trading/how-orders-execute#max-closing-slippage`,children:`Max Closing Slippage`}),`).`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/how-orders-execute/edit-sl-tp.png?fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=28309bf5d36ece99259793c6d405d142`,width:`420`,alt:`The Edit SL/TP window: take profit and stop loss prices with their percentage of collateral and sliders, an Update button, the current and liquidation prices, and the Max Slippage field.`,\"data-og-width\":`840`,\"data-og-height\":`1296`,\"data-path\":`images/how-orders-execute/edit-sl-tp.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/how-orders-execute/edit-sl-tp.png?w=280\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=496fd50954ff815fe6db35aedd990e51 280w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/how-orders-execute/edit-sl-tp.png?w=560\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=b1875a836751ccbd212b24345f0b7eaf 560w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/how-orders-execute/edit-sl-tp.png?w=840\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=54e0101bb916b5c68555e34c9149b56a 840w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/how-orders-execute/edit-sl-tp.png?w=1100\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=89cfce56b2420e612c3d3f9c71a3c915 1100w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/how-orders-execute/edit-sl-tp.png?w=1650\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=dd864fa1335d654f6010d3224afdc57e 1650w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/how-orders-execute/edit-sl-tp.png?w=2500\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=371ca1834d9c66598a61bf79d4237392 2500w`})}),`\n`,_jsxs(_components.p,{children:[`Click the size, the collateral or the stop loss and take profit in the row (a pen in the column heading marks them), or use the menu at the end of the row: `,_jsx(_components.strong,{children:`Edit Collateral`}),` adds or removes collateral, `,_jsx(_components.strong,{children:`Edit Position Size`}),` increases or decreases the position, `,_jsx(_components.strong,{children:`Edit SL/TP`}),` is the window above, and `,_jsx(_components.strong,{children:`Share PnL`}),` makes an image of the trade.`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/position-menu.png?fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=52578add25224cc551d164cdee8a33d0`,width:`327`,alt:`The menu at the end of the position row: Edit Collateral, Edit Position Size, Edit SL/TP and Share PnL.`,\"data-og-width\":`654`,\"data-og-height\":`418`,\"data-path\":`images/opening-closing-trades/position-menu.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/position-menu.png?w=280\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=73377f532cf4a634e4cdc880f209f189 280w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/position-menu.png?w=560\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=26439e0c5f3454e3489d0a172f884ffe 560w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/position-menu.png?w=840\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=0cd78e2556053e89a54d586a57271f86 840w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/position-menu.png?w=1100\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=9c6e54b4350686e583bee6a2d90e8873 1100w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/position-menu.png?w=1650\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=c3834821b7e2a343024c1915625446c7 1650w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/position-menu.png?w=2500\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=3436e93e088b0906efab1a5411662c8c 2500w`})}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/gtrade-leveraged-trading/fees-and-spread`,children:`Fees \u0026 Spread`}),` for more details on fees.`]}),`\n`,_jsx(Heading,{level:`2`,id:`closing-a-trade`,children:`Closing a trade`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Click Close`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Close`}),` on the position’s row. The close window opens, set to close 100% of the position. To close part of it, pick a percentage or type an amount instead.`]}),_jsxs(_components.p,{children:[`The window shows the net PnL, fees included, and what you receive. Open `,_jsx(_components.strong,{children:`Details`}),` for the estimated execution price and the price impact.`]}),_jsx(Frame,{caption:`Closing the whole position.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/close.png?fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=45dfe89b770f3fd3324824c8956bc232`,width:`420`,alt:`The Edit Position Size window on Decrease, with 100% of the position selected, the net PnL, the liquidation price, a Details toggle, the amount to receive in USDC and a Close Trade button.`,\"data-og-width\":`840`,\"data-og-height\":`1010`,\"data-path\":`images/opening-closing-trades/close.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/close.png?w=280\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=3d3ca0e43d54f168def15d9db59d8407 280w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/close.png?w=560\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=28fc3efaf54ebc95af0a684dfa62b66f 560w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/close.png?w=840\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=7923b8be499b905f55decaa2decd7bfa 840w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/close.png?w=1100\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=e80bb09452ebe0778d34837a8461e085 1100w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/close.png?w=1650\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=3f9c9bf28315bb29f1c70b62f652a265 1650w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/close.png?w=2500\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=2e39cdbafca1a04bca767ca8411e5196 2500w`})})]}),_jsxs(Step,{title:`Confirm`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Close Trade`}),` and confirm in your wallet. Once the close executes, what you receive is sent to your wallet, and the trade moves to `,_jsx(_components.strong,{children:`History`}),`.`]}),_jsx(Frame,{caption:`The example trade in History, opened then closed.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/history.png?fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=2f0e02bb06cc989f7a582e3b62f597c2`,alt:`The History tab with two ETH/USD rows: the market close, with its price and PnL, and the market open at 25x.`,\"data-og-width\":`2222`,width:`2222`,\"data-og-height\":`424`,height:`424`,\"data-path\":`images/opening-closing-trades/history.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/history.png?w=280\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=91197dafdd276acd5cb725751c3108ed 280w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/history.png?w=560\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=fba31d1f7cfaccfd5d3eae7d0657d6a6 560w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/history.png?w=840\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=8006c90d9f613e4a6026e7cf253cbcbc 840w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/history.png?w=1100\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=961167be769464890e271a288dbfb51f 1100w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/history.png?w=1650\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=1cdbb9bc396a46ee56e45df4b1d705c8 1650w, https://mintcdn.com/gains/n5lJsLR2vRIl2PKi/images/opening-closing-trades/history.png?w=2500\u0026fit=max\u0026auto=format\u0026n=n5lJsLR2vRIl2PKi\u0026q=85\u0026s=dabb80620abe9dc2806f3e29fb1b6d23 2500w`})})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`If you turned off trade confirmations (`,_jsx(_components.strong,{children:`Do not show trade confirmations`}),` in the order window, or `,_jsx(_components.strong,{children:`Show Trade Confirmation`}),` in the settings, which is the same setting), orders go straight to your wallet and `,_jsx(_components.strong,{children:`Close`}),` closes the whole position at once, without the window. The close window still opens when the close would cost more than usual, for example inside the `,_jsx(_components.a,{href:`/gtrade-leveraged-trading/fees-and-spread#protection-close-factor`,children:`protection close factor`}),` window.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Opening / Closing trades","description":"Step-by-step guide to opening and closing trades on the Gains interface.","href":"/gtrade-leveraged-trading/opening-closing-trades"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Interface overview","slug":"interface-overview","depth":2,"children":[]},{"title":"Opening a trade","slug":"opening-a-trade","depth":2,"children":[]},{"title":"Following and editing a position","slug":"following-and-editing-a-position","depth":2,"children":[]},{"title":"Closing a trade","slug":"closing-a-trade","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"gains","siteName":"Gains Trade","title":"Opening / Closing trades - Gains Trade","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-19T14:03:59.615Z","originalFileLocation":"gtrade-leveraged-trading/opening-closing-trades.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Step-by-step guide to opening and closing trades on the Gains interface.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Gains Trade\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gains/jCqANtqofKPj1YVA/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/gains/jCqANtqofKPj1YVA/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gains/jCqANtqofKPj1YVA/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gains/jCqANtqofKPj1YVA/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gains/jCqANtqofKPj1YVA/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gains/jCqANtqofKPj1YVA/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gains/jCqANtqofKPj1YVA/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gains/jCqANtqofKPj1YVA/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gains/jCqANtqofKPj1YVA/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Opening / Closing trades - Gains Trade\">\u003cmeta data-mint-head property=\"og:description\" content=\"Step-by-step guide to opening and closing trades on the Gains interface.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Gains Trade\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gains.trade/gtrade-leveraged-trading/opening-closing-trades\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gains.mintlify.site/images/og-image.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Opening / Closing trades - Gains Trade\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Step-by-step guide to opening and closing trades on the Gains interface.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gains.mintlify.site/images/og-image.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/gains/jCqANtqofKPj1YVA/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Gains Trade\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gains.trade/gtrade-leveraged-trading/opening-closing-trades\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/gtrade-leveraged-trading/opening-closing-trades.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gains.trade/#organization\",\"name\":\"Gains Trade\",\"url\":\"https://docs.gains.trade\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gains/FCyVOdVfN-_VqQ5X/logo/gains.png?fit=max\u0026auto=format\u0026n=FCyVOdVfN-_VqQ5X\u0026q=85\u0026s=576fad34f2d6042b81905e874db68f39\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gains.trade#website\",\"name\":\"Gains Trade\",\"url\":\"https://docs.gains.trade\",\"publisher\":{\"@id\":\"https://docs.gains.trade/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gains.trade/gtrade-leveraged-trading/opening-closing-trades#webpage\",\"url\":\"https://docs.gains.trade/gtrade-leveraged-trading/opening-closing-trades\",\"name\":\"Opening / Closing trades\",\"description\":\"Step-by-step guide to opening and closing trades on the Gains interface.\",\"dateModified\":\"2026-10-19T14:03:59.615Z\",\"isPartOf\":{\"@id\":\"https://docs.gains.trade#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gains.trade/gtrade-leveraged-trading/opening-closing-trades#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gains.trade/gtrade-leveraged-trading/opening-closing-trades#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Trading Interface\",\"item\":\"https://docs.gains.trade\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Opening / Closing trades\",\"item\":\"https://docs.gains.trade/gtrade-leveraged-trading/opening-closing-trades\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.gains.trade/gtrade-leveraged-trading/opening-closing-trades#article\",\"headline\":\"Opening / Closing trades\",\"name\":\"Opening / Closing trades\",\"description\":\"Step-by-step guide to opening and closing trades on the Gains interface.\",\"url\":\"https://docs.gains.trade/gtrade-leveraged-trading/opening-closing-trades\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gains.trade/gtrade-leveraged-trading/opening-closing-trades#webpage\"},\"image\":\"https://docs.gains.trade/images/og-image.png\",\"dateModified\":\"2026-10-19T14:03:59.615Z\",\"publisher\":{\"@id\":\"https://docs.gains.trade/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gains.trade#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Gains Trade\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Gains Trade\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/gtrade-leveraged-trading/opening-closing-trades.md","siteName":"Gains Trade","nav":{"global":null,"tabs":[{"tab":"Traders","groups":[{"group":"Trading Interface","icon":"chart-line","pages":[{"title":"Start trading on Gains","sidebarTitle":"Start trading","href":""},{"group":"Setting up to trade","pages":[{"title":"Setting up to trade","href":"/gtrade-leveraged-trading/setting-up-to-trade"},{"title":"Polygon Network Setup","href":"/gtrade-leveraged-trading/setting-up-to-trade/polygon-network-setup"},{"title":"Arbitrum Network Setup","description":"Add Arbitrum to your wallet and fund it to trade on Gains.","href":"/gtrade-leveraged-trading/setting-up-to-trade/arbitrum-network-setup"}]},{"title":"Opening / Closing trades","href":"/gtrade-leveraged-trading/opening-closing-trades"},{"title":"How Orders Execute","description":"How Gains prices and executes market orders, stop losses, take profits and liquidations, and what still works when a pair or the protocol is restricted.","href":"/gtrade-leveraged-trading/how-orders-execute"},{"group":"Trade Collaterals","pages":[{"title":"Trade Collaterals","href":"/gtrade-leveraged-trading/trade-collaterals"},{"title":"Spotlight: WETH","href":"/gtrade-leveraged-trading/trade-collaterals/spotlight-weth"}]},{"group":"Asset classes","pages":[{"title":"Cryptocurrencies","href":"/gtrade-leveraged-trading/asset-classes/cryptocurrencies"},{"title":"Forex","href":"/gtrade-leveraged-trading/asset-classes/forex"},{"title":"Commodities","href":"/gtrade-leveraged-trading/asset-classes/commodities"},{"title":"Stocks","href":"/gtrade-leveraged-trading/asset-classes/stocks"},{"title":"Indices","href":"/gtrade-leveraged-trading/asset-classes/indices"}]},{"title":"Fees \u0026 Spread","href":"/gtrade-leveraged-trading/fees-and-spread"},{"title":"Pair List","href":"/gtrade-leveraged-trading/pair-list"},{"title":"How to use Practice Mode","href":"/gtrade-leveraged-trading/how-to-use-practice-mode"},{"title":"One-Click Trading (1CT)","href":"/gtrade-leveraged-trading/one-click-trading-1ct"},{"title":"Gasless trading","href":"/gtrade-leveraged-trading/gasless-trading"},{"title":"Gains Solana","href":"/gtrade-leveraged-trading/gtrade-solana"},{"title":"Video tutorials","href":"/gtrade-leveraged-trading/video-tutorials"}]},{"group":"Loyalty Programs","icon":"medal","pages":[{"title":"Gains Credits","href":"/loyalty-programs/gtrade-credits"},{"title":"Gains Bonus","href":"/loyalty-programs/gains-bonus"}]},{"group":"Referrals","icon":"user-plus","pages":[{"title":"Moving to the new referral program","href":"/referrals/transition"}]},{"group":"Help","icon":"circle-question","pages":[{"title":"FAQ","href":"/help/faq"},{"title":"Eligibility and Restricted Regions","href":"/help/eligibility-and-restricted-regions"},{"title":"Chain congestion","href":"/help/chain-congestion"},{"title":"Glossary","href":"/help/glossary"}]}]},{"tab":"Developers","pages":[{"title":"Developers","href":"/developer/trading-api/overview"}]},{"tab":"$GNS","pages":[{"title":"$GNS","href":"/what-is-gains-network/summary"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Opening / Closing trades - Gains Trade","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DevImLcx.js","DynamicMarkdown-BGHukeRM.js","zoom-image-lightbox-DQG3o8Eu.js","lightbox-handle-r17bVUz3.js"]}