Sha256: bddb4dc93608e7b527c0683dacaa937921a20ddac27576ac52349d6b0d9ddac5
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
# frozen_string_literal: true module Alpaca module Trade module Api class Asset attr_reader :id, :asset_class, :exchange, :symbol, :status, :tradable, :marginable, :shortable, :easy_to_borrow, :fractionable def initialize(json) @id = json['id'] @asset_class = json['class'] @exchange = json['exchange'] @symbol = json['symbol'] @status = json['status'] @tradable = json['tradable'] @marginable = json['marginable'] @shortable = json['shortable'] @easy_to_borrow = json['easy_to_borrow'] @fractionable = json['fractionable'] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alpaca-trade-api-0.8.0 | lib/alpaca/trade/api/asset.rb |