Class: Bitex::Buy

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

Overview

TODO: rever esta docu 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 18

#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



30
31
32
# File 'lib/bitex/buy.rb', line 30

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 8

#feeBigDecimal

TODO: rever esta docu

Returns:

  • (BigDecimal)

    Quantity of specie paid as transaction fee.



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

#idInteger

Returns This buy’s unique ID.

Returns:

  • (Integer)

    This buy’s unique ID.



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

#order_bookSymbol

Returns :btc_usd or :btc_ars.

Returns:

  • (Symbol)

    :btc_usd or :btc_ars



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

#priceBigDecimal

Returns Price paid per unit.

Returns:

  • (BigDecimal)

    Price paid per unit



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

#quantityBigDecimal

TODO: rever esta docu

Returns:

  • (BigDecimal)

    Quantity of specie bought



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