Method: Binance::Client::REST#withdraw_client
- Defined in:
- lib/binance/client/rest/clients.rb
#withdraw_client(api_key, secret_key, adapter) ⇒ Object
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/binance/client/rest/clients.rb', line 41 def withdraw_client(api_key, secret_key, adapter) Faraday.new(url: "#{BASE_URL}/wapi") do |conn| conn.request :url_encoded 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 |