Method: Binance::Client::REST#signed_client
- Defined in:
- lib/binance/client/rest/clients.rb
#signed_client(api_key, secret_key, adapter) ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/binance/client/rest/clients.rb', line 22 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 |