You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEPLOYMENT.md
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -464,16 +464,19 @@ GROUP BY c.symbol, i.name;
464
464
"
465
465
```
466
466
467
-
### Step 6.7: Backfill Funding Rates and Open Interest (Optional)
467
+
### Step 6.7: Backfill Funding Rates (Optional)
468
468
469
-
After your collector is running and collecting real-time funding/OI data, you may want to backfill historical data. This provides historical context for funding rates and open interest trends.
469
+
After your collector is running and collecting real-time funding/OI data, you may want to backfill historical funding rate data. This provides historical context for funding rate trends.
470
470
471
471
**Important Notes**:
472
472
- ⚠️ All commands use `docker compose exec collector` - runs inside the Docker container
473
473
- Funding rates update hourly on Hyperliquid (24 records/day)
474
-
- Open Interest is backfilled alongside funding data
474
+
-**API Limitation**: Historical endpoint ONLY provides `funding_rate` and `premium`
475
+
- ❌ NO historical data for: `mark_price`, `oracle_price`, `mid_price`, `open_interest`, `next_funding_time`
476
+
- ✅ Real-time collector captures ALL fields going forward
477
+
- Safe to run - won't overwrite real-time data (uses COALESCE)
475
478
- Uses minute-precision timestamps aligned with candle data
476
-
- Safe to run multiple times (UPSERT prevents duplicates)
479
+
- Safe to run multiple times (UPSERT with COALESCE preserves existing data)
0 commit comments