PearPear

Apply funding payments

Upsert historical funding payments and advance the funding watermark

POST
/sync/funding/create
x-api-key<token>

In: header

Header Parameters

X-Trade-Account-Id*string

UUID of the trade account the request acts on. Must belong to the authenticated user.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/sync/funding/create" \  -H "X-Trade-Account-Id: 3fa85f64-5717-4562-b3fc-2c963f66afa6" \  -H "Content-Type: application/json" \  -d '{    "payments": [      {        "connector": "hyperliquid",        "instrumentId": "BTC",        "fundingRate": "-12.34",        "notional": "-12.34",        "fundingPerUnit": "-12.34",        "timestamp": 1      }    ],    "meta": {      "externalMaxTs": 0    }  }'
{}