|
|
@@ -474,7 +474,7 @@ cp .env .env.backup
|
|
474
|
474
|
cp ecosystem.config.js ecosystem.config.js.backup
|
|
475
|
475
|
|
|
476
|
476
|
# Pull latest changes
|
|
477
|
|
-git pull origin main
|
|
|
477
|
+git pull origin master
|
|
478
|
478
|
|
|
479
|
479
|
# Install any new dependencies
|
|
480
|
480
|
npm install --production
|
|
|
@@ -506,7 +506,7 @@ sudo systemctl stop nginx
|
|
506
|
506
|
|
|
507
|
507
|
# Update code
|
|
508
|
508
|
git fetch origin
|
|
509
|
|
-git reset --hard origin/main
|
|
|
509
|
+git reset --hard origin/master
|
|
510
|
510
|
|
|
511
|
511
|
# Install dependencies
|
|
512
|
512
|
npm install --production
|
|
|
@@ -679,18 +679,19 @@ CORS_ORIGIN=*
|
|
679
|
679
|
|
|
680
|
680
|
### Symbols
|
|
681
|
681
|
- `GET /api/symbols` - Get all symbols (with filtering)
|
|
682
|
|
-- `GET /api/symbols/search` - Search symbols by name
|
|
|
682
|
+- `GET /api/symbols/search?q=EURUSD` - Search symbols by name
|
|
683
|
683
|
- `GET /api/symbols/:id` - Get symbol by ID
|
|
684
|
684
|
- `POST /api/symbols` - Create new symbol
|
|
685
|
685
|
- `PUT /api/symbols/:id` - Update symbol
|
|
686
|
686
|
- `DELETE /api/symbols/:id` - Delete symbol (soft delete)
|
|
687
|
687
|
|
|
688
|
688
|
### Candles
|
|
689
|
|
-- `GET /api/candles` - Get candles with filtering
|
|
690
|
|
-- `GET /api/candles/ohlc` - Get OHLC data
|
|
|
689
|
+- `GET /api/candles?symbolId=1&startTime=2025-01-01T00:00:00Z&endTime=2025-01-02T00:00:00Z&limit=100&offset=0` - Get candles with filtering
|
|
|
690
|
+- `GET /api/candles/ohlc?symbolId=1&period=1h&limit=100` - Get OHLC data
|
|
691
|
691
|
- `GET /api/candles/:symbolId/latest` - Get latest candle for symbol
|
|
692
|
692
|
- `POST /api/candles` - Create new candle
|
|
693
|
693
|
- `POST /api/candles/bulk` - Bulk create candles
|
|
|
694
|
+- `DELETE /api/candles/cleanup/:symbolId?keep=1000` - Clean up old candles, keep latest N (default 1000)
|
|
694
|
695
|
|
|
695
|
696
|
### Live Prices
|
|
696
|
697
|
- `GET /api/live-prices` - Get all live prices
|