v1.5.0 Release
Added
- Support Ruby 3.2 and 3.3
- New endpoint for Simple Earn:
GET /sapi/v1/simple-earn/flexible/list
to query available Simple Earn flexible product listGET /sapi/v1/simple-earn/locked/list
to query available Simple Earn locked product listPOST /sapi/v1/simple-earn/flexible/subscribe
to subscribe to a flexible productPOST /sapi/v1/simple-earn/locked/subscribe
to subscribe to a locked productPOST /sapi/v1/simple-earn/flexible/redeem
to redeem a flexible productPOST /sapi/v1/simple-earn/locked/redeem
to redeem a locked productGET /sapi/v1/simple-earn/flexible/position
to get a flexible product positionGET /sapi/v1/simple-earn/locked/position
to get a locked product positionGET /sapi/v1/simple-earn/account
to get a simple account balancesGET /sapi/v1/simple-earn/flexible/history/subscriptionRecord
to get flexible subscription recordsGET /sapi/v1/simple-earn/locked/history/subscriptionRecord
to get locked subscription recordsGET /sapi/v1/simple-earn/flexible/history/redemptionRecord
to retrieve flexible redemption recordsGET /sapi/v1/simple-earn/locked/history/redemptionRecord
to retrieve locked redemption recordsGET /sapi/v1/simple-earn/flexible/history/rewardsRecord
to get flexible rewards historyGET /sapi/v1/simple-earn/locked/history/rewardsRecord
to get locked rewards historyPOST /sapi/v1/simple-earn/flexible/setAutoSubscribe
to set an auto-subscription to a flexible productPOST /sapi/v1/simple-earn/locked/setAutoSubscribe
to set an auto-subscription to a locked productGET /sapi/v1/simple-earn/flexible/personalLeftQuota
to get flexible personal left quotaGET /sapi/v1/simple-earn/locked/personalLeftQuota
to get locked personal left quotaGET /sapi/v1/simple-earn/flexible/subscriptionPreview
to get flexible subscription previewGET /sapi/v1/simple-earn/locked/subscriptionPreview
to get locked subscription previewsGET /sapi/v1/simple-earn/flexible/history/rateHistory
to get a rate historyGET /sapi/v1/simple-earn/flexible/history/collateralRecord
to get collateral records
Changed
- Update dependencies
- Drop support of Ruby 2.6 and 2.7
Removed
-
Deprecated Savings endpoints:
GET /sapi/v1/lending/daily/product/list
GET /sapi/v1/lending/daily/userLeftQuota
POST /sapi/v1/lending/daily/purchase
GET /sapi/v1/lending/daily/userRedemptionQuota
POST /sapi/v1/lending/daily/redeem
GET /sapi/v1/lending/daily/token/position
GET /sapi/v1/lending/project/list
POST /sapi/v1/lending/customizedFixed/purchase
GET /sapi/v1/lending/union/account
GET /sapi/v1/lending/union/purchaseRecord
GET /sapi/v1/lending/union/redemptionRecord
GET /sapi/v1/lending/union/interestHistory
GET /sapi/v1/lending/project/position/list
POST /sapi/v1/lending/positionChanged
-
Deprecated Staking endpoints:
GET /sapi/v1/staking/productList
POST /sapi/v1/staking/purchase
POST /sapi/v1/staking/redeem
GET /sapi/v1/staking/position
GET /sapi/v1/staking/stakingRecord
POST /sapi/v1/staking/setAutoStaking
GET /sapi/v1/staking/personalLeftQuota
-
Deprecated BSwap endpoints:
GET /sapi/v1/bswap/pools
GET /sapi/v1/bswap/liquidity
POST /sapi/v1/bswap/liquidityAdd
POST /sapi/v1/bswap/liquidityRemove
GET /sapi/v1/bswap/liquidityOps
GET /sapi/v1/bswap/quote
POST /sapi/v1/bswap/swap
GET /sapi/v1/bswap/swap
GET /sapi/v1/bswap/poolConfigure
GET /sapi/v1/bswap/addLiquidityPreview
GET /sapi/v1/bswap/removeLiquidityPreview