Class: Bitex::Buy

Inherits:
Match
  • Object
show all
Defined in:
lib/bitex/buy.rb

Overview

A transaction in which you bought some quantity of specie.

Instance Attribute Summary collapse

Instance Attribute Details

#amountBigDecimal

Returns Amount of USD spent.

Returns:

  • (BigDecimal)

    Amount of USD spent



# File 'lib/bitex/buy.rb', line 16

#bid_idInteger

Returns Unique ID for the Bid that resulted in this Buy.

Returns:

  • (Integer)

    Unique ID for the Bid that resulted in this Buy



27
28
29
# File 'lib/bitex/buy.rb', line 27

def bid_id
  @bid_id
end

#created_atTime

Returns Time when this Buy happened.

Returns:

  • (Time)

    Time when this Buy happened.



# File 'lib/bitex/buy.rb', line 7

#feeBigDecimal

Returns Quantity of specie paid as transaction fee.

Returns:

  • (BigDecimal)

    Quantity of specie paid as transaction fee.



# File 'lib/bitex/buy.rb', line 19

#idInteger

Returns This buy’s unique ID.

Returns:

  • (Integer)

    This buy’s unique ID.



# File 'lib/bitex/buy.rb', line 4

#priceBigDecimal

Returns Price paid per unit.

Returns:

  • (BigDecimal)

    Price paid per unit



# File 'lib/bitex/buy.rb', line 22

#quantityBigDecimal

Returns Quantity of specie bought.

Returns:

  • (BigDecimal)

    Quantity of specie bought



# File 'lib/bitex/buy.rb', line 13

#specieSymbol

Returns :btc or :ltc.

Returns:

  • (Symbol)

    :btc or :ltc



# File 'lib/bitex/buy.rb', line 10