Historical Index Price
GET/api/v1/index-price
Get index price
Request
Query Parameters
asset stringrequired
Asset
Example: BTC
from string
Specifies from
Default value:
now - 1 month
Example: 2021-01-01
to string
Specifies to
Default value:
now
Example: 2021-01-01
interval string
interval
Default value:
"5m"
Example: "5m"
Header Parameters
X-DTMX-APIKEY stringrequired
Your DataMaxi+ API key
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
price number
timestamp integer
volume number
{
"data": [
{
"price": 0,
"timestamp": 0,
"volume": 0
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error string
error
specifies the error message
{
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error string
error
specifies the error message
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
error string
error
specifies the error message
{
"error": "string"
}
Loading...