Data
GET/api/v1/ticker
Fetch the latest ticker for symbol from given exchange.
Request
Query Parameters
exchange stringrequired
Specifes exchange
Example: binance
symbol stringrequired
Specifies symbol
Example: BTC-USDT
Header Parameters
X-DTMX-APIKEY stringrequired
Your DataMaxi+ API key
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
P number
specifies the price 24 hours ago
Example:
42000
Pusd number
specifies the price 24 hours ago in USD
Example:
42000
b string
specifies the base token
Example:
BTC
d integer
specifies the date and the time in UTC milliseconds
Example:
1632960000000
e string
specifies the exchange name
Example:
binance
p number
specifies the latest price
Example:
43000
pusd number
specifies the latest price in USD
Example:
43000
q string
specifies the quote token
Example:
USDT
s string
specifies the symbol (base-quote)
Example:
BTC-USDT
v number
specifies the trading volume in the last 24 hours
Example:
1000
[
{
"P": 42000,
"Pusd": 42000,
"b": "BTC",
"d": 1632960000000,
"e": "binance",
"p": 43000,
"pusd": 43000,
"q": "USDT",
"s": "BTC-USDT",
"v": 1000
}
]
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...