RSS3 Documentation

Retrieve staking profit of a staker

Retrieve the staking profit information for a specified staker. This endpoint returns detailed profit data, including the owner's address, total chip amount, total chip value, and profit and loss (PNL) data over different time periods (one day, one week, one month).

GET
/nta/stakings/{staker_address}/profit
/nta/stakings/{staker_address}/profit

Path Parameters

staker_address
Required
string

The address of the staker whose profit information is to be retrieved.

curl -X GET "https://gi.rss3.io/nta/stakings/string/profit"

A successful response containing the staking profit information for the specified staker. The data includes the owner's address, total chip amount, total chip value, and profit and loss (PNL) data for one day, one week, and one month.

{
  "data": {
    "owner": "0x827431510a5d249ce4fdb7f00c83a3353f471848",
    "total_chip_amount": "1000",
    "total_chip_value": "100000",
    "oneDay": {
      "date": "2024-06-14T01:57:07Z",
      "total_chip_amount": "24",
      "total_chip_value": "14459771035071565497880",
      "profit_and_loss": "0.0066375630868202"
    },
    "oneWeek": {
      "date": "2024-06-14T01:57:07Z",
      "total_chip_amount": "24",
      "total_chip_value": "14459771035071565497880",
      "profit_and_loss": "0.0066375630868202"
    },
    "oneMonth": {
      "date": "2024-06-14T01:57:07Z",
      "total_chip_amount": "24",
      "total_chip_value": "14459771035071565497880",
      "profit_and_loss": "0.0066375630868202"
    }
  }
}