Overview
This release adds Funding Payment History, enabling users to view and export historical funding payments per subaccount and perpetual. Funding payments are calculated using the funding index and position deltas, then stored in a new funding_payments
table.
Highlights:
- Historical funding payments are backfilled and updated in near real-time.
- New APIs (
/fundingPayments
and/fundingPayments/parentSubaccount
) support filtering and pagination. - Integrated into the frontend under Portfolio → History and Trade → Order History.
What's Changed
- [IND-596] Create funding payments store (backport #2868) by @mergify in #2911
- [IND-597] API for Funding Payment History. (backport #2872) by @mergify in #2912
- [ENG-5] Funding Payment History (backport #2869) by @mergify in #2913
- Update funding payment time stamp to match funding table. (backport #2890) by @mergify in #2914
- Small comlink fix (backport #2891) by @mergify in #2915
- Fix race condition in update funding table task. (backport #2895) by @mergify in #2916
- polish funding payment task logs and metrics (backport #2899) by @mergify in #2918
- Add pagination to comlink funding payments API. (backport #2900) by @Kefancao in #2921
- Reconciled payments with funding index. (backport #2904) by @mergify in #2919
- Add funding index column (backport #2905) by @Kefancao in #2923
- Update comlink fundingIndex column for fundingPayments. (backport #2906) by @mergify in #2924
- Add schema checks for addresses in url endpoints (backport #2692) by @mergify in #2925
Full Changelog: indexer/v8.0.18...indexer/v8.0.19