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

# Trade History

> Review your complete trading history on Limora

The Trade History page provides a complete record of all your past trades, including detailed information about each position.

***

## Accessing Trade History

Navigate to **Trade History** in the sidebar to view your complete trading record.

***

## History Table

### Columns

| Column    | Description                          |
| --------- | ------------------------------------ |
| Date      | When the trade was opened and closed |
| Pair      | Trading pair (e.g., BTC/USDC)        |
| Direction | Long or Short                        |
| Size      | Position size in USD                 |
| Leverage  | Leverage used                        |
| Entry     | Entry price from oracle              |
| Exit      | Exit price from oracle               |
| P\&L      | Profit/loss (amount and %)           |
| Fees      | Total fees paid                      |
| Duration  | How long the position was held       |
| Status    | How the trade closed                 |

### Trade Status

| Status      | Description                             |
| ----------- | --------------------------------------- |
| Closed      | Manually closed by trader               |
| Stop-Loss   | Closed by stop-loss trigger             |
| Take-Profit | Closed by take-profit trigger           |
| Liquidated  | Closed due to insufficient margin       |
| Cancelled   | Pending trade cancelled before matching |
| Expired     | Pending trade not matched in time       |

***

## Trade Details

Click any trade row to view detailed information:

### Position Info

```
Trade ID: 0x1234...abcd
Pair: BTC/USDC
Direction: Long
Collateral: 100 USDC
Leverage: 10x
Position Size: 1,000 USDC
```

### Pricing

```
Entry Price: $50,000.00
Exit Price: $52,500.00
Price Change: +5.00%
Liquidation Price: $45,500.00
```

### Timing

```
Opened: Dec 1, 2024 14:32:15 UTC
Closed: Dec 2, 2024 09:15:42 UTC
Duration: 18h 43m
```

### Financial

```
Gross P&L: +$50.00
Opening Fee: -$0.80
Closing Fee: -$0.80
Interest Paid: -$0.18
Net P&L: +$48.22 (+48.22%)
```

### Transactions

* Open TX: [View on Basescan](https://basescan.org)
* Close TX: [View on Basescan](https://basescan.org)

***

## Filtering Trades

### Date Range

* **Preset ranges**: Today, Last 7 days, Last 30 days, Last 90 days, All time
* **Custom range**: Select specific start and end dates

### By Pair

Filter to show only specific trading pairs:

* All pairs
* BTC/USDC
* ETH/USDC
* SOL/USDC
* etc.

### By Direction

* All directions
* Long only
* Short only

### By Status

* All statuses
* Closed (manual)
* Stop-Loss triggered
* Take-Profit triggered
* Liquidated

### By P\&L

* All trades
* Profitable only
* Losing only

***

## Sorting

Click column headers to sort:

| Sort Option        | Description              |
| ------------------ | ------------------------ |
| Date (newest)      | Most recent trades first |
| Date (oldest)      | Oldest trades first      |
| P\&L (highest)     | Best performing first    |
| P\&L (lowest)      | Worst performing first   |
| Size (largest)     | Biggest positions first  |
| Duration (longest) | Longest held first       |

***

## Summary Statistics

At the top of the history page, view aggregate stats for your filtered selection:

| Stat         | Description                     |
| ------------ | ------------------------------- |
| Total Trades | Number of trades in selection   |
| Win Rate     | Percentage of profitable trades |
| Total P\&L   | Sum of all profits and losses   |
| Total Fees   | Sum of all fees paid            |
| Net P\&L     | Total P\&L minus fees           |
| Avg Trade    | Average P\&L per trade          |

***

## Export Options

### CSV Export

Download your trade history as a CSV file:

```csv theme={null}
date_opened,date_closed,pair,direction,size,leverage,entry_price,exit_price,pnl,fees,status
2024-12-01 14:32:15,2024-12-02 09:15:42,BTC/USDC,Long,1000,10,50000,52500,50,-1.78,Closed
2024-12-02 10:00:00,2024-12-02 14:30:00,ETH/USDC,Short,500,5,3000,2950,8.33,-0.80,Take-Profit
```

### PDF Report

Generate a formatted report including:

* Summary statistics
* Trade list
* P\&L chart
* Date range covered

### JSON Export

Full data export for programmatic analysis:

```json theme={null}
{
  "trades": [
    {
      "id": "0x1234...abcd",
      "pair": "BTC/USDC",
      "direction": "long",
      "size": 1000,
      "leverage": 10,
      "entry_price": 50000,
      "exit_price": 52500,
      "pnl": 50,
      "fees": 1.78,
      "status": "closed",
      "opened_at": "2024-12-01T14:32:15Z",
      "closed_at": "2024-12-02T09:15:42Z"
    }
  ],
  "summary": {
    "total_trades": 95,
    "win_rate": 0.58,
    "total_pnl": 1390.5,
    "total_fees": 152.4
  }
}
```

***

## Tax Reporting

Trade history exports are useful for tax purposes:

### What to Track

| Item           | For Tax Purposes                     |
| -------------- | ------------------------------------ |
| P\&L per trade | Capital gains/losses                 |
| Dates          | Holding period (short vs. long-term) |
| Fees           | Potentially deductible               |

### Recommendations

<Warning>
  Limora does not provide tax advice. Consult a qualified tax professional for
  guidance specific to your jurisdiction.
</Warning>

* Export history at least quarterly
* Keep records for required retention period
* Track cost basis for accurate reporting
* Consider using crypto tax software

***

## Analyzing Your History

### Identify Patterns

Review your history to find:

* Best performing pairs
* Optimal position sizes
* Effective stop-loss placement
* Time-of-day patterns

### Learn from Losses

Examine losing trades:

* What went wrong?
* Was the stop-loss appropriate?
* Was the position size too large?
* Was the leverage too high?

### Track Improvement

Compare periods:

* Is your win rate improving?
* Are your losses getting smaller?
* Is your average win increasing?

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="Missing trades">
    * Check your date filter settings - Ensure you're viewing the correct wallet
    * Pending/cancelled trades may be in a separate view
  </Accordion>

  <Accordion title="P&L doesn't match expectations">
    * Verify entry and exit prices - Account for all fees (open, close, interest)
    * Check for any partial closes
  </Accordion>

  <Accordion title="Export not working">
    * Try a smaller date range - Check browser download settings - Try a
      different browser
  </Accordion>
</AccordionGroup>

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Analytics" icon="chart-pie" href="/features/analytics">
    View aggregate performance metrics.
  </Card>

  <Card title="Positions" icon="list" href="/features/positions">
    Monitor your current positions.
  </Card>
</CardGroup>
