module Binance::Spot::Savings
def savings_account(**kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#lending-account-user_data -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000
Parameters:
-
kwargs
(Hash
) --
def savings_account(**kwargs) @session.sign_request(:get, '/sapi/v1/lending/union/account', params: kwargs) end
def savings_customized_position(asset:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#get-fixed-activity-project-position-user_data -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000 -
:status
(String
) -- "HOLDING", "REDEEMED" -
:projectId
(String
) --
Parameters:
-
kwargs
(Hash
) -- -
asset
(String
) --
def savings_customized_position(asset:, **kwargs) Binance::Utils::Validation.require_param('asset', asset) @session.sign_request(:get, '/sapi/v1/lending/project/position/list', params: kwargs.merge( asset: asset )) end
def savings_flexible_product_position(asset:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#get-flexible-product-position-user_data -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000
Parameters:
-
kwargs
(Hash
) -- -
asset
(String
) --
def savings_flexible_product_position(asset:, **kwargs) Binance::Utils::Validation.require_param('asset', asset) @session.sign_request(:get, '/sapi/v1/lending/daily/token/position', params: kwargs.merge( asset: asset )) end
def savings_flexible_products(**kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#get-flexible-product-list-user_data -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000 -
:size
(Integer
) -- Default: 50, Max: 100 -
:current
(Integer
) -- Current query page. Default: 1, Min: 1 -
:featured
(String
) -- "ALL", "TRUE"; Default: "ALL" -
:status
(String
) -- "ALL", "SUBSCRIBABLE", "UNSUBSCRIBABLE"; Default: "ALL"
Parameters:
-
kwargs
(Hash
) --
def savings_flexible_products(**kwargs) @session.sign_request(:get, '/sapi/v1/lending/daily/product/list', params: kwargs) end
def savings_flexible_redeem(productId:, amount:, type:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#redeem-flexible-product-user_data -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000
Parameters:
-
kwargs
(Hash
) -- -
type
(String
) -- -
amount
(Float
) -- ] -
productId
(String
) --
def savings_flexible_redeem(productId:, amount:, type:, **kwargs) Binance::Utils::Validation.require_param('productId', productId) Binance::Utils::Validation.require_param('amount', amount) Binance::Utils::Validation.require_param('type', type) @session.sign_request(:post, '/sapi/v1/lending/daily/redeem', params: kwargs.merge( productId: productId, amount: amount, type: type )) end
def savings_flexible_user_left_quota(productId:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#get-left-daily-purchase-quota-of-flexible-product-user_data -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000
Parameters:
-
kwargs
(Hash
) -- -
productId
(String
) --
def savings_flexible_user_left_quota(productId:, **kwargs) Binance::Utils::Validation.require_param('productId', productId) @session.sign_request(:get, '/sapi/v1/lending/daily/userLeftQuota', params: kwargs.merge( productId: productId )) end
def savings_flexible_user_redemption_quota(productId:, type:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#get-left-daily-redemption-quota-of-flexible-product-user_data -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000
Parameters:
-
kwargs
(Hash
) -- -
type
(String
) -- "FAST", "NORMAL" -
productId
(String
) --
def savings_flexible_user_redemption_quota(productId:, type:, **kwargs) Binance::Utils::Validation.require_param('productId', productId) Binance::Utils::Validation.require_param('type', type) @session.sign_request(:get, '/sapi/v1/lending/daily/userRedemptionQuota', params: kwargs.merge( productId: productId, type: type )) end
def savings_interest_history(lendingType:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#get-interest-history-user_data-2 -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000 -
:size
(Integer
) -- -
:current
(Integer
) -- -
:endTime
(Integer
) -- -
:startTime
(Integer
) -- -
:asset
(String
) --
Parameters:
-
kwargs
(Hash
) -- -
lendingType
(String
) --
def savings_interest_history(lendingType:, **kwargs) Binance::Utils::Validation.require_param('lendingType', lendingType) @session.sign_request(:get, '/sapi/v1/lending/union/interestHistory', params: kwargs.merge( lendingType: lendingType )) end
def savings_position_changed(projectId:, lot:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#change-fixed-activity-position-to-daily-position-user_data -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000 -
:positionId
(Integer
) --
Parameters:
-
kwargs
(Hash
) -- -
lot
(Integer
) -- -
projectId
(String
) --
def savings_position_changed(projectId:, lot:, **kwargs) Binance::Utils::Validation.require_param('projectId', projectId) Binance::Utils::Validation.require_param('lot', lot) @session.sign_request(:post, '/sapi/v1/lending/positionChanged', params: kwargs.merge( projectId: projectId, lot: lot )) end
def savings_product_list(type:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#get-fixed-and-activity-project-list-user_data -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000 -
:size
(Integer
) -- Default:10, Max:100 -
:current
(Integer
) -- Currently querying page. Start from 1. Default:1 -
:sortBy
(String
) -- "START_TIME", "LOT_SIZE", "INTEREST_RATE", "DURATION"; default "START_TIME" -
:isSortAsc
(Boolean
) -- default "true" -
:status
(String
) -- "ALL", "SUBSCRIBABLE", "UNSUBSCRIBABLE"; default "ALL" -
:asset
(String
) --
Parameters:
-
kwargs
(Hash
) -- -
type
(String
) -- "REGULAR", "CUSTOMIZED_FIXED"
def savings_product_list(type:, **kwargs) Binance::Utils::Validation.require_param('type', type) @session.sign_request(:get, '/sapi/v1/lending/project/list', params: kwargs.merge( type: type )) end
def savings_purchase_customized_project(projectId:, lot:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#purchase-fixed-activity-project-user_data -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000
Parameters:
-
kwargs
(Hash
) -- -
lot
(String
) -- -
projectId
(String
) --
def savings_purchase_customized_project(projectId:, lot:, **kwargs) Binance::Utils::Validation.require_param('projectId', projectId) Binance::Utils::Validation.require_param('lot', lot) @session.sign_request(:post, '/sapi/v1/lending/customizedFixed/purchase', params: kwargs.merge( projectId: projectId, lot: lot )) end
def savings_purchase_flexible_product(productId:, amount:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#purchase-flexible-product-user_data -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000
Parameters:
-
kwargs
(Hash
) -- -
amount
(Float
) -- -
productId
(String
) --
def savings_purchase_flexible_product(productId:, amount:, **kwargs) Binance::Utils::Validation.require_param('productId', productId) Binance::Utils::Validation.require_param('amount', amount) @session.sign_request(:post, '/sapi/v1/lending/daily/purchase', params: kwargs.merge( productId: productId, amount: amount )) end
def savings_purchase_record(lendingType:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#get-purchase-record-user_data -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000 -
:size
(Integer
) -- -
:current
(Integer
) -- -
:endTime
(Integer
) -- -
:startTime
(Integer
) -- -
:asset
(String
) --
Parameters:
-
kwargs
(Hash
) -- -
lendingType
(String
) --
def savings_purchase_record(lendingType:, **kwargs) Binance::Utils::Validation.require_param('lendingType', lendingType) @session.sign_request(:get, '/sapi/v1/lending/union/purchaseRecord', params: kwargs.merge( lendingType: lendingType )) end
def savings_redemption_record(lendingType:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#get-redemption-record-user_data -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000 -
:size
(Integer
) -- -
:current
(Integer
) -- -
:endTime
(Integer
) -- -
:startTime
(Integer
) -- -
:asset
(String
) --
Parameters:
-
kwargs
(Hash
) -- -
lendingType
(String
) --
def savings_redemption_record(lendingType:, **kwargs) Binance::Utils::Validation.require_param('lendingType', lendingType) @session.sign_request(:get, '/sapi/v1/lending/union/redemptionRecord', params: kwargs.merge( lendingType: lendingType )) end