Class Savings
java.lang.Object
com.binance.connector.client.impl.spot.Savings
Savings Endpoints
All endpoints under the Savings Endpoint section of the API documentation will be implemented in this class.Response will be returned in String format.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchangeToDailyPosition(LinkedHashMap<String,Object> parameters)
POST /sapi/v1/lending/positionChangeddailyRedemptionQuota(LinkedHashMap<String,Object> parameters)
GET /sapi/v1/lending/daily/userRedemptionQuotaflexibleProductPosition(LinkedHashMap<String,Object> parameters)
GET /sapi/v1/lending/daily/token/positionflexibleProducts(LinkedHashMap<String,Object> parameters)
GET /sapi/v1/lending/daily/product/listinterestHistory(LinkedHashMap<String,Object> parameters)
GET /sapi/v1/lending/union/interestHistorylendingAccount(LinkedHashMap<String,Object> parameters)
GET /sapi/v1/lending/union/accountprojectList(LinkedHashMap<String,Object> parameters)
GET /sapi/v1/lending/project/listprojectPostion(LinkedHashMap<String,Object> parameters)
GET /sapi/v1/lending/project/position/listpurchaseFlexibleProduct(LinkedHashMap<String,Object> parameters)
POST /sapi/v1/lending/daily/purchasepurchaseProject(LinkedHashMap<String,Object> parameters)
POST /sapi/v1/lending/customizedFixed/purchasepurchaseQuotaFlexible(LinkedHashMap<String,Object> parameters)
GET /sapi/v1/lending/daily/userLeftQuotapurchaseRecord(LinkedHashMap<String,Object> parameters)
GET /sapi/v1/lending/union/purchaseRecordredeemFlexibleProduct(LinkedHashMap<String,Object> parameters)
POST /sapi/v1/lending/daily/redeemredemptionRecord(LinkedHashMap<String,Object> parameters)
GET /sapi/v1/lending/union/redemptionRecord
-
Constructor Details
-
Savings
-
-
Method Details
-
flexibleProducts
GET /sapi/v1/lending/daily/product/list- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
status -- optional/enum -- "ALL", "SUBSCRIBABLE", "UNSUBSCRIBABLE"; Default: "ALL"
featured -- optional/string -- "ALL", "TRUE"; Default: "ALL"
current -- optional/long -- Current query page. Default: 1, Min: 1
size -- optional/long -- Default: 50, Max: 100
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#get-flexible-product-list-user_data
-
purchaseQuotaFlexible
GET /sapi/v1/lending/daily/userLeftQuota- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
productId -- mandatory/string
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#get-left-daily-purchase-quota-of-flexible-product-user_data
-
purchaseFlexibleProduct
POST /sapi/v1/lending/daily/purchase- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
productId -- mandatory/string
amount -- mandatory/decimal
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#purchase-flexible-product-user_data
-
dailyRedemptionQuota
GET /sapi/v1/lending/daily/userRedemptionQuota- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
productId -- mandatory/string
type -- mandatory/enum -- "FAST", "NORMAL"
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#get-left-daily-redemption-quota-of-flexible-product-user_data
-
redeemFlexibleProduct
POST /sapi/v1/lending/daily/redeem- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
productId -- mandatory/string
amount -- mandatory/decimal
type -- mandatory/enum -- "FAST", "NORMAL"
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#redeem-flexible-product-user_data
-
flexibleProductPosition
GET /sapi/v1/lending/daily/token/position- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
asset -- mandatory/string
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#get-flexible-product-position-user_data
-
projectList
GET /sapi/v1/lending/project/list- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
asset -- optional/string
type -- mandatory/enum -- "ACTIVITY", "CUSTOMIZED_FIXED"
status -- optional/enum -- "ALL", "SUBSCRIBABLE", "UNSUBSCRIBABLE"; default "ALL"
isSortAsc -- optional/boolean -- default "true"
sortBy -- optional/enum -- "START_TIME", "LOT_SIZE", "INTEREST_RATE", "DURATION"; default "START_TIME"
current -- optional/long -- Currently querying page. Start from 1. Default:1
size -- optional/long -- Default:10, Max:100
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#get-fixed-and-activity-project-list-user_data
-
purchaseProject
POST /sapi/v1/lending/customizedFixed/purchase- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
projectId -- mandatory/string
lot -- mandatory/long
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#purchase-fixed-activity-project-user_data
-
projectPostion
GET /sapi/v1/lending/project/position/list- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
asset -- mandatory/string
projectId -- optional/string
status -- optional/enum -- "HOLDING", "REDEEMED"
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#get-fixed-activity-project-position-user_data
-
lendingAccount
GET /sapi/v1/lending/union/account- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#lending-account-user_data
-
purchaseRecord
GET /sapi/v1/lending/union/purchaseRecord- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
lendingType -- mandatory/enum -- "DAILY" for flexible, "ACTIVITY" for activity, "CUSTOMIZED_FIXED" for fixed
asset -- optional/string
startTime -- optional/long
endTime -- optional/long
current -- optional/long -- Currently querying page. Start from 1. Default:1
size -- optional/long -- Default:10, Max:100
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#get-purchase-record-user_data
-
redemptionRecord
GET /sapi/v1/lending/union/redemptionRecord- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
lendingType -- mandatory/enum -- "DAILY" for flexible, "ACTIVITY" for activity, "CUSTOMIZED_FIXED" for fixed
asset -- optional/string
startTime -- optional/long
endTime -- optional/long
current -- optional/long -- Currently querying page. Start from 1. Default:1
size -- optional/long -- Default:10, Max:100
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#get-redemption-record-user_data
-
interestHistory
GET /sapi/v1/lending/union/interestHistory- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
lendingType -- mandatory/enum -- "DAILY" for flexible, "ACTIVITY" for activity, "CUSTOMIZED_FIXED" for fixed
asset -- optional/string
startTime -- optional/long
endTime -- optional/long
current -- optional/long -- Currently querying page. Start from 1. Default:1
size -- optional/long -- Default:10, Max:100
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#get-interest-history-user_data-2
-
changeToDailyPosition
POST /sapi/v1/lending/positionChanged- Parameters:
parameters
- LinkedHashedMap of String,Object pair where String is the name of the parameter and Object is the value of the parameter
projectId -- mandatory/string
lot -- mandatory/long
positionId -- optional/long -- for fixed position
recvWindow -- optional/long- Returns:
- String
- See Also:
- https://binance-docs.github.io/apidocs/spot/en/#change-fixed-activity-position-to-daily-position-user_data
-