staking apr

기본 정보

/staking/apr API를 통해 WEMIX.Fi 스테이킹 풀의 APR을 확인할 수 있습니다.

Staking APR

GET /staking/apr

WEMIX.Fi 스테이킹 풀의 APR을 반환합니다.

Query Parameters

NameTypeDescription

pid*

number

스테이킹 풀의 pool id

(예. 그랜드: 0, 디오스: 1)

{
  "type": "success",
  "message": "success",
  "data": {
    "apr": 0
  }
}

Request

Parameter

NameTypeDescription

pid

number

스테이킹 풀의 pool id(예. 그랜드 스테이킹: 0, 디오스 스테이킹: 1)

Response

Parameter

NameTypeDescription

type

string

성공/실패 여부

message

string

성공/실패 메시지

data

-

-

apr

number

스테이킹 풀의 APR

Sample

Request

curl

curl -X 'GET' \
  'https://openapi.wemix.fi/staking/apr?pid=1' \
  -H 'accept: application/json'

Request URL

https://openapi.wemix.fi/staking/apr?pid=1

Response

{
  "type": "success",
  "message": "success",
  "data": {
    "apr": 0.001337697900866379
  }
}