staking apr

Overview

The /staking/apr API provides the APR of your WEMIX.Fi staking pool.

Staking APR

GET /staking/apr

Returns the APR of the WEMIX.Fi staking programs

Query Parameters

NameTypeDescription

pid*

number

Pool ID of the staking pool(i.e 0: GRAND Staking, 1: DIOS Staking)

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

Request

Parameter

NameTypeDescription

pid

number

Pool ID of the staking pool(i.e 0: GRAND Staking, 1: DIOS Staking)

Response

Parameter

NameTypeDescription

type

string

success/failure status

message

string

success/failure message

data

-

-

apr

number

APR of staking program

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
  }
}