mirror of
https://github.com/acedanger/docs.git
synced 2025-12-05 14:40:13 -08:00
feat: Implement multi-user support with separate brokerage accounts and user authentication feat: Configure SSO authentication setup using Google OAuth 2.0 for secure access refactor: Update index page to reflect new Trading Analysis Dashboard features and descriptions docs: Enhance quickstart guide for deploying Trading Analysis Dashboard with detailed steps chore: Add runner configuration for Gitea Actions with logging and container settings
60 lines
1.1 KiB
Plaintext
60 lines
1.1 KiB
Plaintext
---
|
|
title: 'Get Trade Details'
|
|
api: 'GET /api/trade-details/{month}'
|
|
description: 'Retrieves detailed trade information for a specific month'
|
|
---
|
|
|
|
## Endpoint
|
|
|
|
```
|
|
GET /api/trade-details/{month}
|
|
```
|
|
|
|
## Path Parameters
|
|
|
|
<ParamField path="month" type="string" required>
|
|
Month in YYYY-MM format (e.g., "2024-08")
|
|
</ParamField>
|
|
|
|
## Response
|
|
|
|
Returns detailed trade information with buy/sell prices, volumes, and profit/loss calculations.
|
|
|
|
## Example
|
|
|
|
<CodeGroup>
|
|
```bash cURL
|
|
curl -X GET https://your-domain.com/api/trade-details/2024-08
|
|
```
|
|
|
|
```javascript JavaScript
|
|
const response = await fetch('/api/trade-details/2024-08');
|
|
const data = await response.json();
|
|
|
|
console.log('Trades:', data.trades);
|
|
```
|
|
</CodeGroup>
|
|
|
|
## Response Example
|
|
|
|
```json
|
|
{
|
|
"success": true,
|
|
"trades": [
|
|
{
|
|
"symbol": "AAPL",
|
|
"buy_date": "2024-08-01",
|
|
"sell_date": "2024-08-15",
|
|
"buy_price": 195.50,
|
|
"sell_price": 198.75,
|
|
"volume": 100,
|
|
"profit_per_share": 3.25,
|
|
"total_profit_loss": 325.00,
|
|
"return_percentage": 1.66,
|
|
"trade_result": "Win"
|
|
}
|
|
],
|
|
"data_source": "postgresql"
|
|
}
|
|
```
|