Staking
Get Staking Data
Account
Loop Alliance
Transactions
Withdraw
Staking
Trading
Gas Station
Account
Transaction
Withdraw
Tss Node
Bind Auth
Gas Station
Babylon Staking
Custodial Wallet APIs
MPC Wallet APIs
Staking
Get Staking Data
This endpoint returns a list of staking information for a given coin and language. The response includes staking ID, coin, decimal, amount, reward coin, reward coin decimal, reward amount, and product information. The product information is parsed based on the language parameter.
GET
/
v1
/
custody
/
stakings
/
API-SECRET
string
*
API-SECRET
Required
string
coin
string
coin
string
The coin to query staking information for.
language
string
language
string
The language to parse product information in.
request(
"GET",
"/v1/custody/stakings/",
{
"coin": "ZEL",
},
api_key, api_secret, host
)
{
"success": true,
"result": [
{
"staking_id": 57520,
"coin": "TETH",
"coin_decimal": 18,
"amount": "23391613625225404",
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"reward_amount": 873919022232,
"product": {
"name": " TETH PoS\u6d4b\u8bd5",
"description": "TETH PoS test",
"doc_src": "https://www.cobo.com",
"coin": "TETH",
"coin_decimal": 18,
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"unstake_fee": "0",
"min_amount": "1000000",
"rate": "0.2000000000",
"rate_type": 1,
"days": 0,
"stake_type": "pos",
"lockup": false,
"start_stake_time": 1691387100000,
"stop_stake_time": 1691389800000,
"start_staking_time": 1691389800000,
"stop_staking_time": 1691397000000,
"liquidate_time": 1691397060000,
"reward_liquidate_time": 1691397120000,
"product_id": 236080,
"product_group": " TETHPPSW"
}
},
{
"staking_id": 57523,
"coin": "TETH",
"coin_decimal": 18,
"amount": "1063172",
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"reward_amount": 28,
"product": {
"name": " TETH PoS\u6d4b\u8bd5",
"description": "TETH PoS test",
"doc_src": "https://www.cobo.com",
"coin": "TETH",
"coin_decimal": 18,
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"unstake_fee": "0",
"min_amount": "1000000",
"rate": "0.2000000000",
"rate_type": 1,
"days": 0,
"stake_type": "pos",
"lockup": false,
"start_stake_time": 1691388900000,
"stop_stake_time": 1691391600000,
"start_staking_time": 1691391600000,
"stop_staking_time": 1691398800000,
"liquidate_time": 1691398860000,
"reward_liquidate_time": 1691398920000,
"product_id": 236082,
"product_group": " TETHPPSW"
}
}
]
}
Request
coin
String
The coin to query staking information for.
language
String
The language to parse product information in.
Response
success
bool
request successful or failed
result
object[]
staking_id
Int
The ID of the staking.
coin
String
The code of the staked coin.
coin_decimal
Int
The decimal of the staked coin.
amount
Int
The amount of the staked coin.
reward_coin
String
The code of the reward coin.
reward_coin_decimal
Int
The decimal of the reward coin.
reward_amount
String
The amount of the reward coin.
product
object
name
String
Product name
description
String
Product description
doc_src
String
Product detailed description doc
coin
String
Coin code
coin_decimal
Int
Coin decimal
reward_coin
String
Reward coin
reward_coin_decimal
Int
Reward coin decimal
unstake_fee
String
Unstake fee
min_amount
String
Min. amount to stake
rate
String
Yearly ROI
rate_type
Int
1:fixed rate 2:estimated rate
days
Int
Reward period
stake_type
String
Staking type(Masternode, DPoS, etc)
lockup
Bool
If there’s a lockup period
start_stake_time
Int
Start stake time(mileseconds timestamp)
stop_stake_time
Int
Stop stake time(mileseconds timestamp)
start_staking_time
Int
Start staking time(mileseconds timestamp)
stop_staking_time
Int
Stop staking time(mileseconds timestamp)
liquidate_time
Int
Liquidate time(mileseconds timestamp)
reward_liquidate_time
Int
Reward liquidate time(mileseconds timestamp)
product_id
Int
Product id(unique)
product_group
String
product of group
request(
"GET",
"/v1/custody/stakings/",
{
"coin": "ZEL",
},
api_key, api_secret, host
)
{
"success": true,
"result": [
{
"staking_id": 57520,
"coin": "TETH",
"coin_decimal": 18,
"amount": "23391613625225404",
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"reward_amount": 873919022232,
"product": {
"name": " TETH PoS\u6d4b\u8bd5",
"description": "TETH PoS test",
"doc_src": "https://www.cobo.com",
"coin": "TETH",
"coin_decimal": 18,
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"unstake_fee": "0",
"min_amount": "1000000",
"rate": "0.2000000000",
"rate_type": 1,
"days": 0,
"stake_type": "pos",
"lockup": false,
"start_stake_time": 1691387100000,
"stop_stake_time": 1691389800000,
"start_staking_time": 1691389800000,
"stop_staking_time": 1691397000000,
"liquidate_time": 1691397060000,
"reward_liquidate_time": 1691397120000,
"product_id": 236080,
"product_group": " TETHPPSW"
}
},
{
"staking_id": 57523,
"coin": "TETH",
"coin_decimal": 18,
"amount": "1063172",
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"reward_amount": 28,
"product": {
"name": " TETH PoS\u6d4b\u8bd5",
"description": "TETH PoS test",
"doc_src": "https://www.cobo.com",
"coin": "TETH",
"coin_decimal": 18,
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"unstake_fee": "0",
"min_amount": "1000000",
"rate": "0.2000000000",
"rate_type": 1,
"days": 0,
"stake_type": "pos",
"lockup": false,
"start_stake_time": 1691388900000,
"stop_stake_time": 1691391600000,
"start_staking_time": 1691391600000,
"stop_staking_time": 1691398800000,
"liquidate_time": 1691398860000,
"reward_liquidate_time": 1691398920000,
"product_id": 236082,
"product_group": " TETHPPSW"
}
}
]
}
request(
"GET",
"/v1/custody/stakings/",
{
"coin": "ZEL",
},
api_key, api_secret, host
)
{
"success": true,
"result": [
{
"staking_id": 57520,
"coin": "TETH",
"coin_decimal": 18,
"amount": "23391613625225404",
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"reward_amount": 873919022232,
"product": {
"name": " TETH PoS\u6d4b\u8bd5",
"description": "TETH PoS test",
"doc_src": "https://www.cobo.com",
"coin": "TETH",
"coin_decimal": 18,
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"unstake_fee": "0",
"min_amount": "1000000",
"rate": "0.2000000000",
"rate_type": 1,
"days": 0,
"stake_type": "pos",
"lockup": false,
"start_stake_time": 1691387100000,
"stop_stake_time": 1691389800000,
"start_staking_time": 1691389800000,
"stop_staking_time": 1691397000000,
"liquidate_time": 1691397060000,
"reward_liquidate_time": 1691397120000,
"product_id": 236080,
"product_group": " TETHPPSW"
}
},
{
"staking_id": 57523,
"coin": "TETH",
"coin_decimal": 18,
"amount": "1063172",
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"reward_amount": 28,
"product": {
"name": " TETH PoS\u6d4b\u8bd5",
"description": "TETH PoS test",
"doc_src": "https://www.cobo.com",
"coin": "TETH",
"coin_decimal": 18,
"reward_coin": "TETH",
"reward_coin_decimal": 18,
"unstake_fee": "0",
"min_amount": "1000000",
"rate": "0.2000000000",
"rate_type": 1,
"days": 0,
"stake_type": "pos",
"lockup": false,
"start_stake_time": 1691388900000,
"stop_stake_time": 1691391600000,
"start_staking_time": 1691391600000,
"stop_staking_time": 1691398800000,
"liquidate_time": 1691398860000,
"reward_liquidate_time": 1691398920000,
"product_id": 236082,
"product_group": " TETHPPSW"
}
}
]
}