Module: Alpaca::Trade::Api

Defined in:
lib/alpaca/trade/api.rb,
lib/alpaca/trade/api/bar.rb,
lib/alpaca/trade/api/asset.rb,
lib/alpaca/trade/api/clock.rb,
lib/alpaca/trade/api/order.rb,
lib/alpaca/trade/api/client.rb,
lib/alpaca/trade/api/errors.rb,
lib/alpaca/trade/api/account.rb,
lib/alpaca/trade/api/version.rb,
lib/alpaca/trade/api/calendar.rb,
lib/alpaca/trade/api/position.rb,
lib/alpaca/trade/api/last_trade.rb,
lib/alpaca/trade/api/configuration.rb,
lib/alpaca/trade/api/trade_activity.rb,
lib/alpaca/trade/api/non_trade_activity.rb

Defined Under Namespace

Classes: Account, Asset, Bar, Calendar, Client, Clock, Configuration, Error, InsufficientFunds, InternalServerError, InvalidActivityType, InvalidOrderId, InvalidRequest, LastTrade, MissingParameters, NoPositionForSymbol, NonTradeActivity, Order, OrderNotCancelable, Position, RateLimitedError, TradeActivity, UnauthorizedError

Constant Summary collapse

VERSION =
'0.8.0'

Class Method Summary collapse

Class Method Details

.configurationObject



27
28
29
# File 'lib/alpaca/trade/api.rb', line 27

def configuration
  @configuration ||= Alpaca::Trade::Api::Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



31
32
33
# File 'lib/alpaca/trade/api.rb', line 31

def configure
  yield(configuration)
end

.resetObject



35
36
37
# File 'lib/alpaca/trade/api.rb', line 35

def reset
  @configuration = Alpaca::Trade::Api::Configuration.new
end