HomeDocumentationAPI Reference
Log In
API Reference

User Statistics

Method Name

public/user_statistics

Get statistics for a specific user

Parameters

walletstringrequired
Wallet address for the user
currencystring
Currency for stats
end_timeinteger
End time for statistics in ms
instrument_namestring
Instrument name for stats
is_rfqboolean
True to select only RFQs, false to ignore them
start_timeinteger
Start time for statistics in ms

Response

idstring or integerrequired
resultobjectrequired
result.total_base_feestringrequired
Total base fee paid by the user
result.total_contract_feestringrequired
Total contract fee paid by the user
result.total_feesstringrequired
Total fees paid by the user (total_base_fee + total_contract_fee)
result.total_notional_volumestringrequired
Total notional volume
result.total_premium_volumestringrequired
Total premium volume
result.total_regular_base_feestringrequired
Total base fee user would have paid if they had no discounts
result.total_regular_contract_feestringrequired
Total contract fee user would have paid if they had no discounts
result.total_tradesintegerrequired
Total trades
result.first_trade_timestampinteger or null
First trade timestamp
result.last_trade_timestampinteger or null
Last trade timestamp

Example

{request_example_shell}
{request_example_javascript}
{request_example_python}

The above command returns JSON structured like this:

{response_example_json}