Method: Coinbase::Wallet::APIClient#list_sells

Defined in:
lib/coinbase/wallet/api_client.rb

#list_sells(account_id, params = {}) ⇒ Object

Sells



380
381
382
383
384
385
386
387
# File 'lib/coinbase/wallet/api_client.rb', line 380

def list_sells(, params = {})
  out = nil
  get("/v2/accounts/#{account_id}/sells", params) do |resp|
    out = resp.data.map { |item| Transfer.new(self, item) }
    yield(out, resp) if block_given?
  end
  out
end