获取可见藏品的有效卖单及有资金支持的买单
curl --request GET \
--url https://api.renaiss.xyz/v2/marketplace/collectibles/{tokenId}/ordersconst options = {method: 'GET'};
fetch('https://api.renaiss.xyz/v2/marketplace/collectibles/{tokenId}/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.renaiss.xyz/v2/marketplace/collectibles/{tokenId}/orders"
response = requests.get(url)
print(response.text){
"tokenId": "<string>",
"activeAsk": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ownerAddress": "<string>",
"amountInUsdt": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
},
"activeBids": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ownerAddress": "<string>",
"amountInUsdt": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}{
"error": "Invalid marketplace request",
"code": "WRONG_REQUEST_PARAMS"
}{
"error": "Invalid authentication credential",
"code": "API_AUTH_INVALID_CREDENTIAL"
}{
"error": "Credential is not allowed by this policy",
"code": "API_AUTH_CREDENTIAL_NOT_ALLOWED"
}{
"error": "Collectible not found",
"code": "COLLECTIBLE_NOT_FOUND"
}Internal Server Error卡牌目录
查询卡牌订单
下单或接受报价前,查看卡牌的当前卖价和资金充足的买单。
GET
/
v2
/
marketplace
/
collectibles
/
{tokenId}
/
orders
获取可见藏品的有效卖单及有资金支持的买单
curl --request GET \
--url https://api.renaiss.xyz/v2/marketplace/collectibles/{tokenId}/ordersconst options = {method: 'GET'};
fetch('https://api.renaiss.xyz/v2/marketplace/collectibles/{tokenId}/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.renaiss.xyz/v2/marketplace/collectibles/{tokenId}/orders"
response = requests.get(url)
print(response.text){
"tokenId": "<string>",
"activeAsk": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ownerAddress": "<string>",
"amountInUsdt": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
},
"activeBids": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ownerAddress": "<string>",
"amountInUsdt": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}{
"error": "Invalid marketplace request",
"code": "WRONG_REQUEST_PARAMS"
}{
"error": "Invalid authentication credential",
"code": "API_AUTH_INVALID_CREDENTIAL"
}{
"error": "Credential is not allowed by this policy",
"code": "API_AUTH_CREDENTIAL_NOT_ALLOWED"
}{
"error": "Collectible not found",
"code": "COLLECTIBLE_NOT_FOUND"
}Internal Server Error请求
公开查询
响应
错误码
在下表中查找接口返回的 HTTP 状态码和响应原文。有关各接口通用的处理建议,请参阅错误码含义与处理方式。
| HTTP | 错误码 | 文本字段 | 响应文本与处理方式 |
|---|---|---|---|
400 | WRONG_REQUEST_PARAMS | error | Invalid marketplace request请核对查询参数或十进制代币 ID。 |
401 | API_AUTH_INVALID_CREDENTIAL | error | Invalid authentication credential某个凭据请求头格式错误。请移除凭据后重试。 |
403 | API_AUTH_CREDENTIAL_NOT_ALLOWED | error | Credential is not allowed by this policy请移除凭据请求头后重试。 |
404 | COLLECTIBLE_NOT_FOUND | error | Collectible not found代币 ID 未知或藏品在该 API 中不可用。请核对 ID,不要用同一 ID 重试。 |
500 | API_AUTH_ERROR | error | Internal server error |
500 | FUNCTION_ERROR | error | Internal server error |
500 | 无错误码 | text/plain | Internal Server Error |
500 | COLLECTIBLE_GET_FAILED | error | Internal server error请稍后重新查询。 |