Class: Binance::Api::Trade
- Inherits:
-
Object
- Object
- Binance::Api::Trade
- Defined in:
- lib/binance/api/trade.rb
Class Method Summary collapse
- .get_bnb_burn_status!(recvWindow: nil, api_key: nil, api_secret_key: nil) ⇒ Object
- .toggle_bnb_burn!(spot_bnb_burn: true, interest_bnb_burn: false, recvWindow: nil, api_key: nil, api_secret_key: nil) ⇒ Object
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) = Configuration. params = { recvWindow: recvWindow, 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) = Configuration. params = { spotBNBBurn: spot_bnb_burn, interestBNBBurn: interest_bnb_burn, recvWindow: recvWindow, 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 |