Get All Funding Transactions
Last updated
{
"data": [
{
"id": 2889941222331,
"currency": "eth",
"amount": 0.00011888,
"amount_usd": 0.41202856,
"date_added": "2024-03-21T20:39:00.000Z",
"date_updated": "2024-03-21T20:39:00.000Z",
"position_id": 253441111123
},
{
"id": 2889941222330,
"currency": "eth",
"amount": 0.00011888,
"amount_usd": 0.41218777,
"date_added": "2024-03-21T19:37:00.000Z",
"date_updated": "2024-03-21T19:37:00.000Z",
"position_id": 253441111123
}
],
"page": {
"next_cursor": 2889941222331,
"prev_cursor": 2889941222330
}
}//specify only one of 'before' and 'after'
{
"error": "before and after are mutually excusive parameters"
}
//start_date must be a valid Unix timestamp in ms
{
"error": "start_date must be a valid timestamp"
}
//end_date must be a valid Unix timestamp in ms
{
"error": "start_date must be a valid timestamp"
}//invalid API key
{
"error": "user lookup failed"
}//your account does not have post-trade settlement enabled
{
"error": "post trade settlement disabled"
}curl -H 'Authorization: Bearer <API_TOKEN>' \
https://api.sfox.com/v1/post-trade-settlement/interest/historyconst axios = require('axios');
axios({
method: 'get',
url: 'https://api.sfox.com/v1/post-trade-settlement/interest/history',
headers: {
'Authorization': 'Bearer <API_KEY>'
}
}).then(response => {
console.log(response)
}).catch(err => {
console.error(err)
});import requests
data = requests.get(
"https://api.sfox.com/v1/post-trade-settlement/interest/history",
headers={
"Authorization": "Bearer <API_KEY>",
}
)
print(data)