module Binance::Spot::SimpleEarn

def collateral_record(**kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/history/Get-Collateral-Record -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :size (Integer) -- Default:10, Max:100
  • :current (Integer) -- Currently querying the page. Start from 1. Default:1
  • :endTime (Integer) --
  • :startTime (Integer) --
  • :productId (String) --

Parameters:
  • kwargs (Hash) --
def collateral_record(**kwargs)
  @session.sign_request(:get, '/sapi/v1/simple-earn/flexible/history/collateralRecord', params: kwargs)
end

def flexible_auto_subscribe(productId:, autoSubscribe:, **kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/earn/Set-Flexible-Auto-Subscribe -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000

Parameters:
  • kwargs (Hash) --
  • autoSubscribe (Boolean) -- true or false
  • productId (String) --
def flexible_auto_subscribe(productId:, autoSubscribe:, **kwargs)
  Binance::Utils::Validation.require_param('productId', productId)
  Binance::Utils::Validation.require_param('autoSubscribe', autoSubscribe)
  @session.sign_request(:post, '/sapi/v1/simple-earn/flexible/setAutoSubscribe', params: kwargs.merge(
    productId: productId,
    autoSubscribe: autoSubscribe
  ))
end

def flexible_personal_left_quota(productId:, **kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/account/Get-Flexible-Personal-Left-Quota -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000

Parameters:
  • kwargs (Hash) --
  • productId (String) --
def flexible_personal_left_quota(productId:, **kwargs)
  Binance::Utils::Validation.require_param('productId', productId)
  @session.sign_request(:get, '/sapi/v1/simple-earn/flexible/personalLeftQuota', params: kwargs.merge(productId: productId))
end

def flexible_product_list(**kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/account/Get-Simple-Earn-Flexible-Product-List -

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
  • :asset (String) --

Parameters:
  • kwargs (Hash) --
def flexible_product_list(**kwargs)
  @session.sign_request(:get, '/sapi/v1/simple-earn/flexible/list', params: kwargs)
end

def flexible_product_position(**kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/account/Get-Flexible-Product-Position -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :size (Integer) -- Default:10, Max:100
  • :current (Integer) -- Currently querying the page. Start from 1. Default:1
  • :productId (String) --
  • :asset (String) --

Parameters:
  • kwargs (Hash) --
def flexible_product_position(**kwargs)
  @session.sign_request(:get, '/sapi/v1/simple-earn/flexible/position', params: kwargs)
end

def flexible_redeem_product(productId:, **kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/earn/Redeem-Flexible-Product -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :destAccount (String) -- SPOT,FUND,ALL, default SPOT
  • :amount (Float) -- if redeemAll is false, amount is mandatory
  • :redeemAll (Boolean) -- true or false, default true

Parameters:
  • kwargs (Hash) --
  • productId (String) --
def flexible_redeem_product(productId:, **kwargs)
  Binance::Utils::Validation.require_param('productId', productId)
  @session.sign_request(:post, '/sapi/v1/simple-earn/flexible/redeem', params: kwargs.merge(
    productId: productId
  ))
end

def flexible_redemption_record(**kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/history/Get-Flexible-Redemption-Record -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :size (Integer) -- Default:10, Max:100
  • :current (Integer) -- Currently querying the page. Start from 1. Default:1
  • :endTime (Integer) --
  • :startTime (Integer) --
  • :asset (String) --
  • :redeemId (String) --
  • :productId (String) --

Parameters:
  • kwargs (Hash) --
def flexible_redemption_record(**kwargs)
  @session.sign_request(:get, '/sapi/v1/simple-earn/flexible/history/redemptionRecord', params: kwargs)
end

def flexible_rewards_history(type:, **kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/history/Get-Flexible-Rewards-History -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :size (Integer) -- Default:10, Max:100
  • :current (Integer) -- Currently querying the page. Start from 1. Default:1
  • :endTime (Integer) --
  • :startTime (Integer) --
  • :asset (String) --
  • :productId (String) --

Parameters:
  • kwargs (Hash) --
  • type (String) -- BONUS - Bonus tiered APR, REALTIME Real-time APR, REWARDS Historical rewards
def flexible_rewards_history(type:, **kwargs)
  Binance::Utils::Validation.require_param('type', type)
  @session.sign_request(:get, '/sapi/v1/simple-earn/flexible/history/rewardsRecord', params: kwargs.merge(type: type))
end

def flexible_subscribe(productId:, amount:, **kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/earn/Subscribe-Flexible-Product -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :sourceAccount (String) -- SPOT,FUND,ALL, default SPOT
  • :autoSubscribe (Boolean) -- true or false, default true

Parameters:
  • kwargs (Hash) --
  • amount (Float) --
  • productId (String) --
def flexible_subscribe(productId:, amount:, **kwargs)
  Binance::Utils::Validation.require_param('productId', productId)
  Binance::Utils::Validation.require_param('amount', amount)
  @session.sign_request(:post, '/sapi/v1/simple-earn/flexible/subscribe', params: kwargs.merge(
    productId: productId,
    amount: amount
  ))
end

def flexible_subscription_preview(productId:, amount:, **kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/earn/Get-Flexible-Subscription-Preview -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000

Parameters:
  • kwargs (Hash) --
  • amount (Float) --
  • productId (String) --
def flexible_subscription_preview(productId:, amount:, **kwargs)
  Binance::Utils::Validation.require_param('productId', productId)
  Binance::Utils::Validation.require_param('amount', amount)
  @session.sign_request(:get, '/sapi/v1/simple-earn/flexible/subscriptionPreview', params: kwargs.merge(
    productId: productId,
    amount: amount
  ))
end

def flexible_subscription_record(**kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/history/Get-Flexible-Subscription-Record -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :size (Integer) -- Default:10, Max:100
  • :current (Integer) -- Currently querying the page. Start from 1. Default:1
  • :endTime (Integer) --
  • :startTime (Integer) --
  • :asset (String) --
  • :purchaseId (String) --
  • :productId (String) --

Parameters:
  • kwargs (Hash) --
def flexible_subscription_record(**kwargs)
  @session.sign_request(:get, '/sapi/v1/simple-earn/flexible/history/subscriptionRecord', params: kwargs)
end

def locked_auto_subscribe(positionId:, autoSubscribe:, **kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/earn/Set-Locked-Auto-Subscribe -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000

Parameters:
  • kwargs (Hash) --
  • autoSubscribe (Boolean) -- true or false
  • positionId (String) --
def locked_auto_subscribe(positionId:, autoSubscribe:, **kwargs)
  Binance::Utils::Validation.require_param('positionId', positionId)
  Binance::Utils::Validation.require_param('autoSubscribe', autoSubscribe)
  @session.sign_request(:post, '/sapi/v1/simple-earn/locked/setAutoSubscribe', params: kwargs.merge(
    positionId: positionId,
    autoSubscribe: autoSubscribe
  ))
end

def locked_personal_left_quota(projectId:, **kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/account/Get-Locked-Personal-Left-Quota -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000

Parameters:
  • kwargs (Hash) --
  • projectId (String) --
def locked_personal_left_quota(projectId:, **kwargs)
  Binance::Utils::Validation.require_param('projectId', projectId)
  @session.sign_request(:get, '/sapi/v1/simple-earn/locked/personalLeftQuota', params: kwargs.merge(projectId: projectId))
end

def locked_product_list(**kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/account/Get-Simple-Earn-Locked-Product-List -

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
  • :asset (String) --

Parameters:
  • kwargs (Hash) --
def locked_product_list(**kwargs)
  @session.sign_request(:get, '/sapi/v1/simple-earn/locked/list', params: kwargs)
end

def locked_product_position(**kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/account/Get-Locked-Product-Position -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :size (Integer) -- Default:10, Max:100
  • :current (Integer) -- Currently querying the page. Start from 1. Default:1
  • :projectId (String) --
  • :positionId (String) --
  • :asset (String) --

Parameters:
  • kwargs (Hash) --
def locked_product_position(**kwargs)
  @session.sign_request(:get, '/sapi/v1/simple-earn/locked/position', params: kwargs)
end

def locked_redeem_option(positionId:, redeemTo:, **kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/earn/Set-Locked-Redeem-Option -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000

Parameters:
  • kwargs (Hash) --
  • redeemTo (String) -- SPOT or FLEXIBLE
  • positionId (String) --
def locked_redeem_option(positionId:, redeemTo:, **kwargs)
  Binance::Utils::Validation.require_param('positionId', positionId)
  Binance::Utils::Validation.require_param('redeemTo', redeemTo)
  @session.sign_request(:post, '/sapi/v1/simple-earn/locked/setRedeemOption', params: kwargs.merge(
    positionId: positionId,
    redeemTo: redeemTo
  ))
end

def locked_redeem_product(positionId:, **kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/earn/Redeem-Locked-Product -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000

Parameters:
  • kwargs (Hash) --
  • positionId (String) --
def locked_redeem_product(positionId:, **kwargs)
  Binance::Utils::Validation.require_param('positionId', positionId)
  @session.sign_request(:post, '/sapi/v1/simple-earn/locked/redeem', params: kwargs.merge(
    positionId: positionId
  ))
end

def locked_redemption_record(**kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/history/Get-Locked-Redemption-Record -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :size (Integer) -- Default:10, Max:100
  • :current (Integer) -- Currently querying the page. Start from 1. Default:1
  • :endTime (Integer) --
  • :startTime (Integer) --
  • :asset (String) --
  • :redeemId (String) --
  • :positionId (String) --

Parameters:
  • kwargs (Hash) --
def locked_redemption_record(**kwargs)
  @session.sign_request(:get, '/sapi/v1/simple-earn/locked/history/redemptionRecord', params: kwargs)
end

def locked_rewards_history(**kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/history/Get-Locked-Rewards-History -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :size (Integer) -- Default:10, Max:100
  • :current (Integer) -- Currently querying the page. Start from 1. Default:1
  • :endTime (Integer) --
  • :startTime (Integer) --
  • :asset (String) --
  • :positionId (String) --

Parameters:
  • kwargs (Hash) --
def locked_rewards_history(**kwargs)
  @session.sign_request(:get, '/sapi/v1/simple-earn/locked/history/rewardsRecord', params: kwargs)
end

def locked_subscribe(projectId:, amount:, **kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/earn/Subscribe-Locked-Product -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :redeemTo (String) -- SPOT,FLEXIBLE, default FLEXIBLE
  • :sourceAccount (String) -- SPOT,FUND,ALL, default SPOT
  • :autoSubscribe (Boolean) -- true or false, default true

Parameters:
  • kwargs (Hash) --
  • amount (Float) --
  • projectId (String) --
def locked_subscribe(projectId:, amount:, **kwargs)
  Binance::Utils::Validation.require_param('projectId', projectId)
  Binance::Utils::Validation.require_param('amount', amount)
  @session.sign_request(:post, '/sapi/v1/simple-earn/locked/subscribe', params: kwargs.merge(
    projectId: projectId,
    amount: amount
  ))
end

def locked_subscription_preview(projectId:, amount:, **kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/earn/Get-Locked-Subscription-Preview -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :autoSubscribe (Boolean) -- true or false, default true

Parameters:
  • kwargs (Hash) --
  • amount (Float) --
  • projectId (String) --
def locked_subscription_preview(projectId:, amount:, **kwargs)
  Binance::Utils::Validation.require_param('projectId', projectId)
  Binance::Utils::Validation.require_param('amount', amount)
  @session.sign_request(:get, '/sapi/v1/simple-earn/locked/subscriptionPreview', params: kwargs.merge(
    projectId: projectId,
    amount: amount
  ))
end

def locked_subscription_record(**kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/history/Get-Locked-Subscription-Record -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :size (Integer) -- Default:10, Max:100
  • :current (Integer) -- Currently querying the page. Start from 1. Default:1
  • :endTime (Integer) --
  • :startTime (Integer) --
  • :asset (String) --
  • :purchaseId (String) --

Parameters:
  • kwargs (Hash) --
def locked_subscription_record(**kwargs)
  @session.sign_request(:get, '/sapi/v1/simple-earn/locked/history/subscriptionRecord', params: kwargs)
end

def rate_history(productId:, **kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/history/Get-Rate-History -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :size (Integer) -- Default:10, Max:100
  • :current (Integer) -- Currently querying the page. Start from 1. Default:1
  • :endTime (Integer) --
  • :startTime (Integer) --

Parameters:
  • kwargs (Hash) --
  • productId (String) --
def rate_history(productId:, **kwargs)
  Binance::Utils::Validation.require_param('productId', productId)
  @session.sign_request(:get, '/sapi/v1/simple-earn/flexible/history/rateHistory', params: kwargs.merge(productId: productId))
end

def simple_earn_account(**kwargs)

Other tags:
    See: https://developers.binance.com/docs/simple_earn/account/Simple-Account -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000

Parameters:
  • kwargs (Hash) --
def simple_earn_account(**kwargs)
  @session.sign_request(:get, '/sapi/v1/simple-earn/account', params: kwargs)
end