lib/binance/client/rest.rb
# Internal: Create a request that hits one of the REST APIs
#
# api - The Symbol that represents which API to use.
#
# method - The Symbol that represents which HTTP method to use.
#
# endpoint - The String that represents which API endpoint to request
#            from.
#
# options - The Hash which hosts various REST query params. (Default = {})
#           Each endpoint will have their own required and optional
#           params.
Create a request that hits one of the REST APIs
api - The Symbol that represents which API to use.

The Symbol that represents which HTTP method to use.

The String that represents which API endpoint to request
from.

The Hash which hosts various REST query params. (Default = {})
Each endpoint will have their own required and optional
params.
Create a request that hits one of the REST APIs api - The Symbol that represents which API to use . The Symbol that represents which HTTP method to use . The String that represents which API endpoint to request from . The Hash which hosts various REST query params . ( Default = {} ) Each endpoint will have their own required and optional params .
def request(api, method, endpoint, options = {})
        response = @library[api].send(method) do |req|
          req.url API_ENDPOINTS[endpoint]
          req.params.merge! options
        end
        response.body
      end
def request ( api , method , endpoint , options = { } ) response = @library [ api ] . send ( method ) do | req | req . url API_ENDPOINTS [ endpoint ] req . params . merge! options end response . body end
Internal: Create a request that hits one of the REST APIs
api - The Symbol that represents which API to use.
Internal : Create a request that hits one of the REST APIs api - The Symbol that represents which API to use .
api
method
endpoint
options