Class: Tastytrade::Operations::CustomerAccountInfo::GetAccount

Inherits:
BaseOperation
  • Object
show all
Defined in:
lib/tastytrade/operations/customer_account_info/get_account.rb

Instance Attribute Summary

Attributes inherited from BaseOperation

#client

Instance Method Summary collapse

Methods inherited from BaseOperation

#initialize

Methods included from Util

response_success?

Methods included from Error

raise_error

Constructor Details

This class inherits a constructor from Tastytrade::Operations::BaseOperation

Instance Method Details

#call(account_number:) ⇒ Object

Calls GET /customers/me/accounts/account_number



9
10
11
12
13
# File 'lib/tastytrade/operations/customer_account_info/get_account.rb', line 9

def call(account_number:)
  perform_api_get_request(
    url: "#{Tastytrade::BASE_URL}/customers/me/accounts/#{}"
  )
end