request(
"GET",
"/v1/custody/staking_history/",
{
"coin": "ZEL",
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/staking_history/',
{
"coin": "ZEL",
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/staking_history/", map[string]string{
"coin": "ZEL",
})
{
"success": true,
"result":[
{
"activity_id": "20230807160006000354399000008312",
"coin": "TETH",
"amount": "1176999339169",
"type": "stake",
"raw_type": 0,
"time": 1691395206207,
"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": 1691390700000,
"stop_stake_time": 1691393400000,
"start_staking_time": 1691393400000,
"stop_staking_time": 1691400600000,
"liquidate_time": 1691400660000,
"reward_liquidate_time": 1691400720000,
"product_id": 236088,
"product_group": " TETHPPSW"
}
},
{
"activity_id": "20230807160005000354399000003540",
"coin": "TETH",
"amount": "53741808",
"type": "unstake",
"raw_type": -3,
"time": 1691395205779,
"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": 1691385300000,
"stop_stake_time": 1691388000000,
"start_staking_time": 1691388000000,
"stop_staking_time": 1691395200000,
"liquidate_time": 1691395260000,
"reward_liquidate_time": 1691395320000,
"product_id": 236078,
"product_group": " TETHPPSW"
}
}
]
}
Staking
Get All Staking History
This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
GET
/
v1
/
custody
/
staking_history
/
request(
"GET",
"/v1/custody/staking_history/",
{
"coin": "ZEL",
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/staking_history/',
{
"coin": "ZEL",
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/staking_history/", map[string]string{
"coin": "ZEL",
})
{
"success": true,
"result":[
{
"activity_id": "20230807160006000354399000008312",
"coin": "TETH",
"amount": "1176999339169",
"type": "stake",
"raw_type": 0,
"time": 1691395206207,
"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": 1691390700000,
"stop_stake_time": 1691393400000,
"start_staking_time": 1691393400000,
"stop_staking_time": 1691400600000,
"liquidate_time": 1691400660000,
"reward_liquidate_time": 1691400720000,
"product_id": 236088,
"product_group": " TETHPPSW"
}
},
{
"activity_id": "20230807160005000354399000003540",
"coin": "TETH",
"amount": "53741808",
"type": "unstake",
"raw_type": -3,
"time": 1691395205779,
"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": 1691385300000,
"stop_stake_time": 1691388000000,
"start_staking_time": 1691388000000,
"stop_staking_time": 1691395200000,
"liquidate_time": 1691395260000,
"reward_liquidate_time": 1691395320000,
"product_id": 236078,
"product_group": " TETHPPSW"
}
}
]
}
Request
String
The coin to filter by.
String
The activity type to filter by.
String
The maximum activity ID to return.
String
The maximum number of activities to return.
Int
The product ID to filter by.
Response
bool
request successful or failed
object[]
Show object
Show object
String
Activity ID
String
The coin of the activity.
String
The absolute amount of the activity.
String
Action type(stake unstake reward fee).
Int
1:fixed rate 2:estimated rate
Int
The time of the activity.
object
Show object
Show object
String
Product name
String
Product description
String
Product detailed description doc
String
Coin code
Int
Coin decimal
String
Reward coin
Int
Reward coin decimal
String
Unstake fee
String
Min. amount to stake
String
Yearly ROI
Int
1:fixed rate 2:estimated rate
Int
Reward period
String
Staking type(Masternode, DPoS, etc)
Bool
If there’s a lockup period
Int
Start stake time(mileseconds timestamp)
Int
Stop stake time(mileseconds timestamp)
Int
Start staking time(mileseconds timestamp)
Int
Stop staking time(mileseconds timestamp)
Int
Liquidate time(mileseconds timestamp)
Int
Reward liquidate time(mileseconds timestamp)
Int
Product id(unique)
String
product of group
request(
"GET",
"/v1/custody/staking_history/",
{
"coin": "ZEL",
},
api_key, api_secret, host
)
coboFetch('GET', '/v1/custody/staking_history/',
{
"coin": "ZEL",
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("GET", "/v1/custody/staking_history/", map[string]string{
"coin": "ZEL",
})
{
"success": true,
"result":[
{
"activity_id": "20230807160006000354399000008312",
"coin": "TETH",
"amount": "1176999339169",
"type": "stake",
"raw_type": 0,
"time": 1691395206207,
"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": 1691390700000,
"stop_stake_time": 1691393400000,
"start_staking_time": 1691393400000,
"stop_staking_time": 1691400600000,
"liquidate_time": 1691400660000,
"reward_liquidate_time": 1691400720000,
"product_id": 236088,
"product_group": " TETHPPSW"
}
},
{
"activity_id": "20230807160005000354399000003540",
"coin": "TETH",
"amount": "53741808",
"type": "unstake",
"raw_type": -3,
"time": 1691395205779,
"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": 1691385300000,
"stop_stake_time": 1691388000000,
"start_staking_time": 1691388000000,
"stop_staking_time": 1691395200000,
"liquidate_time": 1691395260000,
"reward_liquidate_time": 1691395320000,
"product_id": 236078,
"product_group": " TETHPPSW"
}
}
]
}
⌘I
