Class: Coinbase::Conversions
- Defined in:
- lib/coinbase/conversions.rb
Overview
Coinbase Conversions API’s
Constant Summary collapse
- CONVERSION_URL =
'/conversions'
Instance Method Summary collapse
-
#create(params = {}) ⇒ Hash
Creates the order with the given data.
Methods inherited from Client
configuration, configure, #delete, #get, #headers, #http_request, #initialize, #post, #put, #signature
Methods included from Util
#base_uri, #build_query_params, #format_response, #pagination_params, #send_request
Constructor Details
This class inherits a constructor from Coinbase::Client
Instance Method Details
#create(params = {}) ⇒ Hash
Creates the order with the given data.
to [String] A valid currency id. from [String] A valid currency id. amount [Float] Amount of from to convert to to, current limit is 10,000,000
17 18 19 |
# File 'lib/coinbase/conversions.rb', line 17 def create(params = {}) format_response(post(CONVERSION_URL, body: params)) end |