Sha256: 0e6753f1a57bdcc58a6982ab355462648609a970a072a293610b19cc161171f2

Contents?: true

Size: 540 Bytes

Versions: 3

Compression:

Stored size: 540 Bytes

Contents

# frozen_string_literal: true

module Alpaca
  module Trade
    module Api
      class NonTradeActivity
        attr_reader :id, :activity_type, :date, :net_ammount, :symbol, :qty, :per_share_amount

        def initialize(json)
          @id = json['id']
          @activity_type = json['activity_type']
          @date = json['date']
          @net_ammount = json['net_ammount']
          @symbol = json['symbol']
          @qty = json['qty']
          @per_share_amount = json['per_share_amount']
        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/non_trade_activity.rb
alpaca-trade-api-0.7.0 lib/alpaca/trade/api/non_trade_activity.rb
alpaca-trade-api-0.6.0 lib/alpaca/trade/api/non_trade_activity.rb