Get All Trades
GET https://api.sfox.com/v1/account/trades
Retrieve a list of completed trades (fills).
Path Parameters
Parameter
Type
Description
page_size
number
The maximum number of trades to include in the response.
e.g. page_size=20 will return a maximum of 20 trades in the response
Default page_size = 100
last_seen_id
number
The cursor of trade to paginate from. The response will contain trades completed after the cursor.
e.g. last_seen_id=NjM1MjQ20c= will return trades completed after the trade associated with this cursor
Responses
Example Requests
curl -H 'Authorization: Bearer <API_TOKEN>' \
'https://api.sfox.com/v1/account/trades?page_size=<PAGE SIZE>&last_seen_id=
<CURSOR>'const axios = require('axios');
axios({
method: 'get',
url: 'https://api.sfox.com/v1/account/trades?page_size=<PAGE_SIZE>&last_seen_id=
<CURSOR>',
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/account/trades?page_size=<PAGE SIZE>&last_seen_id=
<CURSOR>",
headers={
"Authorization": "Bearer <API_KEY>",
}
)
print(data)Last updated