Sha256: 9933d8fa2bf6423a4a2b939fb53cedb79271366dc3b5544e7e8e6fc22af8c345
Contents?: true
Size: 869 Bytes
Versions: 3
Compression:
Stored size: 869 Bytes
Contents
# frozen_string_literal: true module Alpaca module Trade module Api class TradeActivity ATTRIBUTES = %w(id activity_type transaction_time type price qty side symbol leaves_qty order_id cum_qty) attr_reader :id, :activity_type, :transaction_time, :type, :price, :qty, :side, :symbol, :leaves_qty, :order_id, :cum_qty def initialize(json) @id = json['id'] @activity_type = json['activity_type'] @transaction_time = json['transaction_time'] @type = json['type'] @price = json['price'] @qty = json['qty'] @side = json['side'] @symbol = json['symbol'] @leaves_qty = json['leaves_qty'] @order_id = json['order_id'] @cum_qty = json['cum_qty'] 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/trade_activity.rb |
alpaca-trade-api-0.7.0 | lib/alpaca/trade/api/trade_activity.rb |
alpaca-trade-api-0.6.0 | lib/alpaca/trade/api/trade_activity.rb |