Class: Binance::SDK::Ticker
- Inherits:
-
Object
- Object
- Binance::SDK::Ticker
- Defined in:
- lib/binance/sdk/ticker.rb
Class Method Summary collapse
Class Method Details
.price(symbol) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/binance/sdk/ticker.rb', line 5 def price(symbol) = Configuration. params = { recvWindow: 5000, timestamp: , symbol: symbol } Request.send!( api_key_type: :read_info, path: Endpoints.fetch(:ticker_price), params: params.delete_if { |_, value| value.nil? }, security_type: :user_data, api_key: Configuration.api_key, api_secret_key: Configuration.secret_key ) end |