curl --request POST \
--url https://api.fincept.in/quantlib/physics/entropy/tsallis \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"probabilities": [
0.7,
0.15,
0.1,
0.05
],
"q": 1.5
}
'
{
"success": true,
"data": {
"tsallis_entropy": 0.7845,
"q": 1.5
}
}{
"detail": "Invalid API key"
}{
"detail": "Insufficient credits. This endpoint requires 5 credits."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}quantlib-physics
Calculate Tsallis Entropy
Calculates the Tsallis entropy, a non-extensive generalization of Shannon entropy parameterized by q. Particularly useful for systems with long-range correlations, power-law distributions, and non-equilibrium states common in financial markets. q=1 recovers Shannon entropy.
Use Cases:
- Analyze fat-tailed return distributions
- Model markets with long-range correlations
- Study non-equilibrium market dynamics
- Measure complexity in fractal market structures
- Assess systemic risk in interconnected systems
Formula: S_q(X) = (1 - Σ p(x)^q) / (q - 1)
Credits: 5 credits per request (Pro Tier) [Tier: ENTERPRISE, Credits: 10]
POST
/
quantlib
/
physics
/
entropy
/
tsallis
curl --request POST \
--url https://api.fincept.in/quantlib/physics/entropy/tsallis \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"probabilities": [
0.7,
0.15,
0.1,
0.05
],
"q": 1.5
}
'
{
"success": true,
"data": {
"tsallis_entropy": 0.7845,
"q": 1.5
}
}{
"detail": "Invalid API key"
}{
"detail": "Insufficient credits. This endpoint requires 5 credits."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
API key for authentication. Get your key at https://api.fincept.in/auth/register
Body
application/json
⌘I
