Module: Bitbot::Trader::ApiMethods
- Included in:
- Provider
- Defined in:
- lib/bitbot/trader/api_methods.rb
Overview
API methods that can be used with every provider
Instance Method Summary collapse
-
#account ⇒ Account
Fetches user’s account info.
-
#open_orders ⇒ Array<OpenOrder>
Fetches user’s current open orders.
Instance Method Details
#account ⇒ Account
Fetches user’s account info
28 29 30 |
# File 'lib/bitbot/trader/api_methods.rb', line 28 def account self.class::AccountInfoRequest.new(client).call end |
#open_orders ⇒ Array<OpenOrder>
Fetches user’s current open orders
15 16 17 |
# File 'lib/bitbot/trader/api_methods.rb', line 15 def open_orders self.class::OpenOrdersRequest.new(client).call end |