lib/binance/client/rest.rb
# Public: String base url for REST client to use
String base url for REST client to use
String base url for REST client to use
def signed_client(api_key, secret_key, adapter)
        Faraday.new(url: "#{BASE_URL}/api") do |conn|
          conn.request :json
          conn.response :json, content_type: /\bjson$/
          conn.headers['X-MBX-APIKEY'] = api_key
          conn.use TimestampRequestMiddleware
          conn.use SignRequestMiddleware, secret_key
          conn.adapter adapter
        end
      end
def signed_client ( api_key , secret_key , adapter ) Faraday . new ( url : "#{BASE_URL}/api" ) do | conn | conn . request :json conn . response :json , content_type : / \b json$ / conn . headers [ 'X-MBX-APIKEY' ] = api_key conn . use TimestampRequestMiddleware conn . use SignRequestMiddleware , secret_key conn . adapter adapter end end
Public: String base url for REST client to use
Public : String base url for REST client to use
api_key
secret_key
adapter