Get Monthly Summary
GET https://api.sfox.com/v1/users/reports/tax-currency-summary
Monthly summary of transactions for a selected currency
Request
Query Parameters
Name
Type
Description
end required
timestamp
The unix timestamp (seconds) of the last datapoint returned
start required
timestamp
The unix timestamp (seconds) of the first datapoint returned
currency
string
Currency code for the requested report. If left blank, response will include all applicable currencies.
Example Request
curl 'https://api.sfox.com/v1/users/reports/tax-currency-summary?currency=usd&end=1676102399999&start=1673337600000'const axios = require('axios');
axios({
method: 'get',
url: 'https://api.sfox.com/v1/users/reports/tax-currency-summary',
params: {
currency: 'btc',
startTime: 1657217002,
endTime: 1665165809
}
}).then(response => {
console.log(response)
}).catch(err => {
console.error(err)
});import requests
data = requests.get(
"https://api.sfox.com/v1/users/reports/tax-currency-summary",
headers={
"Authorization": "Bearer <API_KEY>",
},
params={
"currency": "btc",
"startTime": 1657217002,
"endTime": 1665165809
}
)
print(data)Response
CSV formatted response
Example Response
CurrencyYear,CurrencyMonth,Currency,Deposits,DepositsUSD,Credits,Withdrawals,WithdrawalsUSD,Charges,Buys,BuysTotalUSD,BuysTotalFeesUSD,Sells,SellsTotalUSD,SellsTotalFeesUSD,BuysForCrypto,BuysForCryptoUSD,SellsForCrypto,SellsForCryptoUSD
2023,1,usd,0,0,0,0,0,0,0,0,0,0,0,0,14.11887974,14.11887974,9.98003992,9.98003992
2023,2,usd,25,25,0,0,0,0,0,0,0,0,0,0,0,0,17.94148758,17.94148758Last updated