from
and to
parametersParameters Provided | Behavior |
---|---|
Neither from nor to | Returns last 7 days from UTC midnight to current time |
Only from | Returns 7 days starting from the provided from date |
Only to | Returns 7 days ending at the provided to date (starting from UTC midnight 7 days prior) |
Both from and to | Returns funding payments within the specified date range (max 90 days) |
curl --location --request GET 'https://api.onetrading.com/fast/v1/account/futures/funding-payments?from=2025-01-15T10:30:00Z&to=2025-01-16T10:30:00Z&instrument_code=BTC_EUR_P&cursor=1754395201021329&max_page_size=100' \
--header 'Authorization: Bearer <token>'
{
"account_id": "abc12345-6789-abcd-efgh-ijklmnopqrst",
"funding_payments": {
"ETH_EUR_P": [
{
"timestamp": "2025-08-05T12:00:16.011Z",
"funding_payment": 0.1727217,
"cash_balance": 9380.49600963
}
],
"BTC_EUR_P": [
{
"timestamp": "2025-08-05T12:00:01.021Z",
"funding_payment": -0.02739235,
"cash_balance": 9383.89391196
}
]
},
"max_page_size": 2,
"cursor": "1754395201021329"
}