Sha256: f42d50c20c69f91566b79e926bbb60718c74ce573023df4c6e99fa895225c8f7

Contents?: true

Size: 942 Bytes

Versions: 3

Compression:

Stored size: 942 Bytes

Contents

# frozen_string_literal: true

require 'alpaca/trade/api/version'
require 'alpaca/trade/api/configuration'

require 'alpaca/trade/api/account'
require 'alpaca/trade/api/asset'
require 'alpaca/trade/api/bar'
require 'alpaca/trade/api/calendar'
require 'alpaca/trade/api/clock'
require 'alpaca/trade/api/last_trade'
require 'alpaca/trade/api/non_trade_activity'
require 'alpaca/trade/api/order'
require 'alpaca/trade/api/position'
require 'alpaca/trade/api/trade_activity'

require 'alpaca/trade/api/client'
require 'alpaca/trade/api/errors'

require 'bigdecimal/util'
require 'json'

module Alpaca
  module Trade
    module Api
      class << self
        def configuration
          @configuration ||= Alpaca::Trade::Api::Configuration.new
        end

        def configure
          yield(configuration)
        end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alpaca-trade-api-0.8.0 lib/alpaca/trade/api.rb
alpaca-trade-api-0.7.0 lib/alpaca/trade/api.rb
alpaca-trade-api-0.6.0 lib/alpaca/trade/api.rb