Class: Binance::Api::Trade

Inherits:
Object
  • Object
show all
Defined in:
lib/binance/api/trade.rb

Class Method Summary collapse

Class Method Details

.get_bnb_burn_status!(recvWindow: nil, api_key: nil, api_secret_key: nil) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/binance/api/trade.rb', line 5

def get_bnb_burn_status!(recvWindow: nil, api_key: nil, api_secret_key: nil)
  timestamp = Configuration.timestamp
  params = { recvWindow: recvWindow, timestamp: timestamp }
  Request.send!(api_key_type: :read_info, path: "/sapi/v1/bnbBurn",
                params: params.delete_if { |key, value| value.nil? },
                security_type: :user_data, tld: Configuration.tld, api_key: api_key,
                api_secret_key: api_secret_key)
end

.toggle_bnb_burn!(spot_bnb_burn: true, interest_bnb_burn: false, recvWindow: nil, api_key: nil, api_secret_key: nil) ⇒ Object



14
15
16
17
18
19
20
21
22
23
# File 'lib/binance/api/trade.rb', line 14

def toggle_bnb_burn!(spot_bnb_burn: true, interest_bnb_burn: false, recvWindow: nil, api_key: nil,
                     api_secret_key: nil)
  timestamp = Configuration.timestamp
  params = { spotBNBBurn: spot_bnb_burn, interestBNBBurn: interest_bnb_burn,
             recvWindow: recvWindow, timestamp: timestamp }
  Request.send!(api_key_type: :read_info, path: "/sapi/v1/bnbBurn", method: :post,
                params: params.delete_if { |key, value| value.nil? },
                security_type: :user_data, tld: Configuration.tld, api_key: api_key,
                api_secret_key: api_secret_key)
end