> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ekiden.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Trading on Ekiden

> Open and manage positions, set leverage and TP/SL, and use Portfolio, Stats, and Referral on Ekiden.

This guide is for users who already have an Ekiden account and wallet connected. It covers placing trades, managing risk, and navigating the rest of the platform.

<Note>
  If you haven't connected a wallet or funded a Trading Account yet, start with [Getting Started](./getting-started) first.
</Note>

## Signing back in

If your session has expired, reconnecting will prompt the **Terms of Use** modal again. Confirm both checkboxes and click **Agree and Sign** to resume trading.

<Frame caption="Re-confirming Terms of Use when starting a new session">
  <img src="https://mintcdn.com/ekiden/GG3OMxTAeHEcXnzb/images/01-terms-of-use.png?fit=max&auto=format&n=GG3OMxTAeHEcXnzb&q=85&s=847e1c8773d113f95e2a50f52b8c2a50" alt="01 Terms Of Use" width="1280" height="818" data-path="images/01-terms-of-use.png" />
</Frame>

## Funding your account

Use **Get Test Tokens** to top up your Funding Account, then deposit into your Trading Account. A confirmation toast appears once the vault balance updates.

<Frame caption="Confirmation after claiming and depositing test USDCx">
  <img src="https://mintcdn.com/ekiden/GG3OMxTAeHEcXnzb/images/02-test-tokens.png?fit=max&auto=format&n=GG3OMxTAeHEcXnzb&q=85&s=6847b494dd6db3e4082fa4b283716602" alt="02 Test Tokens" width="1280" height="818" data-path="images/02-test-tokens.png" />
</Frame>

## Order types and Time in Force, explained

<Note>
  Ekiden's order panel has three order type tabs — **Limit**, **Market**, and **Stop Limit** — plus an **Advanced** section with **Reduce-Only** and a **Time in Force (TIF)** dropdown. That Advanced section is where any additional order types would live if the panel had them; it doesn't — it only exposes Reduce-Only and TIF. So functionally, these three order types (each combinable with the five TIF modifiers below and Reduce-Only) are the complete current set.
</Note>

<Frame caption="Advanced section expanded: Reduce-Only checkbox and the full TIF dropdown (GTC / IOC / FOK / PO / GTD)">
  <img src="https://mintcdn.com/ekiden/GG3OMxTAeHEcXnzb/images/14-advanced-panel-tif-confirmed.png?fit=max&auto=format&n=GG3OMxTAeHEcXnzb&q=85&s=ccf90c4f33d35209536a29a886f4ab34" alt="14 Advanced Panel Tif Confirmed" width="653" height="1632" data-path="images/14-advanced-panel-tif-confirmed.png" />
</Frame>

<AccordionGroup>
  <Accordion title="Limit — why use it">
    You set the exact price you're willing to trade at. The order sits on the book and only fills at your price or better. Use it when you want price certainty and are fine waiting (or not filling at all if the market never reaches your price).
  </Accordion>

  <Accordion title="Market — why use it">
    You skip price selection entirely and fill immediately against the best available price(s) in the book. Use it when speed/certainty of execution matters more than price precision — at the cost of potential slippage on thin order books.
  </Accordion>

  <Accordion title="Stop Limit — why use it">
    A **Limit** order that only becomes active once the market trades through a **trigger price** you set. Commonly used to enter on a breakout, or to defend a position (a defensive stop) without watching the screen — but unlike a plain stop-market, once triggered it still behaves like a Limit order, so in a fast-moving market it can be triggered and still not fill if price runs past your limit.
  </Accordion>

  <Accordion title="Reduce-Only — why use it">
    Restricts the order to only reduce or close your existing position on that market — it can never open a new position or flip you to the opposite side, even if the size you enter would otherwise overshoot. Use it for exits and stop-losses where you want a hard guarantee you can't accidentally add exposure.
  </Accordion>

  <Accordion title="Time in Force: GTC / IOC / FOK / PO / GTD — what each means">
    These control how long an order is allowed to rest and how it can be filled, independent of order type:

    * **GTC (Good Till Cancelled)** — stays open until it fills or you cancel it manually. The default for most traders.
    * **IOC (Immediate Or Cancel)** — fills whatever portion it can immediately, cancels the rest. Avoids leaving a resting order on the book.
    * **FOK (Fill Or Kill)** — must fill the entire size immediately or the whole order is cancelled. No partial fills.
    * **PO (Post Only)** — guarantees your order only adds liquidity (maker), never removes it (taker); it's rejected instead of matching immediately. Used to guarantee maker fees instead of taker fees.
    * **GTD (Good Till Date)** — like GTC, but auto-cancels at a specific date/time you set.
  </Accordion>
</AccordionGroup>

## Opening a position

<Steps>
  <Step title="Choose your order type and leverage">
    In the order panel, select **Limit**, **Market**, or **Stop Limit**, then set your leverage multiplier (e.g. `3x`). The available margin updates to reflect your buying power at that leverage.

    <Frame caption="Setting 3x leverage before placing an order">
      <img src="https://mintcdn.com/ekiden/GG3OMxTAeHEcXnzb/images/03-leverage-select.png?fit=max&auto=format&n=GG3OMxTAeHEcXnzb&q=85&s=01e3d8f0b83c4eec4e45897e13273aaf" alt="03 Leverage Select" width="1280" height="818" data-path="images/03-leverage-select.png" />
    </Frame>
  </Step>

  <Step title="Adjust leverage in detail (optional)">
    Clicking the leverage value (e.g. `3x`) opens an **Adjust Leverage** modal with more control than the quick selector:

    * **Margin Mode: Cross** — in cross mode, all positions on your Trading Account share the same margin pool, so a loss on one position can be offset by available margin from the rest of the account. (Ekiden's UI currently shows Cross; an Isolated mode — where each position only risks the margin assigned to it specifically — is the typical alternative on perpetuals platforms, but wasn't observed in this flow.)
    * **Leverage slider / stepper** — drag or use +/− to pick a multiplier, up to the market's max (shown in the modal title, e.g. "Max: 15x"). Max leverage is set **per market**, not account-wide — a volatile asset will usually cap out lower than BTC.
    * **Max Position Value** — recalculates live as you change leverage, showing the largest position your current margin could open at that multiplier.

    <Frame caption="Adjust Leverage modal showing Cross margin mode and a 4x slider for BTC (15x max)">
      <img src="https://mintcdn.com/ekiden/GG3OMxTAeHEcXnzb/images/13-leverage-modal.png?fit=max&auto=format&n=GG3OMxTAeHEcXnzb&q=85&s=deb1886caed8f64dd81c5671760bd6f2" alt="13 Leverage Modal" width="1280" height="818" data-path="images/13-leverage-modal.png" />
    </Frame>

    <Warning>
      The modal explicitly warns: **"Leverage is set per-market. Changing it may affect your open position and orders on \[market]."** If you already have an open position on that market, raising or lowering leverage changes your liquidation price immediately — confirm the new **Max Position Value** and liquidation impact before clicking **Confirm**.
    </Warning>

    Click **Confirm \[X]x Leverage** to apply.
  </Step>

  <Step title="Pick Long or Short and size your order">
    Toggle **Long** or **Short**, enter a size (or drag the percentage slider to use a portion of your available margin), and submit. Market orders fill immediately at the current price.
  </Step>

  <Step title="Confirm the position in your Positions table">
    Filled orders appear instantly in the **Positions** panel at the bottom of the screen, showing size, entry price, mark price, liquidation price, unrealized PnL, and funding. Each row has a **Close** button.

    <Frame caption="A 3x Short BTC position open with live PnL and liquidation price">
      <img src="https://mintcdn.com/ekiden/GG3OMxTAeHEcXnzb/images/04-position-opened.png?fit=max&auto=format&n=GG3OMxTAeHEcXnzb&q=85&s=cd45cd01074260780b3f508bf3154a34" alt="04 Position Opened" width="1280" height="818" data-path="images/04-position-opened.png" />
    </Frame>

    <Tip>
      **How PnL is calculated, conceptually:** Unrealized PnL compares your position's **entry price** to the current **mark price** (a smoothed reference price used for PnL and liquidation, not necessarily the last traded price), scaled by position size and direction (Long gains as mark price rises; Short gains as it falls). **Liquidation Price** is the mark price at which your posted margin would be fully consumed by losses — it moves closer to your entry price as leverage increases, which is why higher leverage means a smaller adverse move can liquidate you.
    </Tip>
  </Step>

  <Step title="Switch markets to diversify">
    Use the market dropdown (top-left of the chart) to search and switch between trading pairs. Each row shows last price, 24h change, funding rate, 24h volume, and open interest.

    <Frame caption="Market switcher showing BTC, TSLA, and CC pairs">
      <img src="https://mintcdn.com/ekiden/GG3OMxTAeHEcXnzb/images/06-market-switcher.png?fit=max&auto=format&n=GG3OMxTAeHEcXnzb&q=85&s=60ff428f03bb531fad1a1eb153b9d4e2" alt="06 Market Switcher" width="1280" height="818" data-path="images/06-market-switcher.png" />
    </Frame>

    Repeat the order flow on a new market to open additional positions — for example, a Long on `TSLA-USDTx` alongside your BTC short.

    <Frame caption="Preparing a Long order on TSLA-USDTx using the size slider">
      <img src="https://mintcdn.com/ekiden/GG3OMxTAeHEcXnzb/images/05-long-order-tsla.png?fit=max&auto=format&n=GG3OMxTAeHEcXnzb&q=85&s=894ed8a842b90013c1aa53d83d84c2c6" alt="05 Long Order Tsla" width="1280" height="818" data-path="images/05-long-order-tsla.png" />
    </Frame>
  </Step>
</Steps>

## Setting Take Profit / Stop Loss

Open **TP/SL** on a position to define exit conditions without watching the market manually.

<Frame caption="TP/SL modal with Take Profit and Stop Loss price and percentage fields">
  <img src="https://mintcdn.com/ekiden/GG3OMxTAeHEcXnzb/images/07-tpsl-modal-2.png?fit=max&auto=format&n=GG3OMxTAeHEcXnzb&q=85&s=ceb4b7be985c3e188d085bb9def2fffc" alt="07 Tpsl Modal 2" width="1280" height="818" data-path="images/07-tpsl-modal-2.png" />
</Frame>

<Steps>
  <Step title="Set a Take Profit">
    Enter a **Take Profit Price** or a target **Gain %** — the other field calculates automatically.
  </Step>

  <Step title="Set a Stop Loss">
    Enter a **Stop Loss Price** or a maximum **Loss %**.
  </Step>

  <Step title="Confirm">
    Click **Confirm**. Your TP/SL levels appear inline in the Positions table and can be edited at any time via the pencil icon.
  </Step>
</Steps>

<Tip>
  The order panel also exposes a **Time in Force** setting (`GTC`, `IOC`, `FOK`, `PO`, `GTD`) under **Advanced** — useful for controlling exactly how and when a limit order can fill.
</Tip>

## Tracking your account: Portfolio

The **Portfolio** tab is your account command center.

<Frame caption="Portfolio overview with account health, performance, and points">
  <img src="https://mintcdn.com/ekiden/GG3OMxTAeHEcXnzb/images/08-portfolio-overview-1.png?fit=max&auto=format&n=GG3OMxTAeHEcXnzb&q=85&s=a2bdfecdaf2ef335ba5988560b2bc5ca" alt="08 Portfolio Overview 1" width="1280" height="818" data-path="images/08-portfolio-overview-1.png" />
</Frame>

It includes:

* **Funding Account** and **Trading Account** balances, plus a **Health** indicator
* **Account Performance**: 30-day volume, available margin, unrealized PnL, and all-time account PnL
* **Points Breakdown**: trading points and referral points, viewable by 7D / 30D / All Time, with a countdown to the next points distribution
* A unified **Positions** table, plus tabs for **Open Orders**, **Order History**, and **Trade History**

### Reviewing trade history

The **Trade History** tab lists every fill — timestamp, market, side (Buy/Sell), price, size/value, and fee.

<Frame caption="Trade history with timestamps, prices, and fees">
  <img src="https://mintcdn.com/ekiden/GG3OMxTAeHEcXnzb/images/09-trade-history.png?fit=max&auto=format&n=GG3OMxTAeHEcXnzb&q=85&s=7162bcce06b462c87f0ea5c90717173c" alt="09 Trade History" width="1280" height="818" data-path="images/09-trade-history.png" />
</Frame>

## Platform-wide stats

The **Stats** tab shows exchange-level metrics: 24h trading volume, active traders, total trades, and open interest, along with a per-market breakdown (price, 24h change, average funding, volume, and open interest).

<Frame caption="Ekiden Stats page with exchange-wide metrics">
  <img src="https://mintcdn.com/ekiden/GG3OMxTAeHEcXnzb/images/10-stats-page.png?fit=max&auto=format&n=GG3OMxTAeHEcXnzb&q=85&s=b19f544ebf1d8d0df769082e9a93fc02" alt="10 Stats Page" width="1280" height="818" data-path="images/10-stats-page.png" />
</Frame>

## Referring other traders

The **Referral** tab gives you a unique referral code and link to share, plus a live count of invited users. You can copy the link directly or share it to X in one click.

<Frame caption="Referral Hub with code, link, and invited users count">
  <img src="https://mintcdn.com/ekiden/GG3OMxTAeHEcXnzb/images/11-referral-hub.png?fit=max&auto=format&n=GG3OMxTAeHEcXnzb&q=85&s=68c4df5db5b5c644c98b0b997584712d" alt="11 Referral Hub" width="1280" height="818" data-path="images/11-referral-hub.png" />
</Frame>

## Moving funds between accounts

Use **Deposit/Withdraw → Transfer** to move USDCx between your **Funding Account** and **Trading Account** without leaving the app — for example, pulling margin back out of a Trading Account after closing positions.

<Frame caption="Transferring funds from a Trading Account back to the Funding Account">
  <img src="https://mintcdn.com/ekiden/GG3OMxTAeHEcXnzb/images/12-transfer-funds.png?fit=max&auto=format&n=GG3OMxTAeHEcXnzb&q=85&s=d3005438d64d410a4926509574fa5b31" alt="12 Transfer Funds" width="1280" height="818" data-path="images/12-transfer-funds.png" />
</Frame>

<Steps>
  <Step title="Open Deposit/Withdraw">
    Click **Deposit/Withdraw** in the top navigation bar.
  </Step>

  <Step title="Select the Transfer tab">
    Choose **Transfer**, then set **Withdraw from** and **Transfer to** accounts.
  </Step>

  <Step title="Enter an amount and confirm">
    Enter an amount (or click **Max**) and confirm — the destination balance updates immediately.
  </Step>
</Steps>

## Closing positions

From either the Trade screen or the Portfolio Positions table, click **Close** on an individual position, or **Close All** to flatten every open position at once.
