Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple earns #17

Merged
merged 6 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/binance/spot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
require 'binance/spot/margin'
require 'binance/spot/market'
require 'binance/spot/mining'
require 'binance/spot/simple_earn'
require 'binance/spot/stream'
require 'binance/spot/subaccount'
require 'binance/spot/trade'
Expand Down Expand Up @@ -46,6 +47,7 @@ class Spot
include Binance::Spot::Margin
include Binance::Spot::Market
include Binance::Spot::Mining
include Binance::Spot::SimpleEarn
include Binance::Spot::Stream
include Binance::Spot::Subaccount
include Binance::Spot::Trade
Expand Down
23 changes: 23 additions & 0 deletions lib/binance/spot/simple_earn.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# frozen_string_literal: true

module Binance
class Spot
# all wallet endpoints
# @see https://binance-docs.github.io/apidocs/spot/en/#wallet-endpoints
module SimpleEarn
# All Coins' Information on 'simple earn' (USER_DATA)
#
# GET /sapi/v1/simple-earn/account'
#
# Get information of coins (in simple earn) for user.
#
# @param kwargs [Hash]
# @option kwargs [Integer] :recvWindow The value cannot be greater than 60000
# @see https://binance-docs.github.io/apidocs/spot/en/#simple-account-user_data
def simple_earn_account(**kwargs)
@session.sign_request(:get, '/sapi/v1/simple-earn/account', params: kwargs)
end

end
end
end
Loading