Query the price data of symbol
Header Parameters
x-api-key string
optional, contact us to generate the apiKey and secretKey for you
x-api-signature string
optional, you can still access our API without signature. However, you will be limited to a lower rate.
x-api-timestamp string
optional, the millisecond timestamp of when the request was created and sent(UTC+0)
application/json
Request Body
sign boolean
Default false.Signed data will be returned if and only if the input is true and the configuration needs to sign and sign the data when applying for apiKey
symbols string required
The currency pairs to be queried, separated by commas,example:BTC/USD,ETH/USD
Responses
- 200
- 201
- 401
- 403
- 404
OK
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
data object[]
data is the unsigned raw price details data
price int64
price
scale int32
symbol string
symbol like BTC/USD
message string
message is the data to be signed,message encode format
pubKey string
pubKey is the public key corresponding to the signature
signature string
signature is the signed data
timestamp int64
{
"data": [
{
"price": 0,
"scale": 0,
"symbol": "string"
}
],
"message": "string version,uint64 timestamp,string[] symbol,uint64[] price",
"pubKey": "string",
"signature": "string",
"timestamp": 0
}
Created
Unauthorized
Forbidden
Not Found
Loading...