Data APIs
Get PNL history
Returns hourly net profit history from a start timestamp.
GET
Returns hourly net profit history from a start timestamp.
user*stringUser address in hex format (0x prefix optional)
from_timestamp*numberEarliest hour to include, Unix timestamp (seconds)
Hourly net profit history
application/json- response
Hourly net profit history
items*array<>curl -X GET 'https://data.scalar.market/account/string/pnl-history?from_timestamp=0'Example Response
{
"items": [
{
"timestamp": 0,
"net_profit": "string"
}
]
}